SPECS: utempter.spec - create utmp group by our own, not to depend...

glen glen at pld-linux.org
Tue Nov 7 07:21:58 CET 2006


Author: glen                         Date: Tue Nov  7 06:21:58 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- create utmp group by our own, not to depend on SysVinit just for group(utmp); rel 7

---- Files affected:
SPECS:
   utempter.spec (1.55 -> 1.56) 

---- Diffs:

================================================================
Index: SPECS/utempter.spec
diff -u SPECS/utempter.spec:1.55 SPECS/utempter.spec:1.56
--- SPECS/utempter.spec:1.55	Sat Dec  3 03:18:27 2005
+++ SPECS/utempter.spec	Tue Nov  7 07:21:52 2006
@@ -7,14 +7,15 @@
 Summary(uk):	đŇÉ׌ĚĹĘĎ×ÁÎÁ ĐŇĎÇŇÁÍÁ ÄĚŃ ×ÎĹÓĹÎÎŃ ÚÍŚÎ ÄĎ utmp/wtmp
 Name:		utempter
 Version:	0.5.5
-Release:	6
+Release:	7
 License:	MIT or LGPL
 Group:		Base
 Source0:	%{name}-%{version}.tar.gz
 # Source0-md5:	a628f149132e2f729bc4601e6a4f6c29
 Patch0:		%{name}-lastlog.patch
 Patch1:		%{name}-utmp-cleanup.patch
-PreReq:		group(utmp)
+Requires(post,postun):	/sbin/ldconfig
+Provides:	group(utmp)
 Obsoletes:	libutempter0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -85,6 +86,9 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 22 utmp
+
 %post
 /sbin/ldconfig
 if [ ! -f /var/run/utmpx ]; then
@@ -94,14 +98,17 @@
 	chmod 0664 /var/run/utmpx
 fi
 
-%postun	-p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+if [ "$1" = "0" ]; then
+	%groupremove utmp
+fi
 
 %files
 %defattr(644,root,root,755)
 %attr(2755,root,utmp) %{_sbindir}/utempter
 %attr(755,root,root) %{_sbindir}/utmp-cleanup
 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
-
 %attr(664,root,utmp) %ghost /var/run/utmpx
 
 %files devel
@@ -115,6 +122,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.56  2006/11/07 06:21:52  glen
+- create utmp group by our own, not to depend on SysVinit just for group(utmp); rel 7
+
 Revision 1.55  2005/12/03 02:18:27  glen
 - rel 6
 
@@ -271,18 +281,3 @@
 
 Revision 1.9  1999/07/12 23:06:16  kloczek
 - added using CVS keywords in %changelog (for automating them).
-
-* Sun Jun 13 1999 Wojtek Ślusarczyk <wojtek at shadow.eu.org>
-  [0.5-3]
-- major changes,
-- group utmpx with gid 60,
-- only /var/run/utmpx is owned by this packet,
-- groupdel in %post
-- /usr/bin/update-db in %pre & %postun
-
-* Wed Apr 28 1999 Tomasz Kłoczko <kloczek at rudy.mif.pg.gda.pl>
-  [0.5-2]
-- added -q %setup parameter,
-- added stripping shared library and binaries,
-- added devel subpackage,
-- removed /sbin/ldconfig from Prereq (this is automatically generated).
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/utempter.spec?r1=1.55&r2=1.56&f=u



More information about the pld-cvs-commit mailing list