source: trunk/dports/net/bind9/Portfile @ 3207

Last change on this file since 3207 was 3207, checked in by fkr, 15 years ago

Bug: #611
Submitted by: bchesneau@… (Benoit Chesneau)
Reviewed by:
Approved by:
Obtained from:

update to bind port. bind.sh now allows start/stop/reload, also
default zones were added.

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1# $Id: Portfile,v 1.3 2003/08/12 08:43:07 fkr Exp $
2
3PortSystem 1.0
4name                    bind9
5version                 9.2.2
6revision                2       
7categories              net
8maintainers             bchesneau@mac.com
9description             Domain Name System server
10homepage                http://www.isc.org
11long_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
13platforms               darwin freebsd
14master_sites            ftp://ftp.isc.org/isc/${portname}/${version}
15distname                bind-${version}
16worksrcdir              bind-${version}
17checksums               md5 6ea7d64a0856893ab3eb541ab7bbc725
18
19depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
20
21
22configure.args          --mandir=${prefix}/share/man --localstatedir=${prefix}/var --enable-libbind
23
24post-destroot   {
25        file mkdir ${destroot}${prefix}/etc/rc.d/
26        file mkdir ${destroot}${prefix}/var/run/
27        file mkdir ${destroot}${prefix}/var/named/
28       
29        system "install -o root -m 755 -c ${portpath}/files/bind.sh ${destroot}${prefix}/etc/rc.d/"
30        reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/bind.sh
31
32        system "install -o root -m 755 -c ${portpath}/files/named.conf ${destroot}${prefix}/etc/"
33        reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf
34       
35        system "install -o root -m 755 -c ${portpath}/files/db.* ${destroot}${prefix}/var/named/"
36        system "touch ${destroot}${prefix}/var/run/.turd"
37}
38
39
40variant darwin {
41        depends_lib-append      lib:libdl.1:dlcompat
42}
43
44variant ipv6 {
45        configure.args-append   --enable-ipv6
46}
47
48variant ssl {
49        depends_lib-append      lib:libssl.0.9:openssl
50        configure.args-append   --with-openssl
51}               
Note: See TracBrowser for help on using the repository browser.