Skip to content
Permalink
Browse files

new port net/maradns

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@15063 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Nov 18, 2005
1 parent 80bec35 commit b59c514cf6703a8d37b1f2459ea8ec1cd3f87f44
Showing with 47 additions and 0 deletions.
  1. +42 −0 net/maradns/Portfile
  2. +5 −0 net/maradns/files/mararc
@@ -0,0 +1,42 @@
# $Id: Portfile,v 1.1 2005/11/18 15:41:53 mww Exp $

PortSystem 1.0

name maradns
version 1.1.55
categories net
platforms darwin
maintainers mww@opendarwin.org
description DNS server supporting authoritative, recursive and caching DNS
long_description MaraDNS is a fully functional DNS server supporting \
authoritative DNS, recursive DNS, and caching DNS.

homepage http://www.maradns.org/
master_sites http://www.maradns.org/download/1.1/
checksums md5 8f42f1e1de21fdd5287f58985e189a32
use_bzip2 yes

configure.pre_args

build.target

destroot.env PREFIX=${destroot}${prefix}
destroot.destdir

post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/etc/maradns/logger
xinstall -m 644 ${filespath}/mararc ${destroot}${prefix}/etc/maradns
reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/etc/maradns/mararc
file delete -force ${destroot}${prefix}/maradns-${version}
}

startupitem.create yes
startupitem.init \
"PID=${prefix}/var/run/${name}.pid\nBIN=${prefix}/sbin/maradns"
startupitem.start "\[ -x \${BIN} \] && \${BIN} &; echo \$! > \${PID}"
startupitem.stop "\[ -r \${PID} \] && /bin/kill \$(cat \${PID})"

platform darwin 8 {
build.args CC="/usr/bin/gcc-4.0 -DDARWIN"
}

@@ -0,0 +1,5 @@
ipv4_bind_addresses = "127.0.0.1"
chroot_dir = "__PREFIX__/etc/maradns"
recursive_acl = "127.0.0.1"
hide_disclaimer = "NO"

0 comments on commit b59c514

Please sign in to comment.
You can’t perform that action at this time.