1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

security/cracklib: remove references to python slave port

PR:		249761
Approved by:	cy (maintainer)
This commit is contained in:
Steve Wills 2020-09-24 18:14:52 +00:00
parent 190e4337c9
commit 59a4c81422
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549935

View File

@ -6,11 +6,6 @@ PORTVERSION= 2.9.7
CATEGORIES= security
MASTER_SITES= https://github.com/cracklib/cracklib/releases/download/v${PORTVERSION}/ \
LOCAL/cy
.if !defined(PYTHON_SLAVEPORT)
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
${WORDS_DISTFILE}
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
.endif
MAINTAINER= cy@FreeBSD.org
COMMENT?= Password-checking library
@ -24,22 +19,6 @@ CONFIGURE_ARGS= --with-default-dict=${DICTFILE}
INSTALL_TARGET= install-strip
USES= libtool tar:bz2
.if defined(PYTHON_SLAVEPORT)
CATEGORIES+= python
USES+= python:2.7 localbase
USE_PYTHON= flavors
CONFIGURE_ARGS+=--disable-nls --with-python
pre-build:
cd ${WRKSRC}/lib && ${MAKE_CMD} libcrack.la
do-test:
@(cd ${BUILD_WKRSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
${PYTHON_CMD} -c \
"from test_${PORTNAME} import run; run(use_dictpath=\"${DICTFILE:S|^${PREFIX}/|${LOCALBASE}/|}\")")
.else
WORDS_DISTFILE= ${PORTNAME}-words-${PORTVERSION}.bz2
USE_LDCONFIG= yes
@ -57,6 +36,5 @@ post-install:
${LN} -s ${PORTNAME}.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/FascistCheck.3
@${MKDIR} ${STAGEDIR}${DICTPATH}
@PATH=$${PATH}:${STAGEDIR}${PREFIX}/sbin LD_LIBRARY_PATH=/lib:/usr/lib:${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/sbin/create-cracklib-dict -o ${STAGEDIR}${DICTPATH}/cracklib-words ${_DISTDIR}/${WORDS_DISTFILE}
.endif
.include <bsd.port.mk>