- Add staging support

- Convert to new LIB_DEPENDS format, options helpers, USES=libtool
- Use @sample for config file
This commit is contained in:
Pawel Pekala 2014-07-11 16:54:07 +00:00
parent 64f3670d91
commit c53a6d587e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361567
2 changed files with 11 additions and 25 deletions

View file

@ -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>
OPTIONS_DEFINE= DEBUG ASSERT
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
.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>

View file

@ -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