###############################################################################
name = pam
-version = 1.1.0
-release = 5
+version = 1.1.5
+release = 3
thisapp = Linux-PAM-%{version}
groups = System/Base
having to recompile programs that handle authentication.
end
-source_dl =
-sources = %{thisapp}.tar.bz2
+# This is the old location that might be revived in future
+# source_dl = http://ftp.us.kernel.org/pub/linux/libs/pam/library/
+
+source_dl = https://fedorahosted.org/releases/l/i/linux-pam/
build
requires
- #audit-devel
+ audit-devel
bison
cracklib-devel
flex
end
configure_options += \
- --libdir=/%{lib} \
--includedir=%{includedir}/security \
--docdir=/usr/share/doc/Linux-PAM-%{version} \
- --enable-read-both-confs
+ --enable-read-both-confs \
+ --disable-rpath
install_cmds
- mkdir -pv %{BUILDROOT}%{libdir}
- for LINK in libpam{,c,_misc}.so; do
- ln -v -sf ../../%{lib}/$(readlink %{BUILDROOT}/%{lib}/${LINK}) \
- %{BUILDROOT}%{libdir}/${LINK}
- rm -v %{BUILDROOT}/%{lib}/${LINK}
- done
-
#useradd -D -b /home
#sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
mkdir -pv %{BUILDROOT}/etc/security
# Included in setup package
rm -f %{BUILDROOT}/etc/environment
+
+ # Install man pages.
+ mkdir -pv %{BUILDROOT}%{mandir}/man5
+ for file in config-util.5 postlogin.5 system-auth.5; do
+ install -v -m 644 %{DIR_SOURCE}/man/${file} \
+ %{BUILDROOT}%{mandir}/man5
+ done
end
end
packages
package %{name}
- #requires
- # pam_ldap
- #end
+ requires
+ pam_ldap
+ end
+
+ configfiles
+ /etc/pam.d
+ end
end
package %{name}-devel