void-packages/srcpkgs/pam/template
Érico Rolim 245d4a5ed7 pam: update to 1.5.1, update homepage, adopt.
Also:

- Cracklib is deprecated and disabled by default.
- pam_tally and pam_tally2 have been removed.
- Add checkdepends.
- Add changelog.

Due to the pam_tally removal, this package has to depend on the newest
version of pam-base.
2021-01-03 23:11:49 -03:00

71 lines
2 KiB
Bash

# Template file for 'pam'
pkgname=pam
version=1.5.1
revision=1
wrksrc="Linux-PAM-$version"
build_style=gnu-configure
configure_args="
--libdir=/usr/lib --sbindir=/usr/bin --docdir=/usr/share/doc/pam
--disable-nis --disable-audit --disable-selinux
--disable-regenerate-docu BUILD_CFLAGS=-Os BUILD_LDFLAGS="
hostmakedepends="gettext-devel pkg-config"
makedepends="libfl-devel db-devel"
# version of pam-base that doesn't include removed modules
depends="pam-base>=0.4_1"
checkdepends="${depends}"
conf_files="
/etc/environment
/etc/security/access.conf
/etc/security/group.conf
/etc/security/limits.conf
/etc/security/namespace.conf
/etc/security/pam_env.conf
/etc/security/time.conf"
make_dirs="
/etc/security/limits.d 0755 root root
/etc/security/namespace.d 0755 root root"
short_desc="Flexible mechanism for authenticating users"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="BSD-3-Clause"
homepage="https://github.com/linux-pam/linux-pam"
changelog="https://raw.githubusercontent.com/linux-pam/linux-pam/master/NEWS"
distfiles="${homepage}/releases/download/v${version}/Linux-PAM-${version}.tar.xz"
checksum=201d40730b1135b1b3cdea09f2c28ac634d73181ccd0172ceddee3649c5792fc
lib32disabled=yes
if [ "$XBPS_CHECK_PKGS" = musl ]; then
configure_args+=" ac_cv_search_crypt=no"
fi
post_install() {
# Fix unix_chkpwd perms.
chmod 4755 ${DESTDIR}/usr/bin/unix_chkpwd
rm -r ${DESTDIR}/usr/lib/systemd
vlicense COPYING LICENSE
}
pam-devel_package() {
replaces="pam-libs<1.1.8_8"
depends="pam-libs>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/man/man3
vmove usr/share/doc
vmove usr/lib/*.so
}
}
pam-libs_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
pam-userdb_package() {
lib32disabled=yes
short_desc="PAM module to authenticate against a db database"
pkg_install() {
vmove usr/lib/security/pam_userdb.so
vmove usr/share/man/man8/pam_userdb.8
}
}