net-dns/s6-dns: New package
authorSamuel Holland <samuel@sholland.org>
Mon, 9 Jan 2017 22:00:03 +0000 (16:00 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Wed, 11 Jan 2017 23:33:06 +0000 (17:33 -0600)
s6-dns provides several small DNS client utilities and a library used by
the s6-networking suite.

Closes: https://github.com/gentoo/gentoo/pull/3407

net-dns/s6-dns/Manifest [new file with mode: 0644]
net-dns/s6-dns/metadata.xml [new file with mode: 0644]
net-dns/s6-dns/s6-dns-2.1.0.0.ebuild [new file with mode: 0644]

diff --git a/net-dns/s6-dns/Manifest b/net-dns/s6-dns/Manifest
new file mode 100644 (file)
index 0000000..2f12ce6
--- /dev/null
@@ -0,0 +1 @@
+DIST s6-dns-2.1.0.0.tar.gz 77415 SHA256 8455f3b1edad8f01a1340cb1242c141755729bfd5d71059739eced5c006539ad SHA512 c75722b3ddd9d1646116654983558efde22d0d5d3ff1c296a8d5e2ba44abe0d5a86fc86804cf90bea2ee8c3e82028e182d28cdbf5155d46c6b3d8f4d1c3387fc WHIRLPOOL 7c1eb845d6101c53fd65579bd46ad83c0085ee734d2623b616a34db0721bbca913820f21c6979bdc1c87582d8a92c547f7f9a5b640c4f31badbc3bd0098f75fd
diff --git a/net-dns/s6-dns/metadata.xml b/net-dns/s6-dns/metadata.xml
new file mode 100644 (file)
index 0000000..e93f856
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>samuel@sholland.org</email>
+               <name>Samuel Holland</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>williamh@gentoo.org</email>
+               <name>William Hubbs</name>
+       </maintainer>
+       <longdescription lang="en">
+               s6-dns is a suite of DNS client programs and libraries for Unix systems,
+               as an alternative to the BIND, djbdns or other DNS clients.
+       </longdescription>
+</pkgmetadata>
diff --git a/net-dns/s6-dns/s6-dns-2.1.0.0.ebuild b/net-dns/s6-dns/s6-dns-2.1.0.0.ebuild
new file mode 100644 (file)
index 0000000..93fddfc
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit versionator
+
+DESCRIPTION="suite of DNS client programs and libraries for Unix systems"
+HOMEPAGE="http://www.skarnet.org/software/s6-dns/"
+SRC_URI="http://www.skarnet.org/software/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/$(get_version_component_range 1-2)"
+KEYWORDS="~amd64 ~x86"
+IUSE="static static-libs"
+
+DEPEND=">=sys-devel/make-3.81
+       static? (
+               >=dev-libs/skalibs-2.4.0.0[static-libs]
+       )
+       !static? (
+               >=dev-libs/skalibs-2.4.0.0
+       )
+"
+RDEPEND="
+       !static? (
+               >=dev-libs/skalibs-2.4.0.0:=
+       )
+"
+
+HTML_DOCS="doc/*"
+
+src_prepare() {
+       default
+
+       # Remove QA warning about LDFLAGS addition
+       sed -i "s/tryldflag LDFLAGS_AUTO -Wl,--hash-style=both/:/" "${S}/configure" || die
+}
+
+src_configure() {
+       econf \
+               --bindir=/bin \
+               --dynlibdir=/$(get_libdir) \
+               --libdir=/usr/$(get_libdir)/${PN} \
+               --with-dynlib=/$(get_libdir) \
+               --with-lib=/usr/$(get_libdir)/skalibs \
+               --with-sysdeps=/usr/$(get_libdir)/skalibs \
+               $(use_enable !static shared) \
+               $(use_enable static allstatic) \
+               $(use_enable static static-libc) \
+               $(use_enable static-libs static)
+}