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  
    22
    33PortSystem 1.0
    44
    5 name                    bind9
    6 version                 9.9.5
    7 categories              net
    8 maintainers             geeklair.net:dluke
    9 platforms               darwin freebsd sunos
     5name               bind9
     6version            9.9.5
     7revision           1
     8categories         net
     9maintainers        geeklair.net:dluke
     10platforms          darwin freebsd sunos
    1011
    11 description             Domain Name System server
     12description        Domain Name System server
    1213# license is actually ISC, a BSD style license, though.
    1314# see http://www.isc.org/software/license
    14 license                 BSD
     15license            BSD
    1516
    16 long_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.
     17long_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.
    2425
    25 homepage                http://www.isc.org
     26homepage            http://www.isc.org
    2627
    27 distname                bind-${version}
    28 master_sites            isc:${name}/${version}
     28distname            bind-${version}
     29master_sites        isc:${name}/${version}
    2930
    30 checksums       md5     e676c65cad5234617ee22f48e328c24e \
    31                 sha1    f3fe8000628ec57f332aec1ad9587b767208a38f \
    32                 rmd160  cc2351d9af779ed1a1dd5909a10cce28ddb41747
     31checksums           rmd160  cc2351d9af779ed1a1dd5909a10cce28ddb41747 \
     32                    sha256  d4b64c1dde442145a316679acff2df4008aa117ae52dfa3a6bc69efecc7840d1
    3333
    34 depends_lib             port:openssl port:libxml2
     34depends_lib         port:openssl port:libxml2
    3535
    36 patchfiles-append       gssapi-link.patch
     36patchfiles-append   patch-gssapi-link.diff
    3737
    38 use_autoreconf          yes
    39 autoreconf.args         -fvi
     38use_autoreconf      yes
     39autoreconf.args     -fvi
    4040
    41 use_parallel_build      no
    42 universal_variant       no
     41use_parallel_build  no
     42universal_variant   no
    4343
    44 test.run                yes
    45 test.target             test
     44test.run            yes
     45test.target         test
    4646
    47 startupitem.create      yes
    48 startupitem.netchange   yes
    49 startupitem.executable  ${prefix}/sbin/named -f
     47## FIXME! add dedicated user/group!
     48startupitem.create  yes
     49startupitem.netchange yes
     50startupitem.executable ${prefix}/sbin/named -f -u named
    5051
    51 configure.env           STD_CDEFINES=-DDIG_SIGCHASE=1
     52post-configure {
     53    addgroup named
     54    add_users named gid=[existsgroup named] home=${prefix}/var/named shell=/sbin/nologin realname=Bind\ user
     55}
     56
     57
     58configure.env       STD_CDEFINES=-DDIG_SIGCHASE=1
    5259
    53 configure.args          --mandir=${prefix}/share/man \
    54                                 --with-openssl=${prefix} \
    55                                 --with-libxml2=${prefix} \
    56                                 --enable-threads \
    57                                 --enable-ipv6 \
    58                                 --enable-rrl
     60configure.args      --mandir=${prefix}/share/man \
     61                    --with-openssl=${prefix} \
     62                    --with-libxml2=${prefix} \
     63                    --enable-threads \
     64                    --enable-ipv6 \
     65                    --enable-rrl
    5966
    6067platform darwin 8 {
    61         configure.args-append --with-dlopen=no \
    62                                 --with-gssapi=no
     68    configure.args-append --with-dlopen=no \
     69                --with-gssapi=no
    6370}
    6471
    6572platform darwin 9 {
    66         configure.args-append --with-dlopen=no
     73    configure.args-append --with-dlopen=no
    6774}
    6875
    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         }
     76destroot.asroot     yes
     77install.asroot      yes
     78post-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    }
    8695
    87         destroot.keepdirs ${destroot}${prefix}/var/run
     96    destroot.keepdirs ${destroot}${prefix}/var/run
    8897}
    8998
    9099notes "******************************************************
     
    97106* sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0
    98107* sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache
    99108* 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.
     112http://www.cymru.com/Documents/secure-bind-template.html
    100113******************************************************"
     114
     115livecheck.type      regex
     116livecheck.url       ${homepage}/downloads/
     117livecheck.regex     "target=\"_blank\">BIND (\\d+\.\\d+\.\\d+) - tar.gz</a>"
     118