Ticket #611: patch-bind9-20030811

File patch-bind9-20030811, 1.9 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:04:14 2003
3@@ -3,10 +3,11 @@
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@@ -18,23 +19,25 @@
17 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
18 
19 
20-configure.args         --mandir=${prefix}/share/man --localstatedir=${prefix}/var
21-
22-post-patch     {
23-       system "sed -e \"s=%%PREFIX%%=${prefix}=g\" ${filespath}/bind.sh >${portpath}/bind.sh"
24-}
25+configure.args         --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind
26 
27 post-destroot  {
28        file mkdir ${destroot}${prefix}/etc/rc.d/
29        file mkdir ${destroot}${prefix}/var/run/
30        file mkdir ${destroot}${prefix}/var/named/
31-       system "install -bC -o root ${portpath}/bind.sh ${destroot}${prefix}/etc/rc.d/"
32+       reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh
33+
34+       system "install -o root -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/"
35+       reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf
36+       
37+       system "install -o root -m 755 -c ${portpath}/files/db.* ${destroot}${prefix}/var/named/"
38+       system "touch ${destroot}${prefix}/var/run/.turd"
39 }
40 
41+
42 variant darwin {
43         depends_lib-append      lib:libdl.1:dlcompat
44 }
45-
46 
47 variant ipv6 {
48        configure.args-append   --enable-ipv6