ports/134594: [PATCH] security/pwman3: use cElementTree and sqlite comes with Python 2.5

Li-Wen Hsu lwhsu at FreeBSD.org
Sun May 17 03:00:09 UTC 2009


>Number:         134594
>Category:       ports
>Synopsis:       [PATCH] security/pwman3: use cElementTree and sqlite comes with Python 2.5
>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 May 17 03:00:08 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Li-Wen Hsu
>Release:        FreeBSD 7.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD.cs.nctu.edu.tw 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Thu May  7 22:34:33 CST
>Description:
Changing depends to cElementTree and sqlite comes with Python 2.5 .

Port maintainer (yarodin at gmail.com) is cc'd.

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

--- pwman3-0.0.6_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/pwman3/Makefile,v
retrieving revision 1.1
diff -u -u -r1.1 Makefile
--- Makefile	6 May 2008 03:09:35 -0000	1.1
+++ Makefile	17 May 2009 02:35:18 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	pwman3
 PORTVERSION=	0.0.6
+PORTREVISION=	1
 CATEGORIES=	security python
 MASTER_SITES=	http://pwman.bleurgh.com/~ivan/pwman3/source/ \
 		http://source.antisupport.com/pwman3/
@@ -15,12 +16,17 @@
 MAINTAINER=	yarodin at gmail.com
 COMMENT=	Console password management application with sql storage
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycrypto>=2.0:${PORTSDIR}/security/py-pycrypto \
-		${PYTHON_PKGNAMEPREFIX}cElementTree>=1.0.5:${PORTSDIR}/devel/py-celementtree \
-		${PYTHON_PKGNAMEPREFIX}pysqlite>=2.0.5:${PORTSDIR}/databases/py-pysqlite23
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycrypto>=2.0:${PORTSDIR}/security/py-pycrypto
 
 USE_PYTHON=		2.5+
 USE_PYDISTUTILS=	yes
 PYDISTUTILS_PKGNAME=	Pwman3
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+	${REINPLACE_CMD} -e s,cElementTree,xml.etree.cElementTree, ${WRKSRC}/pwman/exchange/exporter.py
+	${REINPLACE_CMD} -e s,cElementTree,xml.etree.cElementTree, ${WRKSRC}/pwman/exchange/importer.py
+	${REINPLACE_CMD} -e s,pysqlite2,sqlite3, ${WRKSRC}/pwman/data/drivers/sqlite.py
+
+.include <bsd.port.post.mk>
--- pwman3-0.0.6_1.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list