Ticket #2368: Portfile.diff

File Portfile.diff, 3.7 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.6
    diff -u -r1.6 Portfile
     
    11# $Id: Portfile,v 1.6 2004/01/18 04:35:42 toby Exp $
    22
    33PortSystem 1.0
    4 name                    bind9
    5 version                 9.2.2-P3
    6 categories              net
    7 maintainers             bchesneau@mac.com
    8 description             Domain Name System server
    9 homepage                http://www.isc.org
    10 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.
    114
    12 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 and stable \
     14                                        architecture on top of which an organization's naming architecture \
     15                                        can be built.  The resolver library included in the BIND distribution \
     16                                        provides the standard APIs for translation between domain names \
     17                                        and Internet addresses and is intended to be linked with applications \
     18                                        requiring name service.
     19
     20platforms                       darwin freebsd
    1321master_sites            isc:${portname}/${version}
    14 distname                bind-${version}
    15 worksrcdir              bind-${version}
    16 checksums               md5 bb2097d4632991d2cc6d8db8aaf8e5d3
    17 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
     22distname                        bind-${version}
     23checksums                       md5 fdb42fff7e345372ac52a4493b77b694
     24
     25depends_run                     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    1826
     27configure.args          --mandir=${prefix}/share/man --enable-libbind
    1928
    20 configure.args          --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind
     29destroot.keepdirs       ${destroot}${prefix}/var/run
    2130
    2231post-destroot   {
    23         file mkdir ${destroot}${prefix}/etc/rc.d/
    24         file mkdir ${destroot}${prefix}/var/run/
    25         file mkdir ${destroot}${prefix}/var/named/
     32        xinstall -m 755 -d \
     33                ${destroot}${prefix}/etc/rc.d \
     34                ${destroot}${prefix}/var/run \
     35                ${destroot}${prefix}/var/named
    2636       
    27         system "install -o root -m 755 -c ${portpath}/files/bind.sh ${destroot}${prefix}/etc/rc.d/"
    28         reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh
    29 
    30         system "install -o root -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/"
    31         reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf
     37        # Install the startup script
     38        xinstall -o root -m 755 ${filespath}/bind.sh \
     39                ${destroot}${prefix}/etc/rc.d
     40        reinplace "s|%%PREFIX%%|${prefix}|g" \
     41                ${destroot}${prefix}/etc/rc.d/bind.sh
     42
     43        # Install the conf file as a sample
     44        xinstall -o root -m 644 ${filespath}/named.conf \
     45                ${destroot}${prefix}/etc/named.conf.dist
     46        reinplace "s|%%PREFIX%%|${prefix}|g" \
     47                ${destroot}${prefix}/etc/named.conf.dist
    3248       
    33         system "install -o root -m 755 -c ${portpath}/files/db.* ${destroot}${prefix}/var/named/"
    34         system "touch ${destroot}${prefix}/var/run/.turd"
     49        # Install the db files as samples
     50        foreach f "db.127.0.0.1 db.cache db.localhost" {
     51                xinstall -o root -m 644 ${filespath}/${f} \
     52                        ${destroot}${prefix}/var/named/${f}.dist
     53        }
    3554}
    3655
    3756
    3857variant darwin {
    39         depends_lib-append      lib:libdl:dlcompat
     58        depends_lib-append      lib:libdl:dlcompat
    4059}
    4160
    4261variant ipv6 {