RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/net/bind9/Portfile,v
retrieving revision 1.6
diff -u -r1.6 Portfile
|
|
|
1 | 1 | # $Id: Portfile,v 1.6 2004/01/18 04:35:42 toby Exp $ |
2 | 2 | |
3 | 3 | PortSystem 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. |
11 | 4 | |
12 | | platforms darwin freebsd |
| 5 | name bind9 |
| 6 | version 9.3.0 |
| 7 | categories net |
| 8 | maintainers bchesneau@mac.com |
| 9 | |
| 10 | description Domain Name System server |
| 11 | homepage http://www.isc.org |
| 12 | long_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 | |
| 20 | platforms darwin freebsd |
13 | 21 | master_sites isc:${portname}/${version} |
14 | | distname bind-${version} |
15 | | worksrcdir bind-${version} |
16 | | checksums md5 bb2097d4632991d2cc6d8db8aaf8e5d3 |
17 | | depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
| 22 | distname bind-${version} |
| 23 | checksums md5 fdb42fff7e345372ac52a4493b77b694 |
| 24 | |
| 25 | depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
18 | 26 | |
| 27 | configure.args --mandir=${prefix}/share/man --enable-libbind |
19 | 28 | |
20 | | configure.args --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind |
| 29 | destroot.keepdirs ${destroot}${prefix}/var/run |
21 | 30 | |
22 | 31 | post-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 |
26 | 36 | |
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 |
32 | 48 | |
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 | } |
35 | 54 | } |
36 | 55 | |
37 | 56 | |
38 | 57 | variant darwin { |
39 | | depends_lib-append lib:libdl:dlcompat |
| 58 | depends_lib-append lib:libdl:dlcompat |
40 | 59 | } |
41 | 60 | |
42 | 61 | variant ipv6 { |