ports/107337: [PATCH] net/py-pypcap: Use PYTHON_SITELIBDIR

Li-Wen Hsu lwhsu at lwhsu.org
Fri Dec 29 20:20:21 UTC 2006


>Number:         107337
>Category:       ports
>Synopsis:       [PATCH] net/py-pypcap: Use PYTHON_SITELIBDIR
>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:   Fri Dec 29 20:20:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Li-Wen Hsu
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD jail0.lwhsu.csie.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Dec  6 11:34:36 CST
>Description:
- Use PYTHON_SITELIBDIR, for the user with PYTHON_VERSION != 2.4
- Move plist into Makefile

I am not sure if we should increase PORTREVISION in this case,
since we are unable to build package with PYTHON_VERSION != 2.4,
and the package will not change with PYTHON_VERSION == 2.4.

Removed file(s):
- pkg-plist

Port maintainer (gnn at freebsd.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- py24-pypcap-1.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net/py-pypcap/Makefile /home/lwhsu/ports/net/py-pypcap/Makefile
--- /usr/ports/net/py-pypcap/Makefile	Thu Jul 20 12:21:37 2006
+++ /home/lwhsu/ports/net/py-pypcap/Makefile	Fri Dec 29 19:59:26 2006
@@ -19,6 +19,8 @@
 USE_PYTHON=	yes
 USE_PYTHON_PREFIX=	yes
 
+PLIST_FILES=	%%PYTHON_SITELIBDIR%%/pcap.so
+
 post-patch:
 	${RM} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/pcap.c
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/net/py-pypcap/pkg-plist /home/lwhsu/ports/net/py-pypcap/pkg-plist
--- /usr/ports/net/py-pypcap/pkg-plist	Thu Jul 20 12:21:37 2006
+++ /home/lwhsu/ports/net/py-pypcap/pkg-plist	Thu Jan  1 00:00:00 1970
@@ -1 +0,0 @@
-lib/python2.4/site-packages/pcap.so
--- py24-pypcap-1.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list