summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-07-11 19:15:34 +0000
committerpawel <pawel@FreeBSD.org>2014-07-11 19:15:34 +0000
commit096f025f9cb87ec0c6f5c95371adf8d728fb4acd (patch)
treef65b0e9bcb578ece918d21f6f3ebda2fa1fa746d
parent9a7079474a17c67754504b19c0bed3a079fce141 (diff)
downloadFreeBSD-ports-096f025f9cb87ec0c6f5c95371adf8d728fb4acd.zip
FreeBSD-ports-096f025f9cb87ec0c6f5c95371adf8d728fb4acd.tar.gz
- Add staging support
- Convert to new LIB_DEPENDS format
-rw-r--r--security/unicornscan/Makefile42
-rw-r--r--security/unicornscan/pkg-plist1
2 files changed, 19 insertions, 24 deletions
diff --git a/security/unicornscan/Makefile b/security/unicornscan/Makefile
index 9fd0130..0d38ad4 100644
--- a/security/unicornscan/Makefile
+++ b/security/unicornscan/Makefile
@@ -7,12 +7,12 @@ PORTREVISION= 4
CATEGORIES= security
MASTER_SITES= SF/osace/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= Asynchronous TCP and UDP port scanner
LICENSE= GPLv2
-LIB_DEPENDS= net:${PORTSDIR}/net/libnet
+LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet
USES= gmake
MAKE_ENV= LIBNET_CONFIG="${LIBNET_CONFIG}"
@@ -21,9 +21,6 @@ LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
SUB_FILES= pkg-message
-MAN1= unicornscan.1
-
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|-lnet|`${LIBNET_CONFIG} --libs`|' \
${WRKSRC}/src/scan_progs/Makefile ${WRKSRC}/src/tools/Makefile
@@ -34,40 +31,37 @@ post-patch:
${WRKSRC}/src/unilib/tsc.c
do-install:
- @${MKDIR} ${PREFIX}/etc/unicornscan
- @${MKDIR} ${PREFIX}/libexec/unicornscan/modules
- @${MKDIR} ${PREFIX}/share/unicornscan
- @${MKDIR} ${PREFIX}/var/unicornscan
- ${INSTALL_PROGRAM} ${WRKSRC}/src/unicornscan ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/src/tools/fantaip ${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/unicornscan
+ @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unicornscan/modules
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/unicornscan
+ @${MKDIR} ${STAGEDIR}${PREFIX}/var/unicornscan
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/unicornscan ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/tools/fantaip ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/scan_progs/unisend \
- ${PREFIX}/libexec/unicornscan
+ ${STAGEDIR}${PREFIX}/libexec/unicornscan
${INSTALL_PROGRAM} ${WRKSRC}/src/scan_progs/unilisten \
- ${PREFIX}/libexec/unicornscan
+ ${STAGEDIR}${PREFIX}/libexec/unicornscan
for confs in ${WRKSRC}/fconf/*.conf; do \
- ${INSTALL_DATA} $$confs ${PREFIX}/etc/unicornscan/`basename $$confs`.sample ; \
+ ${INSTALL_DATA} $$confs ${STAGEDIR}${PREFIX}/etc/unicornscan/`basename $$confs`.sample ; \
done
${INSTALL_DATA} ${WRKSRC}/fconf/port-numbers \
- ${PREFIX}/share/unicornscan
+ ${STAGEDIR}${PREFIX}/share/unicornscan
for mods in ${WRKSRC}/src/payload_modules/*.so; do \
- ${INSTALL_PROGRAM} $$mods ${PREFIX}/libexec/unicornscan/modules/ ; \
+ ${INSTALL_PROGRAM} $$mods ${STAGEDIR}${PREFIX}/libexec/unicornscan/modules/ ; \
done
for mods in ${WRKSRC}/src/report_modules/shlibs/*.so; do \
- ${INSTALL_PROGRAM} $$mods ${PREFIX}/libexec/unicornscan/modules/ ; \
+ ${INSTALL_PROGRAM} $$mods ${STAGEDIR}${PREFIX}/libexec/unicornscan/modules/ ; \
done
for pofs in p0f.fp p0fa.fp p0fr.fp; do \
- ${INSTALL_DATA} ${WRKSRC}/src/report_modules/p0f/$$pofs ${PREFIX}/share/unicornscan/ ; \
+ ${INSTALL_DATA} ${WRKSRC}/src/report_modules/p0f/$$pofs ${STAGEDIR}${PREFIX}/share/unicornscan/ ; \
done
${INSTALL_PROGRAM} ${WRKSRC}/src/report_modules/shlibs/libp0f.so \
- ${PREFIX}/libexec/unicornscan/modules
- ${INSTALL_MAN} ${WRKSRC}/docs/unicornscan.1 ${MANPREFIX}/man/man1
+ ${STAGEDIR}${PREFIX}/libexec/unicornscan/modules
+ ${INSTALL_MAN} ${WRKSRC}/docs/unicornscan.1 ${STAGEDIR}${MANPREFIX}/man/man1
# XXX: shouldn't these files below be installed as PORTDOCS?
for files in README misc/UDP_PAYLOADS_NEEDED \
TODO_BUGSTOFIX README.database; do \
- ${INSTALL_DATA} ${WRKSRC}/$$files ${MANPREFIX}/share/unicornscan/ ; \
+ ${INSTALL_DATA} ${WRKSRC}/$$files ${STAGEDIR}${PREFIX}/share/unicornscan/ ; \
done
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_MSG}
.include <bsd.port.mk>
diff --git a/security/unicornscan/pkg-plist b/security/unicornscan/pkg-plist
index c0a9e24..fcf5fbe 100644
--- a/security/unicornscan/pkg-plist
+++ b/security/unicornscan/pkg-plist
@@ -11,6 +11,7 @@ libexec/unicornscan/modules/sip.so
libexec/unicornscan/modules/upnp.so
libexec/unicornscan/unilisten
libexec/unicornscan/unisend
+man/man1/unicornscan.1.gz
share/unicornscan/README
share/unicornscan/README.database
share/unicornscan/TODO_BUGSTOFIX
OpenPOWER on IntegriCloud