summaryrefslogtreecommitdiff
path: root/net-libs/libupnp
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 /net-libs/libupnp
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/libupnp')
-rw-r--r--net-libs/libupnp/Manifest14
-rw-r--r--net-libs/libupnp/files/libupnp-1.6.19-docs-install.patch13
-rw-r--r--net-libs/libupnp/files/libupnp-1.6.21-cflags.patch30
-rw-r--r--net-libs/libupnp/files/libupnp-1.8.0-docs-install.patch13
-rw-r--r--net-libs/libupnp/libupnp-1.6.21.ebuild47
-rw-r--r--net-libs/libupnp/libupnp-1.6.22.ebuild47
-rw-r--r--net-libs/libupnp/libupnp-1.8.1.ebuild47
-rw-r--r--net-libs/libupnp/libupnp-1.8.2.ebuild70
-rw-r--r--net-libs/libupnp/metadata.xml21
9 files changed, 302 insertions, 0 deletions
diff --git a/net-libs/libupnp/Manifest b/net-libs/libupnp/Manifest
new file mode 100644
index 000000000000..030b75a0c00c
--- /dev/null
+++ b/net-libs/libupnp/Manifest
@@ -0,0 +1,14 @@
+AUX libupnp-1.6.19-docs-install.patch 387 SHA256 1b7ee5e36e2d53ef0d02b0d703c90f5a8e322d1f1dad6cb36dba4885fd0c2df3 SHA512 b9c3ff0014f3b0d4f62b4b52948356581e09b5beefa548ddbe9a93084d2df0708557c22fafe919c867a9e48e5c19d09bfdded2619c8dde67cc44a3c12721671c WHIRLPOOL dbebe934973aef59038945d2120d98b12c3aed4c2df8ad198ae04ebd0280a2e33b7319cfaf1e6a025ef661a5373ca5b90c0b1033345b956d20fb0efdacb4b043
+AUX libupnp-1.6.21-cflags.patch 905 SHA256 eb13e211b37b11b3ef18a8eb233851cd190a43723378409a752db661e8a12698 SHA512 3ecc83863e4cf35b9f0ba10b7982aaa103bb2eea7e0f256757fc5ef6a912a57dfdc237e6b20f29cc948f38816f1a57aff88aa0da7d7263658f584eb27ef7c8fe WHIRLPOOL 43b098a71a2b69716bde0c079e70f475e9020150106e0f3804c4ef3211f664aaeea0fa770f0fd8d73068d7e6451b2c7dbabab26fd1911c8f919754ef0e8b2a7a
+AUX libupnp-1.8.0-docs-install.patch 403 SHA256 b0c6504e3bdc24f8df4cfbab24f37c759f319759fafce24e5f84b69833cb0bec SHA512 a1157f13933f0cb61a3c256f6a57ee0e415e36f48cf2fabb9c4ae060d91c4a8f6a9f2ed31f5b36a0dbecb3d46b0a051275a597fb8069f43a79d6da6a8207f486 WHIRLPOOL c297905bd9627715567f32e2e8bd220515e51e0d2b3cf755f79d52bdfe495cbda632c786bc5389012c41e26f94961b5f598e5fe6ed9bf65c5141f1bff3750a95
+DIST libupnp-1.6.21.tar.bz2 1245353 SHA256 af3f3c0846a1d75baeadae4aa5a2bda427567e2a1fb4559bf73ccff0a4f9a39b SHA512 65a2989497b941dfa1f7ac09fe44267de4a5231af25a304f0f6e754c7cbb578bdcb3c500188b5ebfbff9f579099db7501817d45e1724ef8e384d6d918bcdcdeb WHIRLPOOL b4869189054ac00d57394e0919ad2f672af64f2c2b0ecc676c2b3fc4a3c22caa25ac38b57bbb5cf1ef12a5857b4cdfd450c6bd5955a5eacaf8bdf95a058c9dab
+DIST libupnp-1.6.22.tar.bz2 1242211 SHA256 0bdfacb7fa8d99b78343b550800ff193264f92c66ef67852f87f042fd1a1ebbc SHA512 abf7265155fb819e971e27dd25fd3f8143c04d6373b1b4a2769de9fadbbd3a012758acda866511a443f7e159b66068d9f7f99072c509a8fa06bcfe1275bdd9af WHIRLPOOL e3bfd207adff942d1a60337fb5ff00d2e4a4d52073724fb19415f14aa2def746706d863360779b00d842756ea6d809d5cf2f3cde910a3863398cbcfe49957bec
+DIST libupnp-1.8.1.tar.gz 1363979 SHA256 0569e6afd979baa4e533312cb682394cea5b2638b8b412623e28943103593ea0 SHA512 7dd90f0c0332e7171d96a37a50223e18d5325ac1dd8dbe04fadac4655ad7c4d8443c52f904aaa35d3f12d2abd9ee2690ba990d0a93b15cbebb4d3de35d25ffe4 WHIRLPOOL 184e8844fab6a7a04d902d77c9b28141cdb15e4026b1b45105aabcf7616c2f6bbffa81fe14a1e6ddcd3f6494d9505f8f2cf190bf00fa341ca7192668e46e732d
+DIST libupnp-1.8.2.tar.gz 1379953 SHA256 438ad86bfd933cb1e9be1c41bf3bd69f049daba11d71bbb5d715336e00106cb4 SHA512 026f2568a1ffa56a3a0ebc823b126dceabb7e821acb6db52fbca02c4c02febd5508cb644cd2ac51f65397c3248a22340b3673069951e97dcdd22d4cc321d4511 WHIRLPOOL f1c1c18300ff597cf57837def8f35289aca7a85fa0e86d8307e3859c8eb55a011bf3c37b372aaebb73c79f95283d0f6964a555ba1353ab28f6c706bbf30fd8ad
+EBUILD libupnp-1.6.21.ebuild 1055 SHA256 ccc52515669241eadf6ad2f23a79a946c7273ab068ea61c5d26e0c5f202bb261 SHA512 f2c5bb67af69945c261e8ccce5b0f247e585505924df9c0ad7785dca7febce2a69e1b1e529664530adc9070a8f72b708f6b793904fe325bb836a9c2c261c12f8 WHIRLPOOL adbb541aaf0a8905ca455a7cbc9877a32ac5c04e44e011b256f36685b43ade8410adc982ae051399e1f0a4c8ae729c7ba7da2c5c44d43c1fefeaab06ead70a57
+EBUILD libupnp-1.6.22.ebuild 1063 SHA256 c0628f1097fa9969722d671400dc61f340f8858599e6a66242eb58542da1fb58 SHA512 f0bdabea95e6d138c44747741c136a3baff104e33177495a49c5b2919413d987003cf4c35cdef3e28c932917db2378b6cc31c4ebe439dd5f5b7cc61a3605fda4 WHIRLPOOL ecebb7b8e2ec2aa4b866bf16ccf8e92eea8bb260adb00807c1fd29c56e7883e1de2f637aa88b0102751fa8931394bc9e4119fd0332c03f075dc1643b57233037
+EBUILD libupnp-1.8.1.ebuild 1129 SHA256 6f5f255e2660f3fcbe9b7c9ea27de850180cef3fe9021b03f7bc8551726d20a4 SHA512 9537a040587e344cc3f3bd73ca038faa836ed2ecce16efc885d47b7bb61136004d3f5399e5edf404e74f2708e9627ab74f4d0c6344346a3755dc07fd5ae4bca6 WHIRLPOOL 54f27cbbc10fc7c84669e68f0fbb66d7bfeb9dbc4a6e6fe0995a318f0c2fdc7e1d4e10e8f12d21fd43359159abf452610bd24c241744241fa723db59e5317244
+EBUILD libupnp-1.8.2.ebuild 1716 SHA256 cfbd4929b3ef7fce29642ae95df2d1a99e550731e97be2ccce5582148fbfc23f SHA512 2ea16eccfb1e22f4d4f306dd9b5301b2fbf5b913a4e9ac142b7a7412c83e3621f0ad22a74107886e8cef7d58e5353796c478dafad7ac666050f1ca9cf08e55bc WHIRLPOOL c3a73feca1b35e88dbc4645813828dffdd02fd76c1838c246704d7cd122b8f788a4f80c3cc5e262965a9d177659c3f71940fe072b62249c03d0d0e319a9319c4
+MISC ChangeLog 4185 SHA256 faa1750cd488a7bdfd614d1668ef98c68a1564d0c28e0060de7f07373a15ba75 SHA512 0e0ca25d7b8124dc60c82fa6d0e61e2dda24658b8a7941f1a737e98b23c549cf92675143c05ab368c41151775db4fcc90c0436f9fcc8b28ee899152191571467 WHIRLPOOL 9787e6ef6274778d46b70508a3dfa887afed3e80fb0c9b8bd46ecd6620ba28d38541b3d6f8518e943c449c64d3f27b6ed5f6f41f951bd25468dcc93f03245863
+MISC ChangeLog-2015 9755 SHA256 6d8abacf97b102d6a9cc746dcc06097bb2eb9a5f08b524ecf053171e12d53504 SHA512 90fd100a8e5a3f66ccaf9a76ec4656ee820827ad9169d9e6cf232d3da1fe09aa09a556fff346e32e47a403b1819cbd1e7a4c2c79190e2d94daae389c3cc45837 WHIRLPOOL f4ae11cd2a9663ddd2e42337e571fda8b5eeded762d2b5c1783a3fc2e9a4c6001ef6381332f56ce18d835b601173d00cb6328a423ee5d9380c92d860b9a6009e
+MISC metadata.xml 756 SHA256 3b6482f0c2614ca39835d7b256e8d9d5eb3a0bb9a40c9a5f02e7377932b4e684 SHA512 66975c44b2ee5589c63f31a0033bfe04897b651ffc7e71188e50ec653e003322647346ea873ac7387ef0b2f660e82bfe02ba01ef7d0d124b37b22fabe927b2e4 WHIRLPOOL 8f316cc0017206cff2d14890e6319a3779778952c6f5cbfb260c47ec2ce7ee2a9ced1afa9e8d02bf25a549060574bd5f5a04444551f4e9458c539cb764e8bf33
diff --git a/net-libs/libupnp/files/libupnp-1.6.19-docs-install.patch b/net-libs/libupnp/files/libupnp-1.6.19-docs-install.patch
new file mode 100644
index 000000000000..622f58a9003f
--- /dev/null
+++ b/net-libs/libupnp/files/libupnp-1.6.19-docs-install.patch
@@ -0,0 +1,13 @@
+--- libupnp-1.6.19/upnp/sample/Makefile.am.orig 2013-11-15 19:50:02.000000000 +0400
++++ libupnp-1.6.19/upnp/sample/Makefile.am 2016-06-03 20:30:43.545081667 +0300
+@@ -65,8 +65,8 @@
+ if WITH_DOCUMENTATION
+ examplesdir = $(docdir)/examples
+ examples_DATA = \
+- $(tv_ctrlpt_SOURCES) \
+- $(tv_device_SOURCES)
++ $(sort $(tv_ctrlpt_SOURCES) \
++ $(tv_device_SOURCES) )
+ endif
+
+ EXTRA_DIST = \
diff --git a/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch b/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch
new file mode 100644
index 000000000000..3eaf66e80413
--- /dev/null
+++ b/net-libs/libupnp/files/libupnp-1.6.21-cflags.patch
@@ -0,0 +1,30 @@
+don't append flags like -O0/-Os which clobber the user's settings
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -539,25 +539,6 @@ AC_PROG_EGREP
+ echo "--------------------- Default compilation flags -------------------------------"
+ echo host is $host
+ echo host_os is $host_os
+-case $host_os in
+-freebsd*)
+- echo "Using FreeBSD specific compiler settings"
+- # Put FreeBSD specific compiler flags here
+- ;;
+-*)
+- echo "Using non-specific system compiler settings"
+- if test x"$enable_debug" = xyes; then
+- # AC_PROG_CC already sets CFLAGS to "-g -O2" by default,
+- # but only if CFLAGS was not previously set.
+- #:
+- # Use -O0 in debug so that variables do not get optimized out
+- AX_CFLAGS_GCC_OPTION([-O0, -g])
+- else
+- # add optimise for size
+- AX_CFLAGS_GCC_OPTION([-Os])
+- fi
+- ;;
+-esac
+
+ AX_CFLAGS_WARN_ALL
+ echo "-------------------------------------------------------------------------------"
diff --git a/net-libs/libupnp/files/libupnp-1.8.0-docs-install.patch b/net-libs/libupnp/files/libupnp-1.8.0-docs-install.patch
new file mode 100644
index 000000000000..f0fbd04fc353
--- /dev/null
+++ b/net-libs/libupnp/files/libupnp-1.8.0-docs-install.patch
@@ -0,0 +1,13 @@
+--- libupnp-1.6.19/upnp/sample/Makefile.am.orig 2013-11-15 19:50:02.000000000 +0400
++++ libupnp-1.6.19/upnp/sample/Makefile.am 2016-06-03 20:30:43.545081667 +0300
+@@ -65,8 +65,8 @@
+ if WITH_DOCUMENTATION
+ examplesdir = $(docdir)/examples
+ examples_DATA = \
+- $(tv_ctrlpt_1_8_SOURCES) \
+- $(tv_device_1_8_SOURCES)
++ $(sort $(tv_ctrlpt_1_8_SOURCES) \
++ $(tv_device_1_8_SOURCES) )
+ endif
+
+ EXTRA_DIST = \
diff --git a/net-libs/libupnp/libupnp-1.6.21.ebuild b/net-libs/libupnp/libupnp-1.6.21.ebuild
new file mode 100644
index 000000000000..5bb81687c448
--- /dev/null
+++ b/net-libs/libupnp/libupnp-1.6.21.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="An Portable Open Source UPnP Development Kit"
+HOMEPAGE="http://pupnp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pupnp/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux"
+IUSE="debug doc ipv6 static-libs"
+
+DOCS="NEWS README ChangeLog"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.19-docs-install.patch
+ "${FILESDIR}"/${PN}-1.6.21-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # fix tests
+ chmod +x ixml/test/test_document.sh || die
+
+ eautoreconf
+}
+
+src_configure() {
+ use x86-fbsd && append-flags -O1
+ # w/o docdir to avoid sandbox violations
+ econf \
+ $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable static-libs static) \
+ $(use_with doc documentation "${EPREFIX}/usr/share/doc/${PF}")
+}
+
+src_install () {
+ default
+ dobin upnp/sample/.libs/tv_{combo,ctrlpt,device}
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libupnp/libupnp-1.6.22.ebuild b/net-libs/libupnp/libupnp-1.6.22.ebuild
new file mode 100644
index 000000000000..e9fff2d786a0
--- /dev/null
+++ b/net-libs/libupnp/libupnp-1.6.22.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="An Portable Open Source UPnP Development Kit"
+HOMEPAGE="http://pupnp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pupnp/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux"
+IUSE="debug doc ipv6 static-libs"
+
+DOCS="NEWS ChangeLog"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.19-docs-install.patch
+ "${FILESDIR}"/${PN}-1.6.21-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # fix tests
+ chmod +x ixml/test/test_document.sh || die
+
+ eautoreconf
+}
+
+src_configure() {
+ use x86-fbsd && append-flags -O1
+ # w/o docdir to avoid sandbox violations
+ econf \
+ $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable static-libs static) \
+ $(use_with doc documentation "${EPREFIX}/usr/share/doc/${PF}")
+}
+
+src_install () {
+ default
+ dobin upnp/sample/.libs/tv_{combo,ctrlpt,device}
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libupnp/libupnp-1.8.1.ebuild b/net-libs/libupnp/libupnp-1.8.1.ebuild
new file mode 100644
index 000000000000..908431b950b8
--- /dev/null
+++ b/net-libs/libupnp/libupnp-1.8.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools vcs-snapshot
+
+DESCRIPTION="An Portable Open Source UPnP Development Kit"
+HOMEPAGE="http://pupnp.sourceforge.net/"
+SRC_URI="https://github.com/mrjimenez/pupnp/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="1.8"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug doc reuseaddr ipv6 static-libs"
+
+DOCS="NEWS README.md ChangeLog"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0-docs-install.patch
+ "${FILESDIR}"/${PN}-1.6.21-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # fix tests
+ chmod +x ixml/test/test_document.sh || die
+
+ eautoreconf
+}
+
+src_configure() {
+ use x86-fbsd && append-flags -O1
+ # w/o docdir to avoid sandbox violations
+ econf $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable reuseaddr) \
+ $(use_enable static-libs static) \
+ $(use_with doc documentation "${EPREFIX}/usr/share/doc/${PF}")
+}
+
+src_install () {
+ default
+ dobin upnp/sample/.libs/tv_{combo,ctrlpt,device}-1.8
+ use static-libs || prune_libtool_files
+}
diff --git a/net-libs/libupnp/libupnp-1.8.2.ebuild b/net-libs/libupnp/libupnp-1.8.2.ebuild
new file mode 100644
index 000000000000..4e724b79fc2f
--- /dev/null
+++ b/net-libs/libupnp/libupnp-1.8.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools vcs-snapshot
+
+DESCRIPTION="An Portable Open Source UPnP Development Kit"
+HOMEPAGE="http://pupnp.sourceforge.net/"
+SRC_URI="https://github.com/mrjimenez/pupnp/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="1.8"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="blocking-tcp debug doc ipv6 +reuseaddr samples static-libs"
+
+DOCS="NEWS README.md ChangeLog"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.19-docs-install.patch
+ "${FILESDIR}"/${PN}-1.6.21-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # fix tests
+ chmod +x ixml/test/test_document.sh || die
+
+ eautoreconf
+}
+
+src_configure() {
+ use x86-fbsd && append-flags -O1
+ # w/o docdir to avoid sandbox violations
+ econf $(use_enable debug) \
+ $(use_enable blocking-tcp blocking-tcp-connections) \
+ $(use_enable ipv6) \
+ $(use_enable reuseaddr) \
+ $(use_enable static-libs static) \
+ $(use_enable samples) \
+ $(use_with doc documentation "${EPREFIX}/usr/share/doc/${PF}")
+}
+
+src_install () {
+ default
+
+ use static-libs || prune_libtool_files
+
+ # Slot samples
+ if $(use samples); then
+ for bin in combo ctrlpt device ; do
+ newbin "upnp/sample/.libs/tv_$bin" "tv_$bin-${SLOT}"
+ done
+ fi
+
+ # Slot includes
+ cd "${D}/usr/include" || die
+ mv upnp "upnp-${SLOT}" || die
+
+ # Slot pkgconfig
+ cd "${D}/usr/$(get_libdir)/pkgconfig" || die
+ mv libupnp.pc "libupnp-${SLOT}.pc" || die
+ sed -i "s#/upnp#/upnp-${SLOT}#" "libupnp-${SLOT}.pc" || die
+
+ # Slot symlinks
+ cd "${D}/usr/$(get_libdir)" || die
+ mv libupnp.so "libupnp-${SLOT}.so" || die
+ mv libixml.so "libixml-${SLOT}.so" || die
+}
diff --git a/net-libs/libupnp/metadata.xml b/net-libs/libupnp/metadata.xml
new file mode 100644
index 000000000000..53c42dd90258
--- /dev/null
+++ b/net-libs/libupnp/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>thev00d00@gentoo.org</email>
+ <name>Ian Whyman</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>gurligebis@gentoo.org</email>
+ <name>Bjarke Istrup Pedersen</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pupnp</remote-id>
+ <remote-id type="github">mrjimenez/pupnp</remote-id>
+ </upstream>
+ <use>
+ <flag name="reuseaddr">Allow clean restarts by binding the socket with SO_REUSEADDR.</flag>
+ <flag name="blocking-tcp">Do not use async socket calls.</flag>
+ <flag name="samples">Install sample applications.</flag>
+ </use>
+</pkgmetadata>