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

Last change on this file since 9510 was 9510, checked in by jberry, 13 years ago

Roll in additional patches from http://bugzilla.opendarwin.org/show_bug.cgi?id=1250,
and do a little cleanup.

Bug: 1250
Submitted by: Daniel J. Luke & Bryan Blackburn
Reviewed by: jberry@

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1# $Id: Portfile,v 1.10 2004/12/01 19:24:23 jberry Exp $
2
3PortSystem 1.0
4
5name                            bind9
6version                         9.3.0
7
8categories                      net
9maintainers                     bchesneau@mac.com, jberry@opendarwin.org
10platforms                       darwin freebsd sunos
11
12description                     Domain Name System server
13long_description        The BIND DNS Server is used on the vast majority of name \
14                                        serving machines on the Internet, providing a robust
15                                        and stable \
16                                        architecture on top of which an organization's naming architecture \
17                                        can be built.  The resolver library included in the BIND distribution \
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.
21homepage                        http://www.isc.org
22
23distname                        bind-${version}
24master_sites            isc:${portname}/${version}
25checksums                       md5 fdb42fff7e345372ac52a4493b77b694
26
27configure.args          --mandir=${prefix}/share/man --enable-libbind
28
29post-destroot   {
30        # Ensure needed directories
31        xinstall -m 755 -d \
32                ${destroot}${prefix}/etc/rc.d \
33                ${destroot}${prefix}/var/named \
34                ${destroot}${prefix}/var/run
35       
36        # Install the startup script
37        xinstall -o root -m 755 ${filespath}/bind.sh \
38                ${destroot}${prefix}/etc/rc.d
39        reinplace "s|%%PREFIX%%|${prefix}|g" \
40                ${destroot}${prefix}/etc/rc.d/bind.sh
41
42        # Install the conf file as a sample
43        xinstall -o root -m 644 ${filespath}/named.conf \
44                ${destroot}${prefix}/etc/named.conf.dist
45        reinplace "s|%%PREFIX%%|${prefix}|g" \
46                ${destroot}${prefix}/etc/named.conf.dist
47       
48        # Install the db files as samples
49        foreach f "db.127.0.0.1 db.cache db.localhost" {
50                xinstall -o root -m 644 ${filespath}/${f} \
51                        ${destroot}${prefix}/var/named/${f}.dist
52        }
53
54        destroot.keepdirs ${destroot}${prefix}/var/run
55}
56
57
58variant darwin {
59        depends_lib-append      lib:libdl:dlcompat
60        depends_run-append              path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
61}
62
63variant ipv6 {
64        configure.args-append   --enable-ipv6
65}
66
67variant ssl {
68        depends_lib-append      lib:libssl.0.9:openssl
69        configure.args-append   --with-openssl
70}
71
72variant threads {
73        configure.args-append   --enable-threads
74}
Note: See TracBrowser for help on using the repository browser.