mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=clamav
|
|
pkgver=0.97.4
|
|
pkgrel=1
|
|
pkgdesc='Anti-virus toolkit for Unix'
|
|
arch=('i686' 'x86_64')
|
|
depends=('bzip2' 'zlib' 'libtool')
|
|
options=(!libtool)
|
|
install="$pkgname.install"
|
|
license=('GPL')
|
|
categories=('system')
|
|
backup=('etc/clamav/clamd.conf' 'etc/clamav/freshclam.conf' 'etc/conf.d/clamav')
|
|
url='http://www.clamav.net/'
|
|
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
|
|
'clamav'
|
|
'clamav.confd'
|
|
'clamav.logrotate'
|
|
'config.patch')
|
|
|
|
sha1sums=('56f90cf8a73acba8f97beca86b42c65c3923935d'
|
|
'7f15f0b13a1c11235bc99ef0add01efd8a442f07'
|
|
'cb116cdab49a810381a515cbcfb6a6c148547f07'
|
|
'be3310d2b41a68ce06e33c84ab68ffe59fdce104'
|
|
'701a61571788d10ff7af01597785835c6bfea918')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
patch -p1 -i ../config.patch
|
|
./configure --prefix=/usr --sysconfdir=/etc/clamav \
|
|
--with-dbdir=/var/lib/clamav --disable-clamav
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# make sure conf files get installed, cause make install
|
|
# doesn't do that if clamav is already installed upon building.
|
|
install -D -m644 etc/clamd.conf "$pkgdir/etc/clamav/clamd.conf"
|
|
install -D -m644 etc/freshclam.conf "$pkgdir/etc/clamav/freshclam.conf"
|
|
|
|
install -D -m644 ../clamav.logrotate "$pkgdir/etc/logrotate.d/clamav"
|
|
install -D -m644 ../clamav.confd "$pkgdir/etc/conf.d/clamav"
|
|
install -D -m755 ../clamav "$pkgdir/etc/rc.d/clamav"
|
|
|
|
# un-distribute databases to require freshclam
|
|
rm "$pkgdir"/var/lib/clamav/*.cvd
|
|
}
|