Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -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" |
| 4 | LICENSE = "GPLv2" |
| 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 | " |
| 11 | |
| 12 | SRC_URI[md5sum] = "b8defcc7280a90e9400d6689c93a279c" |
| 13 | SRC_URI[sha256sum] = "1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b" |
| 14 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 15 | UPSTREAM_CHECK_URI = "https://github.com/libpwquality/libpwquality/releases" |
| 16 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 18 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 19 | DEPENDS = "cracklib virtual/gettext" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 21 | inherit autotools distutils3-base gettext |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 22 | |
| 23 | B = "${S}" |
| 24 | |
| 25 | export PYTHON_DIR |
| 26 | export BUILD_SYS |
| 27 | export HOST_SYS |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 28 | |
| 29 | EXTRA_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 | |
| 35 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
| 36 | PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam" |
| 37 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 38 | FILES_${PN} += "${libdir}/security/pam_pwquality.so" |
| 39 | FILES_${PN}-dbg += "${libdir}/security/.debug" |
| 40 | FILES_${PN}-staticdev += "${libdir}/security/pam_pwquality.a" |
| 41 | FILES_${PN}-dev += "${libdir}/security/pam_pwquality.la" |