aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mauras <olivier@mauras.ch>2016-04-06 20:55:16 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-16 16:30:06 +0000
commit9f3024f08dff221dc786e7430e809cde383688fb (patch)
tree4867390967dc149d5ba6d1d8c1f68e4399642c52
parent7307d5b5eb03b045960b5cf85bd98af3f7a9ab54 (diff)
downloadalpine_aports-9f3024f08dff221dc786e7430e809cde383688fb.tar.bz2
alpine_aports-9f3024f08dff221dc786e7430e809cde383688fb.tar.xz
alpine_aports-9f3024f08dff221dc786e7430e809cde383688fb.zip
main/dovecot: Integrate pigeonhole plugin 0.4.13 as a subpackage
Sieve support in dovecot requires the pigeonhole plugin. The plugin requires to be rebuilded each time dovecot minor version changes, so having it as a subpackage will make it easier.
-rw-r--r--main/dovecot/APKBUILD42
1 files changed, 40 insertions, 2 deletions
diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD
index b8de78cc26..1af9db1995 100644
--- a/main/dovecot/APKBUILD
+++ b/main/dovecot/APKBUILD
@@ -4,7 +4,8 @@
4# Maintainer: Natanael Copa <ncopa@alpinelinux.org> 4# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
5pkgname=dovecot 5pkgname=dovecot
6pkgver=2.2.23 6pkgver=2.2.23
7pkgrel=0 7pkgrel=1
8_pigeonholever=0.4.13
8pkgdesc="IMAP and POP3 server" 9pkgdesc="IMAP and POP3 server"
9url="http://www.dovecot.org/" 10url="http://www.dovecot.org/"
10arch="all" 11arch="all"
@@ -17,9 +18,10 @@ makedepends="libcap-dev zlib-dev openssl-dev bzip2-dev postgresql-dev
17install="dovecot.pre-install dovecot.post-install" 18install="dovecot.pre-install dovecot.post-install"
18subpackages="$pkgname-doc $pkgname-dev 19subpackages="$pkgname-doc $pkgname-dev
19 $pkgname-sql $pkgname-pgsql $pkgname-mysql $pkgname-sqlite 20 $pkgname-sql $pkgname-pgsql $pkgname-mysql $pkgname-sqlite
20 $pkgname-gssapi $pkgname-ldap 21 $pkgname-gssapi $pkgname-ldap $pkgname-pigeonhole
21 " 22 "
22source="http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz 23source="http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz
24 http://pigeonhole.dovecot.org/releases/2.2/$pkgname-2.2-pigeonhole-$_pigeonholever.tar.gz
23 hide-dl-errors.patch 25 hide-dl-errors.patch
24 dovecot.logrotate 26 dovecot.logrotate
25 dovecot.initd 27 dovecot.initd
@@ -27,6 +29,7 @@ source="http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz
27options="libtool" 29options="libtool"
28 30
29_builddir="$srcdir"/$pkgname-$pkgver 31_builddir="$srcdir"/$pkgname-$pkgver
32_builddirpigeonhole="$srcdir"/$pkgname-2.2-pigeonhole-$_pigeonholever
30 33
31prepare() { 34prepare() {
32 cd "$_builddir" 35 cd "$_builddir"
@@ -58,6 +61,21 @@ build() {
58 --with-rundir=/run/dovecot \ 61 --with-rundir=/run/dovecot \
59 || return 1 62 || return 1
60 make || return 1 63 make || return 1
64
65 # Build pigeonhole plugin
66 cd "$_builddirpigeonhole"
67 ./configure \
68 --build=$CBUILD \
69 --host=$CHOST \
70 --prefix=/usr \
71 --localstatedir=/var \
72 --sysconfdir=/etc \
73 --mandir=/usr/share/man \
74 --infodir=/usr/share/info \
75 --with-dovecot="$_builddir" \
76 --disable-static \
77 || return 1
78 make || return 1
61} 79}
62 80
63package() { 81package() {
@@ -86,6 +104,15 @@ package() {
86 sed -i -e 's,!include auth-system.conf.ext,!include auth-passwdfile.conf.ext,' \ 104 sed -i -e 's,!include auth-system.conf.ext,!include auth-passwdfile.conf.ext,' \
87 -e 's,#!include auth-passwdfile.conf.ext,#!include auth-system.conf.ext,' \ 105 -e 's,#!include auth-passwdfile.conf.ext,#!include auth-system.conf.ext,' \
88 "$pkgdir"/etc/dovecot/conf.d/10-auth.conf || return 1 106 "$pkgdir"/etc/dovecot/conf.d/10-auth.conf || return 1
107
108
109 # Installing pigeonhole plugin
110 cd "$_builddirpigeonhole"
111 make install DESTDIR="$pkgdir" || return 1
112
113 # Moving config in the correct place
114 mv "$pkgdir"/usr/share/doc/dovecot/example-config/conf.d/* \
115 "$pkgdir"/etc/dovecot/conf.d || return 1
89} 116}
90 117
91_mv() { 118_mv() {
@@ -105,6 +132,14 @@ dev() {
105 "$subpkgdir"/usr/lib/dovecot/ 132 "$subpkgdir"/usr/lib/dovecot/
106} 133}
107 134
135pigeonhole() {
136 pkgdesc="Sieve plugin for dovecot"
137 depends="$pkgname"
138 _mv $(cd "$pkgdir" && find usr -name '*sieve*')
139 _mv $(cd "$pkgdir" && find usr -name '*pigeonhole*')
140 _mv $(cd "$pkgdir" && find etc/dovecot -name '*sieve*')
141}
142
108pgsql() { 143pgsql() {
109 pkgdesc="postgresql driver for dovecot" 144 pkgdesc="postgresql driver for dovecot"
110 depends="$pkgname-sql" 145 depends="$pkgname-sql"
@@ -144,14 +179,17 @@ sql() {
144} 179}
145 180
146md5sums="0d2855c19b0603b417cd70613b4a9f36 dovecot-2.2.23.tar.gz 181md5sums="0d2855c19b0603b417cd70613b4a9f36 dovecot-2.2.23.tar.gz
1825009b133096724aa2cb7fe1056d88125 dovecot-2.2-pigeonhole-0.4.13.tar.gz
14749f7a03284cc657857fe2ae22b8c82a0 hide-dl-errors.patch 18349f7a03284cc657857fe2ae22b8c82a0 hide-dl-errors.patch
148df6d43508a82903a97e3a2a5b8436d3d dovecot.logrotate 184df6d43508a82903a97e3a2a5b8436d3d dovecot.logrotate
149f0c227ab4e2593f6d410440b82103de1 dovecot.initd" 185f0c227ab4e2593f6d410440b82103de1 dovecot.initd"
150sha256sums="5d834be43fe8f6f61d9b0fb139bf1db2a4da313aeebd7bf09e4bf6bcb1c9e441 dovecot-2.2.23.tar.gz 186sha256sums="5d834be43fe8f6f61d9b0fb139bf1db2a4da313aeebd7bf09e4bf6bcb1c9e441 dovecot-2.2.23.tar.gz
1877fd187b8393a5048b302f90ad84adc7bf6e73bf79fd8d22a1c1aaa71f836a910 dovecot-2.2-pigeonhole-0.4.13.tar.gz
151d6accdd6e271647c01ab8fa0a9491ee822486484961e2d5c252bf70e816d2bfa hide-dl-errors.patch 188d6accdd6e271647c01ab8fa0a9491ee822486484961e2d5c252bf70e816d2bfa hide-dl-errors.patch
152d0fef8cd8200549877d7594cf458d6b33f05b31f95f1fd9a8368e8471c082735 dovecot.logrotate 189d0fef8cd8200549877d7594cf458d6b33f05b31f95f1fd9a8368e8471c082735 dovecot.logrotate
1531a3c845c216bb6f9633d27a8c1c0d01b591942c463bddb5ae835f162bd7fb4bf dovecot.initd" 1901a3c845c216bb6f9633d27a8c1c0d01b591942c463bddb5ae835f162bd7fb4bf dovecot.initd"
154sha512sums="704d86dcef8b217a54db1d1ae3c1e0d6303827fedd7150aec83e805512cd1c5befc88da44660e7a40765ad6800c14d399f8c7621e84125a7732d68fee7f18d82 dovecot-2.2.23.tar.gz 191sha512sums="704d86dcef8b217a54db1d1ae3c1e0d6303827fedd7150aec83e805512cd1c5befc88da44660e7a40765ad6800c14d399f8c7621e84125a7732d68fee7f18d82 dovecot-2.2.23.tar.gz
1924e25a406b888fd8cbc9a4f4f7a7364f10ab47e932550970cede34c964d50a6fe697c4b6d61cc83846b97901368ac63d1e22aa4d1d2002f24540766c5fbbebbf5 dovecot-2.2-pigeonhole-0.4.13.tar.gz
1551e9a1f2990019236546c7be581a4d6d0b430110d27a00bc3298f5c154ef9a4aadefa193d02a017912f826d771058fd5c6ef6cb454e14f0d15749fa8f3a68c64a hide-dl-errors.patch 1931e9a1f2990019236546c7be581a4d6d0b430110d27a00bc3298f5c154ef9a4aadefa193d02a017912f826d771058fd5c6ef6cb454e14f0d15749fa8f3a68c64a hide-dl-errors.patch
1569f19698ab45969f1f94dc4bddf6de59317daee93c9421c81f2dbf8a7efe6acf89689f1d30f60f536737bb9526c315215d2bce694db27e7b8d7896036a59c31f0 dovecot.logrotate 1949f19698ab45969f1f94dc4bddf6de59317daee93c9421c81f2dbf8a7efe6acf89689f1d30f60f536737bb9526c315215d2bce694db27e7b8d7896036a59c31f0 dovecot.logrotate
1576ec75a8396f4d826390e69aa8177593573eaf0e0ab537b2a4720573e04c92ff615f39e1559b48313b2cd2f03704cd977bb594a568ecc5dd22e38926c12f3c48c dovecot.initd" 1956ec75a8396f4d826390e69aa8177593573eaf0e0ab537b2a4720573e04c92ff615f39e1559b48313b2cd2f03704cd977bb594a568ecc5dd22e38926c12f3c48c dovecot.initd"