]> git.pld-linux.org Git - packages/libutempter.git/commitdiff
- create utmp group by our own, not to depend on SysVinit just for group(utmp); rel 7 auto/ac/utempter-0_5_5-7
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 7 Nov 2006 06:21:52 +0000 (06:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libutempter.spec -> 1.56

libutempter.spec

index 22af678e3dbf7b4c4509849f5ae9d0c318316574..277eabc8fd4b91fccdfd85f63e74a9b93897f53d 100644 (file)
@@ -6,14 +6,15 @@ Summary(ru):  
 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)
 
@@ -84,6 +85,9 @@ install -d $RPM_BUILD_ROOT/var/run
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 22 utmp
+
 %post
 /sbin/ldconfig
 if [ ! -f /var/run/utmpx ]; then
@@ -93,14 +97,17 @@ if [ ! -f /var/run/utmpx ]; then
        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
This page took 0.122619 seconds and 4 git commands to generate.