summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2013-03-10 22:05:53 +0000
committerMike Gilbert <floppym@gentoo.org>2013-03-10 22:05:53 +0000
commit940d84014d6c55b934fb86c103deb8e8d41b5099 (patch)
tree1534f7917bf86c78909e398b7a862f34d8c9ec6e /net-dns
parentmesa-9.0 xorg state tracker does not build against xorg-server-1.14. Add subs... (diff)
downloadgentoo-2-940d84014d6c55b934fb86c103deb8e8d41b5099.tar.gz
gentoo-2-940d84014d6c55b934fb86c103deb8e8d41b5099.tar.bz2
gentoo-2-940d84014d6c55b934fb86c103deb8e8d41b5099.zip
Version bump. Adds systemd support.
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/openresolv/ChangeLog9
-rw-r--r--net-dns/openresolv/openresolv-3.5.4.ebuild46
2 files changed, 53 insertions, 2 deletions
diff --git a/net-dns/openresolv/ChangeLog b/net-dns/openresolv/ChangeLog
index 02c7b68600b6..d686dea7a0ee 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.69 2012/12/06 13:11:52 polynomial-c Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/ChangeLog,v 1.70 2013/03/10 22:05:53 floppym Exp $
+
+*openresolv-3.5.4 (10 Mar 2013)
+
+ 10 Mar 2013; Mike Gilbert <floppym@gentoo.org> +openresolv-3.5.4.ebuild:
+ Version bump. Adds systemd support.
*openresolv-3.5.3 (06 Dec 2012)
diff --git a/net-dns/openresolv/openresolv-3.5.4.ebuild b/net-dns/openresolv/openresolv-3.5.4.ebuild
new file mode 100644
index 000000000000..5181121ea6ed
--- /dev/null
+++ b/net-dns/openresolv/openresolv-3.5.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/openresolv/openresolv-3.5.4.ebuild,v 1.1 2013/03/10 22:05:53 floppym Exp $
+
+EAPI=5
+
+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="systemd"
+
+DEPEND="!net-dns/resolvconf-gentoo
+ !<net-dns/dnsmasq-2.40-r1"
+RDEPEND="systemd? ( sys-apps/systemd )"
+
+src_configure() {
+ local systemd='/usr/bin/systemctl try-restart \1'
+ local openrc='if /sbin/rc-service -e \1; then /sbin/rc-service \1 -- -Ds restart; fi'
+ econf \
+ --prefix= \
+ --rundir=/var/run \
+ --libexecdir=/$(get_libdir)/resolvconf \
+ --restartcmd="$(usex systemd "${systemd}" "${openrc}")"
+}
+
+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
+}