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

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

Version bump, update bind9 to 9.4.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 31598 2007-11-29 01:44:15Z dluke@macports.org $
2
3PortSystem 1.0
4
5name                    bind9
6version                 9.4.2
7
8categories              net
9maintainers             dluke@geeklair.net
10platforms               darwin freebsd sunos
11
12description             Domain Name System server
13long_description        The BIND DNS Server is used on the vast majority of name \
14                                serving machines on the Internet, providing a robust \
15                                and stable \
16                                architecture on top of which an organization's naming architecture \
17                                can be built.  The resolver library included in the BIND distribution \
18                                provides the standard APIs for translation between domain names \
19                                and Internet addresses and is intended to be linked with applications \
20                                requiring name service.
21homepage                http://www.isc.org
22
23distname                bind-${version}
24master_sites            isc:${name}/${version}
25checksums               md5 57953d7264139b9506b9d66174125179
26depends_lib             port:openssl
27
28test.run                yes
29test.target             test
30
31startupitem.create      yes
32startupitem.start       "${prefix}/sbin/named"
33startupitem.restart     "/bin/kill -HUP \$(/bin/cat ${prefix}/var/run/named.pid)"
34startupitem.stop        "/bin/kill -15 \$(/bin/cat ${prefix}/var/run/named.pid)"
35
36configure.args          --mandir=${prefix}/share/man --enable-libbind \
37                                --with-openssl=${prefix} \
38                                --enable-threads
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}
Note: See TracBrowser for help on using the repository browser.