blob: 34ef2b65a11d82c2df41ad4f4f953ccaeb6e5a3a [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
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050012SRC_URI = "git://github.com/cracklib/cracklib;protocol=https;branch=main \
Andrew Geissler595f6302022-01-24 19:11:47 +000013 file://0001-packlib.c-support-dictionary-byte-order-dependent.patch \
Patrick Williams92b42cb2022-09-03 06:53:57 -050014 "
Andrew Geissler595f6302022-01-24 19:11:47 +000015
Patrick Williams8e7b46e2023-05-01 14:19:06 -050016SRCREV = "4cf5125250c6325ef0a2dc085eabff875227edc3"
Andrew Geissler595f6302022-01-24 19:11:47 +000017S = "${WORKDIR}/git/src"
18
19inherit autotools gettext
20
21# This is custom stuff from upstream's autogen.sh
22do_configure:prepend() {
23 mkdir -p ${S}/m4
24 echo EXTRA_DIST = *.m4 > ${S}/m4/Makefile.am
25 touch ${S}/ABOUT-NLS
26}
27
28do_install:append:class-target() {
29 create-cracklib-dict -o ${D}${datadir}/cracklib/pw_dict ${D}${datadir}/cracklib/cracklib-small
30}
31
32BBCLASSEXTEND = "native nativesdk"
33