diff options
author | tijl <tijl@FreeBSD.org> | 2014-07-06 03:54:21 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-07-06 03:54:21 +0800 |
commit | 70c6413ad32a240da35abf5e45674e28017087ed (patch) | |
tree | 0dd86ec55df3c0d78c02b6e4702eb38a130377af | |
parent | 449f4608c3f27a7fe100f47c6067f6ee7764b7c5 (diff) | |
download | freebsd-ports-gnome-70c6413ad32a240da35abf5e45674e28017087ed.tar.gz freebsd-ports-gnome-70c6413ad32a240da35abf5e45674e28017087ed.tar.zst freebsd-ports-gnome-70c6413ad32a240da35abf5e45674e28017087ed.zip |
- New LIB_DEPENDS syntax
- Convert to USES=libtool
- Use BROKEN_sparc64
- Remove BROKEN for clang
- Use @sample
-rw-r--r-- | security/razorback-api/Makefile | 33 | ||||
-rw-r--r-- | security/razorback-api/pkg-plist | 10 |
2 files changed, 11 insertions, 32 deletions
diff --git a/security/razorback-api/Makefile b/security/razorback-api/Makefile index 42de221c76af..4b91d1ba90c8 100644 --- a/security/razorback-api/Makefile +++ b/security/razorback-api/Makefile @@ -2,7 +2,7 @@ PORTNAME= api PORTVERSION= 0.5.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= SF/razorbacktm/API PKGNAMEPREFIX= razorback- @@ -14,9 +14,9 @@ COMMENT= Framework for an intelligence driven security solution - API LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= config.10:${PORTSDIR}/devel/libconfig \ - uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \ - curl:${PORTSDIR}/ftp/curl \ +LIB_DEPENDS= libconfig.so:${PORTSDIR}/devel/libconfig \ + libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \ + libcurl.so:${PORTSDIR}/ftp/curl \ libjson.so:${PORTSDIR}/devel/json-c OPTIONS_DEFINE= DEBUG ASSERT CNC_DEBUG STOMP_DEBUG @@ -24,13 +24,14 @@ OPTIONS_DEFINE= DEBUG ASSERT CNC_DEBUG STOMP_DEBUG CNC_DEBUG_DESC= Enable Command and Control Debug STOMP_DEBUG_DESC= Enable STOMP Debug -USES= pathfix pkgconfig -USE_AUTOTOOLS= libtool GNU_CONFIGURE= yes +USES= libtool pathfix pkgconfig USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +BROKEN_sparc64= Does not compile on sparc64 + .include <bsd.port.options.mk> .if !empty(PORT_OPTIONS:MDEBUG) @@ -49,26 +50,8 @@ CONFIGURE_ARGS+=--enable-cnc-debug CONFIGURE_ARGS+=--enable-stomp-debug .endif -.if ${CC} == "clang" || ${CXX} == "clang++" -BROKEN= does not build when compiled with clang -.endif - -.include <bsd.port.pre.mk> - -.if ${ARCH} == "sparc64" -BROKEN= Does not compile on sparc64 -.endif - post-patch: @${REINPLACE_CMD} -e "s/-Werror//g" \ ${WRKSRC}/configure -post-install: - @if [ ! -f ${STAGEDIR}${PREFIX}/etc/razorback/api.conf ]; then \ - ${CP} -p ${STAGEDIR}${PREFIX}/etc/razorback/api.conf.sample ${STAGEDIR}${PREFIX}/etc/razorback/api.conf ; \ - fi - @if [ ! -f ${STAGEDIR}${PREFIX}/etc/razorback/magic ]; then \ - ${CP} -p ${STAGEDIR}${PREFIX}/etc/razorback/magic.sample ${STAGEDIR}${PREFIX}/etc/razorback/magic ; \ - fi - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/razorback-api/pkg-plist b/security/razorback-api/pkg-plist index 95b6a8daf5df..4d60086d0a65 100644 --- a/security/razorback-api/pkg-plist +++ b/security/razorback-api/pkg-plist @@ -1,9 +1,5 @@ -@unexec if cmp -s %D/etc/razorback/api.conf %D/etc/razorback/api.conf.sample; then rm -f %D/etc/razorback/api.conf; fi -etc/razorback/api.conf.sample -@exec if [ ! -f %D/etc/razorback/api.conf ]; then cp -p %D/%F %B/api.conf; fi -@unexec if cmp -s %D/etc/razorback/magic %D/etc/razorback/magic.sample; then rm -f %D/etc/razorback/magic; fi -etc/razorback/magic.sample -@exec if [ ! -f %D/etc/razorback/magic ]; then cp -p %D/%F %B/magic; fi +@sample etc/razorback/api.conf.sample +@sample etc/razorback/magic.sample @dirrmtry etc/razorback include/razorback.h include/razorback/api.h @@ -79,7 +75,7 @@ include/razorback/libssh/ecdh.h @dirrm include/razorback/libssh @dirrm include/razorback lib/librazorback_api.a -lib/librazorback_api.la lib/librazorback_api.so lib/librazorback_api.so.2 +lib/librazorback_api.so.2.0.0 libdata/pkgconfig/razorback.pc |