clamav: fix absolute paths in INSTALL/REMOVE

This commit is contained in:
Michael Gehring 2017-07-13 09:05:36 +00:00
parent f61a6ce97c
commit 1e7b00dbd8
3 changed files with 5 additions and 5 deletions

View file

@ -4,11 +4,11 @@ post)
# Only if not updating # Only if not updating
if [ "$UPDATE" != "yes" ]; then if [ "$UPDATE" != "yes" ]; then
# Create the database directory # Create the database directory
mkdir -p /var/lib/clamav mkdir -p var/lib/clamav
# The clamav user owns it # The clamav user owns it
chown -R clamav:clamav /var/lib/clamav chown -R clamav:clamav var/lib/clamav
# Let group members write to it # Let group members write to it
chmod g+w /var/lib/clamav chmod g+w var/lib/clamav
fi fi
;; ;;
esac esac

View file

@ -4,7 +4,7 @@ pre)
# Only if not updating # Only if not updating
if [ "$UPDATE" != "yes" ]; then if [ "$UPDATE" != "yes" ]; then
# Remove the clamav database directory and contents # Remove the clamav database directory and contents
rm -rf /var/lib/clamav rm -rf var/lib/clamav
fi fi
;; ;;
esac esac

View file

@ -1,7 +1,7 @@
# Template file for 'clamav' # Template file for 'clamav'
pkgname=clamav pkgname=clamav
version=0.99.2 version=0.99.2
revision=5 revision=6
build_style=gnu-configure build_style=gnu-configure
# XXX: system llvm is too new (< 3.7 required) # XXX: system llvm is too new (< 3.7 required)
# Shipped llvm does not build with gcc6 # Shipped llvm does not build with gcc6