Ticket #611: patch-bind9-20030811.2

File patch-bind9-20030811.2, 2.2 KB (added by bchesneau@…, 21 years ago)

Patch cvs portfile

Line 
1--- Portfile-orig       Mon Aug 11 00:55:41 2003
2+++ Portfile    Mon Aug 11 01:41:13 2003
3@@ -3,14 +3,15 @@
4 PortSystem 1.0
5 name                   bind9
6 version                        9.2.2
7-revision               1
8+revision               2       
9 categories             net
10 maintainers            bchesneau@mac.com
11 description            Domain Name System server
12+homepage               http://www.isc.org
13 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.
14 
15 platforms              darwin freebsd
16-master_sites           ftp://ftp.isc.org/isc/${portname}/${version}/
17+master_sites           ftp://ftp.isc.org/isc/${portname}/${version}
18 distname               bind-${version}
19 worksrcdir             bind-${version}
20 checksums              md5 6ea7d64a0856893ab3eb541ab7bbc725
21@@ -18,23 +19,27 @@
22 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
23 
24 
25-configure.args         --mandir=${prefix}/share/man --localstatedir=${prefix}/var
26-
27-post-patch     {
28-       system "sed -e \"s=%%PREFIX%%=${prefix}=g\" ${filespath}/bind.sh >${portpath}/bind.sh"
29-}
30+configure.args         --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind
31 
32 post-destroot  {
33        file mkdir ${destroot}${prefix}/etc/rc.d/
34        file mkdir ${destroot}${prefix}/var/run/
35        file mkdir ${destroot}${prefix}/var/named/
36-       system "install -bC -o root ${portpath}/bind.sh ${destroot}${prefix}/etc/rc.d/"
37+       
38+       system "install -o root -m 755 -c ${portpath}/files/bind.sh ${destroot}${prefix}/etc/rc.d/"
39+       reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh
40+
41+       system "install -o root -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/"
42+       reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf
43+       
44+       system "install -o root -m 755 -c ${portpath}/files/db.* ${destroot}${prefix}/var/named/"
45+       system "touch ${destroot}${prefix}/var/run/.turd"
46 }
47 
48+
49 variant darwin {
50         depends_lib-append      lib:libdl.1:dlcompat
51 }
52-
53 
54 variant ipv6 {
55        configure.args-append   --enable-ipv6