# Template file for 'pam' pkgname=pam version=1.5.2 revision=2 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 " 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=e4ec7131a91da44512574268f493c6d8ca105c87091691b8e9b56ca685d4f94d 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 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 } }