1 |
commit: 8c7794d8efcacfe78973cccb663afb2c8f51c623 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 29 06:33:31 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 29 07:03:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c7794d8 |
7 |
|
8 |
net-libs/miniupnpc: Bump to 2.2.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
net-libs/miniupnpc/Manifest | 2 + |
13 |
.../miniupnpc/files/miniupnpc-2.2.3-makefile.patch | 54 +++++++++++++++++++ |
14 |
net-libs/miniupnpc/miniupnpc-2.2.3.ebuild | 63 ++++++++++++++++++++++ |
15 |
3 files changed, 119 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest |
18 |
index 3f976d74b72..05cde009b8f 100644 |
19 |
--- a/net-libs/miniupnpc/Manifest |
20 |
+++ b/net-libs/miniupnpc/Manifest |
21 |
@@ -2,3 +2,5 @@ DIST miniupnpc-2.2.1.tar.gz 99595 BLAKE2B 07736eb15a985096178273c4578bb3f0cbf32a |
22 |
DIST miniupnpc-2.2.1.tar.gz.sig 543 BLAKE2B 19da35662cf75d47de9cd16d3d8f767119e3dc04370801bf8893a17cd0af47072456b75bc3415b587371972a7c5c36623665391bbf4b9c655d1da3c0e5b8beb7 SHA512 8b5d41556c66e6330673a63eb3be2397cb057c37f648d950e8dfa0bb00e646f343cfbcbd11a6547198d4fa6b1ca2a82b46724e284ce76e96d96ad6b3b5b41c3f |
23 |
DIST miniupnpc-2.2.2.tar.gz 100008 BLAKE2B 76bd18ad455be91a2b7680f59f59828a592077f3694ea5ed0f42222370d9e3d0e328dac1a6d530abcf28586384369d7c858c32fc3105f79cacad762ac5bc70fc SHA512 d322ae2a99faf01bee52f50a40d4bc2150c67a2f7e15b6078fe92faf2aecfe7ce10bd98cef3d94a77f6f7d1f7d8451cf4cdbf6fe11c9e7c1854ee066300b0116 |
24 |
DIST miniupnpc-2.2.2.tar.gz.sig 543 BLAKE2B e1089a0c3d937cb4e52b511ed0cc7b43a686a6c08df5ce5e008f1f5ec892b6a4f9f1c45ad4eb252c2aa57fd932a5c5dd4300adfdcee145f27cae51469f244179 SHA512 525f4b5c60ca1375df8a05cfffec3cf8e99ae070510621de2871926b6e84faec28cceb4feb983380e12b7271880872083ea4f4080c74572697476bb7ae795cf7 |
25 |
+DIST miniupnpc-2.2.3.tar.gz 101360 BLAKE2B d2a7f64d56be524c5c4aadfecd40da4e1ad040fd7eab64be5b5716cb06047e86e3ed6a9c17f697fd3210af0fb0a6ae032b6ef0a5c1f0d96a2e185db97b0d06e8 SHA512 8b9555d336d5dfe8017a16727f964cddacb3f2bf3528fe3dd2416480da5763b24e1740345e470f2123c170d79d88444e41dbbce4536e6069590925e4805bc5ee |
26 |
+DIST miniupnpc-2.2.3.tar.gz.sig 543 BLAKE2B d10bcb765e0d7a1eb68dc6269080b71535fced443e801a09677872bc498c866a02f22d851db963fb126331f28d2314542507713f514560d9d6eca2262287dc8b SHA512 636ad425b430629ee91b2755b543e9754aa88e243972f47839a2ad958757a12ff598f962e9328e5ad0fa3e0b2f895854c9cb3ca099048e7c132c8ce27806986e |
27 |
|
28 |
diff --git a/net-libs/miniupnpc/files/miniupnpc-2.2.3-makefile.patch b/net-libs/miniupnpc/files/miniupnpc-2.2.3-makefile.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..7578bc3f881 |
31 |
--- /dev/null |
32 |
+++ b/net-libs/miniupnpc/files/miniupnpc-2.2.3-makefile.patch |
33 |
@@ -0,0 +1,54 @@ |
34 |
+From ed1dc4bb5cdc4a53963f3eb01089289e30acc5a3 Mon Sep 17 00:00:00 2001 |
35 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
36 |
+Date: Wed, 29 Sep 2021 08:28:27 +0200 |
37 |
+Subject: [PATCH] Makefile: fix install rules to account for $(BUILD) |
38 |
+ |
39 |
+Fix missing references to $(BUILD) in the install rules, as well |
40 |
+as incorrect shared library symlink name. Otherwise, the 'install' |
41 |
+phase fails either being unable to find files: |
42 |
+ |
43 |
+ make: *** No rule to make target 'miniupnpc.pc', needed by 'install'. Stop. |
44 |
+ |
45 |
+or trying to create the symlink in the wrong subdirectory: |
46 |
+ |
47 |
+ ln: failed to create symbolic link '/tmp/z/usr/lib/build/libminiupnpc.so': No such file or directory |
48 |
+--- |
49 |
+ miniupnpc/Makefile | 10 +++++----- |
50 |
+ 1 file changed, 5 insertions(+), 5 deletions(-) |
51 |
+ |
52 |
+diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile |
53 |
+index 4563b28..11a17f9 100644 |
54 |
+--- a/Makefile |
55 |
++++ b/Makefile |
56 |
+@@ -162,7 +162,7 @@ PKGCONFIGDIR = $(INSTALLDIRLIB)/pkgconfig |
57 |
+ |
58 |
+ FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES) |
59 |
+ ifeq (, $(findstring amiga, $(OS))) |
60 |
+-FILESTOINSTALL += $(SHAREDLIBRARY) miniupnpc.pc |
61 |
++FILESTOINSTALL += $(SHAREDLIBRARY) $(BUILD)/miniupnpc.pc |
62 |
+ endif |
63 |
+ |
64 |
+ |
65 |
+@@ -251,15 +251,15 @@ install: updateversion $(FILESTOINSTALL) |
66 |
+ $(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB) |
67 |
+ ifeq (, $(findstring amiga, $(OS))) |
68 |
+ $(INSTALL) -m 644 $(SHAREDLIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/$(SONAME) |
69 |
+- ln -fs $(SONAME) $(DESTDIR)$(INSTALLDIRLIB)/$(SHAREDLIBRARY) |
70 |
++ ln -fs $(SONAME) $(DESTDIR)$(INSTALLDIRLIB)/$(notdir $(SHAREDLIBRARY)) |
71 |
+ $(INSTALL) -d $(DESTDIR)$(PKGCONFIGDIR) |
72 |
+- $(INSTALL) -m 644 miniupnpc.pc $(DESTDIR)$(PKGCONFIGDIR) |
73 |
++ $(INSTALL) -m 644 $(BUILD)/miniupnpc.pc $(DESTDIR)$(PKGCONFIGDIR) |
74 |
+ endif |
75 |
+ $(INSTALL) -d $(DESTDIR)$(INSTALLDIRBIN) |
76 |
+ ifneq (, $(findstring amiga, $(OS))) |
77 |
+- $(INSTALL) -m 755 upnpc-static $(DESTDIR)$(INSTALLDIRBIN)/upnpc |
78 |
++ $(INSTALL) -m 755 $(BUILD)/upnpc-static $(DESTDIR)$(INSTALLDIRBIN)/upnpc |
79 |
+ else |
80 |
+- $(INSTALL) -m 755 upnpc-shared $(DESTDIR)$(INSTALLDIRBIN)/upnpc |
81 |
++ $(INSTALL) -m 755 $(BUILD)/upnpc-shared $(DESTDIR)$(INSTALLDIRBIN)/upnpc |
82 |
+ endif |
83 |
+ $(INSTALL) -m 755 external-ip.sh $(DESTDIR)$(INSTALLDIRBIN)/external-ip |
84 |
+ ifeq (, $(findstring amiga, $(OS))) |
85 |
+-- |
86 |
+2.33.0 |
87 |
+ |
88 |
|
89 |
diff --git a/net-libs/miniupnpc/miniupnpc-2.2.3.ebuild b/net-libs/miniupnpc/miniupnpc-2.2.3.ebuild |
90 |
new file mode 100644 |
91 |
index 00000000000..d7358d0677d |
92 |
--- /dev/null |
93 |
+++ b/net-libs/miniupnpc/miniupnpc-2.2.3.ebuild |
94 |
@@ -0,0 +1,63 @@ |
95 |
+# Copyright 1999-2021 Gentoo Authors |
96 |
+# Distributed under the terms of the GNU General Public License v2 |
97 |
+ |
98 |
+EAPI=8 |
99 |
+ |
100 |
+inherit toolchain-funcs verify-sig |
101 |
+ |
102 |
+DESCRIPTION="UPnP client library and a simple UPnP client" |
103 |
+HOMEPAGE="http://miniupnp.free.fr/" |
104 |
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz |
105 |
+ verify-sig? ( http://miniupnp.free.fr/files/${P}.tar.gz.sig )" |
106 |
+ |
107 |
+LICENSE="BSD" |
108 |
+SLOT="0/17" |
109 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
110 |
+IUSE="ipv6 kernel_linux" |
111 |
+ |
112 |
+RDEPEND="" |
113 |
+BDEPEND=" |
114 |
+ kernel_linux? ( sys-apps/lsb-release sys-apps/which ) |
115 |
+ verify-sig? ( app-crypt/openpgp-keys-miniupnp )" |
116 |
+ |
117 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/miniupnp.asc |
118 |
+ |
119 |
+src_prepare() { |
120 |
+ local PATCHES=( |
121 |
+ "${FILESDIR}"/${P}-makefile.patch |
122 |
+ ) |
123 |
+ default |
124 |
+ |
125 |
+ local exprs=( |
126 |
+ # These bins are not installed, upnpc-static requires building static lib |
127 |
+ -e '/EXECUTABLES =/s/ upnpc-static listdevices//' |
128 |
+ # Prevent gzipping manpage. |
129 |
+ -e '/gzip/d' |
130 |
+ # Disable installing the static library |
131 |
+ -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' |
132 |
+ -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d' |
133 |
+ ) |
134 |
+ sed -i "${exprs[@]}" Makefile || die |
135 |
+} |
136 |
+ |
137 |
+# Upstream cmake causes more trouble than it fixes, |
138 |
+# so we'll just stay with the Makefile for now. |
139 |
+ |
140 |
+src_compile() { |
141 |
+ tc-export CC AR |
142 |
+ emake build/upnpc-shared |
143 |
+} |
144 |
+ |
145 |
+src_test() { |
146 |
+ emake -j1 HAVE_IPV6=$(usex ipv6) check |
147 |
+} |
148 |
+ |
149 |
+src_install() { |
150 |
+ emake \ |
151 |
+ DESTDIR="${D}" \ |
152 |
+ PREFIX="${EPREFIX}/usr" \ |
153 |
+ INSTALLDIRLIB="${EPREFIX}/usr/$(get_libdir)" \ |
154 |
+ install |
155 |
+ |
156 |
+ dodoc README Changelog.txt |
157 |
+} |