]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pam/pam.nm
Merge remote-tracking branch 'arne_f/autoconf'
[people/arne_f/ipfire-3.x.git] / pam / pam.nm
index 3772519fa98ebd29d8ee80da8f3672cb6691dc58..be4f7a242816dbc5e07cab93056b867e4d2d088e 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = pam
-version    = 1.1.0
+version    = 1.1.5
 release    = 3
 thisapp    = Linux-PAM-%{version}
 
@@ -19,8 +19,10 @@ description
        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
@@ -32,32 +34,27 @@ build
        end
 
        configure_options += \
-               --libdir=/lib \
-               --sbindir=/lib/security \
-               --enable-securedir=/lib/security \
+               --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}/sbin
-               chmod -v 4755 %{BUILDROOT}/lib/security/unix_chkpwd
-               mv -v %{BUILDROOT}/lib/security/pam_tally %{BUILDROOT}/sbin
-
-               mkdir -pv %{BUILDROOT}/usr/lib
-               for LINK in libpam{,c,_misc}.so; do \
-                       ln -v -sf ../../lib/$(readlink %{BUILDROOT}/lib/${LINK}) \
-                               %{BUILDROOT}/usr/lib/${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
-               install -v -m644 %{DIR_SOURCE}/pam_env.conf %{BUILDROOT}/etc/security/pam_env.conf
-               cp -vf %{DIR_SOURCE}/login.defs %{BUILDROOT}/etc
+               install -v -m644 %{DIR_SOURCE}/pam_env.conf \
+                       %{BUILDROOT}/etc/security/pam_env.conf
 
                # 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
 
@@ -66,9 +63,17 @@ packages
                requires
                        pam_ldap
                end
+
+               configfiles
+                       /etc/pam.d
+               end
        end
 
        package %{name}-devel
                template DEVEL
        end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
 end