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

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

update the maintainer email address

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