Ticket #19120: nsd.Portfile.patch

File nsd.Portfile.patch, 2.1 KB (added by anand@…, 15 years ago)

A patch for the NSD Portfile to update it to version 3.2.1

  • ports/net/nsd/Portfile

    old new  
    1 # $Id: Portfile 30239 2007-10-23 01:55:09Z jmpp@macports.org $
     1# $Id$
    22
    33PortSystem 1.0
    44
    55name                    nsd
    6 version                 2.3.5
     6version                 3.2.1
    77categories              net
    88platforms               darwin
    99maintainers             nomaintainer
    10 description             authoritative only, high performance, simple name server
     10description             Authoritative only, high performance, simple name server.
    1111long_description        NSD is an authoritative only, high performance, simple and \
    12                                 open source name server.
     12                        open source name server.
     13
     14set nsduser             nsd
     15set nsdgroup            nsd
    1316
    1417homepage                http://www.nlnetlabs.nl/nsd/
    15 master_sites    http://www.nlnetlabs.nl/downloads/nsd/
    16 checksums               sha1 99d3e0a763700ffa130082bb7955ddb6fa1ad5d7
     18master_sites            http://www.nlnetlabs.nl/downloads/nsd/
     19checksums               sha1 2829d8f00dc9a6f13178efb80c21566f95db132a
    1720
    1821depends_lib             port:openssl
    1922
    20 configure.args  --mandir=${prefix}/share/man \
    21                                 --with-ssl=${prefix} \
    22                                 --with-pidfile=${prefix}/var/run/nsd/nsd.pid
     23configure.args          --with-ssl=${prefix} \
     24                        --with-pidfile=${prefix}/var/run/nsd/nsd.pid
    2325
    2426pre-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
     35destroot.keepdirs       ${destroot}${prefix}/var/run/nsd \
     36                        ${destroot}${prefix}/var/db/nsd
     37
     38variant stats description {Enable BIND8-style statistics} {
     39        configure.args-append   --enable-bind8-stats
     40}
     41
     42variant rootserver description {Allows NSD to function as a root server} {
     43        configure.args-append   --enable-root-server
    3044}
    31 destroot.keepdirs       ${destroot}${prefix}/var/run/nsd/