desktop/clamav/PKGBUILD
2014-11-20 00:08:44 +00:00

57 lines
2.0 KiB
Bash

# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
pkgname=clamav
pkgver=0.98.5
pkgrel=1
pkgdesc='Anti-virus toolkit for Unix'
arch=('x86_64')
options=('!libtool')
install="${pkgname}.install"
license=('GPL')
categories=('system')
backup=('etc/clamav/clamd.conf' 'etc/clamav/freshclam.conf' 'etc/logrotate.d/clamav')
url='http://www.clamav.net/'
depends=('bzip2' 'zlib' 'libtool')
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'clamd.conf'
'clamav.logrotate'
'clamd.service'
'freshclamd.service'
'tmpfiles.d'
'freshclam.conf')
sha256sums=('9c2f37d5fa9033936468237f6f4b29289f30791caa84765ef510acb56c8daa4d'
'03fe7fc57a72a618e0ccdc31e86050bd64f97a734ad7d47f1c8d68b2bd45fb9c'
'dba0c3344a284374c3692c794891e673f3ad73e231efaa607ad3d51026e256d3'
'a7722a9b93f1e23b5830a34e49087385551cf271f6584a47c7f8c550768c3a82'
'dd5ff6c79ee360da5f2221c4d9110a2a8886d86293f6c93c16bf74fdb126593c'
'0a61abee3b9bba94126afe3344e7d8e82da5120ca6dbd2b413b10f75da5b0b0d'
'127b39e13525ffb4242198cfb76f99d4d517e5f2fd9fa8dcad3f31fc9f82f952')
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc/clamav \
--with-dbdir=/var/lib/clamav \
--disable-clamav
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm644 ../freshclamd.service "${pkgdir}/usr/lib/systemd/system/freshclamd.service"
install -Dm644 ../clamd.service "${pkgdir}/usr/lib/systemd/system/clamd.service"
install -Dm644 ../tmpfiles.d "${pkgdir}/usr/lib/tmpfiles.d/clamav.conf"
install -Dm644 ../clamav.logrotate "${pkgdir}/etc/logrotate.d/clamav"
install -Dm644 ../clamd.conf "${pkgdir}/etc/clamav/clamd.conf"
install -Dm644 ../freshclam.conf "${pkgdir}/etc/clamav/freshclam.conf"
install -d -o 64 -g 64 "${pkgdir}"/var/log/clamav
install -d -o 64 -g 64 "${pkgdir}"/var/lib/clamav
}