diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-06 06:44:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-06 06:44:18 +0000 |
commit | 3bea9d5e13f8f936fdc61aca3c65b4959ee02fb6 (patch) | |
tree | 82ee0486779e0833efbabe865dd7a53729d354e0 /main/dovecot/APKBUILD | |
parent | 9182e0aaa8525bdd3e3fcb81f3b1a1243ec8014c (diff) | |
download | aports-3bea9d5e13f8f936fdc61aca3c65b4959ee02fb6.tar.bz2 aports-3bea9d5e13f8f936fdc61aca3c65b4959ee02fb6.tar.xz |
main/dovecot: enable ssl and create self-signed cert on install
fixes #667
Diffstat (limited to 'main/dovecot/APKBUILD')
-rw-r--r-- | main/dovecot/APKBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD index 83e4338d8d..7a42614e6f 100644 --- a/main/dovecot/APKBUILD +++ b/main/dovecot/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=dovecot pkgver=2.0.14 -pkgrel=0 +pkgrel=1 pkgdesc="IMAP and POP3 server" url="http://www.dovecot.org/" arch="all" @@ -62,11 +62,15 @@ package() { "$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 + # fix ssl dirs in default config and set defautl passdb to passwd sed -i -e 's,^ssl_cert =.*,ssl_cert = </etc/ssl/dovecot/server.pem,' \ -e 's,^ssl_key =.*,ssl_key = </etc/ssl/dovecot/server.key,' \ "$pkgdir"/usr/share/doc/dovecot/example-config/conf.d/10-ssl.conf\ || return 1 + + # install ssl config by default + cp "$pkgdir"/usr/share/doc/dovecot/example-config/conf.d/10-ssl.conf\ + "$pkgdir"/etc/dovecot/conf.d/ || return 1 } _mv() { |