diff options
author | Ben Kohler <bkohler@gentoo.org> | 2023-04-23 06:34:46 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2023-04-23 06:57:58 -0500 |
commit | 4c80d0621324708fa9fe3b95c3e6ffdbc94c13d8 (patch) | |
tree | ae9047eaccf4da390652ffe7b32e0ccdcc5508e8 /net-dns | |
parent | kde-apps/k3b: Re-add IUSE (rename mp3 => lame), sox (diff) | |
download | gentoo-4c80d0621324708fa9fe3b95c3e6ffdbc94c13d8.tar.gz gentoo-4c80d0621324708fa9fe3b95c3e6ffdbc94c13d8.tar.bz2 gentoo-4c80d0621324708fa9fe3b95c3e6ffdbc94c13d8.zip |
net-dns/openresolv: add 3.13.1
This version actually adds nothing but build system changes, but I'll add
it to get it tested for any regressions
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/openresolv/Manifest | 1 | ||||
-rw-r--r-- | net-dns/openresolv/openresolv-3.13.1.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/net-dns/openresolv/Manifest b/net-dns/openresolv/Manifest index 3b50ac227296..a17b1ee64b95 100644 --- a/net-dns/openresolv/Manifest +++ b/net-dns/openresolv/Manifest @@ -1,2 +1,3 @@ DIST openresolv-3.12.0.tar.xz 21008 BLAKE2B 1609d8e97a9abe82f9ead7179727dd4323571e92b36aa2ca2a1177972f3a61946f612dd0cf81a804087f1c71bda25e78dab8b085ad2be55ce21214dc9870fdf6 SHA512 60348ca35114b105c8b3121e5f2d301311fcc7251a9be60c45fedc27267cfd94e413e77c7d5c91d0a0ccb8f1b4288bc147582b0ac9be64afcaa96ad3d833f26f DIST openresolv-3.13.0.tar.gz 23613 BLAKE2B f3b9e819ac8cf371dff567dac787bf02c358faff777fc96908e2dae3d2baf2adb997c2cc00838c16b268511ae2e4f5d2847e27df07e49d856a3f0d57a91a7300 SHA512 4afd8ae3fac9af248478c8b60f4f6845dc29925d789874d6b8515cf16b08de5d51be5f0151e9e8ea9124f0cb2ddbacdf00150500d8b6922a041920b9b1a18a2b +DIST openresolv-3.13.1.tar.xz 21336 BLAKE2B 9794bd2af2af68dcd08383e0613a6ada0d1f49d1514226911d49318a85d7c5a4d1b216d4d9e101161a442ea2e3d2fce5208a1cd2c393ec0560df0dcc136165ec SHA512 200ad330ddeeead83f7338f75edec5bfbed7e0fddfab601f490e175b46948c504abd9ce70c015d97328da397536a2fd7f8c55e3906a5f8ac7ab32201d02f98a1 diff --git a/net-dns/openresolv/openresolv-3.13.1.ebuild b/net-dns/openresolv/openresolv-3.13.1.ebuild new file mode 100644 index 000000000000..e5581277cc04 --- /dev/null +++ b/net-dns/openresolv/openresolv-3.13.1.ebuild @@ -0,0 +1,43 @@ +# 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/releases/download/v${PV}/${P}.tar.xz" + +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 )" + +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 ) |