Ticket #19120: nsd.Portfile.patch
File nsd.Portfile.patch, 2.1 KB (added by anand@…, 16 years ago) |
---|
-
ports/net/nsd/Portfile
old new 1 # $Id : Portfile 30239 2007-10-23 01:55:09Z jmpp@macports.org$1 # $Id$ 2 2 3 3 PortSystem 1.0 4 4 5 5 name nsd 6 version 2.3.56 version 3.2.1 7 7 categories net 8 8 platforms darwin 9 9 maintainers nomaintainer 10 description authoritative only, high performance, simple name server10 description Authoritative only, high performance, simple name server. 11 11 long_description NSD is an authoritative only, high performance, simple and \ 12 open source name server. 12 open source name server. 13 14 set nsduser nsd 15 set nsdgroup nsd 13 16 14 17 homepage http://www.nlnetlabs.nl/nsd/ 15 master_sites http://www.nlnetlabs.nl/downloads/nsd/16 checksums sha1 99d3e0a763700ffa130082bb7955ddb6fa1ad5d718 master_sites http://www.nlnetlabs.nl/downloads/nsd/ 19 checksums sha1 2829d8f00dc9a6f13178efb80c21566f95db132a 17 20 18 21 depends_lib port:openssl 19 22 20 configure.args --mandir=${prefix}/share/man \ 21 --with-ssl=${prefix} \ 22 --with-pidfile=${prefix}/var/run/nsd/nsd.pid 23 configure.args --with-ssl=${prefix} \ 24 --with-pidfile=${prefix}/var/run/nsd/nsd.pid 23 25 24 26 pre-destroot { 25 adduser nsd password={\*} uid=[nextuid] \ 26 home=${prefix}/var/db/nsd \ 27 shell=/usr/bin/false \ 28 realname=NSD\ Server 29 xinstall -m 755 -d ${destroot}${prefix}/var/run/nsd/ 27 addgroup ${nsdgroup} 28 set gid [existsgroup ${nsdgroup}] 29 adduser ${nsduser} gid=${gid} shell=/sbin/nologin \ 30 {realname=NSD Server} home=${prefix}/var/db/nsd 31 xinstall -o ${nsduser} -g ${nsdgroup} -m 755 -d ${destroot}${prefix}/var/db/nsd 32 xinstall -o ${nsduser} -g ${nsdgroup} -m 755 -d ${destroot}${prefix}/var/run/nsd 33 } 34 35 destroot.keepdirs ${destroot}${prefix}/var/run/nsd \ 36 ${destroot}${prefix}/var/db/nsd 37 38 variant stats description {Enable BIND8-style statistics} { 39 configure.args-append --enable-bind8-stats 40 } 41 42 variant rootserver description {Allows NSD to function as a root server} { 43 configure.args-append --enable-root-server 30 44 } 31 destroot.keepdirs ${destroot}${prefix}/var/run/nsd/