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

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

Version bump, bind9 to 9.7.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 63874 2010-02-17 17:15:24Z dluke@macports.org $
2
3PortSystem 1.0
4
5name                    bind9
6version                 9.7.0
7
8categories              net
9maintainers             geeklair.net:dluke
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 architecture on top of which an \
16                                organization's naming architecture can be built. The \
17                                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.
21
22homepage                http://www.isc.org
23
24distname                bind-${version}
25master_sites            isc:${name}/${version}
26
27checksums       md5     c245b5d1aa0a4f53d9538faa1efe2c3f \
28                sha1    64598b8f9e249d0d9555589494a8fba58173f84a \
29                rmd160  07ad1274c120c6a0b8f3c80123b8c692b6cd39de
30
31depends_lib             port:openssl port:libxml2
32
33use_parallel_build      no
34universal_variant       no
35
36test.run                yes
37test.target             test
38
39startupitem.create      yes
40startupitem.netchange   yes
41startupitem.executable  ${prefix}/sbin/named -f
42
43configure.args          --mandir=${prefix}/share/man \
44                                --with-openssl=${prefix} \
45                                --with-libxml2=${prefix} \
46                                --enable-threads \
47                                --enable-ipv6
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
70post-destroot {
71        ui_msg "******************************************************"
72        ui_msg "* To setup named to run, you need to copy named.conf.dist"
73        ui_msg "* to named.conf:"
74        ui_msg "* sudo cp ${prefix}/etc/named.conf.dist ${prefix}/etc/named.conf"
75        ui_msg "* and edit as needed. If you use the default zone files for"
76        ui_msg "* 127.0.0, localhost, and the cache, you also need to copy"
77        ui_msg "* those files:"
78        ui_msg "* sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0"
79        ui_msg "* sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache"
80        ui_msg "* sudo cp ${prefix}/var/named/db.localhost.dist ${prefix}/var/named/db.localhost"
81        ui_msg "******************************************************"
82}
83
84variant dlz_mysql5 description {Dynamically Loaded Zones (dlz) stored in MySQL 5.x} {
85        depends_lib-append \
86                path:bin/mysql_config5:mysql5
87        patchfiles-append patch-configure
88        patchfiles-append patch-contrib-dlz-config.dlz.in
89        # Threads are not safe when bind9 is compiled with dlz
90        configure.args-delete \
91                --enable-threads
92        configure.args-append \
93                --with-dlz-mysql=${prefix}/bin/mysql_config5 \
94                --disable-threads
95}
Note: See TracBrowser for help on using the repository browser.