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

Last change on this file since 9509 was 9509, checked in by jberry, 13 years ago
  • Update bind to 9.3
  • Install conf files as samples to avoid trashing them on port update

Bug: 2368
Submitted by: jberry@
Ignored by: Benoit Chesneau <bchesneau@…>

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# $Id: Portfile,v 1.9 2004/12/01 18:48:14 jberry Exp $
2
3PortSystem 1.0
4
5name                            bind9
6version                         9.3.0
7categories                      net
8maintainers                     bchesneau@mac.com, jberry@opendarwin.org
9
10description                     Domain Name System server
11homepage                        http://www.isc.org
12long_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
21platforms                       darwin freebsd
22master_sites            isc:${portname}/${version}
23distname                        bind-${version}
24checksums                       md5 fdb42fff7e345372ac52a4493b77b694
25
26depends_run                     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
27
28configure.args          --mandir=${prefix}/share/man --enable-libbind
29
30post-destroot   {
31        xinstall -m 755 -d \
32                ${destroot}${prefix}/etc/rc.d \
33                ${destroot}${prefix}/var/run \
34                ${destroot}${prefix}/var/named
35       
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
47       
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
54        destroot.keepdirs ${destroot}${prefix}/var/run
55}
56
57
58variant darwin {
59        depends_lib-append      lib:libdl:dlcompat
60}
61
62variant ipv6 {
63        configure.args-append   --enable-ipv6
64}
65
66variant ssl {
67        depends_lib-append      lib:libssl.0.9:openssl
68        configure.args-append   --with-openssl
69}               
Note: See TracBrowser for help on using the repository browser.