diff options
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 |