summaryrefslogtreecommitdiffstats
path: root/extra/clamsmtp
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-17 08:48:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-17 08:53:43 +0000
commitb1461e068f3ce595a1ca40f038f40e906e89a0a5 (patch)
tree36c2c5b7f696294ba80b08c1fd45c91b69279db8 /extra/clamsmtp
parentcb56489f8bb7f79fd169f07baecff69d931a0077 (diff)
downloadaports-b1461e068f3ce595a1ca40f038f40e906e89a0a5.tar.bz2
aports-b1461e068f3ce595a1ca40f038f40e906e89a0a5.tar.xz
extra/clamsmtp: renamed init.d script to clamsmtpd
partly fixes #64
Diffstat (limited to 'extra/clamsmtp')
-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 5402d093..0ad433ae 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 00000000..c418ff80
--- /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 00000000..12de39f7
--- /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 8d08b686..8d08b686 100644
--- a/extra/clamsmtp/clamsmtp.confd
+++ b/extra/clamsmtp/clamsmtpd.confd
diff --git a/extra/clamsmtp/clamsmtp.initd b/extra/clamsmtp/clamsmtpd.initd
index dbd817f3..dbd817f3 100644
--- a/extra/clamsmtp/clamsmtp.initd
+++ b/extra/clamsmtp/clamsmtpd.initd