From 48f654836d90a95638501826492b09935cb5d3d2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 26 Apr 2012 12:25:34 +0000 Subject: main/clamav: add replaces to make upgrades work --- main/clamav/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/clamav/APKBUILD') 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 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 \ -- cgit v1.2.3