diff options
author | pawel <pawel@FreeBSD.org> | 2014-07-12 00:54:07 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-07-12 00:54:07 +0800 |
commit | e2ea4313e7e478f8e6c4ddd77977a4b25a1aac3b (patch) | |
tree | 8d7191cf7354e5bae8403e442b08209d87fac32b /security | |
parent | 8a31df44fad7bdf00f2f031b3841f67c0bb0198a (diff) | |
download | freebsd-ports-gnome-e2ea4313e7e478f8e6c4ddd77977a4b25a1aac3b.tar.gz freebsd-ports-gnome-e2ea4313e7e478f8e6c4ddd77977a4b25a1aac3b.tar.zst freebsd-ports-gnome-e2ea4313e7e478f8e6c4ddd77977a4b25a1aac3b.zip |
- Add staging support
- Convert to new LIB_DEPENDS format, options helpers, USES=libtool
- Use @sample for config file
Diffstat (limited to 'security')
-rw-r--r-- | security/razorback-swfScanner/Makefile | 30 | ||||
-rw-r--r-- | security/razorback-swfScanner/pkg-plist | 6 |
2 files changed, 11 insertions, 25 deletions
diff --git a/security/razorback-swfScanner/Makefile b/security/razorback-swfScanner/Makefile index ba7e6fdd2f14..d6d92a4746ed 100644 --- a/security/razorback-swfScanner/Makefile +++ b/security/razorback-swfScanner/Makefile @@ -3,47 +3,37 @@ PORTNAME= swfScanner PORTVERSION= 0.5.0 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF/razorbacktm/Nuggets PKGNAMEPREFIX= razorback- DIST_SUBDIR= razorback -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Framework for an intelligence driven security - SWF Detection LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= razorback_api:${PORTSDIR}/security/razorback-api +LIB_DEPENDS= librazorback_api.so:${PORTSDIR}/security/razorback-api BUILD_DEPENDS= razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget RUN_DEPENDS= razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget -OPTIONS_DEFINE= DEBUG ASSERT -ASSERT_DESC= Enable Asserts - RB_LIBDIR?= ${PREFIX}/lib/razorback GNU_CONFIGURE= yes -USES= pkgconfig -USE_AUTOTOOLS= libtool +USES= libtool pkgconfig USE_LDCONFIG= ${RB_LIBDIR} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MDEBUG} -CONFIGURE_ARGS+=--enable-debug -.endif +OPTIONS_DEFINE= DEBUG ASSERT -.if ${PORT_OPTIONS:MASSERT} -CONFIGURE_ARGS+=--enable-assert -.endif +ASSERT_DESC= Enable Asserts +ASSERT_CONFIGURE_ENABLE= assert +DEBUG_CONFIGURE_ENABLE= debug post-install: - ${LN} -sf ${RB_LIBDIR}/swfScanner.so.2 ${RB_LIBDIR}/swfScanner.so.2.0.0 - @if [ ! -f ${PREFIX}/etc/razorback/swf_scanner.conf ]; then \ - ${CP} -p ${PREFIX}/etc/razorback/swf_scanner.conf.sample ${PREFIX}/etc/razorback/swf_scanner.conf ; \ - fi + ${LN} -sf ${RB_LIBDIR}/swfScanner.so.2 \ + ${STAGEDIR}${RB_LIBDIR}/swfScanner.so.2.0.0 .include <bsd.port.mk> diff --git a/security/razorback-swfScanner/pkg-plist b/security/razorback-swfScanner/pkg-plist index f010831ef3d3..d8e78a7dde3f 100644 --- a/security/razorback-swfScanner/pkg-plist +++ b/security/razorback-swfScanner/pkg-plist @@ -1,10 +1,6 @@ -@unexec if cmp -s %D/etc/razorback/swf_scanner.conf %D/etc/razorback/swf_scanner.conf.sample; then rm -f %D/etc/razorback/swf_scanner.conf; fi -etc/razorback/swf_scanner.conf.sample -@exec if [ ! -f %D/etc/razorback/swf_scanner.conf ] ; then cp -p %D/%F %B/swf_scanner.conf; fi -@dirrmtry etc/razorback +@sample etc/razorback/swf_scanner.conf.sample lib/razorback/swfScanner.so.2.0.0 lib/razorback/swfScanner.so.2 lib/razorback/swfScanner.so -lib/razorback/swfScanner.la lib/razorback/swfScanner.a @dirrmtry lib/razorback |