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

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

Version bump, bind9 to 9.7.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
RevLine 
[20337]1# $Id: Portfile 63874 2010-02-17 17:15:24Z dluke@macports.org $
[2553]2
3PortSystem 1.0
4
[20512]5name                    bind9
[63874]6version                 9.7.0
[9510]7
[20512]8categories              net
[50984]9maintainers             geeklair.net:dluke
[20512]10platforms               darwin freebsd sunos
[9509]11
[20512]12description             Domain Name System server
[52823]13long_description        The BIND DNS Server is used on the vast majority of name \
[20512]14                                serving machines on the Internet, providing a robust \
[52823]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 \
[20512]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.
[52823]21
[20512]22homepage                http://www.isc.org
[9509]23
[20512]24distname                bind-${version}
[23053]25master_sites            isc:${name}/${version}
[52823]26
[63874]27checksums       md5     c245b5d1aa0a4f53d9538faa1efe2c3f \
28                sha1    64598b8f9e249d0d9555589494a8fba58173f84a \
29                rmd160  07ad1274c120c6a0b8f3c80123b8c692b6cd39de
[37201]30
[46642]31depends_lib             port:openssl port:libxml2
[2553]32
[43968]33use_parallel_build      no
34universal_variant       no
35
[20512]36test.run                yes
37test.target             test
[2553]38
[20512]39startupitem.create      yes
[32921]40startupitem.netchange   yes
[33509]41startupitem.executable  ${prefix}/sbin/named -f
[20512]42
[45060]43configure.args          --mandir=${prefix}/share/man \
[27244]44                                --with-openssl=${prefix} \
[46642]45                                --with-libxml2=${prefix} \
[37201]46                                --enable-threads \
47                                --enable-ipv6
[20459]48
[3173]49post-destroot   {
[9510]50        # Ensure needed directories
[9509]51        xinstall -m 755 -d \
[9510]52                ${destroot}${prefix}/var/named \
53                ${destroot}${prefix}/var/run
[3207]54       
[9509]55        # Install the conf file as a sample
56        xinstall -o root -m 644 ${filespath}/named.conf \
57                ${destroot}${prefix}/etc/named.conf.dist
58        reinplace "s|%%PREFIX%%|${prefix}|g" \
59                ${destroot}${prefix}/etc/named.conf.dist
[3207]60       
[9509]61        # Install the db files as samples
[23713]62        foreach f "db.127.0.0 db.cache db.localhost" {
[9509]63                xinstall -o root -m 644 ${filespath}/${f} \
64                        ${destroot}${prefix}/var/named/${f}.dist
65        }
66
[9180]67        destroot.keepdirs ${destroot}${prefix}/var/run
[2553]68}
69
[46117]70post-destroot {
71        ui_msg "******************************************************"
72        ui_msg "* To setup named to run, you need to copy named.conf.dist"
73        ui_msg "* to named.conf:"
74        ui_msg "* sudo cp ${prefix}/etc/named.conf.dist ${prefix}/etc/named.conf"
[52823]75        ui_msg "* and edit as needed. If you use the default zone files for"
[46117]76        ui_msg "* 127.0.0, localhost, and the cache, you also need to copy"
77        ui_msg "* those files:"
78        ui_msg "* sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0"
79        ui_msg "* sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache"
80        ui_msg "* sudo cp ${prefix}/var/named/db.localhost.dist ${prefix}/var/named/db.localhost"
81        ui_msg "******************************************************"
82}
83
[46371]84variant dlz_mysql5 description {Dynamically Loaded Zones (dlz) stored in MySQL 5.x} {
[52823]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
[46371]95}
Note: See TracBrowser for help on using the repository browser.