Gitlab has successfully been upgraded to 14.0.10 🎉. Enjoy!

Commit 9f3024f0 authored by Olivier Mauras's avatar Olivier Mauras Committed by Natanael Copa
Browse files

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.
parent 7307d5b5
......@@ -4,7 +4,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dovecot
pkgver=2.2.23
pkgrel=0
pkgrel=1
_pigeonholever=0.4.13
pkgdesc="IMAP and POP3 server"
url="http://www.dovecot.org/"
arch="all"
......@@ -17,9 +18,10 @@ makedepends="libcap-dev zlib-dev openssl-dev bzip2-dev postgresql-dev
install="dovecot.pre-install dovecot.post-install"
subpackages="$pkgname-doc $pkgname-dev
$pkgname-sql $pkgname-pgsql $pkgname-mysql $pkgname-sqlite
$pkgname-gssapi $pkgname-ldap
$pkgname-gssapi $pkgname-ldap $pkgname-pigeonhole
"
source="http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz
http://pigeonhole.dovecot.org/releases/2.2/$pkgname-2.2-pigeonhole-$_pigeonholever.tar.gz
hide-dl-errors.patch
dovecot.logrotate
dovecot.initd
......@@ -27,6 +29,7 @@ source="http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz
options="libtool"
_builddir="$srcdir"/$pkgname-$pkgver
_builddirpigeonhole="$srcdir"/$pkgname-2.2-pigeonhole-$_pigeonholever
prepare() {
cd "$_builddir"
......@@ -58,6 +61,21 @@ build() {
--with-rundir=/run/dovecot \
|| return 1
make || return 1
# Build pigeonhole plugin
cd "$_builddirpigeonhole"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-dovecot="$_builddir" \
--disable-static \
|| return 1
make || return 1
}
package() {
......@@ -86,6 +104,15 @@ package() {
sed -i -e 's,!include auth-system.conf.ext,!include auth-passwdfile.conf.ext,' \
-e 's,#!include auth-passwdfile.conf.ext,#!include auth-system.conf.ext,' \
"$pkgdir"/etc/dovecot/conf.d/10-auth.conf || return 1
# Installing pigeonhole plugin
cd "$_builddirpigeonhole"
make install DESTDIR="$pkgdir" || return 1
# Moving config in the correct place
mv "$pkgdir"/usr/share/doc/dovecot/example-config/conf.d/* \
"$pkgdir"/etc/dovecot/conf.d || return 1
}
_mv() {
......@@ -105,6 +132,14 @@ dev() {
"$subpkgdir"/usr/lib/dovecot/
}
pigeonhole() {
pkgdesc="Sieve plugin for dovecot"
depends="$pkgname"
_mv $(cd "$pkgdir" && find usr -name '*sieve*')
_mv $(cd "$pkgdir" && find usr -name '*pigeonhole*')
_mv $(cd "$pkgdir" && find etc/dovecot -name '*sieve*')
}
pgsql() {
pkgdesc="postgresql driver for dovecot"
depends="$pkgname-sql"
......@@ -144,14 +179,17 @@ sql() {
}
md5sums="0d2855c19b0603b417cd70613b4a9f36 dovecot-2.2.23.tar.gz
5009b133096724aa2cb7fe1056d88125 dovecot-2.2-pigeonhole-0.4.13.tar.gz
49f7a03284cc657857fe2ae22b8c82a0 hide-dl-errors.patch
df6d43508a82903a97e3a2a5b8436d3d dovecot.logrotate
f0c227ab4e2593f6d410440b82103de1 dovecot.initd"
sha256sums="5d834be43fe8f6f61d9b0fb139bf1db2a4da313aeebd7bf09e4bf6bcb1c9e441 dovecot-2.2.23.tar.gz
7fd187b8393a5048b302f90ad84adc7bf6e73bf79fd8d22a1c1aaa71f836a910 dovecot-2.2-pigeonhole-0.4.13.tar.gz
d6accdd6e271647c01ab8fa0a9491ee822486484961e2d5c252bf70e816d2bfa hide-dl-errors.patch
d0fef8cd8200549877d7594cf458d6b33f05b31f95f1fd9a8368e8471c082735 dovecot.logrotate
1a3c845c216bb6f9633d27a8c1c0d01b591942c463bddb5ae835f162bd7fb4bf dovecot.initd"
sha512sums="704d86dcef8b217a54db1d1ae3c1e0d6303827fedd7150aec83e805512cd1c5befc88da44660e7a40765ad6800c14d399f8c7621e84125a7732d68fee7f18d82 dovecot-2.2.23.tar.gz
4e25a406b888fd8cbc9a4f4f7a7364f10ab47e932550970cede34c964d50a6fe697c4b6d61cc83846b97901368ac63d1e22aa4d1d2002f24540766c5fbbebbf5 dovecot-2.2-pigeonhole-0.4.13.tar.gz
1e9a1f2990019236546c7be581a4d6d0b430110d27a00bc3298f5c154ef9a4aadefa193d02a017912f826d771058fd5c6ef6cb454e14f0d15749fa8f3a68c64a hide-dl-errors.patch
9f19698ab45969f1f94dc4bddf6de59317daee93c9421c81f2dbf8a7efe6acf89689f1d30f60f536737bb9526c315215d2bce694db27e7b8d7896036a59c31f0 dovecot.logrotate
6ec75a8396f4d826390e69aa8177593573eaf0e0ab537b2a4720573e04c92ff615f39e1559b48313b2cd2f03704cd977bb594a568ecc5dd22e38926c12f3c48c dovecot.initd"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment