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

Last change on this file since 23713 was 23713, checked in by dluke@…, 11 years ago

Some minor bind9 updates:

  • Make the inverse of blair's r23705 change (because the zone is for a /24 not a /32) although I was too lame to respond when he emailed me
  • update the db.cache file with the latest version
  • Update the 0.0.127.in-addr.arpa zone to be more readable
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 23713 2007-04-07 14:04:33Z dluke@macports.org $
2
3PortSystem 1.0
4
5name                    bind9
6version                 9.4.0
7revision                1
8
9categories              net
10maintainers             dluke@geeklair.net
11platforms               darwin freebsd sunos
12
13description             Domain Name System server
14long_description        The BIND DNS Server is used on the vast majority of name \
15                                serving machines on the Internet, providing a robust \
16                                and stable \
17                                architecture on top of which an organization's naming architecture \
18                                can be built.  The resolver library included in the BIND distribution \
19                                provides the standard APIs for translation between domain names \
20                                and Internet addresses and is intended to be linked with applications \
21                                requiring name service.
22homepage                http://www.isc.org
23
24distname                bind-${version}
25master_sites            isc:${name}/${version}
26checksums               md5 e85347f03f0d841b596422d5252a0869
27depends_lib             port:openssl
28
29test.run                yes
30test.target             test
31
32startupitem.create      yes
33startupitem.start       "${prefix}/sbin/named"
34startupitem.restart     "/bin/kill -HUP \$(/bin/cat ${prefix}/var/run/named.pid)"
35startupitem.stop        "/bin/kill -15 \$(/bin/cat ${prefix}/var/run/named.pid)"
36
37configure.args          --mandir=${prefix}/share/man --enable-libbind \
38                                --with-openssl=${prefix}
39
40post-patch {
41        # Put bind includes in ${prefix}/include/bind
42        reinplace "s|/bind/include|/include/bind|" \
43                ${worksrcpath}/lib/bind/configure
44        # Put bind libs in ${prefix}/lib/bind
45        reinplace "s|/bind/lib|/lib/bind|" \
46                ${worksrcpath}/lib/bind/configure
47}
48
49post-destroot   {
50        # Ensure needed directories
51        xinstall -m 755 -d \
52                ${destroot}${prefix}/var/named \
53                ${destroot}${prefix}/var/run
54       
55        # Install the conf file as a sample
56        xinstall -o root -m 644 ${filespath}/named.conf \
57                ${destroot}${prefix}/etc/named.conf.dist
58        reinplace "s|%%PREFIX%%|${prefix}|g" \
59                ${destroot}${prefix}/etc/named.conf.dist
60       
61        # Install the db files as samples
62        foreach f "db.127.0.0 db.cache db.localhost" {
63                xinstall -o root -m 644 ${filespath}/${f} \
64                        ${destroot}${prefix}/var/named/${f}.dist
65        }
66
67        destroot.keepdirs ${destroot}${prefix}/var/run
68}
69
70platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
71
72variant ipv6 {
73        configure.args-append   --enable-ipv6
74}
75
76variant threads {
77        configure.args-append   --enable-threads
78}
Note: See TracBrowser for help on using the repository browser.