summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <NP-Hardass@gentoo.org>2018-03-01 14:54:25 -0500
committerNP-Hardass <NP-Hardass@gentoo.org>2018-03-01 15:40:21 -0500
commit81a81af9964ae76f3d57ba643b4317bb44186af7 (patch)
tree2edfef6fb043ce9bec9fc3cf66cb871e06c18316 /net-libs/libmicrodns
parentlicenses: Add JPRS for net-dns/idnkit-2*. (diff)
downloadgentoo-81a81af9964ae76f3d57ba643b4317bb44186af7.tar.gz
gentoo-81a81af9964ae76f3d57ba643b4317bb44186af7.tar.bz2
gentoo-81a81af9964ae76f3d57ba643b4317bb44186af7.zip
net-libs/libmicrodns: Add new package
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-libs/libmicrodns')
-rw-r--r--net-libs/libmicrodns/Manifest1
-rw-r--r--net-libs/libmicrodns/files/libmicrodns-0.0.9-null-addr-fix.patch24
-rw-r--r--net-libs/libmicrodns/libmicrodns-0.0.9.ebuild31
-rw-r--r--net-libs/libmicrodns/libmicrodns-9999.ebuild29
-rw-r--r--net-libs/libmicrodns/metadata.xml14
5 files changed, 99 insertions, 0 deletions
diff --git a/net-libs/libmicrodns/Manifest b/net-libs/libmicrodns/Manifest
new file mode 100644
index 000000000000..3f931cdd49da
--- /dev/null
+++ b/net-libs/libmicrodns/Manifest
@@ -0,0 +1 @@
+DIST libmicrodns-0.0.9.tar.gz 57333 BLAKE2B a9e1d099d4588863dee3c2735a2e3f9cd46212729c342e06cccad1a8e997e85964e7f917ce97f50c0cccd21c1662ef9baf7392333ea666ff65b0577f57bab692 SHA512 6f7dbf1a324fed847131745498895ab0773dfc3c7bb96a05bf0fd3df0c0ce19d7f607789f7a5350d34e91e7ba323ee57196eb37ce351f83a9faa82c5fc8d89a8
diff --git a/net-libs/libmicrodns/files/libmicrodns-0.0.9-null-addr-fix.patch b/net-libs/libmicrodns/files/libmicrodns-0.0.9-null-addr-fix.patch
new file mode 100644
index 000000000000..e2bb711c7c10
--- /dev/null
+++ b/net-libs/libmicrodns/files/libmicrodns-0.0.9-null-addr-fix.patch
@@ -0,0 +1,24 @@
+From efdf2754f9f8b801048b8fdae2b269f091128193 Mon Sep 17 00:00:00 2001
+From: Jean-Baptiste Kempf <jb@videolan.org>
+Date: Thu, 1 Mar 2018 02:58:13 +0100
+Subject: [PATCH] Fix more of the same crash
+
+---
+ src/mdns.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/mdns.c b/src/mdns.c
+index 132beef..55c5cb4 100644
+--- a/src/mdns.c
++++ b/src/mdns.c
+@@ -117,7 +117,9 @@ mdns_list_interfaces(multicast_if** pp_intfs, size_t* p_nb_intf, int ai_family)
+ return (MDNS_ERROR);
+ }
+ for (c = ifs; c != NULL; c = c->ifa_next) {
+- if (c->ifa_addr->sa_family != ai_family || !mdns_is_interface_valuable(c))
++ if (c->ifa_addr == NULL ||
++ c->ifa_addr->sa_family != ai_family ||
++ !mdns_is_interface_valuable(c))
+ continue;
+ memcpy(intfs, c->ifa_addr, sizeof(*intfs));
+ intfs++;
diff --git a/net-libs/libmicrodns/libmicrodns-0.0.9.ebuild b/net-libs/libmicrodns/libmicrodns-0.0.9.ebuild
new file mode 100644
index 000000000000..bc70a4e7eb82
--- /dev/null
+++ b/net-libs/libmicrodns/libmicrodns-0.0.9.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Minimal mDNS resolver (and announcer) library"
+HOMEPAGE="https://videolabs.io"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/videolabs/${PN}"
+else
+ SRC_URI="https://github.com/videolabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-0.0.9-null-addr-fix.patch" )
+
+src_prepare(){
+ default
+ eautoreconf
+}
diff --git a/net-libs/libmicrodns/libmicrodns-9999.ebuild b/net-libs/libmicrodns/libmicrodns-9999.ebuild
new file mode 100644
index 000000000000..b6c7ba5a1eb3
--- /dev/null
+++ b/net-libs/libmicrodns/libmicrodns-9999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Minimal mDNS resolver (and announcer) library"
+HOMEPAGE="https://videolabs.io"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/videolabs/${PN}"
+else
+ SRC_URI="https://github.com/videolabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare(){
+ default
+ eautoreconf
+}
diff --git a/net-libs/libmicrodns/metadata.xml b/net-libs/libmicrodns/metadata.xml
new file mode 100644
index 000000000000..f6508cd87852
--- /dev/null
+++ b/net-libs/libmicrodns/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>NP-Hardass@gentoo.org</email>
+ <name>NP-Hardass</name>
+ </maintainer>
+ <longdescription lang="en">
+ Minimal mDNS resolver (and announcer) library
+ </longdescription>
+ <upstream>
+ <remote-id type="github">videolabs/libmicrodns</remote-id>
+ </upstream>
+</pkgmetadata>