diff options
author | Peter Weller <welp@gentoo.org> | 2007-12-31 13:31:57 +0000 |
---|---|---|
committer | Peter Weller <welp@gentoo.org> | 2007-12-31 13:31:57 +0000 |
commit | fc63bd6972cac60f9db7d62eb75f9f0958d8316c (patch) | |
tree | 06ef4a9b151710746a37b04729e493d4b784abde /net-dns | |
parent | Revbump to remove resolvconf stuff; bug 201853 (diff) | |
download | historical-fc63bd6972cac60f9db7d62eb75f9f0958d8316c.tar.gz historical-fc63bd6972cac60f9db7d62eb75f9f0958d8316c.tar.bz2 historical-fc63bd6972cac60f9db7d62eb75f9f0958d8316c.zip |
Initial import; bug 201853
Package-Manager: portage-2.1.4_rc11
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/openresolv/ChangeLog | 9 | ||||
-rw-r--r-- | net-dns/openresolv/Manifest | 16 | ||||
-rw-r--r-- | net-dns/openresolv/files/digest-openresolv-1.1 | 3 | ||||
-rw-r--r-- | net-dns/openresolv/metadata.xml | 11 | ||||
-rw-r--r-- | net-dns/openresolv/openresolv-1.1.ebuild | 70 |
5 files changed, 109 insertions, 0 deletions
diff --git a/net-dns/openresolv/ChangeLog b/net-dns/openresolv/ChangeLog new file mode 100644 index 000000000000..97465ff83f97 --- /dev/null +++ b/net-dns/openresolv/ChangeLog @@ -0,0 +1,9 @@ +# 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 $ + +*openresolv-1.1 (31 Dec 2007) + + 31 Dec 2007; <welp@gentoo.org> +metadata.xml, +openresolv-1.1.ebuild: + Initial import; bug 201853 + diff --git a/net-dns/openresolv/Manifest b/net-dns/openresolv/Manifest new file mode 100644 index 000000000000..8b17ecc20185 --- /dev/null +++ b/net-dns/openresolv/Manifest @@ -0,0 +1,16 @@ +DIST openresolv-1.1.tar.bz2 8765 RMD160 d0051abd8877f025014e9a2ab14211a615d64a59 SHA1 73cc6331e992f54d2621046b6b049362f057644c SHA256 979e7af497c69f03d9ae70134ae11e5338b42bdca06fecab5b297a1f16f381f5 +EBUILD openresolv-1.1.ebuild 2215 RMD160 c8884878af51432c8744263d8d5104d77b30dc0b SHA1 f4402a0e674bc226ce92998f212a052c3dc2537f SHA256 6df3888c257f9fd0366d3146f5b31fb4203769d9ed00cbe3560034a4081d8b16 +MD5 c663953fa3ba21e1134a512647808481 openresolv-1.1.ebuild 2215 +RMD160 c8884878af51432c8744263d8d5104d77b30dc0b openresolv-1.1.ebuild 2215 +SHA256 6df3888c257f9fd0366d3146f5b31fb4203769d9ed00cbe3560034a4081d8b16 openresolv-1.1.ebuild 2215 +MISC ChangeLog 340 RMD160 2c7e56dea7f3429dcd65c0d322b62b00e6b5a592 SHA1 a3c784e0b936f6d6e0766022ea5f66e8af15ade5 SHA256 4e9d69064ea30c8f7ff0117f96c66f4a5b1e70da310ead612333f4ca2b5eff44 +MD5 010b4ec6f6e32b478c33001bcb785d52 ChangeLog 340 +RMD160 2c7e56dea7f3429dcd65c0d322b62b00e6b5a592 ChangeLog 340 +SHA256 4e9d69064ea30c8f7ff0117f96c66f4a5b1e70da310ead612333f4ca2b5eff44 ChangeLog 340 +MISC metadata.xml 315 RMD160 22169f34ce4339237cd154625165db8392a2625e SHA1 c577e94a97b82c2d67790e2b3f65a9f4bc1c919e SHA256 535c23e2542894c12240ece5716ec2138be18fb8a116c9b5e538ce6b41bce28a +MD5 4685754f727b177013568b00ae2d5325 metadata.xml 315 +RMD160 22169f34ce4339237cd154625165db8392a2625e metadata.xml 315 +SHA256 535c23e2542894c12240ece5716ec2138be18fb8a116c9b5e538ce6b41bce28a metadata.xml 315 +MD5 90ce67c4a9dba88c2e97e656bbfb8668 files/digest-openresolv-1.1 241 +RMD160 f87f99099f24917ce22d29ffe5a63c8c754c9348 files/digest-openresolv-1.1 241 +SHA256 7ddd046e45b6f669c36a8810feccffa511093320e7d7355affc1f597661d1feb files/digest-openresolv-1.1 241 diff --git a/net-dns/openresolv/files/digest-openresolv-1.1 b/net-dns/openresolv/files/digest-openresolv-1.1 new file mode 100644 index 000000000000..77fd0cbf4b53 --- /dev/null +++ b/net-dns/openresolv/files/digest-openresolv-1.1 @@ -0,0 +1,3 @@ +MD5 346767d3072b8a294148d70a3e0ac763 openresolv-1.1.tar.bz2 8765 +RMD160 d0051abd8877f025014e9a2ab14211a615d64a59 openresolv-1.1.tar.bz2 8765 +SHA256 979e7af497c69f03d9ae70134ae11e5338b42bdca06fecab5b297a1f16f381f5 openresolv-1.1.tar.bz2 8765 diff --git a/net-dns/openresolv/metadata.xml b/net-dns/openresolv/metadata.xml new file mode 100644 index 000000000000..775ef445c5b8 --- /dev/null +++ b/net-dns/openresolv/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>welp@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + A framework for managing DNS information + </longdescription> +</pkgmetadata> diff --git a/net-dns/openresolv/openresolv-1.1.ebuild b/net-dns/openresolv/openresolv-1.1.ebuild new file mode 100644 index 000000000000..732166a92080 --- /dev/null +++ b/net-dns/openresolv/openresolv-1.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/openresolv-1.1.ebuild,v 1.1 2007/12/31 13:31:56 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 +} |