summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2023-04-15 07:53:36 -0500
committerBen Kohler <bkohler@gentoo.org>2023-04-15 07:54:06 -0500
commitbd2a5326983f6a1de6df2d46f2f853a149577dd5 (patch)
tree3e344988cd4983cdce80860a430d541584f761c5 /net-dns
parentnet-misc/icaclient: enable usb redirect support (diff)
downloadgentoo-bd2a5326983f6a1de6df2d46f2f853a149577dd5.tar.gz
gentoo-bd2a5326983f6a1de6df2d46f2f853a149577dd5.tar.bz2
gentoo-bd2a5326983f6a1de6df2d46f2f853a149577dd5.zip
net-dns/openresolv: add 3.13.0
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/openresolv/Manifest1
-rw-r--r--net-dns/openresolv/openresolv-3.13.0.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/net-dns/openresolv/Manifest b/net-dns/openresolv/Manifest
index e05e2afad3f0..3b50ac227296 100644
--- a/net-dns/openresolv/Manifest
+++ b/net-dns/openresolv/Manifest
@@ -1 +1,2 @@
DIST openresolv-3.12.0.tar.xz 21008 BLAKE2B 1609d8e97a9abe82f9ead7179727dd4323571e92b36aa2ca2a1177972f3a61946f612dd0cf81a804087f1c71bda25e78dab8b085ad2be55ce21214dc9870fdf6 SHA512 60348ca35114b105c8b3121e5f2d301311fcc7251a9be60c45fedc27267cfd94e413e77c7d5c91d0a0ccb8f1b4288bc147582b0ac9be64afcaa96ad3d833f26f
+DIST openresolv-3.13.0.tar.gz 23613 BLAKE2B f3b9e819ac8cf371dff567dac787bf02c358faff777fc96908e2dae3d2baf2adb997c2cc00838c16b268511ae2e4f5d2847e27df07e49d856a3f0d57a91a7300 SHA512 4afd8ae3fac9af248478c8b60f4f6845dc29925d789874d6b8515cf16b08de5d51be5f0151e9e8ea9124f0cb2ddbacdf00150500d8b6922a041920b9b1a18a2b
diff --git a/net-dns/openresolv/openresolv-3.13.0.ebuild b/net-dns/openresolv/openresolv-3.13.0.ebuild
new file mode 100644
index 000000000000..a636872c4657
--- /dev/null
+++ b/net-dns/openresolv/openresolv-3.13.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A framework for managing DNS information"
+HOMEPAGE="https://roy.marples.name/projects/openresolv"
+SRC_URI="https://github.com/NetworkConfiguration/openresolv/archive/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="selinux"
+
+RDEPEND="!sys-apps/systemd[resolvconf]
+ selinux? ( sec-policy/selinux-resolvconf )"
+
+S="${WORKDIR}/${PN}-${P}"
+
+src_configure() {
+ local myeconfargs=(
+ --prefix="${EPREFIX}"
+ --rundir="${EPREFIX}"/var/run
+ --libexecdir="${EPREFIX}"/lib/resolvconf
+ )
+ econf "${myeconfargs[@]}"
+}
+
+pkg_config() {
+ if [[ -n ${ROOT} ]]; then
+ eerror "We cannot configure unless \$ROOT is empty"
+ 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
+}
+
+DOCS=( LICENSE README.md )