aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extra/clamsmtp/APKBUILD18
-rw-r--r--extra/clamsmtp/clamsmtp.post-upgrade16
-rw-r--r--extra/clamsmtp/clamsmtp.pre-upgrade12
-rw-r--r--extra/clamsmtp/clamsmtpd.confd (renamed from extra/clamsmtp/clamsmtp.confd)0
-rw-r--r--extra/clamsmtp/clamsmtpd.initd (renamed from extra/clamsmtp/clamsmtp.initd)0
5 files changed, 39 insertions, 7 deletions
diff --git a/extra/clamsmtp/APKBUILD b/extra/clamsmtp/APKBUILD
index 5402d09368..0ad433ae1b 100644
--- a/extra/clamsmtp/APKBUILD
+++ b/extra/clamsmtp/APKBUILD
@@ -2,16 +2,18 @@
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=clamsmtp
pkgver=1.10
-pkgrel=1
+pkgrel=2
pkgdesc="An SMTP Virus Filter"
url="http://memberwebs.com/stef/software/clamsmtp/"
license="as-is"
-depends="uclibc"
-makedepends=""
+depends=
+makedepends=
+install="$pkgname.pre-upgrade $pkgname.post-upgrade"
subpackages="$pkgname-doc"
source="http://memberwebs.com/stef/software/clamsmtp/${pkgname}-${pkgver}.tar.gz
-clamsmtp.confd
-clamsmtp.initd"
+ clamsmtpd.confd
+ clamsmtpd.initd
+ $install"
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -30,5 +32,7 @@ build() {
}
md5sums="b068ba6e444859782bbdd88f290c1abf clamsmtp-1.10.tar.gz
-e84205681f64c07af9ec5b6a3dd8bc38 clamsmtp.confd
-161baf2fb444b67d8a08fbfe4375a12c clamsmtp.initd"
+e84205681f64c07af9ec5b6a3dd8bc38 clamsmtpd.confd
+161baf2fb444b67d8a08fbfe4375a12c clamsmtpd.initd
+32e7b12f3a1f4669d080d8cfdb537e78 clamsmtp.pre-upgrade
+d9fbdc217d12cf1e85b0323f822b7e47 clamsmtp.post-upgrade"
diff --git a/extra/clamsmtp/clamsmtp.post-upgrade b/extra/clamsmtp/clamsmtp.post-upgrade
new file mode 100644
index 0000000000..c418ff809f
--- /dev/null
+++ b/extra/clamsmtp/clamsmtp.post-upgrade
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+moved=
+for i in /etc/runlevels/*/clamsmtp; do
+ if [ -L $i ]; then
+ mv ${i} ${i}d
+ moved=1
+ fi
+done
+
+if [ -n "$moved" ]; then
+ echo " *"
+ echo " * NOTICE: /etc/init.d/clamsmtp is renamed to /etc/init.d/clamsmtpd"
+ echo " *"
+fi
+
diff --git a/extra/clamsmtp/clamsmtp.pre-upgrade b/extra/clamsmtp/clamsmtp.pre-upgrade
new file mode 100644
index 0000000000..12de39f7b1
--- /dev/null
+++ b/extra/clamsmtp/clamsmtp.pre-upgrade
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+old=/etc/conf.d/clamsmtp
+new=/etc/conf.d/clamsmtpd
+
+if [ -f "$old" ] && [ ! -f "$new" ]; then
+ mv "$old" "$new"
+ echo " *"
+ echo " * NOTICE: $old was renamed to $new"
+ echo " *"
+fi
+
diff --git a/extra/clamsmtp/clamsmtp.confd b/extra/clamsmtp/clamsmtpd.confd
index 8d08b6868c..8d08b6868c 100644
--- a/extra/clamsmtp/clamsmtp.confd
+++ b/extra/clamsmtp/clamsmtpd.confd
diff --git a/extra/clamsmtp/clamsmtp.initd b/extra/clamsmtp/clamsmtpd.initd
index dbd817f370..dbd817f370 100644
--- a/extra/clamsmtp/clamsmtp.initd
+++ b/extra/clamsmtp/clamsmtpd.initd