summaryrefslogtreecommitdiffstats
path: root/main/clamav/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-26 12:25:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-26 12:25:34 +0000
commit48f654836d90a95638501826492b09935cb5d3d2 (patch)
tree74feecca4eea19aea934409adc4ba40c536e393c /main/clamav/APKBUILD
parent73fe27a28c1ec58394a37cba67e70a67eaedb52e (diff)
downloadaports-48f654836d90a95638501826492b09935cb5d3d2.tar.bz2
aports-48f654836d90a95638501826492b09935cb5d3d2.tar.xz
main/clamav: add replaces to make upgrades work
Diffstat (limited to 'main/clamav/APKBUILD')
-rw-r--r--main/clamav/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/clamav/APKBUILD b/main/clamav/APKBUILD
index 423b794b4..c09dc5a31 100644
--- a/main/clamav/APKBUILD
+++ b/main/clamav/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=clamav
pkgver=0.97.4
-pkgrel=0
+pkgrel=1
pkgusers=clamav
pkggroups=clamav
pkgdesc="An anti-virus toolkit for UNIX"
@@ -63,6 +63,7 @@ lib() {
libunrar() {
pkgdesc="ClamAV unrar libraries"
depends=""
+ replaces="clamav"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libclamunrar* \
"$subpkgdir"/usr/lib/
@@ -71,6 +72,7 @@ libunrar() {
db() {
pkgdesc="ClamAV virus database and update program"
depends="logrotate"
+ replaces="clamav"
install="$subpkgname.pre-install $subpkgname.post-install $subpkgname.pre-upgrade"
mkdir -p "$subpkgdir"/var/lib/ \
"$subpkgdir"/usr/bin \
@@ -102,6 +104,7 @@ db() {
scanner() {
pkgdesc="ClamAV command-line scanner and utils"
+ replaces="clamav"
depends="$pkgname-db"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/clamscan \
@@ -115,6 +118,7 @@ scanner() {
daemon() {
pkgdesc="ClamAV daemon scanner"
+ replaces="clamav"
depends="$pkgname-db logrotate"
install="$subpkgname.pre-install $subpkgname.post-install $subpkgname.pre-upgrade"
mkdir -p "$subpkgdir"/usr/bin \