Date: Sunday, June 3, 2018 @ 16:42:46 Author: felixonmars Revision: 325654
archrelease: copy trunk to staging-x86_64 Added: clamav/repos/staging-x86_64/ clamav/repos/staging-x86_64/PKGBUILD (from rev 325653, clamav/trunk/PKGBUILD) clamav/repos/staging-x86_64/clamav.install (from rev 325653, clamav/trunk/clamav.install) clamav/repos/staging-x86_64/clamav.logrotate (from rev 325653, clamav/trunk/clamav.logrotate) clamav/repos/staging-x86_64/clamav.sysusers (from rev 325653, clamav/trunk/clamav.sysusers) clamav/repos/staging-x86_64/clamav.tmpfiles (from rev 325653, clamav/trunk/clamav.tmpfiles) ------------------+ PKGBUILD | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++ clamav.install | 11 ++++++ clamav.logrotate | 11 ++++++ clamav.sysusers | 1 clamav.tmpfiles | 3 + 5 files changed, 110 insertions(+) Copied: clamav/repos/staging-x86_64/PKGBUILD (from rev 325653, clamav/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-06-03 16:42:46 UTC (rev 325654) @@ -0,0 +1,84 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Dale Blount <d...@archlinux.org> +# Contributor: Gregor Ibic <gregor.i...@intelicom.si> +# Contributor: Gaetan Bisson <bis...@archlinux.org> + +pkgname=clamav +pkgver=0.100.0 +pkgrel=2 +pkgdesc='Anti-virus toolkit for Unix' +url='https://www.clamav.net/' +license=('GPL') +arch=('x86_64') +depends=('bzip2' 'libltdl' 'libxml2' 'curl' 'libsystemd' 'pcre2' 'json-c') +makedepends=('libmilter' 'systemd') +backup=('etc/clamav/clamd.conf' + 'etc/clamav/freshclam.conf' + 'etc/clamav/clamav-milter.conf' + 'etc/logrotate.d/clamav') +install=clamav.install +source=(https://www.clamav.net/downloads/production/${pkgname}-${pkgver}.tar.gz{,.sig} + clamav.logrotate + clamav.tmpfiles + clamav.sysusers) +sha512sums=('57e1da86a32fdfb66887c4aeed03008bc070ce3cb6b881db411332f2f2e640b73dca84d990f5886526b3d6bd0c2770c7dcce5b4e7cf48323824c362452593549' + 'SKIP' + '9cb168c1c16bb43c99900d7ef34456e3f3b593d4d1943c875a0306bc86fd3872cb78e9e1413dcba93579e01b96d466c9eea1975e24190193663b7986c4525d48' + 'c5443634399bd87fe0d0192518538ffdb7296a8437b5b0160a0fbd58696b01285de3237e3feb552c0095c49e576832dec2e2b2107eef2be42424ed7edd13cd19' + 'b984836f6c34d97b90d81fa5d17361a2e3f8c0cc709e3350a4d25cf088dc04f7bf2504359980c8be489c96b1b8798c60e6da533069d3378d49d4f50f929a2c90') +validpgpkeys=('65ED513993F08DA06F9639A6F13F9E16BCA5BFAD') # Talos (Talos, Cisco Systems Inc.) <resea...@sourcefire.com> + +prepare() { + cd ${pkgname}-${pkgver} + sed -E 's|^(Example)$|#\1|' -i etc/{clamd,freshclam,clamav-milter}.conf.sample + sed -E 's|#(User) .+|\1 clamav|' -i etc/{clamd,freshclam,clamav-milter}.conf.sample + sed -E 's|#(LogFile) .+|\1 /var/log/clamav/clamd.log|' -i etc/clamd.conf.sample + sed -E 's|#(LogTime) .+|\1 yes|' -i etc/clamd.conf.sample etc/clamav-milter.conf.sample + sed -E 's|#(PidFile) .+|\1 /run/clamav/clamd.pid|' -i etc/clamd.conf.sample + sed -E 's|#(TemporaryDirectory) .+|\1 /tmp|' -i etc/{clamd,clamav-milter}.conf.sample + sed -E 's|#(LocalSocket) .+|\1 /run/clamav/clamd.ctl|' -i etc/clamd.conf.sample + sed -E 's|#(UpdateLogFile) .+|\1 /var/log/clamav/freshclam.log|' -i etc/freshclam.conf.sample + sed -E 's|#(DatabaseMirror) .+|\1 database.clamav.net|' -i etc/freshclam.conf.sample + sed -E 's|#(NotifyClamd) .+|\1 /etc/clamav/clamd.conf|' -i etc/freshclam.conf.sample + sed -E 's|#(PidFile) .+|\1 /run/clamav/freshclam.pid|' -i etc/freshclam.conf.sample + sed -E 's|#(LogFile) .+|\1 /var/log/clamav/clamav-milter.log|' -i etc/clamav-milter.conf.sample + sed -E 's|#(PidFile) .+|\1 /run/clamav/clamav-milter.pid|' -i etc/clamav-milter.conf.sample + autoreconf -fiv +} + +build() { + cd ${pkgname}-${pkgver} + # --disable-zlib-vcheck because the configure script thinks that + # zlib 1.2.11 is older than 1.2.2 + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc/clamav \ + --with-dbdir=/var/lib/clamav \ + --with-user=clamav \ + --with-group=clamav \ + --disable-rpath \ + --disable-clamav \ + --disable-llvm \ + --enable-zlib-vcheck \ + --enable-milter \ + --enable-clamdtop + + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + mv "${pkgdir}"/etc/clamav/freshclam.conf{.sample,} + mv "${pkgdir}"/etc/clamav/clamd.conf{.sample,} + mv "${pkgdir}"/etc/clamav/clamav-milter.conf{.sample,} + + install -Dm 644 ../clamav.sysusers "${pkgdir}"/usr/lib/sysusers.d/clamav.conf + install -Dm 644 ../clamav.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/clamav.conf + install -Dm 644 ../clamav.logrotate "${pkgdir}"/etc/logrotate.d/clamav +} + +# vim: ts=2 sw=2 et: Copied: clamav/repos/staging-x86_64/clamav.install (from rev 325653, clamav/trunk/clamav.install) =================================================================== --- staging-x86_64/clamav.install (rev 0) +++ staging-x86_64/clamav.install 2018-06-03 16:42:46 UTC (rev 325654) @@ -0,0 +1,11 @@ +post_upgrade() { + if (( $(vercmp $2 0.99.3) <= 0 )); then + cat << EOF + +===> WARNING: ClamAV service files have been renamed: + -> clamav-daemon.service + -> clamav-freshclam.service + +EOF + fi +} Copied: clamav/repos/staging-x86_64/clamav.logrotate (from rev 325653, clamav/trunk/clamav.logrotate) =================================================================== --- staging-x86_64/clamav.logrotate (rev 0) +++ staging-x86_64/clamav.logrotate 2018-06-03 16:42:46 UTC (rev 325654) @@ -0,0 +1,11 @@ +/var/log/clamav/clamd.log /var/log/clamav/freshclam.log /var/log/clamav/clamav-milter.log { + create 644 clamav clamav + sharedscripts + missingok + notifempty + postrotate + /bin/kill -HUP `cat /run/clamav/clamd.pid 2>/dev/null` 2> /dev/null || true + /bin/kill -HUP `cat /run/clamav/freshclam.pid 2>/dev/null` 2> /dev/null || true + /bin/kill -HUP `cat /run/clamav/clamav-milter.pid 2>/dev/null` 2> /dev/null || true + endscript +} Copied: clamav/repos/staging-x86_64/clamav.sysusers (from rev 325653, clamav/trunk/clamav.sysusers) =================================================================== --- staging-x86_64/clamav.sysusers (rev 0) +++ staging-x86_64/clamav.sysusers 2018-06-03 16:42:46 UTC (rev 325654) @@ -0,0 +1 @@ +u clamav 64 "Clam AntiVirus" - Copied: clamav/repos/staging-x86_64/clamav.tmpfiles (from rev 325653, clamav/trunk/clamav.tmpfiles) =================================================================== --- staging-x86_64/clamav.tmpfiles (rev 0) +++ staging-x86_64/clamav.tmpfiles 2018-06-03 16:42:46 UTC (rev 325654) @@ -0,0 +1,3 @@ +d /run/clamav 0755 clamav clamav +d /var/log/clamav 0755 clamav clamav +d /var/lib/clamav 0755 clamav clamav