Ticket #2368: Portfile.2.diff

File Portfile.2.diff, 3.6 KB (added by jberry@…, 20 years ago)

Patch to Portfile

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/net/bind9/Portfile,v
    retrieving revision 1.8
    diff -u -r1.8 Portfile
     
    11# $Id: Portfile,v 1.8 2004/11/07 01:03:19 jkh Exp $
    22
    33PortSystem 1.0
    4 name                    bind9
    5 version                 9.2.2-P3
    6 revision                1
    7 categories              net
    8 maintainers             bchesneau@mac.com
    9 description             Domain Name System server
    10 homepage                http://www.isc.org
    11 long_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.
    124
    13 platforms               darwin freebsd
     5name                            bind9
     6version                         9.3.0
     7categories                      net
     8maintainers                     bchesneau@mac.com
     9
     10description                     Domain Name System server
     11homepage                        http://www.isc.org
     12long_description        The BIND DNS Server is used on the vast majority of name \
     13                                        serving machines on the Internet, providing a robust
     14                                        and stable \
     15                                        architecture on top of which an organization's naming architecture \
     16                                        can be built.  The resolver library included in the BIND distribution \
     17                                        provides the standard APIs for translation between domain names \
     18                                        and Internet addresses and is intended to be linked with applications \
     19                                        requiring name service.
     20
     21platforms                       darwin freebsd
    1422master_sites            isc:${portname}/${version}
    15 distname                bind-${version}
    16 worksrcdir              bind-${version}
    17 checksums               md5 bb2097d4632991d2cc6d8db8aaf8e5d3
    18 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
     23distname                        bind-${version}
     24checksums                       md5 fdb42fff7e345372ac52a4493b77b694
    1925
     26depends_run                     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    2027
    21 configure.args          --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind
     28configure.args          --mandir=${prefix}/share/man --enable-libbind
    2229
    2330post-destroot   {
    24         file mkdir ${destroot}${prefix}/etc/rc.d/
    25         file mkdir ${destroot}${prefix}/var/run/
    26         file mkdir ${destroot}${prefix}/var/named/
     31        xinstall -m 755 -d \
     32                ${destroot}${prefix}/etc/rc.d \
     33                ${destroot}${prefix}/var/run \
     34                ${destroot}${prefix}/var/named
    2735       
    28         system "install -o root -m 755 -c ${portpath}/files/bind.sh ${destroot}${prefix}/etc/rc.d/"
    29         reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh
    30 
    31         system "install -o root -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/"
    32         reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf
     36        # Install the startup script
     37        xinstall -o root -m 755 ${filespath}/bind.sh \
     38                ${destroot}${prefix}/etc/rc.d
     39        reinplace "s|%%PREFIX%%|${prefix}|g" \
     40                ${destroot}${prefix}/etc/rc.d/bind.sh
     41
     42        # Install the conf file as a sample
     43        xinstall -o root -m 644 ${filespath}/named.conf \
     44                ${destroot}${prefix}/etc/named.conf.dist
     45        reinplace "s|%%PREFIX%%|${prefix}|g" \
     46                ${destroot}${prefix}/etc/named.conf.dist
    3347       
    34         system "install -o root -m 755 -c ${portpath}/files/db.* ${destroot}${prefix}/var/named/"
     48        # Install the db files as samples
     49        foreach f "db.127.0.0.1 db.cache db.localhost" {
     50                xinstall -o root -m 644 ${filespath}/${f} \
     51                        ${destroot}${prefix}/var/named/${f}.dist
     52        }
     53
    3554        destroot.keepdirs ${destroot}${prefix}/var/run
    3655}
    3756
    3857
    3958variant darwin {
    40         depends_lib-append      lib:libdl:dlcompat
     59        depends_lib-append      lib:libdl:dlcompat
    4160}
    4261
    4362variant ipv6 {