commit d89bf5b89b7991c964c0148b61300420ef841106 Author: Matt Housh <jaeger@crux.ninja> Date: Thu Mar 3 12:28:40 2016 -0600 clamav: updated to version 0.99.1, fixed pre-install syntax diff --git a/clamav/.md5sum b/clamav/.md5sum index 83a050c..212e6d8 100644 --- a/clamav/.md5sum +++ b/clamav/.md5sum @@ -1,4 +1,4 @@ -ae79c3982761ba1815dbce17f846bab6 clamav-0.99.tar.gz +cf1f3cbe62a08c9165801f79239166ff clamav-0.99.1.tar.gz aaac6d51260a03830f04d561ea8dda37 clamd 9d2a838b95ce45afbee5a17d5e61b5cd clamd.conf c7d815c57b585a63815c1e1d626421fc freshclam diff --git a/clamav/Pkgfile b/clamav/Pkgfile index 81ebbac..2a89d93 100644 --- a/clamav/Pkgfile +++ b/clamav/Pkgfile @@ -4,13 +4,13 @@ # Depends on: zlib bzip2 libgmp curl name=clamav -version=0.99.0 +version=0.99.1 release=1 -source=(http://www.clamav.net/downloads/production/$name-${version%.*}.tar.gz \ +source=(http://www.clamav.net/downloads/production/$name-$version.tar.gz \ clamd.conf freshclam.conf clamd freshclam) build() { - cd $name-${version%.*} + cd $name-$version ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-id-check \ diff --git a/clamav/pre-install b/clamav/pre-install index 5071096..209afa9 100755 --- a/clamav/pre-install +++ b/clamav/pre-install @@ -1,10 +1,10 @@ #!/bin/sh -if [ -z `getent group clamav` ]; then +if [ -z "`getent group clamav`" ]; then /usr/sbin/groupadd -r clamav fi -if [ -z `getent passwd clamav` ]; then +if [ -z "`getent passwd clamav`" ]; then /usr/sbin/useradd -r -g clamav -d /etc/clamav -s /bin/false -c "ClamAV" clamav /usr/bin/passwd -l fi