Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Library for password quality checking and generating random passwords" |
| 2 | HOMEPAGE = "https://github.com/libpwquality/libpwquality" |
| 3 | SECTION = "devel/lib" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bd2f1386df813a459a0c34fde676fc2" |
| 6 | |
| 7 | SRCNAME = "libpwquality" |
| 8 | SRC_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 | " |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 11 | SRC_URI:append:libc-musl = " file://0001-fix-musl-build.patch " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | |
Andrew Geissler | bbbd5f4 | 2020-10-30 15:42:48 -0500 | [diff] [blame] | 13 | SRC_URI[md5sum] = "1fe43f6641dbf1e1766e2a02cf68a9c3" |
| 14 | SRC_URI[sha256sum] = "d43baf23dc6887fe8f8e9b75cabaabc5f4bbbaa0f9eff44278d276141752a545" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | |
| 16 | UPSTREAM_CHECK_URI = "https://github.com/libpwquality/libpwquality/releases" |
| 17 | |
| 18 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 19 | |
| 20 | DEPENDS = "cracklib virtual/gettext" |
| 21 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 22 | inherit autotools setuptools3-base gettext |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 | |
| 24 | B = "${S}" |
| 25 | |
| 26 | export PYTHON_DIR |
| 27 | export BUILD_SYS |
| 28 | export HOST_SYS |
| 29 | |
| 30 | EXTRA_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} \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 34 | --with-securedir=${base_libdir}/security \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 35 | " |
| 36 | |
| 37 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
| 38 | PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam" |
| 39 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 40 | FILES:${PN} += "${base_libdir}/security/pam_pwquality.so" |
| 41 | FILES:${PN}-dbg += "${base_libdir}/security/.debug" |
| 42 | FILES:${PN}-staticdev += "${base_libdir}/security/pam_pwquality.a" |
| 43 | FILES:${PN}-dev += "${base_libdir}/security/pam_pwquality.la" |