aboutsummaryrefslogtreecommitdiff
path: root/security/py-cracklib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/py-cracklib/Makefile')
-rw-r--r--security/py-cracklib/Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/security/py-cracklib/Makefile b/security/py-cracklib/Makefile
index fc9447137aef..32bb8dab1dd3 100644
--- a/security/py-cracklib/Makefile
+++ b/security/py-cracklib/Makefile
@@ -1,21 +1,22 @@
# $FreeBSD$
-PORTNAME= cracklib
-PORTVERSION= 2.8.19
-CATEGORIES= security python
-MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= crees@FreeBSD.org
-COMMENT= CPython extension module wrapping the libcrack library
+COMMENT= Python bindings for cracklib
+
+LICENSE= LGPL21
LIB_DEPENDS= crack:${PORTSDIR}/security/cracklib
-USE_PYTHON= yes
-USE_PYDISTUTILS= easy_install
-PYEASYINSTALL_ARCHDEP= yes
+MASTERDIR= ${.CURDIR}/../cracklib
+BUILD_WRKSRC= ${WRKSRC}/python
+INSTALL_WRKSRC= ${BUILD_WRKSRC}
+
+PYTHON_SLAVEPORT= yes
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+post-patch:
+ @${REINPLACE_CMD} -e \
+ "{s#__version__ = '[^']*'#__version__ = '${PORTVERSION}'#;}" \
+ ${BUILD_WRKSRC}/*.py
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"