ports/security/libpwquality/Makefile
Matthias Andree 9e573ff093 security/libpwquality: fix poudriere build failures
libpwquality adds --single-version-externally-managed via
files/patch-python_Makefile.in, which in turn requires
up-to-date setuptools.  Add this as PYTHON_BUILD_DEPENDS.

Approved by:	desktop@ (implicit, just-fix-it blanket)
2022-12-10 17:00:23 +01:00

39 lines
1.2 KiB
Makefile

PORTNAME= libpwquality
DISTVERSION= 1.4.5
CATEGORIES= security
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTNAME}-${PORTVERSION}/
MAINTAINER= desktop@FreeBSD.org
COMMENT= Library for generating random passwords and quality checking
WWW= https://github.com/libpwquality/libpwquality
LICENSE= GPLv2+ LIBPWQUALITY
LICENSE_COMB= dual
LICENSE_NAME_LIBPWQUALITY= The libpwquality license
LICENSE_FILE_LIBPWQUALITY= ${WRKSRC}/COPYING
LICENSE_PERMS_LIBPWQUALITY= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libcrack.so:security/cracklib
USES= cpe gmake libtool localbase pathfix tar:bz2
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPE_VENDOR= libpwquality_project
CONFIGURE_ARGS+=--disable-pam
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= NLS PYTHON
OPTIONS_DEFAULT=NLS PYTHON
OPTIONS_SUB= yes
NLS_USES= gettext gnome
NLS_USE= GNOME=intltool
NLS_CONFIGURE_ENABLE= nls
PYTHON_USES= python:3.7+,build
PYTHON_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR}
PYTHON_CONFIGURE_ENABLE= python-bindings
PYTHON_CONFIGURE_ON= --with-python-binary=${PYTHON_CMD}
post-install-PYTHON-on:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pwquality*.so
.include <bsd.port.mk>