SPECS: pam.spec - started work at trigger - fixed .la install - ad...

baggins baggins at pld-linux.org
Wed Feb 7 01:40:55 CET 2007


Author: baggins                      Date: Wed Feb  7 00:40:55 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- started work at trigger
- fixed .la install
- added missing dir to files

---- Files affected:
SPECS:
   pam.spec (1.252 -> 1.253) 

---- Diffs:

================================================================
Index: SPECS/pam.spec
diff -u SPECS/pam.spec:1.252 SPECS/pam.spec:1.253
--- SPECS/pam.spec:1.252	Tue Feb  6 19:15:16 2007
+++ SPECS/pam.spec	Wed Feb  7 01:40:50 2007
@@ -163,6 +163,7 @@
 Summary(pl):	Moduły i biblioteki PAM
 Group:		Libraries
 Conflicts:	pam < 0:0.80.1-2
+Requires(triggerpostun):	sed
 Requires:	gdbm >= 1.8.3-7
 Requires:	glibc >= 2.5-0.5
 %{?with_audit:Requires:	audit-libs >= 1.0.8}
@@ -298,9 +299,13 @@
 #:> $RPM_BUILD_ROOT/var/log/faillog
 :> $RPM_BUILD_ROOT/var/log/tallylog
 
-mv -f $RPM_BUILD_ROOT/%{_lib}/lib*.{la,a} $RPM_BUILD_ROOT/%{_libdir}
+mv -f $RPM_BUILD_ROOT/%{_lib}/lib*.a $RPM_BUILD_ROOT/%{_libdir}
 
 cd $RPM_BUILD_ROOT/%{_lib}
+for f in lib*.la ; do
+	sed -e 's|/%{_lib}/libpam|%{_libdir}/libpam|g' $f > $RPM_BUILD_ROOT/%{_libdir}/$f
+	rm -f $f
+done
 ln -sf /%{_lib}/$(echo libpam.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpam.so
 ln -sf /%{_lib}/$(echo libpam_misc.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpam_misc.so
 ln -sf /%{_lib}/$(echo libpamc.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpamc.so
@@ -357,9 +362,22 @@
 rm -rf $RPM_BUILD_ROOT
 
 %triggerpostun libs -- %{name}-libs < 0.99.7.1
-#	s/pam_make\.so \(.*\)/pam_exec.so make -C \1/g
-#	s/pam_homedir\.so/pam_mkhomedir.so/g
-#	/var/lock/console -> /var/run/console
+for f in /etc/pam.d/* ; do
+	case "$f" in
+	*rpmorig|*rpmnew|*rpmsave|*~|*.orig)
+		continue
+		;;
+	*)
+		echo cp -f "$f" "$f.rpmorig"
+		echo sed -e 's/pam_make\.so \(.*\)/pam_exec.so seteuid make -C \1/g' \
+		    -e 's/pam_homedir\.so/pam_mkhomedir.so/g' "$f.rpmorig" to "$f"
+		;;
+	esac
+done
+if [ -d /var/lock/console -a -d /var/run/console ]; then
+	echo cp -a /var/lock/console/* /var/run/console/
+	echo rm -rf /var/lock/console
+fi
 
 %post
 #if [ ! -a /var/log/faillog ] ; then
@@ -423,6 +441,7 @@
 
 %files libs
 %defattr(644,root,root,755)
+%dir /%{_lib}/security/pam_filter
 %attr(755,root,root) /%{_lib}/lib*.so.*.*
 %attr(755,root,root) /%{_lib}/security/pam_access.so
 %attr(755,root,root) /%{_lib}/security/pam_console.so
@@ -503,6 +522,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.253  2007/02/07 00:40:50  baggins
+- started work at trigger
+- fixed .la install
+- added missing dir to files
+
 Revision 1.252  2007/02/06 18:15:16  baggins
 - rel 0.4
 - strict BRs
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pam.spec?r1=1.252&r2=1.253&f=u



More information about the pld-cvs-commit mailing list