Date: Wed, 25 Apr 2007 14:56:38 -0300 From: "Alejandro Pulver" <alepulver@FreeBSD.org> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/112131: [PATCH] security/py-m2crypto: use OpenSSL from ports Message-ID: <1177523798.5224@deimos.mars.bsd> Resent-Message-ID: <200704251800.l3PI0Cfq045156@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 112131 >Category: ports >Synopsis: [PATCH] security/py-m2crypto: use OpenSSL from ports >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Apr 25 18:00:11 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Alejandro Pulver >Release: FreeBSD 6.2-RELEASE i386 >Organization: >Environment: System: FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP >Description: - Move DIST_SUBDIR to the frist part of the port. - Use OpenSSL from the ports (see below). The reason is that two Python based Bittorrent clients will be added and need a py-m2crypto module that is only compiled when OpenSSL version is >= 0.9.8 (in FreeBSD 6.2 it's 0.9.7.x). Also there is only one port that needs it (and one that requires the last one), so after the addition of the new ports there would be more chances the user will need the version from ports. Otherwise a check has to be added (probably should be implemented in bsd.openssl.mk), but before bsd.port.pre.mk so variables (PKG_INFO, CUT, etc.) can't be used. >How-To-Repeat: >Fix: --- py-m2crypto.diff begins here --- Index: py-m2crypto/Makefile =================================================================== RCS file: /home/pcvs/ports/security/py-m2crypto/Makefile,v retrieving revision 1.17 diff -u -r1.17 Makefile --- py-m2crypto/Makefile 6 Apr 2007 04:06:31 -0000 1.17 +++ py-m2crypto/Makefile 25 Apr 2007 01:37:37 -0000 @@ -10,16 +10,21 @@ CATEGORIES= security python MASTER_SITES= http://wiki.osafoundation.org/pub/Projects/MeTooCrypto/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DIST_SUBDIR= python MAINTAINER= mnag@FreeBSD.org COMMENT= Crypto and SSL toolkit for Python BUILD_DEPENDS= swig1.3:${PORTSDIR}/devel/swig13 -DIST_SUBDIR= python USE_PYTHON= 2.3+ USE_PYDISTUTILS=yes USE_OPENSSL= yes +WITH_OPENSSL_PORT= yes + +.if defined(WITH_OPENSSL_PORT) +PYDISTUTILS_BUILDARGS= --openssl="${LOCALBASE}" +.endif post-patch: @${REINPLACE_CMD} "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g" ${WRKSRC}/SWIG/Makefile --- py-m2crypto.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1177523798.5224>