blob: f6694dd424e58a252dc27710f56de0cf8431b5e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: sinkuu <sinkuupump@gmail.com>
#
# Note:
# clamav-unofficial-sigs.sh will refuse to work
# unless you enable "user_configuration_complete" in /etc/clamav-unofficial-sigs/user.conf
_install_cron_file=
_install_logrotate_file="y"
pkgname=clamav-unofficial-sigs
pkgver=5.3
pkgrel=1
pkgdesc='ClamAV Unofficial Signatures Updater maintained by eXtremeSHOK.com'
arch=('any')
url='https://github.com/extremeshok/clamav-unofficial-sigs'
license=('BSD')
depends=('clamav' 'rsync' 'bind-tools' 'gnupg' 'curl')
source=("https://github.com/extremeshok/clamav-unofficial-sigs/archive/$pkgver.tar.gz"
"cron"
"logrotate"
"clamav-unofficial-sigs.8")
sha256sums=('ac0d17bb29e6565e288bcc57086b4b0b7e9126ce47a8b1197c3312b6e3cec4ec'
'82d1db1f7f8400d4b5457343a6c6e1c32cffbee06b0f73104c5b11641b58fa74'
'ad2dee4d8d21483f33f9e95a808c598c98c03014baffa12141ecaefcd2cc3a79'
'53fe3143db5d422e6306bc9c7ba400976328faaf79cade5f669b48bb1ce6f7bf')
backup=("etc/clamav-unofficial-sigs/user.conf")
package() {
cd "$pkgname-$pkgver"
install -Dm755 clamav-unofficial-sigs.sh "${pkgdir}/usr/bin/clamav-unofficial-sigs.sh"
install -Dm644 "${srcdir}/clamav-unofficial-sigs.8" "${pkgdir}/usr/share/man/man8/clamav-unofficial-sigs.8"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/clamav-unofficial-sigs/LICENSE"
install -d -o clamav -g clamav "${pkgdir}/var/lib/clamav-unofficial-sigs"
install -d -o clamav -g clamav "${pkgdir}/var/log/clamav-unofficial-sigs"
mkdir -p "${pkgdir}/etc/clamav-unofficial-sigs"
install -Dm644 config/master.conf "${pkgdir}/etc/clamav-unofficial-sigs/master.conf"
install -Dm644 config/os.archlinux.conf "${pkgdir}/etc/clamav-unofficial-sigs/os.conf"
install -Dm644 config/user.conf "${pkgdir}/etc/clamav-unofficial-sigs/user.conf"
if [ -n "$_install_logrotate_file" ]; then
install -Dm644 "${srcdir}/logrotate" "${pkgdir}/etc/logrotate.d/clamav-unofficial-sigs"
fi
if [ -n "$_install_cron_file" ]; then
install -Dm644 "${srcdir}/cron" "${pkgdir}/etc/cron.d/clamav-unofficial-sigs"
fi
install -d "${pkgdir}/usr/lib/systemd/system"
install -Dm644 systemd/* "${pkgdir}/usr/lib/systemd/system/"
}
|