- while there, fix WANTLIB and enable python 3 support; by me Fix concurrency bug reported by Alan Fairless of spideroak.com: Multiple threads may hash into the same memory area simultaneously. This may manifest as occasional random authentication failures (as user-a's password hash is compared to user-b's), but could potentially be used to bypass password checking by an attacker (user-a attempts login on user-b's account, while simultaneously flooding auth requests against user-a's account to overwrite the hash).
31 lines
566 B
Makefile
31 lines
566 B
Makefile
# $OpenBSD: Makefile,v 1.2 2014/03/19 11:15:56 sthen Exp $
|
|
|
|
COMMENT= bcrypt blowfish password hashing for Python
|
|
|
|
MODPY_EGG_VERSION= 0.4
|
|
DISTNAME= py-bcrypt-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES= security
|
|
|
|
HOMEPAGE= https://code.google.com/p/py-bcrypt/
|
|
|
|
# ISC/BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += pthread ${MODPY_WANTLIB}
|
|
|
|
MASTER_SITES= https://py-bcrypt.googlecode.com/files/
|
|
|
|
MODULES= lang/python
|
|
MODPY_SETUPTOOLS= Yes
|
|
|
|
FLAVORS= python3
|
|
FLAVOR?=
|
|
|
|
TEST_DEPENDS= ${BUILD_PKGPATH}
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/test && ${MODPY_BIN} ./test.py
|
|
|
|
.include <bsd.port.mk>
|