summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-07-11 15:33:11 +0000
committerpawel <pawel@FreeBSD.org>2014-07-11 15:33:11 +0000
commit268bc5b4b51fd47ca6cbbebe457b3413fdec7f02 (patch)
tree1193b41c0a4cc1bb4411be57cd6e266f1d4d5bbf
parent2c0d5900c245401f4d6be99dbdc4902e98147336 (diff)
downloadFreeBSD-ports-268bc5b4b51fd47ca6cbbebe457b3413fdec7f02.zip
FreeBSD-ports-268bc5b4b51fd47ca6cbbebe457b3413fdec7f02.tar.gz
- Fix build with clang (overzealous -Werror)
- Add staging support - Convert to new LIB_DEPENDS format, options helpers, USES=libtool MFH: 2014Q3
-rw-r--r--security/razorback-archiveInflate/Makefile31
-rw-r--r--security/razorback-archiveInflate/pkg-plist6
2 files changed, 13 insertions, 24 deletions
diff --git a/security/razorback-archiveInflate/Makefile b/security/razorback-archiveInflate/Makefile
index c190310..f412fbb 100644
--- a/security/razorback-archiveInflate/Makefile
+++ b/security/razorback-archiveInflate/Makefile
@@ -3,47 +3,40 @@
PORTNAME= archiveInflate
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 - Archive Inflator
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
+ASSERT_DESC= Enable Asserts
+ASSERT_CONFIGURE_ENABLE= assert
+DEBUG_CONFIGURE_ENABLE= debug
-.if ${PORT_OPTIONS:MASSERT}
-CONFIGURE_ARGS+=--enable-assert
-.endif
+post-patch:
+ @${REINPLACE_CMD} '/CWARNINGS/ s|-Werror||' ${WRKSRC}/configure
post-install:
- ${LN} -sf ${RB_LIBDIR}/archiveInflate.so.2 ${RB_LIBDIR}/archiveInflate.so.2.0.0
- @if [ ! -f ${PREFIX}/etc/razorback/archive_inflate.conf ]; then \
- ${CP} -p ${PREFIX}/etc/razorback/archive_inflate.conf.sample ${PREFIX}/etc/razorback/archive_inflate.conf ; \
- fi
+ ${LN} -sf ${RB_LIBDIR}/archiveInflate.so.2 \
+ ${STAGEDIR}${RB_LIBDIR}/archiveInflate.so.2.0.0
.include <bsd.port.mk>
diff --git a/security/razorback-archiveInflate/pkg-plist b/security/razorback-archiveInflate/pkg-plist
index 1b88e07..6ccd884 100644
--- a/security/razorback-archiveInflate/pkg-plist
+++ b/security/razorback-archiveInflate/pkg-plist
@@ -1,10 +1,6 @@
-@unexec if cmp -s %D/etc/razorback/archive_inflate.conf %D/etc/razorback/archive_inflate.conf.sample; then rm -f %D/etc/razorback/archive_inflate.conf; fi
-etc/razorback/archive_inflate.conf.sample
-@exec if [ ! -f %D/etc/razorback/archive_inflate.conf ]; then cp -p %D/%F %B/archive_inflate.conf; fi
-@dirrmtry etc/razorback
+@sample etc/razorback/archive_inflate.conf.sample
lib/razorback/archiveInflate.so.2.0.0
lib/razorback/archiveInflate.so.2
lib/razorback/archiveInflate.so
-lib/razorback/archiveInflate.la
lib/razorback/archiveInflate.a
@dirrmtry lib/razorback
OpenPOWER on IntegriCloud