diff --git a/net-dns/maradns/Manifest b/net-dns/maradns/Manifest new file mode 100644 index 0000000..c6d23ff --- /dev/null +++ b/net-dns/maradns/Manifest @@ -0,0 +1,5 @@ +AUX maradns.rc6 539 RMD160 8f6731a6c3612923a46d87c4e19e4a8ee9475d9d SHA1 d4aeb8403edb85b36119f93dd9a729401b347ec9 SHA256 860cd10e13a0dc2410c51a6b455103d73befe597de70d56fd0f24510046bce2f +AUX zoneserver.rc6 516 RMD160 b174116573ccf04ed74d93108169cd1c47258b6e SHA1 f11383b47eca3845cc5372df62aff590d4d0fe11 SHA256 2e35a8a85ab75a386b986da8bfafd3769814b1a032d10ccb3963e1ad22751b8c +DIST maradns-2.0.02.tar.bz2 940671 RMD160 75adc7cb8767c3638ee5aeebed70d430eb46a829 SHA1 a7194e8dc3db84deca6eb93bed5c5a517b551b95 SHA256 698c361f858232f421d7cda562604390a553b541fd8b67a300316c60ed8c1c27 +EBUILD maradns-2.0.02.ebuild 2108 RMD160 604cc74d88ab50863a8c5bdf194053bafd143a1c SHA1 004e5a9f9c47727534865b9bbbcd6704da93905a SHA256 d0cda85068df376832732bd260f1473f0e5443c39d7955ef483ba1d8d3d5b5a5 +MISC metadata.xml 316 RMD160 119799ab0c38870ffcc68ba65248fb0352f84dcc SHA1 4d53ecab3f4237e799ba1c44baaa097fcb86671f SHA256 34db6861bf8f606b478bff87cdaf6b0375e5aaf6a743d7039c95be653931c252 diff --git a/net-dns/maradns/files/maradns.rc6 b/net-dns/maradns/files/maradns.rc6 new file mode 100644 index 0000000..e4c8ba2 --- /dev/null +++ b/net-dns/maradns/files/maradns.rc6 @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/files/maradns.rc6,v 1.5 2010/07/29 00:16:04 matsuu Exp $ + +depend() { + need net + provide dns +} + +start() { + ebegin "Starting maradns" + start-stop-daemon --start --quiet --name maradns \ + --exec /usr/bin/duende /usr/sbin/maradns + eend $? +} + +stop() { + ebegin "Stopping maradns" + start-stop-daemon --stop --quiet --name maradns \ + --exec /usr/sbin/duende + eend $? +} diff --git a/net-dns/maradns/files/zoneserver.rc6 b/net-dns/maradns/files/zoneserver.rc6 new file mode 100644 index 0000000..df4cc3c --- /dev/null +++ b/net-dns/maradns/files/zoneserver.rc6 @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/files/zoneserver.rc6,v 1.3 2008/01/06 03:10:37 matsuu Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting zoneserver" + start-stop-daemon --start --quiet --name zoneserver \ + --exec /usr/bin/duende /usr/sbin/zoneserver + eend $? +} + +stop() { + ebegin "Stopping zoneserver" + start-stop-daemon --stop --quiet --name zoneserver + eend $? +} diff --git a/net-dns/maradns/maradns-2.0.02.ebuild b/net-dns/maradns/maradns-2.0.02.ebuild new file mode 100644 index 0000000..c90a675 --- /dev/null +++ b/net-dns/maradns/maradns-2.0.02.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/Attic/maradns-2.0.01.ebuild,v 1.1 2011/01/24 13:22:58 matsuu Exp $ + +EAPI="3" +inherit eutils toolchain-funcs + +DESCRIPTION="Proxy DNS server with permanent caching" +HOMEPAGE="http://www.maradns.org/" +SRC_URI="http://www.maradns.org/download/${PV%.*}/${PV}/${P}.tar.bz2" +DEADWOOD="deadwood-3.0.02" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="ipv6" + +DEPEND="dev-lang/perl" + +src_prepare() { + sed -i \ + -e "s:PREFIX/man:PREFIX/share/man:" \ + -e "s:PREFIX/doc/maradns-\$VERSION:PREFIX/share/doc/${PF}:" \ + build/install.locations || die + sed -i \ + -e "s:make:\$(MAKE):g" \ + -e "s:\$(CC):$(tc-getCC):g" \ + build/Makefile.linux || die + sed -e "/provide dns/d" "${FILESDIR}/maradns.rc6" > "${T}/maradns.rc6" || die + sed -e "s:maradns:Deadwood:g" "${FILESDIR}/maradns.rc6" > "${T}/deadwood.rc6" || die +} + +src_configure() { + local myconf + + use ipv6 && myconf="${myconf} --ipv6" + + ./configure ${myconf} # || die +} + +src_install() { + dosbin server/maradns || die + + dosbin tcp/zoneserver || die + + dobin tcp/getzone tcp/fetchzone tools/askmara tools/duende || die + + doman doc/en/man/*.[1-9] || die + + dodoc maradns.gpg.key || die + dodoc doc/en/{QuickStart,README,*.txt} || die + dohtml doc/en/*.html || die + dohtml -r doc/en/webpage || die + docinto examples; dodoc doc/en/examples/example_* || die + + insinto /etc; newins doc/en/examples/example_mararc mararc || die + insinto /etc/maradns; newins doc/en/examples/example_csv2 db.example.net || die + keepdir /etc/maradns/logger || die + + # DEADWOOD install + dosbin ${DEADWOOD}/src/Deadwood || die + doman ${DEADWOOD}/doc/Deadwood.1 || die + + keepdir /etc/deadwood || die + insinto /etc; newins ${DEADWOOD}/doc/dwood3rc dwood3rc || die + + newinitd "${T}"/deadwood.rc6 deadwood || die + newinitd "${T}"/maradns.rc6 maradns || die + newinitd "${FILESDIR}"/zoneserver.rc6 zoneserver || die +} + +pkg_postinst() { + enewgroup maradns 99 + enewuser duende 66 -1 -1 maradns + enewuser maradns 99 -1 -1 maradns +} diff --git a/net-dns/maradns/metadata.xml b/net-dns/maradns/metadata.xml new file mode 100644 index 0000000..2af0d5d --- /dev/null +++ b/net-dns/maradns/metadata.xml @@ -0,0 +1,11 @@ + + + +no-herd + + matsuu@gentoo.org + + + Allows one to build only authoritative DNS server + +