]> git.pld-linux.org Git - packages/tcb.git/commitdiff
v1.1, nfy
authorAria Stewart <aredridel@nbtsc.org>
Sun, 10 Mar 2013 04:29:20 +0000 (21:29 -0700)
committerAria Stewart <aredridel@nbtsc.org>
Sun, 10 Mar 2013 04:29:20 +0000 (21:29 -0700)
tcb.spec

index 046fc6691a87fdac2a1024046d796106b283a238..3a118bd8456caef2588431be9641071b262818f3 100644 (file)
--- 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
This page took 0.102405 seconds and 4 git commands to generate.