From 1d69af069303418a509ee137419e8f417bbcce24 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 27 Aug 2010 13:10:05 +0000 Subject: main/dovecot: upgrade to 2.0.1 --- main/dovecot/APKBUILD | 54 +++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'main/dovecot/APKBUILD') diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD index 40aae396a4..e54adce8b7 100644 --- a/main/dovecot/APKBUILD +++ b/main/dovecot/APKBUILD @@ -1,29 +1,28 @@ # Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=dovecot -pkgver=1.2.13 -pkgrel=1 +pkgver=2.0.1 +pkgrel=0 pkgdesc="IMAP and POP3 server" url="http://www.dovecot.org/" license="LGPL-2.1" depends="openssl" -pkgusers="dovecot" -pkggroups="dovecot" +pkgusers="dovecot dovenull" +pkggroups="dovecot dovenull" depends="logrotate" makedepends="libcap-dev zlib-dev openssl-dev bzip2-dev postgresql-dev mysql-dev sqlite-dev" 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 +subpackages="$pkgname-sample-config:config $pkgname-doc $pkgname-dev + $pkgname-pgsql $pkgname-mysql $pkgname-sqlite" +source="http://www.dovecot.org/releases/2.0/$pkgname-$pkgver.tar.gz dovecot.logrotate dovecot.initd - 2281223b9cb9.patch + dovecot-sample-config.post-install " prepare() { cd "$srcdir"/$pkgname-$pkgver - patch -p1 -i "$srcdir"/2281223b9cb9.patch || return 1 } build() { @@ -31,11 +30,10 @@ build() { ./configure --prefix=/usr \ --localstatedir=/var \ - --sysconfdir=/etc/dovecot \ + --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-sql=plugin \ - --with-sql-drivers \ --with-mysql \ --with-sqlite \ --with-pgsql \ @@ -51,23 +49,18 @@ package() { "$pkgdir"/etc/ssl/dovecot install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -D "$srcdir"/dovecot.logrotate "$pkgdir"/etc/logrotate.d/dovecot + + # default config install doc/dovecot-openssl.cnf "$pkgdir"/etc/dovecot/ - mv "$pkgdir"/etc/dovecot/dovecot-example.conf \ + cp "$pkgdir"/usr/share/doc/dovecot/example-config/dovecot.conf \ "$pkgdir"/etc/dovecot/dovecot.conf || return 1 - + mkdir -p "$pkgdir"/etc/dovecot/conf.d + # 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/\#\}/\}/ - }' \ - -e 's,#log_path =.*,log_path = /var/log/dovecot.log,' \ - "$pkgdir"/etc/dovecot/dovecot.conf + sed -i -e 's,^ssl_cert =.*,ssl_cert =