summaryrefslogtreecommitdiffstats
path: root/extra/clamav
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-03-12 18:21:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-03-12 18:21:01 +0000
commit3080bd24cc82dfcd63e519ccb8fee5e02bfd3590 (patch)
tree15ff79a97fde08895053eb05270ca231ecad40a6 /extra/clamav
parent8ade11415364ba4c2cfb220a4732281709906bee (diff)
downloadaports-3080bd24cc82dfcd63e519ccb8fee5e02bfd3590.tar.bz2
aports-3080bd24cc82dfcd63e519ccb8fee5e02bfd3590.tar.xz
extra/clamav: new style install script
Diffstat (limited to 'extra/clamav')
-rw-r--r--extra/clamav/APKBUILD7
-rw-r--r--extra/clamav/clamav.install10
-rw-r--r--extra/clamav/clamav.pre-install4
3 files changed, 8 insertions, 13 deletions
diff --git a/extra/clamav/APKBUILD b/extra/clamav/APKBUILD
index 28cafd4bb..8ccf6aa9a 100644
--- a/extra/clamav/APKBUILD
+++ b/extra/clamav/APKBUILD
@@ -2,12 +2,12 @@
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=clamav
pkgver=0.94.2
-pkgrel=0
+pkgrel=1
pkgdesc="An anti-virus toolkit for UNIX"
url="http://www.clamav.net/"
license="GPL"
depends="zlib gmp"
-install=clamav.install
+install=clamav.pre-install
makedepends="gmp-dev zlib-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
@@ -36,4 +36,5 @@ build() {
md5sums="1181e6d62341b84708f126cc353f7ebf clamav-0.94.2.tar.gz
d0c708403940c51e52eb27ea1610a27d clamav.initd
431dfe7403323e247a88b97beade5d78 clamav.confd
-328a0c3449a6b516e443d7db5a0d4d01 clamav-0.94.2-nls.patch"
+328a0c3449a6b516e443d7db5a0d4d01 clamav-0.94.2-nls.patch
+275e05587e2da782781829a1862d57b1 clamav.pre-install"
diff --git a/extra/clamav/clamav.install b/extra/clamav/clamav.install
deleted file mode 100644
index 8d427d916..000000000
--- a/extra/clamav/clamav.install
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-case "$1" in
- post_install)
- echo '*'
- echo '* Adding new user clamav'
- echo '*'
- adduser -H -s /bin/false -D clamav 2>/dev/null
- ;;
-esac
diff --git a/extra/clamav/clamav.pre-install b/extra/clamav/clamav.pre-install
new file mode 100644
index 000000000..59ac60a44
--- /dev/null
+++ b/extra/clamav/clamav.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+adduser -H -s /bin/false -D clamav 2>/dev/null
+exit 0