summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cracklib/cracklib_2.9.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/cracklib/cracklib_2.9.2.bb')
-rw-r--r--meta/recipes-extended/cracklib/cracklib_2.9.2.bb28
1 files changed, 24 insertions, 4 deletions
diff --git a/meta/recipes-extended/cracklib/cracklib_2.9.2.bb b/meta/recipes-extended/cracklib/cracklib_2.9.2.bb
index 177ab27a2b..fceca5445e 100644
--- a/meta/recipes-extended/cracklib/cracklib_2.9.2.bb
+++ b/meta/recipes-extended/cracklib/cracklib_2.9.2.bb
@@ -4,10 +4,12 @@ HOMEPAGE = "http://sourceforge.net/projects/cracklib"
4LICENSE = "LGPLv2.1+" 4LICENSE = "LGPLv2.1+"
5LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" 5LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06"
6 6
7DEPENDS = "cracklib-native zlib" 7DEPENDS = "cracklib-native zlib python"
8DEPENDS_class-native = "zlib-native" 8RDEPEND_${PN}-python += "python"
9 9
10EXTRA_OECONF = "--without-python --libdir=${base_libdir}" 10PACKAGES += "${PN}-python"
11
12EXTRA_OECONF = "--with-python --libdir=${base_libdir}"
11 13
12SRC_URI = "${SOURCEFORGE_MIRROR}/cracklib/cracklib-${PV}.tar.gz \ 14SRC_URI = "${SOURCEFORGE_MIRROR}/cracklib/cracklib-${PV}.tar.gz \
13 file://0001-packlib.c-support-dictionary-byte-order-dependent.patch \ 15 file://0001-packlib.c-support-dictionary-byte-order-dependent.patch \
@@ -18,10 +20,28 @@ SRC_URI[sha256sum] = "c1c899291d443e99d1aecfbc879e4ac9c0cbc265574f47b487842da11e
18 20
19PR = "r1" 21PR = "r1"
20 22
21inherit autotools gettext 23inherit autotools gettext pythonnative python-dir
22 24
23do_install_append_class-target() { 25do_install_append_class-target() {
24 create-cracklib-dict -o ${D}${datadir}/cracklib/pw_dict ${D}${datadir}/cracklib/cracklib-small 26 create-cracklib-dict -o ${D}${datadir}/cracklib/pw_dict ${D}${datadir}/cracklib/cracklib-small
25} 27}
26 28
29do_install_append() {
30 src_dir="${D}${base_libdir}/${PYTHON_DIR}/site-packages"
31 rm -f $src_dir/*.pyo
32 rm -f $src_dir/test_cracklib.py
33 # Move python files from ${base_libdir} to ${libdir} since used --libdir=${base_libdir}
34 install -d -m 0755 ${D}${PYTHON_SITEPACKAGES_DIR}/
35 mv $src_dir/* ${D}${PYTHON_SITEPACKAGES_DIR}
36 rm -fr ${D}${base_libdir}/${PYTHON_DIR}
37}
38
27BBCLASSEXTEND = "native nativesdk" 39BBCLASSEXTEND = "native nativesdk"
40
41FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/cracklib.py \
42 ${PYTHON_SITEPACKAGES_DIR}/_cracklib.so \
43 "
44FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/_cracklib.so"
45FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/_cracklib.a \
46 ${PYTHON_SITEPACKAGES_DIR}/_cracklib.la \
47 "