openbsd-ports/security/py-Rijndael/Makefile
shell 462b7cf818 Initial import of py-Rijndael-1.1
---
A pure-python implementation of the AES Rijndael Block Cipher.
Basic on Phil Fresle's VB implementation.

WWW: http://www.bluesine.com/Projects/mods-python/pyrijndael
2002-01-05 22:08:02 +00:00

50 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2002/01/05 22:08:02 shell Exp $
COMMENT= "python implementation of the Rijndael encryption algorithm"
VERSION= 1.1
DISTNAME= pyRijndael-${VERSION}.py
PKGNAME= py-Rijndael-${VERSION}
CATEGORIES= security devel
NEED_VERSION= 1.504
EXTRACT_SUFX= .gz
EXTRACT_ONLY=
MAINTAINER= Shell Hung <shell@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
HOMEPAGE= http://www.bluesine.com/Projects/mods-python/pyrijndael
MASTER_SITES= http://ftp.bluesine.com/pub/bluesine.com/python-mods/rijndael/
BUILD_DEPENDS+= ::lang/python
RUN_DEPENDS= ${BUILD_DEPENDS}
PYTHON_VER= 2.1
PY_CMD= @cd ${WRKSRC}; python${PYTHON_VER}
PY_SITEPKG= ${PREFIX}/lib/python${PYTHON_VER}/site-packages/
PY_MODNAME= pyRijndael.py
SUBST_VARS= PYTHON_VER
post-extract:
@mkdir ${WRKDIST}
@${GZIP_CMD} -dc ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} > \
${WRKSRC}/${PY_MODNAME}
do-build:
${PY_CMD} -c 'import pyRijndael'
${PY_CMD} -O -c 'import pyRijndael'
do-install:
${INSTALL_DATA_DIR} ${PY_SITEPKG}
${INSTALL_DATA} ${WRKSRC}/pyRijndael.* ${PY_SITEPKG}
do-regress:
@${PY_CMD} ${PY_MODNAME}
.include <bsd.port.mk>