Commit b1461e06 authored by Natanael Copa's avatar Natanael Copa
Browse files

extra/clamsmtp: renamed init.d script to clamsmtpd

partly fixes #64
parent cb56489f
......@@ -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"
#!/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
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment