APKBUILD 1.21 KB
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1 2 3 4
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=clamsmtp
pkgver=1.10
5
pkgrel=3
Carlo Landmeter's avatar
Carlo Landmeter committed
6 7 8
pkgdesc="An SMTP Virus Filter"
url="http://memberwebs.com/stef/software/clamsmtp/"
license="as-is"
9 10 11
depends=
makedepends=
install="$pkgname.pre-upgrade $pkgname.post-upgrade"
Carlo Landmeter's avatar
Carlo Landmeter committed
12 13
subpackages="$pkgname-doc"
source="http://memberwebs.com/stef/software/clamsmtp/${pkgname}-${pkgver}.tar.gz
14 15 16
	clamsmtpd.confd
	clamsmtpd.initd
	$install"
Carlo Landmeter's avatar
Carlo Landmeter committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
	make DESTDIR="$pkgdir" install || return 1

	install -Dm644 doc/clamsmtpd.conf "$pkgdir"/etc/clamsmtpd.conf
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

34
md5sums="b068ba6e444859782bbdd88f290c1abf  clamsmtp-1.10.tar.gz
35 36 37
e84205681f64c07af9ec5b6a3dd8bc38  clamsmtpd.confd
161baf2fb444b67d8a08fbfe4375a12c  clamsmtpd.initd
32e7b12f3a1f4669d080d8cfdb537e78  clamsmtp.pre-upgrade
38
63c7360d9a0a75433bca461fe819bc49  clamsmtp.post-upgrade"