1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = Linux-PAM-%{version}
12 url = http://www.us.kernel.org/pub/linux/libs/pam/index.html
13 license = BSD and GPLv2+ and BSD with advertising
14 summary = An extensible library which provides authentication for applications.
17 PAM (Pluggable Authentication Modules) is a system security tool that
18 allows system administrators to set authentication policy without
19 having to recompile programs that handle authentication.
23 sources = %{thisapp}.tar.bz2
34 configure_options += \
36 --sbindir=/lib/security \
37 --enable-securedir=/lib/security \
38 --docdir=/usr/share/doc/Linux-PAM-%{version} \
39 --enable-read-both-confs
42 mkdir -pv %{BUILDROOT}/sbin
43 chmod -v 4755 %{BUILDROOT}/lib/security/unix_chkpwd
44 mv -v %{BUILDROOT}/lib/security/pam_tally %{BUILDROOT}/sbin
46 mkdir -pv %{BUILDROOT}/usr/lib
47 for LINK in libpam{,c,_misc}.so; do \
48 ln -v -sf ../../lib/$(readlink %{BUILDROOT}/lib/${LINK}) \
49 %{BUILDROOT}/usr/lib/${LINK} && \
50 rm -v %{BUILDROOT}/lib/${LINK}; \
54 #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
55 mkdir -pv %{BUILDROOT}/etc/security
56 install -v -m644 %{DIR_SOURCE}/pam_env.conf %{BUILDROOT}/etc/security/pam_env.conf
57 cp -vf %{DIR_SOURCE}/{login.defs,securetty} %{BUILDROOT}/etc