[50053] trunk/dports/net/nsd/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Thu Apr 23 10:42:47 PDT 2009


Revision: 50053
          http://trac.macports.org/changeset/50053
Author:   macsforever2000 at macports.org
Date:     2009-04-23 10:42:46 -0700 (Thu, 23 Apr 2009)
Log Message:
-----------
Update to version 3.2.1. (#19120)

Modified Paths:
--------------
    trunk/dports/net/nsd/Portfile

Modified: trunk/dports/net/nsd/Portfile
===================================================================
--- trunk/dports/net/nsd/Portfile	2009-04-23 16:53:11 UTC (rev 50052)
+++ trunk/dports/net/nsd/Portfile	2009-04-23 17:42:46 UTC (rev 50053)
@@ -3,29 +3,42 @@
 PortSystem 1.0
 
 name			nsd
-version			2.3.5
+version			3.2.1
 categories		net
 platforms		darwin
 maintainers		nomaintainer
-description		authoritative only, high performance, simple name server
+description		Authoritative only, high performance, simple name server.
 long_description	NSD is an authoritative only, high performance, simple and \
-				open source name server.
+			open source name server.
 
+set nsduser		nsd
+set nsdgroup		nsd
+
 homepage		http://www.nlnetlabs.nl/nsd/
-master_sites	http://www.nlnetlabs.nl/downloads/nsd/
-checksums		sha1 99d3e0a763700ffa130082bb7955ddb6fa1ad5d7
+master_sites		http://www.nlnetlabs.nl/downloads/nsd/
+checksums		sha1 2829d8f00dc9a6f13178efb80c21566f95db132a
 
 depends_lib		port:openssl
 
-configure.args	--mandir=${prefix}/share/man \
-				--with-ssl=${prefix} \
-				--with-pidfile=${prefix}/var/run/nsd/nsd.pid
+configure.args		--with-ssl=${prefix} \
+			--with-pidfile=${prefix}/var/run/nsd/nsd.pid
 
 pre-destroot {
-	adduser nsd password={\*} uid=[nextuid] \
-		home=${prefix}/var/db/nsd \
-		shell=/usr/bin/false \
-		realname=NSD\ Server
-	xinstall -m 755 -d ${destroot}${prefix}/var/run/nsd/
+	addgroup ${nsdgroup}
+	set gid [existsgroup ${nsdgroup}]
+	adduser ${nsduser} gid=${gid} shell=/sbin/nologin \
+		{realname=NSD Server} home=${prefix}/var/db/nsd
+	xinstall -o ${nsduser} -g ${nsdgroup} -m 755 -d ${destroot}${prefix}/var/db/nsd
+	xinstall -o ${nsduser} -g ${nsdgroup} -m 755 -d ${destroot}${prefix}/var/run/nsd
 }
-destroot.keepdirs	${destroot}${prefix}/var/run/nsd/
+
+destroot.keepdirs	${destroot}${prefix}/var/run/nsd \
+			${destroot}${prefix}/var/db/nsd
+
+variant stats description {Enable BIND8-style statistics} {
+	configure.args-append	--enable-bind8-stats
+}
+
+variant rootserver description {Allows NSD to function as a root server} {
+	configure.args-append	--enable-root-server
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090423/ab9789c0/attachment-0001.html>


More information about the macports-changes mailing list