2008-12-16 02:17:52 +01:00
|
|
|
# Template file for 'cracklib'
|
|
|
|
pkgname=cracklib
|
2013-06-11 15:15:15 +02:00
|
|
|
version=2.9.0
|
2014-03-29 15:23:56 +01:00
|
|
|
revision=2
|
|
|
|
lib32disabled=yes
|
2013-02-07 05:06:39 +01:00
|
|
|
create_wrksrc=yes
|
|
|
|
build_wrksrc="${pkgname}-${version}"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-08-23 14:48:16 +02:00
|
|
|
configure_args="--disable-static"
|
2013-02-07 05:06:39 +01:00
|
|
|
makedepends="python-devel"
|
2008-12-16 02:17:52 +01:00
|
|
|
short_desc="Password Checking Library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-02-06 10:13:04 +01:00
|
|
|
license="LGPL-2.1"
|
2012-08-23 14:48:16 +02:00
|
|
|
homepage="http://cracklib.sourceforge.net/"
|
2013-02-07 05:06:39 +01:00
|
|
|
distfiles="
|
|
|
|
${SOURCEFORGE_SITE}/cracklib/${pkgname}-${version}.tar.gz
|
|
|
|
${SOURCEFORGE_SITE}/cracklib/${pkgname}-words-1.2.gz"
|
|
|
|
checksum="
|
2013-06-11 15:15:15 +02:00
|
|
|
17fecdfa78c0b9b47afa1533ea99b5351c3cef770bbd9c8c34391827efecbdc0
|
2013-02-07 05:06:39 +01:00
|
|
|
9b323c100780f2a817ab3de082b8bfaa4478bfa174dcbd016810ed8be60cbe16"
|
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends="libtool automake gettext-devel python-devel"
|
2013-02-07 05:06:39 +01:00
|
|
|
pre_configure() {
|
|
|
|
sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
2008-12-16 02:17:52 +01:00
|
|
|
|
2012-01-30 09:11:16 +01:00
|
|
|
post_install() {
|
2014-03-06 11:20:08 +01:00
|
|
|
vinstall ${wrksrc}/cracklib-words-1.2 644 usr/share/cracklib cracklib-words
|
2008-12-16 02:17:52 +01:00
|
|
|
}
|
2013-04-11 10:33:01 +02:00
|
|
|
|
|
|
|
cracklib-devel_package() {
|
|
|
|
depends="zlib-devel libcracklib>=${version}"
|
2013-06-11 15:15:15 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-11 10:33:01 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
cracklib-python_package() {
|
2014-03-29 15:23:56 +01:00
|
|
|
lib32disabled=yes
|
2013-04-11 10:33:01 +02:00
|
|
|
depends="python"
|
2013-06-11 15:15:15 +02:00
|
|
|
short_desc+=" - python bindings"
|
2013-04-11 10:33:01 +02:00
|
|
|
pycompile_module="cracklib.py"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/python*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libcracklib_package() {
|
2013-06-11 15:15:15 +02:00
|
|
|
short_desc+=" - runtime library"
|
2013-04-11 10:33:01 +02:00
|
|
|
replaces="cracklib<2.8.22_2"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so*"
|
|
|
|
}
|
|
|
|
}
|