summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-security/passwdqc/passwdqc_1.3.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-security/passwdqc/passwdqc_1.3.1.bb')
-rw-r--r--meta-oe/recipes-security/passwdqc/passwdqc_1.3.1.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-oe/recipes-security/passwdqc/passwdqc_1.3.1.bb b/meta-oe/recipes-security/passwdqc/passwdqc_1.3.1.bb
new file mode 100644
index 000000000..198db3ce7
--- /dev/null
+++ b/meta-oe/recipes-security/passwdqc/passwdqc_1.3.1.bb
@@ -0,0 +1,63 @@
1SUMMARY = "A password/passphrase strength checking and enforcement toolset"
2DESCRIPTION = "\
3passwdqc is a password/passphrase strength checking and policy enforcement \
4toolset, including an optional PAM module (pam_passwdqc), command-line \
5programs (pwqcheck and pwqgen), and a library (libpasswdqc). \
6pam_passwdqc is normally invoked on password changes by programs such as \
7passwd(1). It is capable of checking password or passphrase strength, \
8enforcing a policy, and offering randomly-generated passphrases, with \
9all of these features being optional and easily (re-)configurable. \
10\
11pwqcheck and pwqgen are standalone password/passphrase strength checking \
12and random passphrase generator programs, respectively, which are usable \
13from scripts. \
14\
15libpasswdqc is the underlying library, which may also be used from \
16third-party programs. \
17"
18
19HOMEPAGE = "http://www.openwall.com/passwdqc"
20SECTION = "System Environment/Base"
21
22DEPENDS += "libpam"
23
24LICENSE = "BSD"
25LIC_FILES_CHKSUM = "file://LICENSE;md5=1b4af6f3d4ee079a38107366e93b334d"
26
27SRC_URI = "http://www.openwall.com/${BPN}/${BP}.tar.gz \
28 file://makefile-add-ldflags.patch \
29 "
30SRC_URI[md5sum] = "3878b57bcd3fdbcf3d4b362dbc6228b9"
31SRC_URI[sha256sum] = "d1fedeaf759e8a0f32d28b5811ef11b5a5365154849190f4b7fab670a70ffb14"
32
33# explicitly define LINUX_PAM in case DISTRO_FEATURES no pam
34# this package's pam_passwdqc.so needs pam
35CFLAGS_append += "-Wall -fPIC -DHAVE_SHADOW -DLINUX_PAM"
36
37# -e is no longer default setting in bitbake.conf
38EXTRA_OEMAKE = "-e"
39
40do_compile() {
41 # make sure sub make use environment to override variables in Makefile
42 # Linux) $(MAKE), there is a tab between
43 sed -i -e 's/Linux) $(MAKE) CFLAGS_lib/Linux) $(MAKE) -e CFLAGS_lib/' ${S}/Makefile
44
45 # LD_lib and LD must be CC because of Makefile
46 oe_runmake LD="${CC}"
47}
48
49do_install() {
50 oe_runmake install DESTDIR=${D} SHARED_LIBDIR=${base_libdir} \
51 DEVEL_LIBDIR=${libdir} SECUREDIR=${base_libdir}/security \
52 INSTALL="install -p"
53}
54
55PROVIDES += "pam-${BPN}"
56PACKAGES =+ "lib${BPN} pam-${BPN}"
57
58FILES_lib${BPN} = "${base_libdir}/libpasswdqc.so.0"
59FILES_pam-${BPN} = "${base_libdir}/security/pam_passwdqc.so"
60FILES_${PN}-dbg += "${base_libdir}/security/.debug"
61
62RDEPENDS_${PN} = "lib${BPN} pam-${BPN}"
63RDEPENDS_pam-${BPN} = "lib${BPN}"