mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
- Add staging support
- Convert to new LIB_DEPENDS format, options helpers, USES=libtool - Remove check for unsupported release - Use @sample for config file
This commit is contained in:
parent
4f8077e69f
commit
5dd6770736
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361563
@ -8,24 +8,16 @@ 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 - Master Nugget
|
||||
|
||||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= razorback_api:${PORTSDIR}/security/razorback-api
|
||||
|
||||
OPTIONS_DEFINE= DEBUG ASSERT
|
||||
ASSERT_DESC= Enable Asserts
|
||||
|
||||
USES= pkgconfig
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
LIB_DEPENDS= librazorback_api.so:${PORTSDIR}/security/razorback-api
|
||||
|
||||
USES= libtool pkgconfig
|
||||
GNU_CONFIGURE= yes
|
||||
USE_AUTOTOOLS= libtool
|
||||
USE_RC_SUBR= masterNugget masterNugget_safed
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
@ -33,21 +25,10 @@ LDFLAGS+= -L${LOCALBASE}/lib
|
||||
USERS?= razorback
|
||||
GROUPS?= razorback
|
||||
|
||||
.if ${OSVERSION} <= 800000
|
||||
BROKEN= does not currently build under 7.x
|
||||
.endif
|
||||
OPTIONS_DEFINE= DEBUG ASSERT
|
||||
|
||||
.if ${PORT_OPTIONS:MDEBUG}
|
||||
CONFIGURE_ARGS+=--enable-debug
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MASSERT}
|
||||
CONFIGURE_ARGS+=--enable-assert
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/razorback/master_nugget.conf ]; then \
|
||||
${CP} -p ${PREFIX}/etc/razorback/master_nugget.conf.sample ${PREFIX}/etc/razorback/master_nugget.conf ; \
|
||||
fi
|
||||
ASSERT_DESC= Enable Asserts
|
||||
ASSERT_CONFIGURE_ENABLE= assert
|
||||
DEBUG_CONFIGURE_ENABLE= debug
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,3 @@
|
||||
bin/masterNugget
|
||||
bin/masterNugget_safed
|
||||
@unexec if cmp -s %D/etc/razorback/master_nugget.conf %D/etc/razorback/master_nugget.conf.sample; then rm -f %D/etc/razorback/master_nugget.conf; fi
|
||||
etc/razorback/master_nugget.conf.sample
|
||||
@exec if [ ! -f %D/etc/razorback/master_nugget.conf ]; then cp %D/%F %B/master_nugget.conf; fi
|
||||
@dirrmtry etc/razorback
|
||||
@sample etc/razorback/master_nugget.conf.sample
|
||||
|
Loading…
Reference in New Issue
Block a user