RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/net/bind9/Portfile,v
retrieving revision 1.8
diff -u -r1.8 Portfile
|
|
|
1 | 1 | # $Id: Portfile,v 1.8 2004/11/07 01:03:19 jkh Exp $ |
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | | name bind9 |
5 | | version 9.2.2-P3 |
6 | | revision 1 |
7 | | categories net |
8 | | maintainers bchesneau@mac.com |
9 | | description Domain Name System server |
10 | | homepage http://www.isc.org |
11 | | 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. |
12 | 4 | |
13 | | 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 |
| 14 | and stable \ |
| 15 | architecture on top of which an organization's naming architecture \ |
| 16 | can be built. The resolver library included in the BIND distribution \ |
| 17 | provides the standard APIs for translation between domain names \ |
| 18 | and Internet addresses and is intended to be linked with applications \ |
| 19 | requiring name service. |
| 20 | |
| 21 | platforms darwin freebsd |
14 | 22 | master_sites isc:${portname}/${version} |
15 | | distname bind-${version} |
16 | | worksrcdir bind-${version} |
17 | | checksums md5 bb2097d4632991d2cc6d8db8aaf8e5d3 |
18 | | depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
| 23 | distname bind-${version} |
| 24 | checksums md5 fdb42fff7e345372ac52a4493b77b694 |
19 | 25 | |
| 26 | depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
20 | 27 | |
21 | | configure.args --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind |
| 28 | configure.args --mandir=${prefix}/share/man --enable-libbind |
22 | 29 | |
23 | 30 | post-destroot { |
24 | | file mkdir ${destroot}${prefix}/etc/rc.d/ |
25 | | file mkdir ${destroot}${prefix}/var/run/ |
26 | | file mkdir ${destroot}${prefix}/var/named/ |
| 31 | xinstall -m 755 -d \ |
| 32 | ${destroot}${prefix}/etc/rc.d \ |
| 33 | ${destroot}${prefix}/var/run \ |
| 34 | ${destroot}${prefix}/var/named |
27 | 35 | |
28 | | system "install -o root -m 755 -c ${portpath}/files/bind.sh ${destroot}${prefix}/etc/rc.d/" |
29 | | reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh |
30 | | |
31 | | system "install -o root -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/" |
32 | | reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf |
| 36 | # Install the startup script |
| 37 | xinstall -o root -m 755 ${filespath}/bind.sh \ |
| 38 | ${destroot}${prefix}/etc/rc.d |
| 39 | reinplace "s|%%PREFIX%%|${prefix}|g" \ |
| 40 | ${destroot}${prefix}/etc/rc.d/bind.sh |
| 41 | |
| 42 | # Install the conf file as a sample |
| 43 | xinstall -o root -m 644 ${filespath}/named.conf \ |
| 44 | ${destroot}${prefix}/etc/named.conf.dist |
| 45 | reinplace "s|%%PREFIX%%|${prefix}|g" \ |
| 46 | ${destroot}${prefix}/etc/named.conf.dist |
33 | 47 | |
34 | | system "install -o root -m 755 -c ${portpath}/files/db.* ${destroot}${prefix}/var/named/" |
| 48 | # Install the db files as samples |
| 49 | foreach f "db.127.0.0.1 db.cache db.localhost" { |
| 50 | xinstall -o root -m 644 ${filespath}/${f} \ |
| 51 | ${destroot}${prefix}/var/named/${f}.dist |
| 52 | } |
| 53 | |
35 | 54 | destroot.keepdirs ${destroot}${prefix}/var/run |
36 | 55 | } |
37 | 56 | |
38 | 57 | |
39 | 58 | variant darwin { |
40 | | depends_lib-append lib:libdl:dlcompat |
| 59 | depends_lib-append lib:libdl:dlcompat |
41 | 60 | } |
42 | 61 | |
43 | 62 | variant ipv6 { |