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