diff options
author | Jim Ramsay <lack@gentoo.org> | 2012-06-27 17:24:12 +0000 |
---|---|---|
committer | Jim Ramsay <lack@gentoo.org> | 2012-06-27 17:24:12 +0000 |
commit | f44fb2b8a4ca84427e088a1bcfc9a918448ce97b (patch) | |
tree | 0af02818990523d52fd8c2c3e3c77740ec49f756 /net-dns | |
parent | use.mask devil and gts, bug #419621 (diff) | |
download | gentoo-2-f44fb2b8a4ca84427e088a1bcfc9a918448ce97b.tar.gz gentoo-2-f44fb2b8a4ca84427e088a1bcfc9a918448ce97b.tar.bz2 gentoo-2-f44fb2b8a4ca84427e088a1bcfc9a918448ce97b.zip |
Bug #383763: Use /var/run for interface data storage
(Portage version: 2.1.11.2/cvs/Linux x86_64)
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/openresolv/ChangeLog | 8 | ||||
-rw-r--r-- | net-dns/openresolv/openresolv-3.4.1-r1.ebuild | 43 |
2 files changed, 49 insertions, 2 deletions
diff --git a/net-dns/openresolv/ChangeLog b/net-dns/openresolv/ChangeLog index 0bed6c001be1..0c926f4fbd90 100644 --- a/net-dns/openresolv/ChangeLog +++ b/net-dns/openresolv/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-dns/openresolv # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/ChangeLog,v 1.65 2012/05/12 14:25:37 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/ChangeLog,v 1.66 2012/06/27 17:24:12 lack Exp $ + +*openresolv-3.4.1-r1 (27 Jun 2012) + + 27 Jun 2012; Jim Ramsay <jim_ramsay@gentoo.org> +openresolv-3.4.1-r1.ebuild: + Bug #383763: Use /var/run for interface data storage 12 May 2012; Alexis Ballier <aballier@gentoo.org> openresolv-3.4.1.ebuild: keyword ~amd64-fbsd @@ -259,4 +264,3 @@ 31 Dec 2007; <welp@gentoo.org> +metadata.xml, +openresolv-1.1.ebuild: Initial import; bug 201853 - diff --git a/net-dns/openresolv/openresolv-3.4.1-r1.ebuild b/net-dns/openresolv/openresolv-3.4.1-r1.ebuild new file mode 100644 index 000000000000..c5af55f2a28a --- /dev/null +++ b/net-dns/openresolv/openresolv-3.4.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/openresolv-3.4.1-r1.ebuild,v 1.1 2012/06/27 17:24:12 lack Exp $ + +EAPI=2 + +inherit base multilib + +DESCRIPTION="A framework for managing DNS information" +HOMEPAGE="http://roy.marples.name/projects/openresolv" +SRC_URI="http://roy.marples.name/downloads/${PN}/${P}.tar.bz2" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="" + +DEPEND="!net-dns/resolvconf-gentoo + !<net-dns/dnsmasq-2.40-r1" +RDEPEND="" + +src_configure() { + econf \ + --prefix= \ + --rundir=/var/run \ + --libexecdir=/$(get_libdir) +} + +pkg_config() { + if [ "${ROOT}" != "/" ]; then + eerror "We cannot configure unless \$ROOT=/" + return 1 + fi + + if [ -n "$(resolvconf -l)" ]; then + einfo "${PN} already has DNS information" + else + ebegin "Copying /etc/resolv.conf to resolvconf -a dummy" + resolvconf -a dummy </etc/resolv.conf + eend $? || return $? + einfo "The dummy interface will disappear when you next reboot" + fi +} |