76 lines
2.1 KiB
Bash
76 lines
2.1 KiB
Bash
# Template file for 'pam'
|
|
pkgname=pam
|
|
version=1.5.3
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--libdir=/usr/lib --sbindir=/usr/bin --docdir=/usr/share/doc/pam
|
|
--disable-nis --disable-audit --disable-selinux --enable-lastlog
|
|
--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="pam-base"
|
|
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=7ac4b50feee004a9fa88f1dfd2d2fa738a82896763050cd773b3c54b0a818283
|
|
lib32disabled=yes
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
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
|
|
/etc/security/faillock.conf
|
|
/etc/security/namespace.init
|
|
/etc/security/pwhistory.conf"
|
|
make_dirs="
|
|
/etc/security/limits.d 0755 root root
|
|
/etc/security/namespace.d 0755 root root"
|
|
|
|
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
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
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
|
|
}
|
|
}
|