]> git.pld-linux.org Git - packages/distcc.git/commitdiff
- rel 0.3; missing group added
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 17 Oct 2004 16:58:39 +0000 (16:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    distcc.spec -> 1.80

distcc.spec

index 9264c8ecd04a0012e53e360d74a72620b24f19cd..2411f74ba2bc18041969f576333d3d1143566c56 100644 (file)
@@ -7,7 +7,7 @@ Summary(pl):    Program do rozdzielania kompilacji program
 Name:          distcc
 Group:         Development/Languages
 Version:       2.18
-Release:       0.2
+Release:       0.3
 License:       GPL
 Source0:       http://distcc.samba.org/ftp/distcc/%{name}-%{version}.tar.bz2
 # Source0-md5: a55b547d4ff62d8500e290b82671db50
@@ -157,6 +157,14 @@ touch $RPM_BUILD_ROOT%{_var}/log/distcc
 rm -rf $RPM_BUILD_ROOT
 
 %pre inetd
+if [ -n "`getgid distcc`" ]; then
+        if [ "`getgid distcc`" != "137" ]; then
+                echo "Error: group distcc doesn't have gid=137. Correct this before installing distccd." 1>&2
+                exit 1
+        fi
+else
+        /usr/sbin/groupadd -g 137 -r -f distcc
+fi
 if [ -n "`/bin/id -u distcc 2>/dev/null`" ]; then
        if [ "`/bin/id -u distcc`" != "137" ]; then
                echo "Error: user distcc doesn't have uid=137. Correct this before installing distccd server." 1>&2
@@ -179,9 +187,18 @@ if [ -f /var/lock/subsys/rc-inetd ]; then
 fi
 if [ "$1" = "0" ]; then
         %userremove distcc
+       %groupremove distcc
 fi
 
 %pre standalone
+if [ -n "`getgid distcc`" ]; then
+        if [ "`getgid distcc`" != "137" ]; then
+                echo "Error: group distcc doesn't have gid=137. Correct this before installing distccd." 1>&2
+                exit 1
+        fi
+else
+        /usr/sbin/groupadd -g 137 -r -f distcc
+fi
 if [ -n "`/bin/id -u distcc 2>/dev/null`" ]; then
        if [ "`/bin/id -u distcc`" != "137" ]; then
                echo "Error: user distcc doesn't have uid=137. Correct this before installing distccd server." 1>&2
@@ -202,6 +219,7 @@ fi
 %postun standalone
 if [ "$1" = "0" ]; then
        %userremove distcc
+       %groupremove distcc
 fi
 
 %preun standalone
This page took 0.064122 seconds and 4 git commands to generate.