diff options
author | pawel <pawel@FreeBSD.org> | 2013-12-20 03:37:01 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2013-12-20 03:37:01 +0800 |
commit | 6a042c0bdfcbf3d38fd010b28f364537d3e9255a (patch) | |
tree | 5b10ce70c168d7e25bca2be182999e7dde7c7cf2 /security/fl0p | |
parent | b493a9003b4115dbd251ac8c4aba9a947ee2a1b2 (diff) | |
download | freebsd-ports-gnome-6a042c0bdfcbf3d38fd010b28f364537d3e9255a.tar.gz freebsd-ports-gnome-6a042c0bdfcbf3d38fd010b28f364537d3e9255a.tar.zst freebsd-ports-gnome-6a042c0bdfcbf3d38fd010b28f364537d3e9255a.zip |
- Support CC/CFLAGS properly
- Add LICENSE
- Switch to PLIST_FILES
- Support staging
PR: ports/184830
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'security/fl0p')
-rw-r--r-- | security/fl0p/Makefile | 37 | ||||
-rw-r--r-- | security/fl0p/files/patch-config.h | 11 | ||||
-rw-r--r-- | security/fl0p/pkg-plist | 8 |
3 files changed, 24 insertions, 32 deletions
diff --git a/security/fl0p/Makefile b/security/fl0p/Makefile index 252ffcd00550..a0de47f27ba5 100644 --- a/security/fl0p/Makefile +++ b/security/fl0p/Makefile @@ -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> diff --git a/security/fl0p/files/patch-config.h b/security/fl0p/files/patch-config.h deleted file mode 100644 index 35ba3f8cfd5c..000000000000 --- a/security/fl0p/files/patch-config.h +++ /dev/null @@ -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" diff --git a/security/fl0p/pkg-plist b/security/fl0p/pkg-plist deleted file mode 100644 index e4a89e589159..000000000000 --- a/security/fl0p/pkg-plist +++ /dev/null @@ -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%% |