diff options
author | 2006-04-08 00:09:45 +0000 | |
---|---|---|
committer | 2006-04-08 00:09:45 +0000 | |
commit | 9a1238cdf009c8b8fcc5ab60f98782c32f16535e (patch) | |
tree | 666e9068ec38f2dd4c5d46d92d24cff03a48a87b /net-misc | |
parent | New patch, now with resolvconf support. (diff) | |
download | historical-9a1238cdf009c8b8fcc5ab60f98782c32f16535e.tar.gz historical-9a1238cdf009c8b8fcc5ab60f98782c32f16535e.tar.bz2 historical-9a1238cdf009c8b8fcc5ab60f98782c32f16535e.zip |
Initial import.
Package-Manager: portage-2.1_pre7-r4
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/resolvconf-gentoo/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/resolvconf-gentoo/Manifest | 22 | ||||
-rw-r--r-- | net-misc/resolvconf-gentoo/files/digest-resolvconf-gentoo-0.1 | 3 | ||||
-rw-r--r-- | net-misc/resolvconf-gentoo/metadata.xml | 9 | ||||
-rw-r--r-- | net-misc/resolvconf-gentoo/resolvconf-gentoo-0.1.ebuild | 61 |
5 files changed, 105 insertions, 0 deletions
diff --git a/net-misc/resolvconf-gentoo/ChangeLog b/net-misc/resolvconf-gentoo/ChangeLog new file mode 100644 index 000000000000..87077d7757a4 --- /dev/null +++ b/net-misc/resolvconf-gentoo/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-misc/resolvconf-gentoo +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/resolvconf-gentoo/ChangeLog,v 1.1 2006/04/08 00:09:45 uberlord Exp $ + +*resolvconf-gentoo-0.1 (08 Apr 2006) + + 08 Apr 2006; Roy Marples <uberlord@gentoo.org> +metadata.xml, + +resolvconf-gentoo-0.1.ebuild: + Initial import. + diff --git a/net-misc/resolvconf-gentoo/Manifest b/net-misc/resolvconf-gentoo/Manifest new file mode 100644 index 000000000000..db6af4701747 --- /dev/null +++ b/net-misc/resolvconf-gentoo/Manifest @@ -0,0 +1,22 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 5ffebbb626fe8c813c8aff6cecde4b83 ChangeLog 381 +RMD160 f99c8fc649064229f7a87b256a8b1c598acdba2c ChangeLog 381 +SHA256 0c16041c3310d297e560edc69f505e602631f558e202e3c8391bf36d7bc50d01 ChangeLog 381 +MD5 311954ae71c997a4722e12af07fa70f3 files/digest-resolvconf-gentoo-0.1 262 +RMD160 78aef69d460e2452f9ce662ed6f0d8ac73347c75 files/digest-resolvconf-gentoo-0.1 262 +SHA256 85ff8cb30590b04cc7da51e2b65a825287197aa38b342e2c3c9fd9504e1a3379 files/digest-resolvconf-gentoo-0.1 262 +MD5 23df2027bac4a8ecc8fbf018701239b5 metadata.xml 307 +RMD160 5321ae1f8b9fe5ee81be83b1777595452c229714 metadata.xml 307 +SHA256 e579b678a12cbfb3e9f2ff9ba1d9e5c56adb3017a459b35472cbf2d7969a3ab0 metadata.xml 307 +MD5 d2dac6d205819fd44530406695b2f3e0 resolvconf-gentoo-0.1.ebuild 2046 +RMD160 2ad3ef584aa4063298665ea96fc26345c5ee9358 resolvconf-gentoo-0.1.ebuild 2046 +SHA256 f0d7e3f13b4de1f66857dcb78a6ce50cabca8debf3c1ba6427a489c867d7186e resolvconf-gentoo-0.1.ebuild 2046 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2.2 (GNU/Linux) + +iD8DBQFENv9aEbVyYKaZ/NERAhwKAKCJSaUjKQk4tQP5aUdSMZi9iuH0FQCfZPAH +Cl4dAnd9a3UVStRmbiSvgdQ= +=EQfD +-----END PGP SIGNATURE----- diff --git a/net-misc/resolvconf-gentoo/files/digest-resolvconf-gentoo-0.1 b/net-misc/resolvconf-gentoo/files/digest-resolvconf-gentoo-0.1 new file mode 100644 index 000000000000..0c545a5a700b --- /dev/null +++ b/net-misc/resolvconf-gentoo/files/digest-resolvconf-gentoo-0.1 @@ -0,0 +1,3 @@ +MD5 8d983973951490765dc890cbb3f58c12 resolvconf-gentoo-0.1.tar.bz2 4609 +RMD160 c3d1ef0c7b48478d8b09260544049540f4dbd74d resolvconf-gentoo-0.1.tar.bz2 4609 +SHA256 467b10f778bc949325d50614222c94bc4471d445d611126c31430381672a2f2a resolvconf-gentoo-0.1.tar.bz2 4609 diff --git a/net-misc/resolvconf-gentoo/metadata.xml b/net-misc/resolvconf-gentoo/metadata.xml new file mode 100644 index 000000000000..2bdf8c8ef038 --- /dev/null +++ b/net-misc/resolvconf-gentoo/metadata.xml @@ -0,0 +1,9 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>uberlord@gentoo.org</email> + <name>Roy Marples</name> + </maintainer> + <longdescription>DNS configuration management framework</longdescription> +</pkgmetadata> diff --git a/net-misc/resolvconf-gentoo/resolvconf-gentoo-0.1.ebuild b/net-misc/resolvconf-gentoo/resolvconf-gentoo-0.1.ebuild new file mode 100644 index 000000000000..3480c753b1df --- /dev/null +++ b/net-misc/resolvconf-gentoo/resolvconf-gentoo-0.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/resolvconf-gentoo/resolvconf-gentoo-0.1.ebuild,v 1.1 2006/04/08 00:09:45 uberlord Exp $ + +DESCRIPTION="A framework for managing DNS information" +HOMEPAGE="http://www.gentoo.org" +SRC_URI="http://dev.gentoo.org/~uberlord/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="app-shells/bash" + +pkg_setup() { + if ! grep -q "^uniqify()" "${ROOT}"/etc/init.d/functions.sh ; then + eerror "/etc/init.d/functions.sh does not supply the uniqify function" + eerror "Please upgrade to a baselayout that support it" + eerror "(baselayout-1.12.0_pre17 and later versions do)" + die "function uniqify does not exist" + fi +} + +src_install() { + make ROOT="${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" + einfo "To set this up automatically type" + einfo " emerge --config =${PF}" + fi +} + +pkg_config() { + cd "${ROOT}/etc" + if [[ -L resolv.conf && $(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 +} |