summaryrefslogtreecommitdiff
path: root/net-dns/ndu
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dns/ndu
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dns/ndu')
-rw-r--r--net-dns/ndu/Manifest6
-rw-r--r--net-dns/ndu/files/ndu-0.4-binary-locations.patch14
-rw-r--r--net-dns/ndu/metadata.xml8
-rw-r--r--net-dns/ndu/ndu-0.4-r4.ebuild59
4 files changed, 87 insertions, 0 deletions
diff --git a/net-dns/ndu/Manifest b/net-dns/ndu/Manifest
new file mode 100644
index 000000000000..b1bded38cbc6
--- /dev/null
+++ b/net-dns/ndu/Manifest
@@ -0,0 +1,6 @@
+AUX ndu-0.4-binary-locations.patch 426 SHA256 c6561a2648dfd3ce86bef0bbaae53d4cca3622268b8e6694213c2332ae56407f SHA512 58e248d48491759c33ae2ee2d57fdca38b718104606c05d965bc7b555cfd72388a906efd692d789d999fe782878e173438cc22f1091d278eed8b4322ec6f6294 WHIRLPOOL 0f4608e77ac5d73e14aa262f1dcd95e7ff210111d117a1872a004bbd9d0fcaa7e479ddb7b3d67a3f3bff79228aed5c6cd2fdef00575313b998c2811f4c6d3d95
+DIST ndu-0.4.tar.gz 16118 SHA256 27a2f523cee765db142b5582087866a90050fa00f1b365c800305204fc0c6d40 SHA512 cf401f89f1d6ae66c5440e6ef43f1c78e071d13dd2b1d816f1c3bfd2a0b2d7d7a9d2be9025b3d88f3fbd186ff610ac92858e13b4e47b23b9088f91f3e1a40f39 WHIRLPOOL 7aa8d009d2a5bd113e341e4fb782fd3e079de87ce37805ea90c08db26d9781885628e98c83f2f14f917f813d49843be2cf0bd135ad318697d96e1e614bf02efd
+EBUILD ndu-0.4-r4.ebuild 1767 SHA256 9dbb03fe09a6987ef7acb18873cbf910325324f21a42f9545105ab084321b528 SHA512 fc4ed16b8b3db3904030d6e8ce89fd0fe19ec2350df8dc0599187854fc800e3add116459b6fb748430fafc7c97aa6b84698b5e34ad24dd4f40a8e6ed4439b0a6 WHIRLPOOL 12c7f123b0e3a4a31d650f052bd372dc5955b8962cc562390255ac4f7e9c60342b828bc7e274add495caec9e3a212137a0b46038de99413619d88880fb1bfa71
+MISC ChangeLog 2204 SHA256 0cd23b11b92fb7da5bf84acf18228870cddcb2f2119c57cabd285a12a118deec SHA512 7fbae4ca323ccd711b3d210892628f2e1f7c65dbae6e805bc729170070cc40c81fa986bb3def857d8ed4263af836208771149abd873e251ae46e1f70eae4de08 WHIRLPOOL 16ec3ece90c7bfd3eb06185f6dbc91bb63c79bbff1c81c70abbc3e6989882220bea3b0c98601fc1e9ca6e72c79bb66a13d7e443b6defea88325081cbf33d8d31
+MISC ChangeLog-2015 2126 SHA256 ce9b103ef298c5014c97bffa0a2a8201a30d43183aa4d5e8d42cab6bbc6c6323 SHA512 dd9dd504a8c488772722df4fbe67393ab2248c419485e6653fa00d8a3a4f7e37e0e9aa6a13f31c73059dafc56f8da35fb3a27b459de15bee2839ed0f08e8dd76 WHIRLPOOL ce3cf4910ed7c0e47fd1127eb49b48a5956ef8a32f871ef6611041d11f71ccf7e05c295fb2386edfc8724e933f92a21185293ff5b4182ea4023607347cb5be10
+MISC metadata.xml 268 SHA256 972faf76e6638f2159ef3c7dafdcfef26d582070e6f0064d9136d1c6b2bee905 SHA512 ffda1db3fd6ac952f41a970e2e496c6a9fd0b12ed11cdf363fd269c3b00f627c6e70421fd545aad61d69594af2e5f43d8ebc197232a39b596d012818fe758850 WHIRLPOOL 759c32dcdde671d2fda0269ee9326f6d0f0e44966f767ac7becc40e6efb5429237b683cb23867d76a8d13dde79fe257e090ef890761b20f9792172a90369296d
diff --git a/net-dns/ndu/files/ndu-0.4-binary-locations.patch b/net-dns/ndu/files/ndu-0.4-binary-locations.patch
new file mode 100644
index 000000000000..4007b4dc4216
--- /dev/null
+++ b/net-dns/ndu/files/ndu-0.4-binary-locations.patch
@@ -0,0 +1,14 @@
+diff -Nuar --exclude '*~' ndu-0.4.orig/src/dnsedit ndu-0.4/src/dnsedit
+--- ndu-0.4.orig/src/dnsedit 2006-05-22 16:16:47.000000000 -0700
++++ ndu-0.4/src/dnsedit 2006-05-22 16:20:45.107741010 -0700
+@@ -19,8 +19,8 @@
+ if /usr/bin/diff $1 $tempfile >> /dev/null ; then
+ echo No changed made
+ else
+- /usr/sbin/dnstouch $1
+- /usr/sbin/ndu
++ /usr/bin/dnstouch $1
++ /usr/bin/ndu
+ # /usr/sbin/ndc reload
+ echo updated
+ fi
diff --git a/net-dns/ndu/metadata.xml b/net-dns/ndu/metadata.xml
new file mode 100644
index 000000000000..a4e0d354f696
--- /dev/null
+++ b/net-dns/ndu/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-dns/ndu/ndu-0.4-r4.ebuild b/net-dns/ndu/ndu-0.4-r4.ebuild
new file mode 100644
index 000000000000..5471c212971c
--- /dev/null
+++ b/net-dns/ndu/ndu-0.4-r4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="DNS serial number incrementer and reverse zone builder"
+SRC_URI="http://uranus.it.swin.edu.au/~jn/linux/${P}.tar.gz"
+HOMEPAGE="http://uranus.it.swin.edu.au/~jn/linux/dns.htm"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+DEPEND="sys-apps/sed"
+RDEPEND="sys-apps/ed" # dnstouch calls ed to do the dirty work
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}"/${P}-binary-locations.patch
+
+ cd "${S}"/src
+ # use the correct compiler
+ sed -e 's|gcc|$(CXX)|g' -i Makefile
+ # set correct config pathes
+ sed -e 's|#define CONFIG_PATH "/etc/"|#define CONFIG_PATH "/etc/bind/"|g' -i ndu.cpp
+ sed -e 's|"/etc/ndu.conf"|"/etc/bind/ndu.conf"|g' -i dnstouch.cpp
+ # hack up something to work around bug #73858
+ sed -e 's|execlp("ed", "ed", filename, 0);|execlp("ed", "ed", "-s", filename, 0);|g' -i dnstouch.cpp
+ # use the correct editor
+ sed -e 's|VISUAL|EDITOR|g' -i dnsedit
+
+ cd "${S}"
+ # match our bind config
+ sed -e 's|0.0.127.in-addr.arpa|127.in-addr.arpa|g' -i ndu.conf
+ # document the support for the chrooted BIND setup
+ echo '// if you use a chrooted setup, then you need to uncomment these lines:' >>ndu.conf
+ echo '//process "/chroot/dns/named.conf"' >>ndu.conf
+ echo '//chroot "/chroot/dns"' >>ndu.conf
+}
+
+src_compile() {
+ cd "${S}"/src
+ emake CFLAGS="${CFLAGS}" CXX="$(tc-getCXX)"
+}
+
+src_install () {
+ into /usr
+ dobin src/{dnsedit,ndu,dnstouch}
+ into /
+ insinto /etc/bind
+ doins ndu.conf
+ dodoc README INSTALL
+}
+
+pkg_postinst() {
+ elog "The ndu binary expects to read your configuration"
+ elog "from /etc/bind/named.conf, however the other binaries"
+ elog "are useful with BIND locally installed."
+}