mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Support CC/CFLAGS properly
- Add LICENSE - Switch to PLIST_FILES - Support staging PR: ports/184830 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
9414689754
commit
14f3106dcb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336951
@ -11,22 +11,33 @@ EXTRACT_SUFX= .tgz
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Passive L7 flow fingerprinting tool
|
||||
|
||||
WRKSRC= ${WRKDIR}/fl0p/
|
||||
LICENSE= LGPL21
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
PORTDOCS= ChangeLog CREDITS README TODO
|
||||
PLIST_FILES= bin/fl0p %%DATADIR%%/fl0p.fp
|
||||
PLIST_DIRS= %%DATADIR%%
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/config.h
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|"/etc/fl0p"|"${DATADIR}"|' ${WRKSRC}/config.h
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|^GMAKE_OK|#GMAKE_OK|' ${WRKSRC}/Build
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/^CC/s|\([[:blank:]]\)=|\1?=| ; \
|
||||
/^CFLAGS/s|\([[:blank:]]\)=|\1+=| ; \
|
||||
s|-g -ggdb|| ; \
|
||||
s|-I.*|$$(CPPFLAGS)| ; \
|
||||
/^all:/s|strip||' ${WRKSRC}/mk/Linux
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/fl0p ${PREFIX}/bin
|
||||
${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/fl0p.fp ${DATADIR}/
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/README ${DOCSDIR}/
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/ChangeLog ${DOCSDIR}/
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/TODO ${DOCSDIR}/
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/CREDITS ${DOCSDIR}/
|
||||
.endif
|
||||
(cd ${WRKSRC} && ${INSTALL_PROGRAM} fl0p ${STAGEDIR}${PREFIX}/bin)
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} fl0p.fp ${STAGEDIR}${DATADIR})
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for i in ${PORTDOCS}
|
||||
(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- config.h.orig Mon Dec 4 22:49:35 2006
|
||||
+++ config.h Mon Dec 4 22:50:40 2006
|
||||
@@ -19,7 +19,7 @@
|
||||
#ifdef WIN32
|
||||
# define CONFIG_DIR "."
|
||||
#else
|
||||
-# define CONFIG_DIR "/etc/fl0p"
|
||||
+# define CONFIG_DIR "%%PREFIX%%/share/fl0p"
|
||||
#endif /* WIN32 */
|
||||
|
||||
#define FPRINT_DB "fl0p.fp"
|
@ -1,8 +0,0 @@
|
||||
bin/fl0p
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
|
||||
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%DATADIR%%/fl0p.fp
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user