Ticket #43006: patch-bind9-Portfile.2.diff
File patch-bind9-Portfile.2.diff, 5.8 KB (added by jul_bsd@…, 11 years ago) |
---|
-
net/bind9/Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 5 name bind9 6 version 9.9.5 7 categories net 8 maintainers geeklair.net:dluke 9 platforms darwin freebsd sunos 5 name bind9 6 version 9.9.5 7 revision 1 8 categories net 9 maintainers geeklair.net:dluke 10 platforms darwin freebsd sunos 10 11 11 description 12 description Domain Name System server 12 13 # license is actually ISC, a BSD style license, though. 13 14 # see http://www.isc.org/software/license 14 license 15 license BSD 15 16 16 long_description 17 18 19 20 21 22 23 17 long_description The BIND DNS Server is used on the vast majority of name \ 18 serving machines on the Internet, providing a robust \ 19 and stable architecture on top of which an \ 20 organization's naming architecture can be built. The \ 21 resolver library included in the BIND distribution \ 22 provides the standard APIs for translation between domain names \ 23 and Internet addresses and is intended to be linked with applications \ 24 requiring name service. 24 25 25 homepage 26 homepage http://www.isc.org 26 27 27 distname 28 master_sites 28 distname bind-${version} 29 master_sites isc:${name}/${version} 29 30 30 checksums md5 e676c65cad5234617ee22f48e328c24e \ 31 sha1 f3fe8000628ec57f332aec1ad9587b767208a38f \ 32 rmd160 cc2351d9af779ed1a1dd5909a10cce28ddb41747 31 checksums rmd160 cc2351d9af779ed1a1dd5909a10cce28ddb41747 \ 32 sha256 d4b64c1dde442145a316679acff2df4008aa117ae52dfa3a6bc69efecc7840d1 33 33 34 depends_lib 34 depends_lib port:openssl port:libxml2 35 35 36 patchfiles-append gssapi-link.patch36 patchfiles-append patch-gssapi-link.diff 37 37 38 use_autoreconf 39 autoreconf.args 38 use_autoreconf yes 39 autoreconf.args -fvi 40 40 41 use_parallel_build 42 universal_variant 41 use_parallel_build no 42 universal_variant no 43 43 44 test.run 45 test.target 44 test.run yes 45 test.target test 46 46 47 startupitem.create yes 48 startupitem.netchange yes 49 startupitem.executable ${prefix}/sbin/named -f 47 ## FIXME! add dedicated user/group! 48 startupitem.create yes 49 startupitem.netchange yes 50 startupitem.executable ${prefix}/sbin/named -f -u named 50 51 51 configure.env STD_CDEFINES=-DDIG_SIGCHASE=1 52 post-configure { 53 addgroup named 54 add_users named gid=[existsgroup named] home=${prefix}/var/named shell=/sbin/nologin realname=Bind\ user 55 } 56 57 58 configure.env STD_CDEFINES=-DDIG_SIGCHASE=1 52 59 53 configure.args 54 55 56 57 58 60 configure.args --mandir=${prefix}/share/man \ 61 --with-openssl=${prefix} \ 62 --with-libxml2=${prefix} \ 63 --enable-threads \ 64 --enable-ipv6 \ 65 --enable-rrl 59 66 60 67 platform darwin 8 { 61 62 68 configure.args-append --with-dlopen=no \ 69 --with-gssapi=no 63 70 } 64 71 65 72 platform darwin 9 { 66 73 configure.args-append --with-dlopen=no 67 74 } 68 75 69 post-destroot { 70 # Ensure needed directories 71 xinstall -m 755 -d \ 72 ${destroot}${prefix}/var/named \ 73 ${destroot}${prefix}/var/run 74 75 # Install the conf file as a sample 76 xinstall -o root -m 644 ${filespath}/named.conf \ 77 ${destroot}${prefix}/etc/named.conf.dist 78 reinplace "s|%%PREFIX%%|${prefix}|g" \ 79 ${destroot}${prefix}/etc/named.conf.dist 80 81 # Install the db files as samples 82 foreach f "db.127.0.0 db.cache db.localhost" { 83 xinstall -o root -m 644 ${filespath}/${f} \ 84 ${destroot}${prefix}/var/named/${f}.dist 85 } 76 destroot.asroot yes 77 install.asroot yes 78 post-destroot { 79 # Ensure needed directories 80 xinstall -m 755 -d \ 81 ${destroot}${prefix}/var/named \ 82 ${destroot}${prefix}/var/run 83 84 # Install the conf file as a sample 85 xinstall -o root -m 644 ${filespath}/named.conf \ 86 ${destroot}${prefix}/etc/named.conf.dist 87 reinplace "s|%%PREFIX%%|${prefix}|g" \ 88 ${destroot}${prefix}/etc/named.conf.dist 89 90 # Install the db files as samples 91 foreach f "db.127.0.0 db.cache db.localhost" { 92 xinstall -o root -m 644 ${filespath}/${f} \ 93 ${destroot}${prefix}/var/named/${f}.dist 94 } 86 95 87 96 destroot.keepdirs ${destroot}${prefix}/var/run 88 97 } 89 98 90 99 notes "****************************************************** … … 97 106 * sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0 98 107 * sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache 99 108 * sudo cp ${prefix}/var/named/db.localhost.dist ${prefix}/var/named/db.localhost 109 Generate key 110 $ sudo rndc-confgen -a 111 * Remember to secure your configuration. 112 http://www.cymru.com/Documents/secure-bind-template.html 100 113 ******************************************************" 114 115 livecheck.type regex 116 livecheck.url ${homepage}/downloads/ 117 livecheck.regex "target=\"_blank\">BIND (\\d+\.\\d+\.\\d+) - tar.gz</a>" 118