0c6b58570c
RESTRICTED= variables that were predicated on former U.S. export regulations. Add CRYPTO=, as necessary, so it's still possible to exclude all crypto packages from a build by setting MKCRYPTO=no (but "lintpkgsrc -R" will no longer catch them). Specifically, - - All packages which set USE_SSL just lose their RESTRICTED variable, since MKCRYPTO responds to USE_SSL directly. - - realplayer7 and ns-flash keep their RESTRICTED, which is based on license terms, but also gain the CRYPTO variable. - - srp-client is now marked broken, since the distfile is evidently no longer available. On this, we're no worse off than before. [We haven't been mirroring the distfile, or testing the build!] - - isakmpd gets CRYPTO for RESTRICTED, but remains broken. - - crack loses all restrictions, as it does not evidently empower a user to utilize strong encryption (working definition: ability to encode a message that requires a secret key plus big number arithmetic to decode).
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2000/09/09 19:40:22 fredb Exp $
|
|
|
|
DISTNAME= pycrypt100
|
|
PKGNAME= py-crypto-1.0.0
|
|
CATEGORIES= security
|
|
MASTER_SITES= ftp://ftp.cwi.nl/pub/pct/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= tsarna@netbsd.org
|
|
HOMEPAGE= http://starship.skyport.net/crew/amk/writing/pct/
|
|
|
|
DEPENDS+= python-1.5.2:../../lang/python
|
|
|
|
CRYPTO= yes
|
|
|
|
WRKSRC= ${WRKDIR}/Extensions/Crypto
|
|
MAKE_FLAGS= 'OPT=${CFLAGS}'
|
|
|
|
INFO_FILES= pct.info
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "vax"
|
|
IGNORE="${PKGNAME} needs dynamic loading"
|
|
.endif
|
|
|
|
post-extract:
|
|
@(cd ${WRKDIR}; tar xf pycrypt.tar)
|
|
|
|
do-configure:
|
|
@(cd ${WRKSRC}; ${PREFIX}/bin/python buildkit)
|
|
${CP} ${PREFIX}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/src
|
|
${CP} ${WRKSRC}/Setup.in ${WRKSRC}/src
|
|
@(cd ${WRKSRC}/src; ${MAKE} -f Makefile.pre.in boot)
|
|
|
|
do-build:
|
|
@(cd ${WRKSRC}/src; ${MAKE})
|
|
${PREFIX}/bin/python ${PREFIX}/lib/python1.5/compileall.py \
|
|
${WRKSRC}/Lib
|
|
${PREFIX}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py \
|
|
${WRKSRC}/Lib
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/lib/python1.5/site-packages
|
|
(cd ${WRKSRC}/Lib ; ${INSTALL_DATA} *.py *.pyc *.pyo \
|
|
${PREFIX}/lib/python1.5/site-packages)
|
|
(cd ${WRKSRC}/src ; ${INSTALL_DATA} *.so \
|
|
${PREFIX}/lib/python1.5/site-packages)
|
|
(cd ${WRKSRC}/Doc ; ${INSTALL_MAN} *info* \
|
|
${PREFIX}/info)
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|