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

Last change on this file since 3173 was 3173, checked in by jkh, 15 years ago

Mass-merge of destroot target changes. Before committing this, I also
laid down a PRE_DESTROOT_TARGET so we can easily compare the before and
after photos (or, in extremis, revert this change). I doubt that will be
necessary, however, since things appear to be working quite well with this
change and it's better to do it sooner rather than later since it changes the
rules about what commands/variables to use in new ports.

Approved by: fkr

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.2 2003/08/05 09:29:20 jkh Exp $
2
3PortSystem 1.0
4name                    bind9
5version                 9.2.2
6revision                1
7categories              net
8maintainers             bchesneau@mac.com
9description             Domain Name System server
10long_description        The BIND DNS Server is used on the vast majority of name serving machines on the Internet, providing a robust and stable architecture on top of which an organization's naming architecture can be built.  The resolver library included in the BIND distribution provides the standard APIs for translation between domain names and Internet addresses and is intended to be linked with applications requiring name service.
11
12platforms               darwin freebsd
13master_sites            ftp://ftp.isc.org/isc/${portname}/${version}/
14distname                bind-${version}
15worksrcdir              bind-${version}
16checksums               md5 6ea7d64a0856893ab3eb541ab7bbc725
17
18depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
19
20
21configure.args          --mandir=${prefix}/share/man --localstatedir=${prefix}/var
22
23post-patch      {
24        system "sed -e \"s=%%PREFIX%%=${prefix}=g\" ${filespath}/bind.sh >${portpath}/bind.sh"
25}
26
27post-destroot   {
28        file mkdir ${destroot}${prefix}/etc/rc.d/
29        file mkdir ${destroot}${prefix}/var/run/
30        file mkdir ${destroot}${prefix}/var/named/
31        system "install -bC -o root ${portpath}/bind.sh ${destroot}${prefix}/etc/rc.d/"
32}
33
34variant darwin {
35        depends_lib-append      lib:libdl.1:dlcompat
36}
37
38
39variant ipv6 {
40        configure.args-append   --enable-ipv6
41}
42
43variant ssl {
44        depends_lib-append      lib:libssl.0.9:openssl
45        configure.args-append   --with-openssl
46}               
Note: See TracBrowser for help on using the repository browser.