diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-11 07:55:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-11 09:50:38 +0000 |
commit | 21efade36950aecb8d5e3a63e4050db86913dbe5 (patch) | |
tree | 3d44c335a2a612889da7e8402099283bb40e97d7 /main/dovecot/APKBUILD | |
parent | 7483fd04e48431f13a0fedf3f980bb0cd7634b38 (diff) | |
download | aports-21efade36950aecb8d5e3a63e4050db86913dbe5.tar.bz2 aports-21efade36950aecb8d5e3a63e4050db86913dbe5.tar.xz |
main/dovecot: set localstatedir
Diffstat (limited to 'main/dovecot/APKBUILD')
-rw-r--r-- | main/dovecot/APKBUILD | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD index 6dd77003a0..dce739b802 100644 --- a/main/dovecot/APKBUILD +++ b/main/dovecot/APKBUILD @@ -2,14 +2,16 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=dovecot pkgver=1.2.11 -pkgrel=3 +pkgrel=4 pkgdesc="IMAP and POP3 server" url="http://www.dovecot.org/" license="LGPL-2.1" -depends= +depends="openssl" +pkgusers="dovecot" +pkggroups="dovecot" makedepends="libcap-dev zlib-dev openssl-dev bzip2-dev postgresql-dev mysql-dev sqlite-dev" -install="dovecot.pre-install" +install="dovecot.pre-install dovecot.post-install" subpackages="$pkgname-doc $pkgname-dev $pkgname-pgsql $pkgname-mysql $pkgname-sqlite" source="http://www.dovecot.org/releases/1.2/$pkgname-$pkgver.tar.gz @@ -20,6 +22,7 @@ build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr \ + --localstatedir=/var \ --sysconfdir=/etc/dovecot \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -36,8 +39,25 @@ build() { package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install - install -d "$pkgdir"/var/run/dovecot + install -d "$pkgdir"/var/run/dovecot \ + "$pkgdir"/etc/ssl/dovecot install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install doc/dovecot-openssl.cnf "$pkgdir"/etc/dovecot/ + mv "$pkgdir"/etc/dovecot/dovecot-example.conf \ + "$pkgdir"/etc/dovecot/dovecot.conf || return 1 + + # fix ssl dirs in defautl config and set defautl passdb to passwd + sed -i -e 's,^#ssl_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \ + -e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \ + -e '/passdb pam {/,/^$/{ + s/passdb pam/\#passdb pam/ + s/}/\#}/ + }' \ + -e '/\#passdb passwd {/,/^$/{ + s/\#passdb passwd/passdb passwd/ + s/\#\}/\}/ + }' \ + "$pkgdir"/etc/dovecot/dovecot.conf } _mv() { |