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

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

version bump, bind9 to 9.6.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 52822 2009-06-23 21:59:34Z dluke@macports.org $
2
3PortSystem 1.0
4
5name                    bind9
6version                 9.6.1
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 \
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     516ac74d8eaaef30ad4c99ada8b715cd \
26                sha1    50c485a152b566ca89d082e5d6f777c00f0a92b2 \
27                rmd160  18431b1418eda7298295945d63d5ad185f19d78f
28
29depends_lib             port:openssl port:libxml2
30
31use_parallel_build      no
32universal_variant       no
33
34test.run                yes
35test.target             test
36
37startupitem.create      yes
38startupitem.netchange   yes
39startupitem.executable  ${prefix}/sbin/named -f
40
41configure.args          --mandir=${prefix}/share/man \
42                                --with-openssl=${prefix} \
43                                --with-libxml2=${prefix} \
44                                --enable-threads \
45                                --enable-ipv6
46
47post-destroot   {
48        # Ensure needed directories
49        xinstall -m 755 -d \
50                ${destroot}${prefix}/var/named \
51                ${destroot}${prefix}/var/run
52       
53        # Install the conf file as a sample
54        xinstall -o root -m 644 ${filespath}/named.conf \
55                ${destroot}${prefix}/etc/named.conf.dist
56        reinplace "s|%%PREFIX%%|${prefix}|g" \
57                ${destroot}${prefix}/etc/named.conf.dist
58       
59        # Install the db files as samples
60        foreach f "db.127.0.0 db.cache db.localhost" {
61                xinstall -o root -m 644 ${filespath}/${f} \
62                        ${destroot}${prefix}/var/named/${f}.dist
63        }
64
65        destroot.keepdirs ${destroot}${prefix}/var/run
66}
67
68post-destroot {
69        ui_msg "******************************************************"
70        ui_msg "* To setup named to run, you need to copy named.conf.dist"
71        ui_msg "* to named.conf:"
72        ui_msg "* sudo cp ${prefix}/etc/named.conf.dist ${prefix}/etc/named.conf"
73        ui_msg "* and edit as needed.  If you use the default zone files for"
74        ui_msg "* 127.0.0, localhost, and the cache, you also need to copy"
75        ui_msg "* those files:"
76        ui_msg "* sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0"
77        ui_msg "* sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache"
78        ui_msg "* sudo cp ${prefix}/var/named/db.localhost.dist ${prefix}/var/named/db.localhost"
79        ui_msg "******************************************************"
80}
81
82platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
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.