From 7a0d152124a61e9591373c3d149ab279fc004caf Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Sat, 9 May 2015 02:04:06 +0000 Subject: - 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) --- dns/credns/Makefile | 10 ++++++---- dns/credns/files/credns.in | 1 - dns/credns/pkg-plist | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'dns') diff --git a/dns/credns/Makefile b/dns/credns/Makefile index 571fa9345695..7cc9ea7af372 100644 --- a/dns/credns/Makefile +++ b/dns/credns/Makefile @@ -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} diff --git a/dns/credns/files/credns.in b/dns/credns/files/credns.in index 98981586bff4..9f2d9c15ae04 100644 --- a/dns/credns/files/credns.in +++ b/dns/credns/files/credns.in @@ -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 diff --git a/dns/credns/pkg-plist b/dns/credns/pkg-plist index 62a38159f818..44e9bb3d9ea2 100644 --- a/dns/credns/pkg-plist +++ b/dns/credns/pkg-plist @@ -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%% -- cgit