blob: 2c96063f19504888206f79bc10cc1342edd7c602 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -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
12SRC_URI[md5sum] = "b8defcc7280a90e9400d6689c93a279c"
13SRC_URI[sha256sum] = "1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b"
14
15S = "${WORKDIR}/${SRCNAME}-${PV}"
16
17DEPENDS = "cracklib virtual/gettext python3"
18RDEPENDS_python3-libpwquality = "${PN}"
19
20inherit autotools python3native gettext
21
22B = "${S}"
23
24export PYTHON_DIR
25export BUILD_SYS
26export HOST_SYS
27export STAGING_LIBDIR
28export STAGING_INCDIR
29
30EXTRA_OECONF += "--with-python-rev=${PYTHON_BASEVERSION} \
31 --with-python-binary=${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \
32 --with-pythonsitedir=${PYTHON_SITEPACKAGES_DIR} \
33 --libdir=${libdir} \
34"
35
36PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
37PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam"
38
39PACKAGES += "python3-libpwquality python3-libpwquality-dbg"
40FILES_${PN} += "${libdir}/security/pam_pwquality.so"
41FILES_${PN}-dbg += "${libdir}/security/.debug"
42FILES_${PN}-staticdev += "${libdir}/security/pam_pwquality.a"
43FILES_${PN}-dev += "${libdir}/security/pam_pwquality.la"
44FILES_python3-${PN} = "${PYTHON_SITEPACKAGES_DIR}/*"
45FILES_python3-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/.debug"