]> git.pld-linux.org Git - packages/checkpassword-pam.git/commitdiff
- smarter file file move, using trigger
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 25 Jun 2005 18:39:26 +0000 (18:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 2

Changed files:
    checkpassword-pam.spec -> 1.14

checkpassword-pam.spec

index daf4993a148b7568a8231a95a067b5aa5d5f7e10..efd9f76c4ef92ac18f472a6746c3aaac3911acaa 100644 (file)
@@ -2,7 +2,7 @@ Summary:        The uniform PAM password-checking interface
 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
@@ -50,25 +50,25 @@ rm -rf $RPM_BUILD_ROOT
 
 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/*
This page took 0.092163 seconds and 4 git commands to generate.