summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-05-22 23:28:07 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-05-22 23:28:07 +0000
commit1d79fd34fbe6373f18a127cf7e24116fa6f66eb3 (patch)
tree8a3b52f4b1576e4bd418573b878979868286e4fa
parentInitial import from gentoo-alt overlay, SNMP daemon for FreeBSD. Not yet fixe... (diff)
downloadgentoo-2-1d79fd34fbe6373f18a127cf7e24116fa6f66eb3.tar.gz
gentoo-2-1d79fd34fbe6373f18a127cf7e24116fa6f66eb3.tar.bz2
gentoo-2-1d79fd34fbe6373f18a127cf7e24116fa6f66eb3.zip
Fix duplication of dnstouch, and move binaries to bin, as they are suitable for non-root.
(Portage version: 2.1_rc1-r2)
-rw-r--r--net-dns/ndu/ChangeLog11
-rw-r--r--net-dns/ndu/files/digest-ndu-0.42
-rw-r--r--net-dns/ndu/files/digest-ndu-0.4-r12
-rw-r--r--net-dns/ndu/files/digest-ndu-0.4-r22
-rw-r--r--net-dns/ndu/files/digest-ndu-0.4-r32
-rw-r--r--net-dns/ndu/files/digest-ndu-0.4-r43
-rw-r--r--net-dns/ndu/files/ndu-0.4-binary-locations.patch14
-rw-r--r--net-dns/ndu/ndu-0.4-r4.ebuild56
8 files changed, 90 insertions, 2 deletions
diff --git a/net-dns/ndu/ChangeLog b/net-dns/ndu/ChangeLog
index 7036f6fba953..8003ef2d54df 100644
--- a/net-dns/ndu/ChangeLog
+++ b/net-dns/ndu/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-dns/ndu
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/ndu/ChangeLog,v 1.9 2005/12/12 03:42:09 robbat2 Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ndu/ChangeLog,v 1.10 2006/05/22 23:28:07 robbat2 Exp $
+
+*ndu-0.4-r4 (22 May 2006)
+
+ 22 May 2006; Robin H. Johnson <robbat2@gentoo.org>
+ +files/ndu-0.4-binary-locations.patch, +ndu-0.4-r4.ebuild:
+ Fix duplication of dnstouch, and move binaries to bin, as they are suitable
+ for non-root.
*ndu-0.4-r3 (12 Dec 2005)
diff --git a/net-dns/ndu/files/digest-ndu-0.4 b/net-dns/ndu/files/digest-ndu-0.4
index 5093a5f3bafe..cc1c10224491 100644
--- a/net-dns/ndu/files/digest-ndu-0.4
+++ b/net-dns/ndu/files/digest-ndu-0.4
@@ -1 +1,3 @@
MD5 dbf8b8e7b65cf189e732ff11c7f08181 ndu-0.4.tar.gz 16118
+RMD160 f9273a4428dd30a0bca3416cfcab15aa5fb04aa3 ndu-0.4.tar.gz 16118
+SHA256 27a2f523cee765db142b5582087866a90050fa00f1b365c800305204fc0c6d40 ndu-0.4.tar.gz 16118
diff --git a/net-dns/ndu/files/digest-ndu-0.4-r1 b/net-dns/ndu/files/digest-ndu-0.4-r1
index 5093a5f3bafe..cc1c10224491 100644
--- a/net-dns/ndu/files/digest-ndu-0.4-r1
+++ b/net-dns/ndu/files/digest-ndu-0.4-r1
@@ -1 +1,3 @@
MD5 dbf8b8e7b65cf189e732ff11c7f08181 ndu-0.4.tar.gz 16118
+RMD160 f9273a4428dd30a0bca3416cfcab15aa5fb04aa3 ndu-0.4.tar.gz 16118
+SHA256 27a2f523cee765db142b5582087866a90050fa00f1b365c800305204fc0c6d40 ndu-0.4.tar.gz 16118
diff --git a/net-dns/ndu/files/digest-ndu-0.4-r2 b/net-dns/ndu/files/digest-ndu-0.4-r2
index 5093a5f3bafe..cc1c10224491 100644
--- a/net-dns/ndu/files/digest-ndu-0.4-r2
+++ b/net-dns/ndu/files/digest-ndu-0.4-r2
@@ -1 +1,3 @@
MD5 dbf8b8e7b65cf189e732ff11c7f08181 ndu-0.4.tar.gz 16118
+RMD160 f9273a4428dd30a0bca3416cfcab15aa5fb04aa3 ndu-0.4.tar.gz 16118
+SHA256 27a2f523cee765db142b5582087866a90050fa00f1b365c800305204fc0c6d40 ndu-0.4.tar.gz 16118
diff --git a/net-dns/ndu/files/digest-ndu-0.4-r3 b/net-dns/ndu/files/digest-ndu-0.4-r3
index 5093a5f3bafe..cc1c10224491 100644
--- a/net-dns/ndu/files/digest-ndu-0.4-r3
+++ b/net-dns/ndu/files/digest-ndu-0.4-r3
@@ -1 +1,3 @@
MD5 dbf8b8e7b65cf189e732ff11c7f08181 ndu-0.4.tar.gz 16118
+RMD160 f9273a4428dd30a0bca3416cfcab15aa5fb04aa3 ndu-0.4.tar.gz 16118
+SHA256 27a2f523cee765db142b5582087866a90050fa00f1b365c800305204fc0c6d40 ndu-0.4.tar.gz 16118
diff --git a/net-dns/ndu/files/digest-ndu-0.4-r4 b/net-dns/ndu/files/digest-ndu-0.4-r4
new file mode 100644
index 000000000000..cc1c10224491
--- /dev/null
+++ b/net-dns/ndu/files/digest-ndu-0.4-r4
@@ -0,0 +1,3 @@
+MD5 dbf8b8e7b65cf189e732ff11c7f08181 ndu-0.4.tar.gz 16118
+RMD160 f9273a4428dd30a0bca3416cfcab15aa5fb04aa3 ndu-0.4.tar.gz 16118
+SHA256 27a2f523cee765db142b5582087866a90050fa00f1b365c800305204fc0c6d40 ndu-0.4.tar.gz 16118
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/ndu-0.4-r4.ebuild b/net-dns/ndu/ndu-0.4-r4.ebuild
new file mode 100644
index 000000000000..a0857c9b5a83
--- /dev/null
+++ b/net-dns/ndu/ndu-0.4-r4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ndu/ndu-0.4-r4.ebuild,v 1.1 2006/05/22 23:28:07 robbat2 Exp $
+
+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="~x86 ~ppc ~amd64"
+IUSE=""
+DEPEND="sys-apps/sed
+ virtual/libc"
+RDEPEND="virtual/libc
+ 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
+}