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

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

version bump, bind9 to 9.7.2-P3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 73988 2010-12-01 17:56:29Z dluke@macports.org $
2
3PortSystem 1.0
4
5name                    bind9
6version                 9.7.2-P3
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     b4537cbae38b2daef36775bf49f33db9 \
28                sha1    ca621a23e79298b4da14a3884690edbccda410d4 \
29                rmd160  304f362cef1c3e48bece850802a08159ecfd5428
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.env           STD_CDEFINES=-DDIG_SIGCHASE=1
44
45configure.args          --mandir=${prefix}/share/man \
46                                --with-openssl=${prefix} \
47                                --with-libxml2=${prefix} \
48                                --enable-threads \
49                                --enable-ipv6
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
72notes "******************************************************
73* To setup named to run, you need to copy named.conf.dist
74* to named.conf:
75* sudo cp ${prefix}/etc/named.conf.dist ${prefix}/etc/named.conf
76* and edit as needed. If you use the default zone files for
77* 127.0.0, localhost, and the cache, you also need to copy
78* those files:
79* sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0
80* sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache
81* sudo cp ${prefix}/var/named/db.localhost.dist ${prefix}/var/named/db.localhost
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.