[packages/tcb] v1.1, nfy

aredridel aredridel at pld-linux.org
Sun Mar 10 05:29:29 CET 2013


commit ee70937723cb73904379c941b1057a4b55a41795
Author: Aria Stewart <aredridel at nbtsc.org>
Date:   Sat Mar 9 21:29:20 2013 -0700

    v1.1, nfy

 tcb.spec | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/tcb.spec b/tcb.spec
index 046fc66..3a118bd 100644
--- a/tcb.spec
+++ b/tcb.spec
@@ -6,13 +6,18 @@
 Summary:	The alternative to shadow
 Summary(pl.UTF-8):	Alternatywa dla shadow
 Name:		tcb
-Version:	1.0.2
+Version:	1.1
 Release:	0.1
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://www.openwall.com/tcb/%{name}-%{version}.tar.gz
-# Source0-md5:	2e98162440615666f2f335679948fff1
+# Source0-md5:	b4ac25f22fd3bdc9eb32ff6f97f022cd
 Patch0:		%{name}-make.patch
+Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires(pre):	/bin/id
+Requires(pre):	/usr/sbin/groupadd
+Requires(pre):	/usr/sbin/useradd
 URL:		http://www.openwall.com/tcb/
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -109,6 +114,17 @@ mv $RPM_BUILD_ROOT%{_libexecdir}/chkpwd/tcb_chkpwd $RPM_BUILD_ROOT/sbin
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 286 -r -f shadow
+
+%postun
+if [ "$1" = "0" ]; then
+	%groupremove shadow
+fi
+
+%post   libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) /%{_lib}/libtcb.so.0.9.8
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tcb.git/commitdiff/ee70937723cb73904379c941b1057a4b55a41795



More information about the pld-cvs-commit mailing list