ports/137612: [new port] net/py-miniupnpc, slave port of net/miniupnpc
Anonymous
swell.k at gmail.com
Sun Aug 9 20:00:09 UTC 2009
>Number: 137612
>Category: ports
>Synopsis: [new port] net/py-miniupnpc, slave port of net/miniupnpc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Aug 09 20:00:08 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD 8.0-BETA2 #0 r196037M: Sun Aug 2 15:30:58 UTC 2009 root at luffy:/usr/obj/usr/src/sys/PHOENIX amd64
>Description:
>How-To-Repeat:
Run ${WRKSRC}/pymoduletest.py to test the module.
>Fix:
--- py-miniupnpc.diff begins here ---
Index: net/Makefile
===================================================================
RCS file: /home/csup/ports/net/Makefile,v
retrieving revision 1.2132
diff -u -p -r1.2132 Makefile
--- net/Makefile 8 Aug 2009 16:34:07 -0000 1.2132
+++ net/Makefile 9 Aug 2009 19:26:44 -0000
@@ -772,6 +772,7 @@
SUBDIR += py-libdnet
SUBDIR += py-libnet
SUBDIR += py-medusa
+ SUBDIR += py-miniupnpc
SUBDIR += py-mp-random
SUBDIR += py-netaddr
SUBDIR += py-netifaces
Index: net/miniupnpc/Makefile
===================================================================
RCS file: /home/csup/ports/net/miniupnpc/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- net/miniupnpc/Makefile 3 Aug 2009 02:03:08 -0000 1.7
+++ net/miniupnpc/Makefile 9 Aug 2009 19:32:02 -0000
@@ -11,15 +11,28 @@ CATEGORIES= net
MASTER_SITES= http://miniupnp.free.fr/files/
MAINTAINER= dinoex at FreeBSD.org
-COMMENT= UPnP IGD client lightweight library
+COMMENT?= UPnP IGD client lightweight library
+HAS_CONFIGURE= yes
+CONFIGURE_SCRIPT= updateminiupnpcstrings.sh
USE_GMAKE= yes
MAKE_ENV+= INSTALLPREFIX=${PREFIX}
CFLAGS+= -fPIC
USE_LDCONFIG= yes
+
+.include <bsd.port.pre.mk>
+
+.if !defined(SLAVE_PORT)
MAN3= miniupnpc.3
+.endif
+
+.if defined(WITH_DEBUG)
+CFLAGS+= -DDEBUG
+.endif
+.if !defined(SLAVE_PORT)
post-install:
${INSTALL_MAN} ${WRKSRC}/man3/miniupnpc.3 ${PREFIX}/man/man3/
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: net/miniupnpc/files/patch-updateminiupnpcstrings.sh
===================================================================
RCS file: net/miniupnpc/files/patch-updateminiupnpcstrings.sh
diff -N net/miniupnpc/files/patch-updateminiupnpcstrings.sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ net/miniupnpc/files/patch-updateminiupnpcstrings.sh 9 Aug 2009 19:38:01 -0000
@@ -0,0 +1,11 @@
+--- updateminiupnpcstrings.sh~
++++ updateminiupnpcstrings.sh
+@@ -27,7 +27,7 @@ fi
+
+ echo "Detected OS [$OS_NAME] version [$OS_VERSION]"
+
+-EXPR="s/OS_STRING\s\".*\"/OS_STRING \"${OS_NAME}\/${OS_VERSION}\"/"
++EXPR="/OS_STRING/s|\".*\"|\"${OS_NAME}/${OS_VERSION}\"|"
+ #echo $EXPR
+ echo "Backuping $FILE to $FILE.bak."
+ cp $FILE $FILE.bak
Index: net/py-miniupnpc/Makefile
===================================================================
RCS file: net/py-miniupnpc/Makefile
diff -N net/py-miniupnpc/Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ net/py-miniupnpc/Makefile 9 Aug 2009 19:31:42 -0000
@@ -0,0 +1,22 @@
+# New ports collection makefile for: py-miniupnpc
+# Date created: 9 Aug 2009
+# Whom: Anonymous
+#
+# $FreeBSD$
+#
+
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+COMMENT= Python module for miniupnpc
+
+BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/net/miniupnpc:build
+
+MASTERDIR= ${.CURDIR}/../../net/miniupnpc
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+
+WRKDIR= ${WRKDIRPREFIX}${MASTERDIR}/work
+PLIST= ${.CURDIR}/pkg-plist
+
+.include "${MASTERDIR}/Makefile"
Index: net/py-miniupnpc/pkg-plist
===================================================================
RCS file: net/py-miniupnpc/pkg-plist
diff -N net/py-miniupnpc/pkg-plist
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ net/py-miniupnpc/pkg-plist 9 Aug 2009 19:03:12 -0000
@@ -0,0 +1 @@
+%%PYTHON_SITELIBDIR%%/miniupnpc.so
--- py-miniupnpc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list