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

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

Add dependency on libxml2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 46642 2009-02-09 14:51:05Z dluke@macports.org $
2
3PortSystem 1.0
4
5name                    bind9
6version                 9.6.0-P1
7revision                1
8
9categories              net
10maintainers             dluke@geeklair.net
11platforms               darwin freebsd sunos
12
13description             Domain Name System server
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 \
17                                architecture on top of which an organization's naming architecture \
18                                can be built.  The 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.
22homepage                http://www.isc.org
23
24distname                bind-${version}
25master_sites            isc:${name}/${version}
26checksums           md5     886b7eae55cfdc8cd8d2ca74a2f99c6e \
27                    sha1    c2b703d05fc768f63f028b0812c46d6eb81c145d \
28                    rmd160  4507987e293b79e57ad6b87dd84012030d5b1d6e
29
30depends_lib             port:openssl port:libxml2
31
32use_parallel_build      no
33universal_variant       no
34
35test.run                yes
36test.target             test
37
38startupitem.create      yes
39startupitem.netchange   yes
40startupitem.executable  ${prefix}/sbin/named -f
41
42configure.args          --mandir=${prefix}/share/man \
43                                --with-openssl=${prefix} \
44                                --with-libxml2=${prefix} \
45                                --enable-threads \
46                                --enable-ipv6
47
48post-destroot   {
49        # Ensure needed directories
50        xinstall -m 755 -d \
51                ${destroot}${prefix}/var/named \
52                ${destroot}${prefix}/var/run
53       
54        # Install the conf file as a sample
55        xinstall -o root -m 644 ${filespath}/named.conf \
56                ${destroot}${prefix}/etc/named.conf.dist
57        reinplace "s|%%PREFIX%%|${prefix}|g" \
58                ${destroot}${prefix}/etc/named.conf.dist
59       
60        # Install the db files as samples
61        foreach f "db.127.0.0 db.cache db.localhost" {
62                xinstall -o root -m 644 ${filespath}/${f} \
63                        ${destroot}${prefix}/var/named/${f}.dist
64        }
65
66        destroot.keepdirs ${destroot}${prefix}/var/run
67}
68
69post-destroot {
70        ui_msg "******************************************************"
71        ui_msg "* To setup named to run, you need to copy named.conf.dist"
72        ui_msg "* to named.conf:"
73        ui_msg "* sudo cp ${prefix}/etc/named.conf.dist ${prefix}/etc/named.conf"
74        ui_msg "* and edit as needed.  If you use the default zone files for"
75        ui_msg "* 127.0.0, localhost, and the cache, you also need to copy"
76        ui_msg "* those files:"
77        ui_msg "* sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0"
78        ui_msg "* sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache"
79        ui_msg "* sudo cp ${prefix}/var/named/db.localhost.dist ${prefix}/var/named/db.localhost"
80        ui_msg "******************************************************"
81}
82
83platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
84
85variant dlz_mysql5 description {Dynamically Loaded Zones (dlz) stored in MySQL 5.x} {
86    depends_lib-append \
87        path:bin/mysql_config5:mysql5
88    patchfiles-append patch-configure
89    patchfiles-append patch-contrib-dlz-config.dlz.in
90    # Threads are not safe when bind9 is compiled with dlz
91    configure.args-delete \
92        --enable-threads
93    configure.args-append \
94        --with-dlz-mysql=${prefix}/bin/mysql_config5 \
95        --disable-threads
96}
Note: See TracBrowser for help on using the repository browser.