- Create /var directories from plist, not rc.d script
- Strip binaries - Add LICENSE_FILE PR: 200050 Submitted by: amdmi3 Approved by: jaap@NLnetLabs.nl (maintainer)
This commit is contained in:
parent
1b64c50388
commit
74f3a8c1bc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=385853
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= credns
|
||||
PORTVERSION= 0.2.10
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= dns security
|
||||
MASTER_SITES= http://www.nlnetlabs.nl/downloads/credns/
|
||||
|
||||
@ -11,6 +11,7 @@ MAINTAINER= jaap@NLnetLabs.nl
|
||||
COMMENT= Verifier performing validation in the DNS notify/transfer-chain
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USE_RC_SUBR= credns
|
||||
|
||||
@ -27,12 +28,10 @@ CONFIGURE_ARGS= --with-user=${CREDNSUSER} \
|
||||
--with-dbfile=${CREDNSDBDIR}/nsd.db \
|
||||
--with-pidfile=${CREDNSRUNDIR}/nsd.pid
|
||||
|
||||
SUB_LIST= CREDNSUSER=${USERS} \
|
||||
PLIST_SUB= CREDNSUSER=${USERS} \
|
||||
CREDNSGROUP=${GROUPS} \
|
||||
CREDNSDBDIR=${CREDNSDBDIR} \
|
||||
CREDNSRUNDIR=${CREDNSRUNDIR}
|
||||
PLIST_SUB= CREDNSDBDIR=${CREDNSDBDIR} \
|
||||
CREDNSRUNDIR=${CREDNSRUNDIR}
|
||||
|
||||
USE_OPENSSL= yes
|
||||
|
||||
@ -52,6 +51,9 @@ MMAP_CONFIGURE_ENABLE= mmap
|
||||
MAXIPS_CONFIGURE_ON= --with-max-ips=${NSDMAX_IPS}
|
||||
|
||||
post-install:
|
||||
.for f in credns credns-checkconf credns-notify credns-patch credns-xfer
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${f}
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/credns.conf.sample \
|
||||
${STAGEDIR}${PREFIX}/etc/credns/credns.conf.sample
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
|
@ -35,7 +35,6 @@ stop_cmd="credns_stop"
|
||||
|
||||
credns_precmd()
|
||||
{
|
||||
/usr/bin/install -d -o %%CREDNSUSER%% -g %%CREDNSGROUP%% %%CREDNSDBDIR%% %%CREDNSRUNDIR%%
|
||||
db=`%%PREFIX%%/sbin/credns-checkconf -o database %%PREFIX%%/etc/credns/credns.conf`
|
||||
if [ ! -f "$db" ]; then
|
||||
${command} rebuild
|
||||
|
@ -12,3 +12,5 @@ sbin/credns-notify
|
||||
sbin/credns-patch
|
||||
sbin/credns-xfer
|
||||
sbin/crednsc
|
||||
@dir(%%CREDNSUSER%%,%%CREDNSGROUP%%,755) %%CREDNSRUNDIR%%
|
||||
@dir(%%CREDNSUSER%%,%%CREDNSGROUP%%,755) %%CREDNSDBDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user