1 |
commit: 81a81af9964ae76f3d57ba643b4317bb44186af7 |
2 |
Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 1 19:54:25 2018 +0000 |
4 |
Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 1 20:40:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81a81af9 |
7 |
|
8 |
net-libs/libmicrodns: Add new package |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-libs/libmicrodns/Manifest | 1 + |
13 |
.../files/libmicrodns-0.0.9-null-addr-fix.patch | 24 +++++++++++++++++ |
14 |
net-libs/libmicrodns/libmicrodns-0.0.9.ebuild | 31 ++++++++++++++++++++++ |
15 |
net-libs/libmicrodns/libmicrodns-9999.ebuild | 29 ++++++++++++++++++++ |
16 |
net-libs/libmicrodns/metadata.xml | 14 ++++++++++ |
17 |
5 files changed, 99 insertions(+) |
18 |
|
19 |
diff --git a/net-libs/libmicrodns/Manifest b/net-libs/libmicrodns/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..3f931cdd49d |
22 |
--- /dev/null |
23 |
+++ b/net-libs/libmicrodns/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST libmicrodns-0.0.9.tar.gz 57333 BLAKE2B a9e1d099d4588863dee3c2735a2e3f9cd46212729c342e06cccad1a8e997e85964e7f917ce97f50c0cccd21c1662ef9baf7392333ea666ff65b0577f57bab692 SHA512 6f7dbf1a324fed847131745498895ab0773dfc3c7bb96a05bf0fd3df0c0ce19d7f607789f7a5350d34e91e7ba323ee57196eb37ce351f83a9faa82c5fc8d89a8 |
26 |
|
27 |
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 |
28 |
new file mode 100644 |
29 |
index 00000000000..e2bb711c7c1 |
30 |
--- /dev/null |
31 |
+++ b/net-libs/libmicrodns/files/libmicrodns-0.0.9-null-addr-fix.patch |
32 |
@@ -0,0 +1,24 @@ |
33 |
+From efdf2754f9f8b801048b8fdae2b269f091128193 Mon Sep 17 00:00:00 2001 |
34 |
+From: Jean-Baptiste Kempf <jb@××××××××.org> |
35 |
+Date: Thu, 1 Mar 2018 02:58:13 +0100 |
36 |
+Subject: [PATCH] Fix more of the same crash |
37 |
+ |
38 |
+--- |
39 |
+ src/mdns.c | 4 +++- |
40 |
+ 1 file changed, 3 insertions(+), 1 deletion(-) |
41 |
+ |
42 |
+diff --git a/src/mdns.c b/src/mdns.c |
43 |
+index 132beef..55c5cb4 100644 |
44 |
+--- a/src/mdns.c |
45 |
++++ b/src/mdns.c |
46 |
+@@ -117,7 +117,9 @@ mdns_list_interfaces(multicast_if** pp_intfs, size_t* p_nb_intf, int ai_family) |
47 |
+ return (MDNS_ERROR); |
48 |
+ } |
49 |
+ for (c = ifs; c != NULL; c = c->ifa_next) { |
50 |
+- if (c->ifa_addr->sa_family != ai_family || !mdns_is_interface_valuable(c)) |
51 |
++ if (c->ifa_addr == NULL || |
52 |
++ c->ifa_addr->sa_family != ai_family || |
53 |
++ !mdns_is_interface_valuable(c)) |
54 |
+ continue; |
55 |
+ memcpy(intfs, c->ifa_addr, sizeof(*intfs)); |
56 |
+ intfs++; |
57 |
|
58 |
diff --git a/net-libs/libmicrodns/libmicrodns-0.0.9.ebuild b/net-libs/libmicrodns/libmicrodns-0.0.9.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..bc70a4e7eb8 |
61 |
--- /dev/null |
62 |
+++ b/net-libs/libmicrodns/libmicrodns-0.0.9.ebuild |
63 |
@@ -0,0 +1,31 @@ |
64 |
+# Copyright 1999-2018 Gentoo Foundation |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=6 |
68 |
+ |
69 |
+inherit autotools |
70 |
+ |
71 |
+DESCRIPTION="Minimal mDNS resolver (and announcer) library" |
72 |
+HOMEPAGE="https://videolabs.io" |
73 |
+ |
74 |
+if [[ ${PV} == 9999 ]]; then |
75 |
+ inherit git-r3 |
76 |
+ EGIT_REPO_URI="https://github.com/videolabs/${PN}" |
77 |
+else |
78 |
+ SRC_URI="https://github.com/videolabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
79 |
+ KEYWORDS="~amd64 ~x86" |
80 |
+fi |
81 |
+ |
82 |
+LICENSE="LGPL-2.1" |
83 |
+SLOT="0" |
84 |
+IUSE="" |
85 |
+ |
86 |
+DEPEND="" |
87 |
+RDEPEND="${DEPEND}" |
88 |
+ |
89 |
+PATCHES=( "${FILESDIR}/${PN}-0.0.9-null-addr-fix.patch" ) |
90 |
+ |
91 |
+src_prepare(){ |
92 |
+ default |
93 |
+ eautoreconf |
94 |
+} |
95 |
|
96 |
diff --git a/net-libs/libmicrodns/libmicrodns-9999.ebuild b/net-libs/libmicrodns/libmicrodns-9999.ebuild |
97 |
new file mode 100644 |
98 |
index 00000000000..b6c7ba5a1eb |
99 |
--- /dev/null |
100 |
+++ b/net-libs/libmicrodns/libmicrodns-9999.ebuild |
101 |
@@ -0,0 +1,29 @@ |
102 |
+# Copyright 1999-2018 Gentoo Foundation |
103 |
+# Distributed under the terms of the GNU General Public License v2 |
104 |
+ |
105 |
+EAPI=6 |
106 |
+ |
107 |
+inherit autotools |
108 |
+ |
109 |
+DESCRIPTION="Minimal mDNS resolver (and announcer) library" |
110 |
+HOMEPAGE="https://videolabs.io" |
111 |
+ |
112 |
+if [[ ${PV} == 9999 ]]; then |
113 |
+ inherit git-r3 |
114 |
+ EGIT_REPO_URI="https://github.com/videolabs/${PN}" |
115 |
+else |
116 |
+ SRC_URI="https://github.com/videolabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
117 |
+ KEYWORDS="~amd64 ~x86" |
118 |
+fi |
119 |
+ |
120 |
+LICENSE="LGPL-2.1" |
121 |
+SLOT="0" |
122 |
+IUSE="" |
123 |
+ |
124 |
+DEPEND="" |
125 |
+RDEPEND="${DEPEND}" |
126 |
+ |
127 |
+src_prepare(){ |
128 |
+ default |
129 |
+ eautoreconf |
130 |
+} |
131 |
|
132 |
diff --git a/net-libs/libmicrodns/metadata.xml b/net-libs/libmicrodns/metadata.xml |
133 |
new file mode 100644 |
134 |
index 00000000000..f6508cd8785 |
135 |
--- /dev/null |
136 |
+++ b/net-libs/libmicrodns/metadata.xml |
137 |
@@ -0,0 +1,14 @@ |
138 |
+<?xml version="1.0" encoding="UTF-8"?> |
139 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
140 |
+<pkgmetadata> |
141 |
+ <maintainer type="person"> |
142 |
+ <email>NP-Hardass@g.o</email> |
143 |
+ <name>NP-Hardass</name> |
144 |
+ </maintainer> |
145 |
+ <longdescription lang="en"> |
146 |
+ Minimal mDNS resolver (and announcer) library |
147 |
+ </longdescription> |
148 |
+ <upstream> |
149 |
+ <remote-id type="github">videolabs/libmicrodns</remote-id> |
150 |
+ </upstream> |
151 |
+</pkgmetadata> |