]> git.pld-linux.org Git - packages/cvsd.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:
    cvsd.spec -> 1.22

cvsd.spec

index c3cd0563cec0f3237acee068445bad2b190142fd..d229688d40b7f486f81465f4598d291f2a8e2eb8 100644 (file)
--- a/cvsd.spec
+++ b/cvsd.spec
@@ -14,7 +14,7 @@ Source1:      %{name}.init
 #Source1:      %{name}.conf
 #Source2:      %{name}-passwd
 URL:           http://tiefighter.et.tudelft.nl/~arthur/cvsd/
-BuildRequires: rpmbuild(macros) >= 1.159
+BuildRequires: rpmbuild(macros) >= 1.202
 PreReq:                rc-scripts
 Requires(post,preun):  /sbin/chkconfig
 Requires(pre): /usr/bin/getgid
@@ -69,22 +69,9 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-if [ -n "`/usr/bin/getgid cvsadmin`" ]; then
-       if [ "`/usr/bin/getgid cvsadmin`" != "53" ]; then # 2401
-               echo "Error: group cvsadmin doesn't have gid=53. Correct this before installing cvsd." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/groupadd -g 53 cvsadmin
-fi
-if [ -n "`/bin/id -u cvsowner 2>/dev/null`" ]; then
-       if [ "`/bin/id -u cvsowner`" != "128" ]; then
-               echo "Error: user cvsowner doesn't have uid=128. Correct this before installing cvsd." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/useradd -u 128 -g 53 -c "CVS UID" -d %{homedir} cvsowner
-fi
+%groupadd -g 53 cvsadmin
+%useradd -u 128 -g 53 -c "CVS UID" -d %{homedir} cvsowner
+
 if [ ! -f %{rootdir}/bin/cvs ] ; then
        echo "Setting up %{rootdir}..."
        cd /lib
This page took 0.06476 seconds and 4 git commands to generate.