Ticket #1250: bind9.diff
File bind9.diff, 2.4 KB (added by blb@…, 21 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 name bind9 5 version 9.2. 2-P35 version 9.2.3 6 6 categories net 7 7 maintainers bchesneau@mac.com 8 8 description Domain Name System server 9 9 homepage http://www.isc.org 10 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. 11 11 12 platforms darwin freebsd 12 platforms darwin freebsd sunos 13 13 master_sites isc:${portname}/${version} 14 14 distname bind-${version} 15 15 worksrcdir bind-${version} 16 checksums md5 bb2097d4632991d2cc6d8db8aaf8e5d3 17 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup 18 16 checksums md5 94ae7b0f20dc406fdbbf6fac5d57b32f 19 17 20 18 configure.args --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind 21 19 … … 24 22 file mkdir ${destroot}${prefix}/var/run/ 25 23 file mkdir ${destroot}${prefix}/var/named/ 26 24 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/ 28 26 reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh 29 27 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/ 31 29 reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf 32 30 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 } 34 35 system "touch ${destroot}${prefix}/var/run/.turd" 35 36 } 36 37 37 38 38 39 variant darwin { 39 40 depends_lib-append lib:libdl:dlcompat 41 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup 40 42 } 41 43 42 44 variant ipv6 { … … 47 49 depends_lib-append lib:libssl.0.9:openssl 48 50 configure.args-append --with-openssl 49 51 } 52 53 variant threads { 54 configure.args-append --enable-threads 55 } 56