SPECS: checkpassword-pam.spec - smarter file file move, using trig...

glen glen at pld-linux.org
Sat Jun 25 20:39:31 CEST 2005


Author: glen                         Date: Sat Jun 25 18:39:31 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- smarter file file move, using trigger
- rel 2

---- Files affected:
SPECS:
   checkpassword-pam.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/checkpassword-pam.spec
diff -u SPECS/checkpassword-pam.spec:1.13 SPECS/checkpassword-pam.spec:1.14
--- SPECS/checkpassword-pam.spec:1.13	Sat Jun 25 20:33:03 2005
+++ SPECS/checkpassword-pam.spec	Sat Jun 25 20:39:26 2005
@@ -3,7 +3,7 @@
 Summary(pl):	Jednolity interfejs do sprawdzania haseł przez PAM
 Name:		checkpassword-pam
 Version:	0.99
-Release:	1.4
+Release:	2
 License:	GPL
 Group:		Applications/System
 Source0:	http://dl.sourceforge.net/checkpasswd-pam/%{name}-%{version}.tar.gz
@@ -51,26 +51,26 @@
 
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8}
 install checkpassword-pam $RPM_BUILD_ROOT%{_sbindir}
-ln -s ../sbin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
 install checkpassword-pam.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
+# compat
+ln -s ../sbin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%triggerpostun -- %{name} <= 0.99-1
-# TODO: any knowledge which configuration files to automatically "fix"?
+%triggerpostun -- %{name} < 0.99-2
+ln -sf %{_sbindir}/%{name} %{_bindir}/%{name}
 %banner %{name} -e <<EOF
-
 The %{name} binary was moved to %{_sbindir}, please update your
-configuration, as the compatability symlink might dissapear in the
-future!
-
+configuration! I've created compat symlink so you don't feel so much
+pain of that change.
 EOF
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS README NEWS
-%attr(755,root,root) %{_bindir}/*
+%ghost %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %attr(644,root,root) %{_mandir}/man8/*
 
@@ -80,6 +80,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2005/06/25 18:39:26  glen
+- smarter file file move, using trigger
+- rel 2
+
 Revision 1.13  2005/06/25 18:33:03  glen
 - move binary to sbin
 
================================================================

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




More information about the pld-cvs-commit mailing list