APKBUILD 873 Bytes
Newer Older
Michael Mason's avatar
Michael Mason committed
1
# Contributor: Michael Mason <ms13sp@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Michael Mason's avatar
Michael Mason committed
3
pkgname=dovecot
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=1.2.6
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
Michael Mason's avatar
Michael Mason committed
6 7
pkgdesc="IMAP and POP3 server"
url="http://www.dovecot.org/"
8
license="LGPL-2.1"
9
depends=
10
makedepends="libcap-dev zlib-dev openssl-dev bzip2-dev"
11
install="dovecot.pre-install"
Michael Mason's avatar
Michael Mason committed
12
subpackages="$pkgname-doc $pkgname-dev"
13
source="http://www.dovecot.org/releases/1.2/$pkgname-$pkgver.tar.gz
Michael Mason's avatar
Michael Mason committed
14 15 16 17 18 19 20
	dovecot.initd
	"

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

	./configure --prefix=/usr \
21
		--sysconfdir=/etc/dovecot \
Michael Mason's avatar
Michael Mason committed
22 23
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
24 25
		--with-ssl=openssl || return 1

Michael Mason's avatar
Michael Mason committed
26 27 28
	make || return 1
	make DESTDIR="$pkgdir" install

29
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
Michael Mason's avatar
Michael Mason committed
30 31
}

Natanael Copa's avatar
Natanael Copa committed
32
md5sums="807666f1a112e7379c4dbb57c9ce4899  dovecot-1.2.6.tar.gz
33
c58b474dca20e6e60fa4f1f5b9c726e1  dovecot.initd"