void-packages/srcpkgs/cracklib/template

59 lines
1.4 KiB
Plaintext
Raw Normal View History

# Template file for 'cracklib'
pkgname=cracklib
2013-06-11 15:15:15 +02:00
version=2.9.0
revision=2
lib32disabled=yes
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
build_style=gnu-configure
2012-08-23 14:48:16 +02:00
configure_args="--disable-static"
makedepends="python-devel"
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/"
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
9b323c100780f2a817ab3de082b8bfaa4478bfa174dcbd016810ed8be60cbe16"
if [ "$CROSS_BUILD" ]; then
hostmakedepends="libtool automake gettext-devel python-devel"
pre_configure() {
sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
autoreconf -fi
}
fi
post_install() {
vinstall ${wrksrc}/cracklib-words-1.2 644 usr/share/cracklib cracklib-words
}
cracklib-devel_package() {
depends="zlib-devel libcracklib>=${version}"
2013-06-11 15:15:15 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}
cracklib-python_package() {
lib32disabled=yes
depends="python"
2013-06-11 15:15:15 +02:00
short_desc+=" - python bindings"
pycompile_module="cracklib.py"
pkg_install() {
vmove "usr/lib/python*"
}
}
libcracklib_package() {
2013-06-11 15:15:15 +02:00
short_desc+=" - runtime library"
replaces="cracklib<2.8.22_2"
pkg_install() {
vmove "usr/lib/*.so*"
}
}