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

Last change on this file since 9180 was 9180, checked in by jkh, 13 years ago

Use destroot.keepdirs instead of .turd files.

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