Ticket #611: patch-bind9-20030603

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

Portfile patch

Line 
1--- Portfile-old        Tue Jun  3 01:26:39 2003
2+++ Portfile    Tue Jun  3 02:54:30 2003
3@@ -18,17 +18,19 @@
4 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
5 
6 
7-configure.args         --mandir=${prefix}/share/man --localstatedir=${prefix}/var
8+configure.args         --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind
9 
10-post-patch     {
11-       system "sed -e \"s=%%PREFIX%%=${prefix}=g\" ${filespath}/bind.sh >${portpath}/bind.sh"
12-}
13-
14-post-install   {
15+post-install {
16        file mkdir ${destroot}${prefix}/etc/rc.d/
17        file mkdir ${destroot}${prefix}/var/run/
18        file mkdir ${destroot}${prefix}/var/named/
19-       system "install -bC -o root ${portpath}/bind.sh ${destroot}${prefix}/etc/rc.d/"
20+       system "install -o root -m 755 -c ${portpath}/files/bind.sh ${destroot}${prefix}/etc/rc.d/"
21+       reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh
22+
23+       system "install -o root -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/"
24+       reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf
25+       
26+       system "install -o root -m 755 -c ${portpath}/files/db.* ${destroot}${prefix}/var/named/"
27 }
28 
29 variant darwin {