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
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/*