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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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