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

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

Do patching post-patch, not post-extract.

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1# $Id: Portfile,v 1.15 2005/06/12 20:20:26 jberry Exp $
2
3PortSystem 1.0
4
5name                            bind9
6version                         9.3.1
7revision                        1
8
9categories                      net
10maintainers                     bchesneau@mac.com jberry@opendarwin.org
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:${portname}/${version}
26checksums                       md5 9ff3204eea27184ea0722f37e43fc95d
27
28configure.args          --mandir=${prefix}/share/man --enable-libbind
29
30post-patch {
31        # Put bind includes in ${prefix}/include/bind
32        reinplace "s|/bind/include|/include/bind|" \
33                ${worksrcpath}/lib/bind/configure
34        # Put bind libs in ${prefix}/lib/bind
35        reinplace "s|/bind/lib|/lib/bind|" \
36                ${worksrcpath}/lib/bind/configure
37}
38
39post-destroot   {
40        # Ensure needed directories
41        xinstall -m 755 -d \
42                ${destroot}${prefix}/etc/rc.d \
43                ${destroot}${prefix}/var/named \
44                ${destroot}${prefix}/var/run
45       
46        # Install the startup script
47        xinstall -o root -m 755 ${filespath}/bind.sh \
48                ${destroot}${prefix}/etc/rc.d
49        reinplace "s|%%PREFIX%%|${prefix}|g" \
50                ${destroot}${prefix}/etc/rc.d/bind.sh
51
52        # Install the conf file as a sample
53        xinstall -o root -m 644 ${filespath}/named.conf \
54                ${destroot}${prefix}/etc/named.conf.dist
55        reinplace "s|%%PREFIX%%|${prefix}|g" \
56                ${destroot}${prefix}/etc/named.conf.dist
57       
58        # Install the db files as samples
59        foreach f "db.127.0.0.1 db.cache db.localhost" {
60                xinstall -o root -m 644 ${filespath}/${f} \
61                        ${destroot}${prefix}/var/named/${f}.dist
62        }
63
64        destroot.keepdirs ${destroot}${prefix}/var/run
65}
66
67platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
68
69variant darwin {
70        depends_run-append      path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
71}
72
73variant ipv6 {
74        configure.args-append   --enable-ipv6
75}
76
77variant ssl {
78        depends_lib-append      lib:libssl.0.9:openssl
79        configure.args-append   --with-openssl
80}
81
82variant threads {
83        configure.args-append   --enable-threads
84}
Note: See TracBrowser for help on using the repository browser.