source: trunk/dports/net/bind9/Portfile

Last change on this file was 153586, checked in by dluke@…, 10 months ago

bind9: version bump, update to 9.11.0 which is released under a new license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 153586 2016-10-04 23:40:44Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    bind9
6version                 9.11.0
7categories              net
8maintainers             geeklair.net:dluke
9platforms               darwin freebsd sunos
10
11description             Domain Name System server
12license                 MPL
13
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 architecture on top of which an \
17                                organization's naming architecture can be built. The \
18                                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.
22
23homepage                http://www.isc.org
24
25distname                bind-${version}
26master_sites            isc:${name}/${version}
27
28checksums       md5     b12f386e35f3193e6255ed8c03230539 \
29                sha1    6fbb59cc435b79e9cea4747aacbad1314d38ac95 \
30                rmd160  9303701a2afd5955b5b94e1466063e455e41ce77
31
32depends_lib             path:lib/libssl.dylib:openssl port:libxml2
33
34patchfiles-append       gssapi-link.patch
35
36use_parallel_build      no
37universal_variant       no
38
39test.run                yes
40test.target             test
41
42startupitem.create      yes
43startupitem.netchange   yes
44startupitem.executable  ${prefix}/sbin/named -u named -f
45
46add_users               named group=named
47
48configure.env           STD_CDEFINES=-DDIG_SIGCHASE=1
49
50configure.args          --mandir=${prefix}/share/man \
51                                --with-openssl=${prefix} \
52                                --with-libxml2=${prefix} \
53                                --without-libjson \
54                                --enable-threads \
55                                --enable-ipv6
56
57platform darwin 8 {
58        configure.args-append --with-dlopen=no \
59                                --with-gssapi=no
60}
61
62platform darwin 9 {
63        configure.args-append --with-dlopen=no
64}
65
66post-destroot   {
67        # Ensure needed directories
68        xinstall -o named -g named -m 755 -d \
69                ${destroot}${prefix}/var/named \
70                ${destroot}${prefix}/var/run/named
71
72        # Install the conf file as a sample
73        xinstall -o root -m 644 ${filespath}/named.conf \
74                ${destroot}${prefix}/etc/named.conf.dist
75        reinplace "s|%%PREFIX%%|${prefix}|g" \
76                ${destroot}${prefix}/etc/named.conf.dist
77
78        # Install the db files as samples
79        foreach f "db.127.0.0 db.cache db.localhost" {
80                xinstall -o named -g named -m 644 ${filespath}/${f} \
81                        ${destroot}${prefix}/var/named/${f}.dist
82        }
83
84        destroot.keepdirs ${destroot}${prefix}/var/run/named
85}
86
87notes "******************************************************
88* To setup named to run, you need to copy named.conf.dist
89* to named.conf:
90* sudo cp ${prefix}/etc/named.conf.dist ${prefix}/etc/named.conf
91* and edit as needed. If you use the default zone files for
92* 127.0.0, localhost, and the cache, you also need to copy
93* those files:
94* sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0
95* sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache
96* sudo cp ${prefix}/var/named/db.localhost.dist ${prefix}/var/named/db.localhost
97*
98* You may want to generate a key (for rndc):
99* $ sudo rndc-confgen -a
100*
101* Remember to secure your configuration:
102* http://www.cymru.com/Documents/secure-bind-template.html
103*
104* The bind9 port now sets up named to run as non-root, you may
105* need to adjust your named.conf to put the pidfile and any
106* logging into a directory where this new user can write files.
107******************************************************"
108
109livecheck.type  regex
110livecheck.url   ${homepage}/downloads/
111livecheck.regex "target=\"_blank\">BIND (\\d+\.\\d+\.\\d+) - tar.gz</a>"
Note: See TracBrowser for help on using the repository browser.