]> git.pld-linux.org Git - packages/SysVinit.git/commitdiff
- use %useradd/%groupadd macros
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 1 May 2005 17:31:30 +0000 (17:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    SysVinit.spec -> 1.121

SysVinit.spec

index 85f24c3dc996eb084b3607fd8d70615321949a80..823d278372275404390b2108aa1ae27df0da96f9 100644 (file)
@@ -38,7 +38,7 @@ Patch10:      sysvinit-selinux.patch
 BuildRequires: libselinux-devel >= 1.18
 BuildRequires: libsepol-devel
 %endif
-BuildRequires: rpmbuild(macros) >= 1.159
+BuildRequires: rpmbuild(macros) >= 1.202
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
 Requires(post):        fileutils
@@ -159,14 +159,7 @@ bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-if [ -n "`/usr/bin/getgid utmp`" ]; then
-       if [ "`/usr/bin/getgid utmp`" != 22 ]; then
-               echo "Error: group utmp doesn't have gid=22. Correct this before installing SysVinit." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/groupadd -g 22 utmp 1>&2
-fi
+%groupadd -g 22 utmp
 
 %post
 touch %{_sysconfdir}/ioctl.save /var/log/{fail,last}log
This page took 0.085096 seconds and 4 git commands to generate.