mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
a9a24bff90
PR: ports/97810 Submitted by: Martin Wilke <freebsd@unixfreunde.de>
40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
# New ports collection makefile for: py-crack
|
|
# Date created: 2005-07-17
|
|
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pycrack
|
|
PORTVERSION= 0.5.1
|
|
CATEGORIES= security python
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
|
MASTER_SITE_SUBDIR= python-crack
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= python-crack-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Python bindings to cracklib
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYSETUP= distutil.py
|
|
GNU_CONFIGURE= yes
|
|
|
|
PLIST_FILES:= ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,}/_crack.so \
|
|
${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,}/crack.py
|
|
|
|
CONFIGURE_ENV= "CPPFLAGS=-I${LOCALBASE}/include" \
|
|
"LDFLAGS=-L${LOCALBASE}/lib" \
|
|
"DEFAULT_DICTPATH=${LOCALBASE}/libdata/cracklib/pw_dict"
|
|
|
|
MAKE_ENV= "CPPFLAGS=-I${LOCALBASE}/include -fPIC" \
|
|
"LDFLAGS=-L${LOCALBASE}/lib"
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/crack.py ${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
.include <bsd.port.mk>
|