-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
36 lines (34 loc) · 1022 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Template file for 'passwdqc'
pkgname=passwdqc
version=2.0.3
revision=2
build_style=gnu-makefile
make_install_args="SHARED_LIBDIR=/usr/lib SECUREDIR=/usr/lib/security"
conf_files="/etc/passwdqc.conf"
makedepends="pam-devel"
short_desc="Password strength checking and policy enforcement toolset"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause,0BSD"
homepage="http://www.openwall.com/passwdqc/"
distfiles="http://www.openwall.com/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=53b0f4bc49369f06195e9e13abb6cff352d5acb79e861004ec95973896488cf4
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
do_build() {
make ${makejobs} CC="$CC" LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
$make_install_args
}
post_install() {
vlicense LICENSE
}
passwdqc-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}