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

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

Bind 9 updates:

  • Change to startupitem.executable style startupitem creation
  • Add patch for CVE-2008-0122/CVE-2007-6251 and bump revision
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 33509 2008-01-28 16:09:25Z dluke@macports.org $
2
3PortSystem 1.0
4
5name                    bind9
6version                 9.4.2
7revision                2
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 57953d7264139b9506b9d66174125179
27depends_lib             port:openssl
28
29test.run                yes
30test.target             test
31
32startupitem.create      yes
33startupitem.netchange   yes
34startupitem.executable  ${prefix}/sbin/named -f
35
36patchfiles              patch-inet_network.c.diff
37
38configure.args          --mandir=${prefix}/share/man --enable-libbind \
39                                --with-openssl=${prefix} \
40                                --enable-threads
41
42post-patch {
43        # Put bind includes in ${prefix}/include/bind
44        reinplace "s|/bind/include|/include/bind|" \
45                ${worksrcpath}/lib/bind/configure
46        # Put bind libs in ${prefix}/lib/bind
47        reinplace "s|/bind/lib|/lib/bind|" \
48                ${worksrcpath}/lib/bind/configure
49}
50
51post-destroot   {
52        # Ensure needed directories
53        xinstall -m 755 -d \
54                ${destroot}${prefix}/var/named \
55                ${destroot}${prefix}/var/run
56       
57        # Install the conf file as a sample
58        xinstall -o root -m 644 ${filespath}/named.conf \
59                ${destroot}${prefix}/etc/named.conf.dist
60        reinplace "s|%%PREFIX%%|${prefix}|g" \
61                ${destroot}${prefix}/etc/named.conf.dist
62       
63        # Install the db files as samples
64        foreach f "db.127.0.0 db.cache db.localhost" {
65                xinstall -o root -m 644 ${filespath}/${f} \
66                        ${destroot}${prefix}/var/named/${f}.dist
67        }
68
69        destroot.keepdirs ${destroot}${prefix}/var/run
70}
71
72platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
73
74variant ipv6 {
75        configure.args-append   --enable-ipv6
76}
Note: See TracBrowser for help on using the repository browser.