* Use standard source of PECL-sources -- the old MASTER_SITE is gone, and good riddance too, because the difference between 0.4 and 0.4.1 was an irrelevant one-liner. * Patch to use modern PHP ZEND API * Patch to actually use cracklib as advertized -- since the port's inception it LIB_DEPENDed on security/cracklib and advertized its use in pkg-descr, lying on both accounts. * Throw in a couple of basic usage tests rejecting bad passwords and accepting good ones. Special thanks to Nathan Neulinger for making the necessary cracklib function accessible and to cy@ for promptly updating security/cracklib to use Nathan's latest release.
36 lines
870 B
Makefile
36 lines
870 B
Makefile
# Created by: Bill Moran <wmoran@collaborativefusion.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= crack
|
|
PORTVERSION= 0.4
|
|
PORTEPOCH= 1
|
|
CATEGORIES= security www
|
|
MASTER_SITES= http://pecl.php.net/get/
|
|
PKGNAMEPREFIX= pecl-
|
|
DIST_SUBDIR= PECL
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= PECL extension to cracklib
|
|
|
|
LICENSE= PHP30
|
|
|
|
LIB_DEPENDS= libcrack.so:${PORTSDIR}/security/cracklib
|
|
|
|
USES= tar:tgz
|
|
USE_PHP= yes
|
|
USE_PHPIZE= yes
|
|
USE_PHP_BUILD= yes
|
|
USE_PHPEXT= yes
|
|
PHP_MODNAME= crack
|
|
EXTRACT_AFTER_ARGS=--no-same-permissions --no-same-owner --exclude libcrack
|
|
CONFIGURE_ARGS= --with-crack=${LOCALBASE}
|
|
CFLAGS+= -Wno-deprecated
|
|
|
|
post-configure:
|
|
${REINPLACE_CMD} -e 's|^\$$ini_overwrites.*|&'"'"'crack.default_dictionary=\"${LOCALBASE}/libdata/cracklib/pw_dict\"'"'"',|' \
|
|
${WRKSRC}/run-tests.php
|
|
|
|
test check regression-test: build
|
|
${MAKE} -C ${WRKSRC} test < /dev/null
|
|
|
|
.include <bsd.port.mk>
|