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 --includedir=%{includedir}/security \
37 --docdir=/usr/share/doc/Linux-PAM-%{version} \
38 --enable-read-both-confs
41 mkdir -pv %{BUILDROOT}%{libdir}
42 for LINK in libpam{,c,_misc}.so; do
43 ln -v -sf ../../%{lib}/$(readlink %{BUILDROOT}/%{lib}/${LINK}) \
44 %{BUILDROOT}%{libdir}/${LINK}
45 rm -v %{BUILDROOT}/%{lib}/${LINK}
49 #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
50 mkdir -pv %{BUILDROOT}/etc/security
51 install -v -m644 %{DIR_SOURCE}/pam_env.conf \
52 %{BUILDROOT}/etc/security/pam_env.conf
54 # Included in setup package
55 rm -f %{BUILDROOT}/etc/environment
70 package %{name}-debuginfo