rendered paste bodySummary: clamav-0.92-EE_REV
Name: clamav
Version: 0.92
Release: 2008020805
Copyright: GPL
Packager: checkinstall-1.5.3
Group: Applications/System
BuildRoot: /opt/rpm/build/clamav/clamav-0.92
Requires: glibc gmp bzip2
%description
Intended only for upgrading ClamAV to v 0.92 for Trustix.
http://wiki.clamav.net/Main/UpgradeInstructions
################################################################################
### Uninstall
################################################################################
%postun
if [ "$1" = "0" ]; then
/sbin/chkconfig clamd off
/sbin/chkconfig freshclam off
service clamd stop > /dev/null 2>&1
service freshclam stop > /dev/null 2>&1 || true
fi
exit 0
################################################################################
### Pre Install
################################################################################
%pre
if [ "$1" = "1" ]; then
if [ -z "`getent group clamav`" ] ; then
/usr/sbin/groupadd -g 10306 clamav
fi
if [ -z "`getent passwd clamav`" ] ; then
/usr/sbin/useradd -M -d /no/dir -g clamav -s /bin/false \
-u 20002 -c "Clam AntiVirus" clamav
fi
fi
exit 0
################################################################################
### Post Install
################################################################################
%post
if [ "$1" -ge 1 ]; then
/sbin/chkconfig clamd on
/sbin/chkconfig freshclam on
# /sbin/restart_maybe clamd > /dev/null 2>&1
# /sbin/restart_maybe freshclam > /dev/null 2>&1 || true
fi
exit 0
%files
"/"