summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Weller <welp@gentoo.org>2008-02-18 19:54:54 +0000
committerPeter Weller <welp@gentoo.org>2008-02-18 19:54:54 +0000
commit45dbc5fa6d29fc96798ade4b95bed52c5d786d03 (patch)
treece7fca78961878287cdc5f79fb57951d2fcba772 /net-dns/openresolv
parentAdd nuv use flag, with lzo dep, bug 210352 (diff)
downloadhistorical-45dbc5fa6d29fc96798ade4b95bed52c5d786d03.tar.gz
historical-45dbc5fa6d29fc96798ade4b95bed52c5d786d03.tar.bz2
historical-45dbc5fa6d29fc96798ade4b95bed52c5d786d03.zip
Bump to 1.3, Fix deps. Bug 209423
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-dns/openresolv')
-rw-r--r--net-dns/openresolv/ChangeLog9
-rw-r--r--net-dns/openresolv/Manifest4
-rw-r--r--net-dns/openresolv/openresolv-1.3.ebuild70
3 files changed, 80 insertions, 3 deletions
diff --git a/net-dns/openresolv/ChangeLog b/net-dns/openresolv/ChangeLog
index 97465ff83f97..25a7dce970bb 100644
--- a/net-dns/openresolv/ChangeLog
+++ b/net-dns/openresolv/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dns/openresolv
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/ChangeLog,v 1.1 2007/12/31 13:31:56 welp Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/ChangeLog,v 1.2 2008/02/18 19:54:54 welp Exp $
+
+*openresolv-1.3 (18 Feb 2008)
+
+ 18 Feb 2008; <welp@gentoo.org> +openresolv-1.3.ebuild:
+ Bump to 1.3, Fix deps. Bug 209423
*openresolv-1.1 (31 Dec 2007)
diff --git a/net-dns/openresolv/Manifest b/net-dns/openresolv/Manifest
index 39f8b1fa3b85..4608e46c211e 100644
--- a/net-dns/openresolv/Manifest
+++ b/net-dns/openresolv/Manifest
@@ -1,4 +1,6 @@
DIST openresolv-1.1.tar.bz2 8765 RMD160 d0051abd8877f025014e9a2ab14211a615d64a59 SHA1 73cc6331e992f54d2621046b6b049362f057644c SHA256 979e7af497c69f03d9ae70134ae11e5338b42bdca06fecab5b297a1f16f381f5
+DIST openresolv-1.3.tar.bz2 8906 RMD160 7c3a4202cde07c3a8d4064799d9a174d2c92b249 SHA1 3ccf6c98a4559a573877a34cf873545f821cd533 SHA256 4730ec71d95f44ea2f50415edded6011a7be40de9b93123fdec3173ab2f2e26b
EBUILD openresolv-1.1.ebuild 2215 RMD160 c8884878af51432c8744263d8d5104d77b30dc0b SHA1 f4402a0e674bc226ce92998f212a052c3dc2537f SHA256 6df3888c257f9fd0366d3146f5b31fb4203769d9ed00cbe3560034a4081d8b16
-MISC ChangeLog 340 RMD160 2c7e56dea7f3429dcd65c0d322b62b00e6b5a592 SHA1 a3c784e0b936f6d6e0766022ea5f66e8af15ade5 SHA256 4e9d69064ea30c8f7ff0117f96c66f4a5b1e70da310ead612333f4ca2b5eff44
+EBUILD openresolv-1.3.ebuild 2215 RMD160 fd35c67fc3b1131951107cf2dd0ee55e0cf1cbd8 SHA1 cfb61a15f67a6aca52b9353a04b767a5d7aff4a4 SHA256 875af613e342adb8071c44cc619c04fbc6adca0497a415d97bdb780c6a8a33b3
+MISC ChangeLog 465 RMD160 898d41aa2caa602022baf9550021500d6cbc5ac7 SHA1 f17342e23dd0706a45a8d79a09d6a823a68b3953 SHA256 3d11e33ba78852ff9bc10016f21fbbccfe3ef1c4871f836f3db653d8918159d0
MISC metadata.xml 315 RMD160 22169f34ce4339237cd154625165db8392a2625e SHA1 c577e94a97b82c2d67790e2b3f65a9f4bc1c919e SHA256 535c23e2542894c12240ece5716ec2138be18fb8a116c9b5e538ce6b41bce28a
diff --git a/net-dns/openresolv/openresolv-1.3.ebuild b/net-dns/openresolv/openresolv-1.3.ebuild
new file mode 100644
index 000000000000..953fbd5f8b04
--- /dev/null
+++ b/net-dns/openresolv/openresolv-1.3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/openresolv-1.3.ebuild,v 1.1 2008/02/18 19:54:54 welp Exp $
+
+inherit eutils
+
+DESCRIPTION="A framework for managing DNS information"
+HOMEPAGE="http://roy.marples.name/node/343"
+SRC_URI="http://roy.marples.name/${PN}/${P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="!net-dns/resolvconf-gentoo
+ !<net-dns/dnsmasq-2.40-r1"
+RDEPEND=""
+
+src_install() {
+ make DESTDIR="${D}" install || die "Failed to install"
+}
+
+pkg_postinst() {
+ if [ ! -"L ${ROOT}/etc/resolv.conf" ] \
+ || [ "$(readlink "${ROOT}/etc/resolv.conf")" != \
+ "resolvconf/run/resolv.conf" ] ; then
+ ewarn "resolvconf requires ${ROOT}etc/resolv.conf to be a symbolic"
+ ewarn "to resolvconf/run/resolv.conf"
+ ewarn "To set this up automatically type"
+ ewarn " emerge --config =${PF}"
+ fi
+}
+
+pkg_config() {
+ cd "${ROOT}/etc"
+ if [ -L resolv.conf -a "$(readlink resolv.conf)" = \
+ "resolvconf/run/resolv.conf" ] ; then
+ einfo "${ROOT}etc/resolv.conf is already configured for ${PN}"
+ else
+ if [ -e resolv.conf ] ; then
+ einfo "Your existing resolv.conf is will be mapped to an"
+ einfo "interface called \"dummy\" in resolvconf. This will"
+ einfo "disappear when you reboot."
+ cp resolv.conf resolvconf/run/resolv.conf
+ [ ! -d resolvconf/run/interfaces ] \
+ && mkdir resolvconf/run/interfaces
+ cp resolv.conf resolvconf/run/interfaces/dummy
+ echo "dummy" > resolvconf/run/add_order
+ fi
+ rm -f resolv.conf
+ ln -snf resolvconf/run/resolv.conf .
+ einfo "${ROOT}etc/resolv.conf is now correctly configured for ${PN}"
+ fi
+}
+
+pkg_postrm() {
+ # If we are totally removed but still configured, then replace
+ # /etc/resolv.conf with a real file
+ cd "${ROOT}"/etc
+ [ -L resolv.conf ] || return 0
+ if [ -e resolv.conf ]; then
+ [ "$(readlink resolv.conf)" = "resolvconf/run/resolv.conf" ] || return 0
+ rm resolv.conf
+ cp resolvconf/run/resolv.conf .
+ elif [ -e /var/run/resolvconf/resolv.conf ]; then
+ rm resolv.conf
+ cp /var/run/resolvconf/resolv.conf .
+ fi
+}