aboutsummaryrefslogtreecommitdiff
path: root/security/razorback-swfScanner
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-07-11 16:54:07 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-07-11 16:54:07 +0000
commitc53a6d587e6f6023f662544717bd53d2a9d7527c (patch)
tree8d7191cf7354e5bae8403e442b08209d87fac32b /security/razorback-swfScanner
parent64f3670d91c2aabad7a652600b8c18e2bf839507 (diff)
downloadports-c53a6d587e6f6023f662544717bd53d2a9d7527c.tar.gz
ports-c53a6d587e6f6023f662544717bd53d2a9d7527c.zip
Notes
Diffstat (limited to 'security/razorback-swfScanner')
-rw-r--r--security/razorback-swfScanner/Makefile30
-rw-r--r--security/razorback-swfScanner/pkg-plist6
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