aboutsummaryrefslogtreecommitdiffstats
path: root/extra/clamsmtp/APKBUILD
blob: aabb9f18c24e5ea24cda64a19ace0d074c42e904 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=clamsmtp
pkgver=1.10
pkgrel=0
pkgdesc="An SMTP Virus Filter"
url="http://memberwebs.com/stef/software/clamsmtp/"
license="as-is"
depends="uclibc"
makedepends=""
subpackages="$pkgname-doc"
source="http://memberwebs.com/stef/software/clamsmtp/${pkgname}-${pkgver}.tar.gz
clamsmtp.confd
clamsmtp.initd"

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
}

md5sums="b068ba6e444859782bbdd88f290c1abf  clamsmtp-1.10.tar.gz
931e54718c735bca4f3347c903cff0ed  clamsmtp.confd
9db0f44bda7e56d53486223a2a927b0e  clamsmtp.initd"