blob: 7ff0725a20f17d7df139de26d31ea8fed2d32fac [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001DESCRIPTION = "Library for password quality checking and generating random passwords"
2HOMEPAGE = "https://github.com/libpwquality/libpwquality"
3SECTION = "devel/lib"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=6bd2f1386df813a459a0c34fde676fc2"
6
7SRCNAME = "libpwquality"
8SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/${SRCNAME}-${PV}/${SRCNAME}-${PV}.tar.bz2 \
9 file://add-missing-python-include-dir-for-cross.patch \
10"
11
Andrew Geisslerbbbd5f42020-10-30 15:42:48 -050012SRC_URI[md5sum] = "1fe43f6641dbf1e1766e2a02cf68a9c3"
13SRC_URI[sha256sum] = "d43baf23dc6887fe8f8e9b75cabaabc5f4bbbaa0f9eff44278d276141752a545"
Andrew Geissler82c905d2020-04-13 13:39:40 -050014
15UPSTREAM_CHECK_URI = "https://github.com/libpwquality/libpwquality/releases"
16
17S = "${WORKDIR}/${SRCNAME}-${PV}"
18
19DEPENDS = "cracklib virtual/gettext"
20
21inherit autotools distutils3-base gettext
22
23B = "${S}"
24
25export PYTHON_DIR
26export BUILD_SYS
27export HOST_SYS
28
29EXTRA_OECONF += "--with-python-rev=${PYTHON_BASEVERSION} \
30 --with-python-binary=${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \
31 --with-pythonsitedir=${PYTHON_SITEPACKAGES_DIR} \
32 --libdir=${libdir} \
33"
34
35PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
36PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam"
37
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:${PN} += "${libdir}/security/pam_pwquality.so"
39FILES:${PN}-dbg += "${libdir}/security/.debug"
40FILES:${PN}-staticdev += "${libdir}/security/pam_pwquality.a"
41FILES:${PN}-dev += "${libdir}/security/pam_pwquality.la"