From 782bc8ffa929a772b7b975908e8e205a88989f0a Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Fri, 22 Jul 2011 18:45:31 +0000 Subject: [PATCH] Initial commit to satisfy tor's net-pmp USE flag Package-Manager: portage-2.1.10.3/cvs/Linux x86_64 --- net-libs/libnatpmp/ChangeLog | 8 +++++ net-libs/libnatpmp/Manifest | 15 ++++++++++ net-libs/libnatpmp/files/respect-FLAGS.patch | 31 ++++++++++++++++++++ net-libs/libnatpmp/libnatpmp-20110715.ebuild | 27 +++++++++++++++++ net-libs/libnatpmp/metadata.xml | 9 ++++++ 5 files changed, 90 insertions(+) create mode 100644 net-libs/libnatpmp/ChangeLog create mode 100644 net-libs/libnatpmp/Manifest create mode 100644 net-libs/libnatpmp/files/respect-FLAGS.patch create mode 100644 net-libs/libnatpmp/libnatpmp-20110715.ebuild create mode 100644 net-libs/libnatpmp/metadata.xml diff --git a/net-libs/libnatpmp/ChangeLog b/net-libs/libnatpmp/ChangeLog new file mode 100644 index 000000000000..d0c35e003629 --- /dev/null +++ b/net-libs/libnatpmp/ChangeLog @@ -0,0 +1,8 @@ + + +*libnatpmp-20110715 (22 Jul 2011) + + 22 Jul 2011; Anthony G. Basile + +libnatpmp-20110715.ebuild, +files/respect-FLAGS.patch, +metadata.xml: + Initial commit to satisfy tor's net-pmp USE flag + diff --git a/net-libs/libnatpmp/Manifest b/net-libs/libnatpmp/Manifest new file mode 100644 index 000000000000..dd84b65f6688 --- /dev/null +++ b/net-libs/libnatpmp/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX respect-FLAGS.patch 882 RMD160 6f19e7341b35b5b199ef836dbbc1ad9707478a40 SHA1 c46c9449c5f76632fa68c842da736c02bbcc3c20 SHA256 e9c6987c529d9d3a574d0ecf60cd504d5eec7d431a7872d433993d7fd9d57df6 +DIST libnatpmp-20110715.tar.gz 17943 RMD160 df9c656fdaa2782863670c334c840ff2ceab3e6b SHA1 87338bbbe07c627d33c5935b92b9f2c7622fe885 SHA256 853364242b2ad21ada841de484ad702f609d822690816a0c04a324f5963bed58 +EBUILD libnatpmp-20110715.ebuild 646 RMD160 9eac59677dffb78c787bb57bd771514a7ef6abdd SHA1 f9cf1d283c315cbc2fbf2e68044b670aece001a2 SHA256 6fc4442c6c98affd846334bc893f1a94de63a4f1d2e287b7f4bf623805e9fda4 +MISC ChangeLog 217 RMD160 2e7c46b8b6ecbdf8b0cf449fa058e235c5114e63 SHA1 7fff43d420105cbdbef76e77cca96cf12b3b1224 SHA256 197de8b4f419848b97724477c13aa1dce517921e56e663685dbd795bb02d9d2b +MISC metadata.xml 260 RMD160 fbefa5d68419d2a2c7f16e2be1b7d32bdf550da6 SHA1 2ae3d90be714fe96cb79937e2e9ecc1a7b4bf7a1 SHA256 7b301cfccb3820f218f51a1a3acafb5a640a92dff1155c2ad4cc955b6c3351fb +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iEYEAREIAAYFAk4pxVQACgkQl5yvQNBFVTXoTwCfWNCp6pPDyIL4ULq0NniPsBRH +hF0AnREsaR8KtRtWn8bN6TvCfJLHeQpp +=PE5E +-----END PGP SIGNATURE----- diff --git a/net-libs/libnatpmp/files/respect-FLAGS.patch b/net-libs/libnatpmp/files/respect-FLAGS.patch new file mode 100644 index 000000000000..c5b856e01de6 --- /dev/null +++ b/net-libs/libnatpmp/files/respect-FLAGS.patch @@ -0,0 +1,31 @@ +diff -Naur libnatpmp-20110715.orig//Makefile libnatpmp-20110715/Makefile +--- libnatpmp-20110715.orig//Makefile 2011-06-22 18:28:00.000000000 -0400 ++++ libnatpmp-20110715/Makefile 2011-07-22 12:30:48.000000000 -0400 +@@ -4,6 +4,9 @@ + # (c) 2007-2011 Thomas Bernard + # http://miniupnp.free.fr/libnatpmp.html + ++GENTOO_CFLAGS := $(CFLAGS) ++GENTOO_LDFLAGS := $(LDFLAGS) ++ + OS = $(shell uname -s) + CC = gcc + INSTALL = install +@@ -11,6 +14,7 @@ + # APIVERSION is used in soname + APIVERSION = 1 + #LDFLAGS = -Wl,--no-undefined ++LDFLAGS = + CFLAGS = -O -fPIC -Wall -DENABLE_STRNATPMPERR + + LIBOBJS = natpmp.o getgateway.o +@@ -36,6 +40,9 @@ + INSTALLDIRLIB = $(INSTALLPREFIX)/lib + INSTALLDIRBIN = $(INSTALLPREFIX)/bin + ++CFLAGS += $(GENTOO_CFLAGS) ++LDFLAGS += $(GENTOO_LDFLAGS) ++ + .PHONY: all clean depend install cleaninstall installpythonmodule + + all: $(STATICLIB) $(SHAREDLIB) $(EXECUTABLES) diff --git a/net-libs/libnatpmp/libnatpmp-20110715.ebuild b/net-libs/libnatpmp/libnatpmp-20110715.ebuild new file mode 100644 index 000000000000..ce8b6873868c --- /dev/null +++ b/net-libs/libnatpmp/libnatpmp-20110715.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libnatpmp/libnatpmp-20110715.ebuild,v 1.1 2011/07/22 18:45:31 blueness Exp $ + +EAPI=4 + +inherit eutils + +DESCRIPTION="An alternative protocol to UPnP IGD specification." +HOMEPAGE="http://miniupnp.free.fr/nat-pmp.html" +SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/respect-FLAGS.patch +} + +src_install() { + emake PREFIX="${D}" install +} diff --git a/net-libs/libnatpmp/metadata.xml b/net-libs/libnatpmp/metadata.xml new file mode 100644 index 000000000000..52e5c5874f0a --- /dev/null +++ b/net-libs/libnatpmp/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + blueness@gentoo.org + Anthony G. Basile + + -- 2.26.2