summaryrefslogtreecommitdiff
path: root/dev-libs/libdnsres
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 /dev-libs/libdnsres
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/libdnsres')
-rw-r--r--dev-libs/libdnsres/Manifest6
-rw-r--r--dev-libs/libdnsres/files/libdnsres-0.1a-autotools.patch28
-rw-r--r--dev-libs/libdnsres/libdnsres-0.1a-r2.ebuild25
-rw-r--r--dev-libs/libdnsres/metadata.xml17
4 files changed, 76 insertions, 0 deletions
diff --git a/dev-libs/libdnsres/Manifest b/dev-libs/libdnsres/Manifest
new file mode 100644
index 000000000000..5b71381d2263
--- /dev/null
+++ b/dev-libs/libdnsres/Manifest
@@ -0,0 +1,6 @@
+AUX libdnsres-0.1a-autotools.patch 1020 SHA256 cdd773f7132846f1ad78d4623c9d0478cad89d2457288b587f7a4427d73a73f2 SHA512 12709a918aaaf135f9cdacac52fed2d6ec29a171d2474f375e1a014158c98fbcd2d1b498162e1e1ccd1b78461df796c88c876253c4a0747a9b4ae428634c4708 WHIRLPOOL edc78a0ca682191b3ee4755d246bbd8b02298eeaee19347c855a3e74c8fc1e887c92239492f3857040f480deb3d40408d6936d92065a882856ad31757bc8133b
+DIST libdnsres-0.1a.tar.gz 360583 SHA256 c0b94f27cb537eed42bc32ca9771f0955f717c66d34d1361e0a75600c6589307 SHA512 d6b1c248a99eeaea3524ee8af01dd31ba507179a69ffb313a167611792084d5efc99fe6462a63480932faa3493b01c3c43fc7575dab6aaade885583bee006f67 WHIRLPOOL 8ed056ef0691e3be8f7ff1aa0e8214b7eab96d0541c26d8f124a687a38d0f8cd4efa7de992c5dd2205e766af759b3b25b14bce7b2fb3884475b8b6492e52d443
+EBUILD libdnsres-0.1a-r2.ebuild 566 SHA256 f24dcc4033ace74d5840e68b7e92ea1acabda003e38b6eed42da8a8c84a86911 SHA512 ae4c6167db6205a00a1f3af6f324bba8f3d432960cd225e0f8174dc3529d9cb75947502f183bcd37a81247508a84d4bf91d7b83edc063740fcc7d634bfb7fe01 WHIRLPOOL b76ca37985445284b46efc38b2d2861819a1221cb860337951346ee53180135879b610646f8bac5a1a211f73166175a18f9fbb8c7d4325e8e280a5abaf47aed0
+MISC ChangeLog 2478 SHA256 596595354e4d8c97d449fbea412a94968ea3fe790f1adeac595a382913cb7a5b SHA512 c5d6ec2216c0e37de125bfef2cb642e1dd91c7e5364ac039ef89c07c23bb75b3fc9fa72dcf844d4a8e36b1b72739ea96c3546cc6233632b6da9e3362e61de090 WHIRLPOOL 833300ed1eb2eab99bc508003dfd38202f8767a5732b6db7e360e2f762b8b56c9901fdb802e8a3adbdabb30558e0953ae1f4ce77f376f9c2d24ecc7fc8966922
+MISC ChangeLog-2015 2798 SHA256 53a23ba28fa64ca6608076fccf445ba26bd2e5a83fd81b79ca49586176966368 SHA512 4a27304c25b4835130fcf870b6931c40d57d890aeefbec9c342bcb7cca8b7ac9c7cc4b37a09cfcb751f763643b00e48990990e32fd89db76f9b8dd84958faa4b WHIRLPOOL 52367a694df108c325562c3934144a60027e5527a51c2968276a4e5ceb775d0a0d0dcff40a1ea14c820b87c7e9eba101857c91a7b6189d1f7dcf61a0842143ff
+MISC metadata.xml 821 SHA256 5dfe5f2345ffb0be8e802c601ac4cceb7b751964ecf0ebec6440582f5b881fd0 SHA512 cbb9306da8e15d166cdd09e0bf6e8a07030a12d45bda18d56f45b18e439c6e199963189047fe846dd59b33408de6a101ecb1a7c251cfb5dc5c34cc313a741134 WHIRLPOOL 8c30f0beb1d5e7fa677ec9cb83ed8a85eba106b459281167a6bd48c6fdff4533dc1d306e9a1c1209dfe671607c527399e1560204c08c7d702c6391aab70f4cec
diff --git a/dev-libs/libdnsres/files/libdnsres-0.1a-autotools.patch b/dev-libs/libdnsres/files/libdnsres-0.1a-autotools.patch
new file mode 100644
index 000000000000..3e2466af57f7
--- /dev/null
+++ b/dev-libs/libdnsres/files/libdnsres-0.1a-autotools.patch
@@ -0,0 +1,28 @@
+Index: libdnsres-0.1a/Makefile.am
+===================================================================
+--- libdnsres-0.1a.orig/Makefile.am
++++ libdnsres-0.1a/Makefile.am
+@@ -10,12 +10,12 @@ libdnsres_la_SOURCES = res_comp.c res_de
+ res_data.c res_init.c res_query.c res_send.c resolv.h dnsres.h \
+ gethostnamadr.c getaddrinfo.c getservbyname.c getservent.c base64.c \
+ dnsres-internal.h
+-libdnsres_la_LIBADD = @LIBOBJS@
++libdnsres_la_LIBADD = @LTLIBOBJS@
+ libdnsres_la_LDFLAGS = -version-info 0:1:0
+
+ include_HEADERS = dnsres.h
+
+-CFLAGS = -Wall -O0 -g -DRESOLVSORT
++AM_CFLAGS = -Wall -g -DRESOLVSORT
+ INCLUDES = -I$(top_srcdir)/compat @EVENTINC@
+
+ man_MANS = dnsres.3
+@@ -23,7 +23,7 @@ man_MANS = dnsres.3
+ noinst_PROGRAMS = simple_test
+ simple_test_SOURCES = test/simple_test.c
+ simple_test_INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/compat @EVENTINC@
+-simple_test_LDADD = -L$(top_buildir) -ldnsres @EVENTLIB@
++simple_test_LDADD = libdnsres.la @EVENTLIB@
+
+ verify: libdnsres.a
+ cd $(srcdir)/test && make verify
diff --git a/dev-libs/libdnsres/libdnsres-0.1a-r2.ebuild b/dev-libs/libdnsres/libdnsres-0.1a-r2.ebuild
new file mode 100644
index 000000000000..6e760fbd0f14
--- /dev/null
+++ b/dev-libs/libdnsres/libdnsres-0.1a-r2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="A non-blocking DNS resolver library"
+HOMEPAGE="http://www.monkey.org/~provos/libdnsres/"
+SRC_URI="http://www.monkey.org/~provos/${P}.tar.gz"
+
+LICENSE="BSD-4"
+SLOT="0"
+KEYWORDS="amd64 ~ppc sparc x86"
+
+DEPEND="dev-libs/libevent"
+RDEPEND="${DEPEND}"
+
+DOCS=( README )
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-autotools.patch"
+ sed -i configure.in -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die
+ eautoreconf
+}
diff --git a/dev-libs/libdnsres/metadata.xml b/dev-libs/libdnsres/metadata.xml
new file mode 100644
index 000000000000..30908933eb68
--- /dev/null
+++ b/dev-libs/libdnsres/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Libdnsres provides a non-blocking thread-safe API for resolving DNS names.
+ It requires that your main application is built on top of libevent.
+ Libdnsres' API essentially mirrors the traditional gethostbyname and
+ getaddrinfo interfaces. All return values have been replaced by callbacks
+ instead. The code borrows heavily from the BSD resolver library. In fact, it
+ is an extremely ugly hack to make the BSD resolver library non-blocking and
+ thread-safe without changing the API too much.
+ </longdescription>
+</pkgmetadata>