]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- cosmetics auto/ac/clamav-0_60-4_5
authorankry <ankry@pld-linux.org>
Mon, 3 Nov 2003 22:03:32 +0000 (22:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamav.spec -> 1.52

clamav.spec

index 4b4bd3a02284daf9ad3f1d074e526e20c9ef638d..6e4d4a1ed686a4b94daadcb8a2981bdd7c75400e 100644 (file)
@@ -19,7 +19,7 @@ Source2:      %{name}.sysconfig
 Source3:       %{name}-database-%{database_version}.tar.gz
 # Source3-md5: a8848904249edd97b873a43032c0208f
 Source4:       %{name}-cron-updatedb
-Patch0:         %{name}-pld_config.patch
+Patch0:                %{name}-pld_config.patch
 URL:           http://www.clamav.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -142,46 +142,46 @@ rm -rf $RPM_BUILD_ROOT
 %triggerin -- amavis-ng
 AMAVIS=$(/usr/bin/getgid amavis)
 RESULT=$?
-if  [ $RESULT -eq 0 ]; then
-        /usr/sbin/usermod -G amavis clamav 1>&2 > /dev/null
-        echo "adding clamav to amavis group GID=$AMAVIS"
+if [ $RESULT -eq 0 ]; then
+       /usr/sbin/usermod -G amavis clamav 1>&2 > /dev/null
+       echo "adding clamav to amavis group GID=$AMAVIS"
 fi
 
 %triggerin -- amavisd-new
 AMAVIS=$(/usr/bin/getgid amavis)
 RESULT=$?
-if  [ $RESULT -eq 0 ]; then
-        /usr/sbin/usermod -G amavis clamav 1>&2 > /dev/null
-        echo "adding clamav to amavis group GID=$AMAVIS"
+if [ $RESULT -eq 0 ]; then
+       /usr/sbin/usermod -G amavis clamav 1>&2 > /dev/null
+       echo "adding clamav to amavis group GID=$AMAVIS"
 fi
 
 %triggerin -- amavisd
 AMAVIS=$(/usr/bin/getgid amavis)
 RESULT=$?
-if  [ $RESULT -eq 0 ]; then
-        /usr/sbin/usermod -G amavis clamav 1>&2 > /dev/null
-        echo "adding clamav to amavis group GID=$AMAVIS"
+if [ $RESULT -eq 0 ]; then
+       /usr/sbin/usermod -G amavis clamav 1>&2 > /dev/null
+       echo "adding clamav to amavis group GID=$AMAVIS"
 fi
 
 
 %pre
 if [ -n "`getgid clamav`" ]; then
-        if [ "`getgid clamav`" != "43" ]; then
-                echo "Warning: group clamav doesn't have gid=43. Correct this before installing clamav" 1>&2
-                exit 1
-        fi
+       if [ "`getgid clamav`" != "43" ]; then
+               echo "Warning: group clamav doesn't have gid=43. Correct this before installing clamav" 1>&2
+               exit 1
+       fi
 else
-       echo "Adding group clamav GID=43"
-        /usr/sbin/groupadd -g 43 -r -f clamav
+       echo "Adding group clamav GID=43"
+       /usr/sbin/groupadd -g 43 -r -f clamav
 fi
 if [ -n "`id -u clamav 2>/dev/null`" ]; then
-       if [ "`id -u clamav`" != "43" ]; then
-               echo "Warning: user clamav doesn't have uid=43. Correct this before installing clamav" 1>&2
-               exit 1
-       fi
+       if [ "`id -u clamav`" != "43" ]; then
+               echo "Warning: user clamav doesn't have uid=43. Correct this before installing clamav" 1>&2
+               exit 1
+       fi
 else
-       echo "Adding user clamav UID=43"
-       /usr/sbin/useradd -u 43 -r -d /tmp  -s /bin/false -c "Clam Anti Virus Checker" -g clamav clamav 1>&2
+       echo "Adding user clamav UID=43"
+       /usr/sbin/useradd -u 43 -r -d /tmp -s /bin/false -c "Clam Anti Virus Checker" -g clamav clamav 1>&2
 fi
 
 %post
@@ -203,14 +203,14 @@ fi
 
 %postun
 if [ "$1" = "0" ]; then
-       echo "Removing user clamav"
-       /usr/sbin/userdel clamav
-       echo "Removing group clamav"
-       /usr/sbin/groupdel clamav
+       echo "Removing user clamav"
+       /usr/sbin/userdel clamav
+       echo "Removing group clamav"
+       /usr/sbin/groupdel clamav
 fi
 
-%post   libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
This page took 0.037193 seconds and 4 git commands to generate.