diff options
author | Roy Marples <uberlord@gentoo.org> | 2006-06-04 17:33:17 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2006-06-04 17:33:17 +0000 |
commit | 257b59d45ca94d1ead9e9cc281ce27b60ab3035c (patch) | |
tree | d8effcbe1ac7888474506788a05dd9293a787edf /net-misc | |
parent | Stable on x86 (diff) | |
download | gentoo-2-257b59d45ca94d1ead9e9cc281ce27b60ab3035c.tar.gz gentoo-2-257b59d45ca94d1ead9e9cc281ce27b60ab3035c.tar.bz2 gentoo-2-257b59d45ca94d1ead9e9cc281ce27b60ab3035c.zip |
Append \n to the head file when reading it, thanks to Eric Lenio.
(Portage version: 2.1_rc4)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/resolvconf-gentoo/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/resolvconf-gentoo/files/digest-resolvconf-gentoo-1.0 | 3 | ||||
-rw-r--r-- | net-misc/resolvconf-gentoo/resolvconf-gentoo-1.0.ebuild | 61 |
3 files changed, 72 insertions, 1 deletions
diff --git a/net-misc/resolvconf-gentoo/ChangeLog b/net-misc/resolvconf-gentoo/ChangeLog index 9a084b9e6390..098450059ab7 100644 --- a/net-misc/resolvconf-gentoo/ChangeLog +++ b/net-misc/resolvconf-gentoo/ChangeLog @@ -1,6 +1,13 @@ # 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.6 2006/05/25 18:40:23 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/resolvconf-gentoo/ChangeLog,v 1.7 2006/06/04 17:33:16 uberlord Exp $ + +*resolvconf-gentoo-1.0 (04 Jun 2006) + + 04 Jun 2006; Roy Marples <uberlord@gentoo.org> + +resolvconf-gentoo-1.0.ebuild: + Append \n to the head file when reading it, thanks to Eric Lenio. + Stable candidate :) *resolvconf-gentoo-0.6 (25 May 2006) diff --git a/net-misc/resolvconf-gentoo/files/digest-resolvconf-gentoo-1.0 b/net-misc/resolvconf-gentoo/files/digest-resolvconf-gentoo-1.0 new file mode 100644 index 000000000000..a989d5c5d20c --- /dev/null +++ b/net-misc/resolvconf-gentoo/files/digest-resolvconf-gentoo-1.0 @@ -0,0 +1,3 @@ +MD5 f8d6e6dcd5050b788bb7f80885ebab4e resolvconf-gentoo-1.0.tar.bz2 5320 +RMD160 2c607df95bf240d41e511ca68203e9ca452068fe resolvconf-gentoo-1.0.tar.bz2 5320 +SHA256 75e536ee19182c193655b46c3b7d6909cb0fe3899381a7b6a2692f6017f63db9 resolvconf-gentoo-1.0.tar.bz2 5320 diff --git a/net-misc/resolvconf-gentoo/resolvconf-gentoo-1.0.ebuild b/net-misc/resolvconf-gentoo/resolvconf-gentoo-1.0.ebuild new file mode 100644 index 000000000000..fac3f551d216 --- /dev/null +++ b/net-misc/resolvconf-gentoo/resolvconf-gentoo-1.0.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-1.0.ebuild,v 1.1 2006/06/04 17:33:16 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 +} |