desktop/clamav/PKGBUILD

54 lines
1.9 KiB
Bash
Raw Normal View History

pkgname=clamav
2016-03-03 07:43:58 +08:00
pkgver=0.99.1
2014-11-20 08:08:44 +08:00
pkgrel=1
pkgdesc='Anti-virus toolkit for Unix'
2014-02-20 01:27:36 +08:00
arch=('x86_64')
2014-07-16 02:23:29 +08:00
install="${pkgname}.install"
license=('GPL')
categories=('system')
2014-07-16 02:23:29 +08:00
backup=('etc/clamav/clamd.conf' 'etc/clamav/freshclam.conf' 'etc/logrotate.d/clamav')
url='http://www.clamav.net/'
2015-04-29 20:40:24 +08:00
depends=('bzip2' 'libltdl' 'gcc-libs')
2013-09-21 19:42:06 +08:00
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
2014-07-16 02:23:29 +08:00
'clamd.conf'
'clamav.logrotate'
2014-07-16 02:23:29 +08:00
'clamd.service'
'freshclamd.service'
2014-07-16 02:23:29 +08:00
'tmpfiles.d'
'freshclam.conf')
2016-03-03 07:43:58 +08:00
sha256sums=('e144689122d3f91293808c82cbb06b7d3ac9eca7ae29564c5d148ffe7b25d58a'
2014-07-16 02:23:29 +08:00
'03fe7fc57a72a618e0ccdc31e86050bd64f97a734ad7d47f1c8d68b2bd45fb9c'
'dba0c3344a284374c3692c794891e673f3ad73e231efaa607ad3d51026e256d3'
'a7722a9b93f1e23b5830a34e49087385551cf271f6584a47c7f8c550768c3a82'
'dd5ff6c79ee360da5f2221c4d9110a2a8886d86293f6c93c16bf74fdb126593c'
'0a61abee3b9bba94126afe3344e7d8e82da5120ca6dbd2b413b10f75da5b0b0d'
'127b39e13525ffb4242198cfb76f99d4d517e5f2fd9fa8dcad3f31fc9f82f952')
build() {
2014-07-16 02:23:29 +08:00
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc/clamav \
--with-dbdir=/var/lib/clamav \
--disable-clamav
make
}
package() {
2014-07-16 02:23:29 +08:00
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm644 ../freshclamd.service "${pkgdir}/usr/lib/systemd/system/freshclamd.service"
2014-07-16 02:23:29 +08:00
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"
2013-09-21 19:42:06 +08:00
2014-07-16 02:23:29 +08:00
install -d -o 64 -g 64 "${pkgdir}"/var/log/clamav
install -d -o 64 -g 64 "${pkgdir}"/var/lib/clamav
}