Ticket #1250: bind9.diff

File bind9.diff, 2.4 KB (added by blb@…, 20 years ago)

unidiff to Portfile

  • Portfile

    old new  
    22
    33PortSystem 1.0
    44name                    bind9
    5 version                 9.2.2-P3
     5version                 9.2.3
    66categories              net
    77maintainers             bchesneau@mac.com
    88description             Domain Name System server
    99homepage                http://www.isc.org
    1010long_description        The BIND DNS Server is used on the vast majority of name serving machines on the Internet, providing a robust and stable architecture on top of which an organization's naming architecture can be built.  The resolver library included in the BIND distribution provides the standard APIs for translation between domain names and Internet addresses and is intended to be linked with applications requiring name service.
    1111
    12 platforms               darwin freebsd
     12platforms               darwin freebsd sunos
    1313master_sites            isc:${portname}/${version}
    1414distname                bind-${version}
    1515worksrcdir              bind-${version}
    16 checksums               md5 bb2097d4632991d2cc6d8db8aaf8e5d3
    17 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    18 
     16checksums               md5 94ae7b0f20dc406fdbbf6fac5d57b32f
    1917
    2018configure.args          --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind
    2119
     
    2422        file mkdir ${destroot}${prefix}/var/run/
    2523        file mkdir ${destroot}${prefix}/var/named/
    2624       
    27         system "install -o root -m 755 -c ${portpath}/files/bind.sh ${destroot}${prefix}/etc/rc.d/"
     25        xinstall -m 755 -c ${portpath}/files/bind.sh ${destroot}${prefix}/etc/rc.d/
    2826        reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh
    2927
    30         system "install -o root -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/"
     28        xinstall -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/
    3129        reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf
    3230       
    33         system "install -o root -m 755 -c ${portpath}/files/db.* ${destroot}${prefix}/var/named/"
     31        set dbfiles [glob ${portpath}/files/db.*]
     32        foreach copyThis $dbfiles {
     33                xinstall -m 755 -c $copyThis ${destroot}${prefix}/var/named/
     34        }
    3435        system "touch ${destroot}${prefix}/var/run/.turd"
    3536}
    3637
    3738
    3839variant darwin {
    3940        depends_lib-append      lib:libdl:dlcompat
     41        depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    4042}
    4143
    4244variant ipv6 {
     
    4749        depends_lib-append      lib:libssl.0.9:openssl
    4850        configure.args-append   --with-openssl
    4951}               
     52
     53variant threads {
     54        configure.args-append   --enable-threads
     55}
     56