blob: 786940a7e0f250a9eb88fae11a450c0fb287ac1c [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001SUMMARY = "Password strength checker library"
2HOMEPAGE = "https://github.com/cracklib/cracklib"
3DESCRIPTION = "${SUMMARY}"
4
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005LICENSE = "LGPL-2.1-or-later"
Andrew Geissler595f6302022-01-24 19:11:47 +00006LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06"
7
8DEPENDS = "cracklib-native zlib"
9
10EXTRA_OECONF = "--without-python --libdir=${base_libdir}"
11
12SRC_URI = "git://github.com/cracklib/cracklib;protocol=https;branch=master \
13 file://0001-packlib.c-support-dictionary-byte-order-dependent.patch \
Patrick Williams92b42cb2022-09-03 06:53:57 -050014 file://0002-craklib-fix-testnum-and-teststr-failed.patch \
Patrick Williams92b42cb2022-09-03 06:53:57 -050015 "
Andrew Geissler595f6302022-01-24 19:11:47 +000016
Andrew Geissler87f5cff2022-09-30 13:13:31 -050017SRCREV = "d9e8f9f47718539aeba80f90f4e072549926dc9c"
Andrew Geissler595f6302022-01-24 19:11:47 +000018S = "${WORKDIR}/git/src"
19
20inherit autotools gettext
21
22# This is custom stuff from upstream's autogen.sh
23do_configure:prepend() {
24 mkdir -p ${S}/m4
25 echo EXTRA_DIST = *.m4 > ${S}/m4/Makefile.am
26 touch ${S}/ABOUT-NLS
27}
28
29do_install:append:class-target() {
30 create-cracklib-dict -o ${D}${datadir}/cracklib/pw_dict ${D}${datadir}/cracklib/cracklib-small
31}
32
33BBCLASSEXTEND = "native nativesdk"
34