summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-07-22 18:45:31 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-07-22 18:45:31 +0000
commitd7a8ca495d03c098d9bdcfb64149226e143f4150 (patch)
tree0127709c002c3c323496e9784925c0eaddbb8077 /net-libs
parentBump for #349283, remove old (diff)
downloadgentoo-2-d7a8ca495d03c098d9bdcfb64149226e143f4150.tar.gz
gentoo-2-d7a8ca495d03c098d9bdcfb64149226e143f4150.tar.bz2
gentoo-2-d7a8ca495d03c098d9bdcfb64149226e143f4150.zip
Initial commit to satisfy tor's net-pmp USE flag
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libnatpmp/ChangeLog8
-rw-r--r--net-libs/libnatpmp/files/respect-FLAGS.patch31
-rw-r--r--net-libs/libnatpmp/libnatpmp-20110715.ebuild27
-rw-r--r--net-libs/libnatpmp/metadata.xml9
4 files changed, 75 insertions, 0 deletions
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 <blueness@gentoo.org>
+ +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/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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+</pkgmetadata>