# $Id: Portfile 45060 2009-01-07 21:07:03Z dluke@macports.org $ PortSystem 1.0 name bind9 version 9.6.0-P1 categories net maintainers dluke@geeklair.net platforms darwin freebsd sunos description Domain Name System server long_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. homepage http://www.isc.org distname bind-${version} master_sites isc:${name}/${version} checksums md5 886b7eae55cfdc8cd8d2ca74a2f99c6e \ sha1 c2b703d05fc768f63f028b0812c46d6eb81c145d \ rmd160 4507987e293b79e57ad6b87dd84012030d5b1d6e depends_lib port:openssl use_parallel_build no universal_variant no test.run yes test.target test startupitem.create yes startupitem.netchange yes startupitem.executable ${prefix}/sbin/named -f configure.args --mandir=${prefix}/share/man \ --with-openssl=${prefix} \ --enable-threads \ --enable-ipv6 post-destroot { # Ensure needed directories xinstall -m 755 -d \ ${destroot}${prefix}/var/named \ ${destroot}${prefix}/var/run # Install the conf file as a sample xinstall -o root -m 644 ${filespath}/named.conf \ ${destroot}${prefix}/etc/named.conf.dist reinplace "s|%%PREFIX%%|${prefix}|g" \ ${destroot}${prefix}/etc/named.conf.dist # Install the db files as samples foreach f "db.127.0.0 db.cache db.localhost" { xinstall -o root -m 644 ${filespath}/${f} \ ${destroot}${prefix}/var/named/${f}.dist } destroot.keepdirs ${destroot}${prefix}/var/run } platform darwin 6 { depends_lib-append lib:libdl:dlcompat }