Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2015 02:04:07 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r385853 - in head/dns/credns: . files
Message-ID:  <201505090204.t49247Wh055602@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat May  9 02:04:06 2015
New Revision: 385853
URL: https://svnweb.freebsd.org/changeset/ports/385853

Log:
  - 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)

Modified:
  head/dns/credns/Makefile
  head/dns/credns/files/credns.in
  head/dns/credns/pkg-plist

Modified: head/dns/credns/Makefile
==============================================================================
--- head/dns/credns/Makefile	Sat May  9 01:32:04 2015	(r385852)
+++ head/dns/credns/Makefile	Sat May  9 02:04:06 2015	(r385853)
@@ -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}

Modified: head/dns/credns/files/credns.in
==============================================================================
--- head/dns/credns/files/credns.in	Sat May  9 01:32:04 2015	(r385852)
+++ head/dns/credns/files/credns.in	Sat May  9 02:04:06 2015	(r385853)
@@ -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

Modified: head/dns/credns/pkg-plist
==============================================================================
--- head/dns/credns/pkg-plist	Sat May  9 01:32:04 2015	(r385852)
+++ head/dns/credns/pkg-plist	Sat May  9 02:04:06 2015	(r385853)
@@ -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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505090204.t49247Wh055602>