diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-22 06:17:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-22 06:18:47 +0000 |
commit | df8d0f17845c931cfe1318e55c9b12b620f1def1 (patch) | |
tree | 33d13b516657a6148d8280f197453fde2cead88f /main/clamsmtp/APKBUILD | |
parent | 6afa7fca2df3a2c5508e2a33b1095ac5e82abe78 (diff) | |
download | aports-df8d0f17845c931cfe1318e55c9b12b620f1def1.tar.bz2 aports-df8d0f17845c931cfe1318e55c9b12b620f1def1.tar.xz |
main/clamsmtp: fix default config. create user
Diffstat (limited to 'main/clamsmtp/APKBUILD')
-rw-r--r-- | main/clamsmtp/APKBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/main/clamsmtp/APKBUILD b/main/clamsmtp/APKBUILD index 5fefb2f81f..1bad20a087 100644 --- a/main/clamsmtp/APKBUILD +++ b/main/clamsmtp/APKBUILD @@ -2,13 +2,13 @@ # Maintainer: Carlo Landmeter <clandmeter at gmail> pkgname=clamsmtp pkgver=1.10 -pkgrel=5 +pkgrel=6 pkgdesc="An SMTP Virus Filter" url="http://memberwebs.com/stef/software/clamsmtp/" license="as-is" depends= makedepends= -install="$pkgname.pre-upgrade $pkgname.post-upgrade" +install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-upgrade" subpackages="$pkgname-doc" source="http://memberwebs.com/stef/software/clamsmtp/${pkgname}-${pkgver}.tar.gz clamsmtpd.confd @@ -25,6 +25,11 @@ build() { make || return 1 make DESTDIR="$pkgdir" install || return 1 + # set default clam address and user + sed -e 's|^\#ClamAddress:.*|ClamAddress: /var/run/clamav/clamd.sock|'\ + -e 's|^\#User:.*|User: clamav|' \ + -i doc/clamsmtpd.conf + install -Dm644 doc/clamsmtpd.conf "$pkgdir"/etc/clamsmtpd.conf install -Dm755 "$srcdir"/clamsmtpd.initd "$pkgdir"/etc/init.d/clamsmtpd install -Dm644 "$srcdir"/clamsmtpd.confd "$pkgdir"/etc/conf.d/clamsmtpd |