SPECS: checkpassword-pam.spec - move binary to sbin

glen glen at pld-linux.org
Sat Jun 25 20:33:08 CEST 2005


Author: glen                         Date: Sat Jun 25 18:33:08 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- move binary to sbin

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

---- Diffs:

================================================================
Index: SPECS/checkpassword-pam.spec
diff -u SPECS/checkpassword-pam.spec:1.12 SPECS/checkpassword-pam.spec:1.13
--- SPECS/checkpassword-pam.spec:1.12	Fri Feb 18 10:53:17 2005
+++ SPECS/checkpassword-pam.spec	Sat Jun 25 20:33:03 2005
@@ -3,13 +3,14 @@
 Summary(pl):	Jednolity interfejs do sprawdzania haseł przez PAM
 Name:		checkpassword-pam
 Version:	0.99
-Release:	1
+Release:	1.4
 License:	GPL
 Group:		Applications/System
 Source0:	http://dl.sourceforge.net/checkpasswd-pam/%{name}-%{version}.tar.gz
 # Source0-md5:	47db7b71f281115b030d4947f09f4374
 URL:		http://checkpasswd-pam.sourceforge.net/
 BuildRequires:	pam-devel
+BuildRequires:	rpmbuild(macros) >= 1.177
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,17 +49,29 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
-install checkpassword-pam $RPM_BUILD_ROOT%{_bindir}
+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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerpostun -- %{name} <= 0.99-1
+# TODO: any knowledge which configuration files to automatically "fix"?
+%banner %{name} -e <<EOF
+
+The %{name} binary was moved to %{_sbindir}, please update your
+configuration, as the compatability symlink might dissapear in the
+future!
+
+EOF
+
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc AUTHORS README NEWS
 %attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/*
 %attr(644,root,root) %{_mandir}/man8/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -67,6 +80,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2005/06/25 18:33:03  glen
+- move binary to sbin
+
 Revision 1.12  2005/02/18 09:53:17  glen
 - adapterized
 
================================================================

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




More information about the pld-cvs-commit mailing list