mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
54 lines
1.9 KiB
Bash
54 lines
1.9 KiB
Bash
pkgname=clamav
|
|
pkgver=0.99.2
|
|
pkgrel=2
|
|
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://www.clamav.net/downloads/production//${pkgname}-${pkgver}.tar.gz"
|
|
'clamd.conf'
|
|
'clamav.logrotate'
|
|
'clamd.service'
|
|
'freshclamd.service'
|
|
'tmpfiles.d'
|
|
'freshclam.conf')
|
|
sha256sums=('167bd6a13e05ece326b968fdb539b05c2ffcfef6018a274a10aeda85c2c0027a'
|
|
'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
|
|
}
|