desktop/clamav/PKGBUILD
2016-03-02 23:43:58 +00:00

54 lines
1.9 KiB
Bash

pkgname=clamav
pkgver=0.99.1
pkgrel=1
pkgdesc='Anti-virus toolkit for Unix'
arch=('x86_64')
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' 'libltdl' 'gcc-libs')
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'clamd.conf'
'clamav.logrotate'
'clamd.service'
'freshclamd.service'
'tmpfiles.d'
'freshclam.conf')
sha256sums=('e144689122d3f91293808c82cbb06b7d3ac9eca7ae29564c5d148ffe7b25d58a'
'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
}