summaryrefslogtreecommitdiff
path: root/net-dns/openresolv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dns/openresolv
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dns/openresolv')
-rw-r--r--net-dns/openresolv/Manifest8
-rw-r--r--net-dns/openresolv/files/3.8.1-restore-newline.patch16
-rw-r--r--net-dns/openresolv/metadata.xml10
-rw-r--r--net-dns/openresolv/openresolv-3.8.1.ebuild44
-rw-r--r--net-dns/openresolv/openresolv-3.9.0.ebuild40
5 files changed, 118 insertions, 0 deletions
diff --git a/net-dns/openresolv/Manifest b/net-dns/openresolv/Manifest
new file mode 100644
index 000000000000..6c0248c21345
--- /dev/null
+++ b/net-dns/openresolv/Manifest
@@ -0,0 +1,8 @@
+AUX 3.8.1-restore-newline.patch 508 SHA256 1e0f94ee4e3972b9e6287078a02acd4090ba4a2b1fa122e0b228dd54613f79c8 SHA512 ca2c79192f808e16d0aa876fbb35eb28330a86cc4f2bd7ef618bef16f623c127327b1ce16369aadfb73413b103aa5790d7b9e7f44a9c0b26131b17cab22c0552 WHIRLPOOL 7ff4716b848f45bad99d2370040c46b6aecb7b554ebc71a9b030fe8eebecbc867a115c1906104d45153ccec73f6bb13bc0e75ae125621694333ace3edcdb69ee
+DIST openresolv-3.8.1.tar.xz 18396 SHA256 d259d78fd92ac288f1b27959daee11be9a40d70e91af5432046164c260de1d43 SHA512 390bf30bb85b071839104e5c7e276b402f6f485edc038e38da389730d82e614bb11b0dde44a55aa2ca5e790b374671a9c89cc07b053633401a608150eebbf2c8 WHIRLPOOL 34f1c545053c444d950c3a3f9c0775e377c70a2b45af561cec94f96cd171237e2e2de1cd5a45c39c4e996f87aa206b986740557aaf0104f9af9f3c66f1d1a0c1
+DIST openresolv-3.9.0.tar.xz 18844 SHA256 51a04d39232bb797c9efeaad51a525cf50a1deefcb19a1ea5dd3475118634db8 SHA512 4498db60f0b5a762194dd3651b94cc8b01a349a8cfb891e10d040cd6b8e22fa0e9897909517831591787ad22ffad97c78d3281e32296aa1ee67de5dff9bf765e WHIRLPOOL 2f912211c787517baee2e3b5f5b8036fe3a2c78d62f2366c22e256f2e236fd8a748a3816b8f2c09ba3846377a21c1ddca65a9dc96af37104682e7cbcf6aa52ff
+EBUILD openresolv-3.8.1.ebuild 1138 SHA256 0601f2bf85b5db01904eeb364c83faa8bc2dc8528183f18498d5893bfbf8ba7f SHA512 e372fd7ddbf638112830b475e0f37393d7f3b7834622296adce85ccfdd636073c803810ffd426fbd014cde789ee5572c38f066be3a4f33b1a31eb5967b1ad0e2 WHIRLPOOL 3061c23edc3af8fdfa930b8e089e6af66c2089dabece70639d87060163e1422200eb172525e4d7033a4a50db0a6958134c7393b9633122133442fce7d106f092
+EBUILD openresolv-3.9.0.ebuild 1097 SHA256 d3b1338a9012f6b1b774226bf295dbee85256412e95139cb1ebded0e1e63a52a SHA512 876ab61f7a876f6135ac2d18ed62e1d7708f44939a108128614a9302d06ba428276a69c8a68fefa00eddd10a17859383bde71e23fb31a2e9c7333a165da22248 WHIRLPOOL 984e2cfcca58b630932abd931e93c9b33da49f1ee759d35f42a0a5e8b4745eabacad95cd7462dc9c65464d1b03b9a5939088b086b4a5fdf2109809e0ee772ca8
+MISC ChangeLog 3012 SHA256 a0c2d27c372a9617529b8988652e886579564052453f637680eae493aa9cc190 SHA512 e162ae4dff285debcba56708a06e198a79850fc940b35c34a4578d9314555812b99887fadba1df72c9439144834a7f9f574b90166f5bfe03e68a5750f3edc77d WHIRLPOOL 1d71940ab2149ab61f20449b21138a29fb87ab077b7600b94c4f52d0863e48f86837a890be38b27c62ee3116669eda4ea21ddd3f9ae9363fe49fa0f1bff969cb
+MISC ChangeLog-2015 14172 SHA256 1901fc4b4c6e63864c32fca7927d38ab5b63dce0c2aee3bca8583fe05ea0bd83 SHA512 37c7a5e9a73f8ab006e1fd2ccdaf057cb3a4eeb67a63709bd20f1abedde0749ec675907a3c0552e1aa1c6c0b094c9c53d7797de659849ce7225a9af2f7b0edc4 WHIRLPOOL 39513c89107e6736440b7827e23c9093e37fd303354e66109759ac451cc34e6741c50e49abf449f2253c3471841c72738b0baf31955e1892be15f2e2acb8a86a
+MISC metadata.xml 309 SHA256 8614be1944e84bb7f1d9920e2d66a8b42ab34e7f1509811c02c16d2bdf8f9ecf SHA512 311a9444ac8811bf1ea1a8bb06370b81360c6642921b2932095bd191d8784509bfe46189de8f073a34a831eaf1c8114c3b5bfcf67d0fe042ea2ecd8c1fc7cc0a WHIRLPOOL 9a004dc20a28775a3b04a7d8dd07847d647be4a4bdc38ee53afcacacbb8bf3afbe9ca541c63095919a4d739a6fda021b5d3c78f3a4b302c750eec264a48eed7d
diff --git a/net-dns/openresolv/files/3.8.1-restore-newline.patch b/net-dns/openresolv/files/3.8.1-restore-newline.patch
new file mode 100644
index 000000000000..2522710bf941
--- /dev/null
+++ b/net-dns/openresolv/files/3.8.1-restore-newline.patch
@@ -0,0 +1,16 @@
+--- a/libc.in
++++ b/libc.in
+@@ -214,11 +214,11 @@
+ # If the old file does not have our signature, back it up.
+ # If the new file just has our signature, restore the backup.
+ if $backup; then
+ if [ "$newconf" = "$signature$NL" ]; then
+ if [ -e "$resolv_conf.bak" ]; then
+- newconf="$(cat "$resolv_conf.bak")"
++ newconf="$(cat "$resolv_conf.bak")$NL"
+ fi
+ elif [ -e "$resolv_conf" ]; then
+ read line <"$resolv_conf"
+ if [ "$line" != "$signature" ]; then
+ cp "$resolv_conf" "$resolv_conf.bak"
+
diff --git a/net-dns/openresolv/metadata.xml b/net-dns/openresolv/metadata.xml
new file mode 100644
index 000000000000..6c713591fd81
--- /dev/null
+++ b/net-dns/openresolv/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alonbl@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ A framework for managing DNS information
+ </longdescription>
+</pkgmetadata>
diff --git a/net-dns/openresolv/openresolv-3.8.1.ebuild b/net-dns/openresolv/openresolv-3.8.1.ebuild
new file mode 100644
index 000000000000..0a45484ffa59
--- /dev/null
+++ b/net-dns/openresolv/openresolv-3.8.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A framework for managing DNS information"
+HOMEPAGE="http://roy.marples.name/projects/openresolv"
+SRC_URI="http://roy.marples.name/downloads/${PN}/${P}.tar.xz"
+
+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="selinux"
+
+DEPEND="!net-dns/resolvconf-gentoo
+ !<net-dns/dnsmasq-2.40-r1"
+RDEPEND="selinux? ( sec-policy/selinux-resolvconf )"
+
+PATCHES=(
+ "${FILESDIR}/3.8.1-restore-newline.patch"
+)
+
+src_configure() {
+ econf \
+ --prefix="${EPREFIX}" \
+ --rundir="${EPREFIX}"/var/run \
+ --libexecdir="${EPREFIX}"/lib/resolvconf
+}
+
+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
+}
diff --git a/net-dns/openresolv/openresolv-3.9.0.ebuild b/net-dns/openresolv/openresolv-3.9.0.ebuild
new file mode 100644
index 000000000000..1a5316b59154
--- /dev/null
+++ b/net-dns/openresolv/openresolv-3.9.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A framework for managing DNS information"
+HOMEPAGE="http://roy.marples.name/projects/openresolv"
+SRC_URI="http://roy.marples.name/downloads/${PN}/${P}.tar.xz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="selinux"
+
+DEPEND="!net-dns/resolvconf-gentoo
+ !<net-dns/dnsmasq-2.40-r1"
+RDEPEND="selinux? ( sec-policy/selinux-resolvconf )"
+
+src_configure() {
+ econf \
+ --prefix="${EPREFIX}" \
+ --rundir="${EPREFIX}"/var/run \
+ --libexecdir="${EPREFIX}"/lib/resolvconf
+}
+
+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
+}