X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 21A73DC7BC9 for ; Tue, 5 Apr 2016 10:06:25 +0000 (UTC) Received: from mx.mauras.ch (mx.mauras.ch [163.172.199.81]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id BB217DC1529 for ; Tue, 5 Apr 2016 10:06:24 +0000 (UTC) Received: from www.parentsbilingues.ch ([212.83.137.183]) by mx.mauras.ch with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2) (envelope-from ) id 1anNsN-0003ZA-5q for alpine-aports@lists.alpinelinux.org; Tue, 05 Apr 2016 12:06:23 +0200 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_e28acd114905c688e2ab4301902ebbb0" Date: Tue, 05 Apr 2016 12:06:22 +0200 From: olivier@mauras.ch To: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/dovecot: Integrate pigeonhole plugin 0.4.13 as a subpackage In-Reply-To: References: <20160404025625.10d9cac7f8cb0e308f09041e@mauras.ch> Message-ID: <0bdd64f93d1f583d50e06990ff86eec5@mauras.ch> X-Sender: olivier@mauras.ch User-Agent: Roundcube Webmail/1.1.4 X-Authenticated-Sender: olivier@mauras.ch X-Virus-Scanned: ClamAV using ClamSMTP --=_e28acd114905c688e2ab4301902ebbb0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII I know, but right now the plugin is only in edge :( In my opinion sieve support is a must have for an IMAP configuration and the plugin should be added to stable - As a subpackage it doesn't disrupt the main dovecot package in any way Now the issue is that the plugin must be recompiled each time dovecot is. After discussing the matter with Natanael on #alpine-devel, we thought that it may be easier to have a subpackage for the sake of keeping recompilation in sync. Cheers, -O. On 04.04.2016 08:15, Valery Kartel wrote: > Hey > > there is already such a package in community (community/dovecot-pigeonhole-plugin) > > 2016-04-04 3:56 GMT+03:00 Olivier Mauras : > >> 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. >> --- >> main/dovecot/APKBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- >> 1 file changed, 48 insertions(+), 2 deletions(-) >> >> diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD >> index 2ba4986..c6c0392 100644 >> --- a/main/dovecot/APKBUILD >> +++ b/main/dovecot/APKBUILD >> @@ -4,7 +4,8 @@ >> # Maintainer: Natanael Copa >> pkgname=dovecot >> pkgver=2.2.22 >> -pkgrel=0 >> +pigeonholever=0.4.13 >> +pkgrel=1 >> 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" >> @@ -105,6 +108,46 @@ dev() { >> "$subpkgdir"/usr/lib/dovecot/ >> } >> >> +pigeonhole() { >> + pkgdesc="Sieve plugin for dovecot" >> + depends="$pkgname" >> + >> + 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 >> + make install DESTDIR="$pkgdir" || return 1 >> + >> + # Moving stuff before running _mv >> + mv "$pkgdir"/usr/share/doc/dovecot/example-config/conf.d/* \ >> + "$pkgdir"/etc/dovecot/conf.d \ >> + || return 1 >> + >> + # We keep includes, man and doc in main package >> + _mv $(cd "$pkgdir" && find usr -name '*sieve*' -prune \ >> + -a -not -regex ".*/include/.*" \ >> + -a -not -regex ".*/man/.*" \ >> + -a -not -regex ".*/doc/.*" \ >> + ) || return 1 >> + _mv $(cd "$pkgdir" && find usr -name '*pigeonhole*' \ >> + -a -not -regex ".*/include/.*" \ >> + -a -not -regex ".*/man/.*" \ >> + ) || return 1 >> + _mv $(cd "$pkgdir" && find etc/dovecot -name '*sieve*') || return 1 >> + >> + # Compress man pages >> + find "$pkgdir"/usr/share/man/ -name "*.1" -o -name "*.7" | xargs gzip -9 >> +} >> + >> pgsql() { >> pkgdesc="postgresql driver for dovecot" >> depends="$pkgname-sql" >> @@ -144,14 +187,17 @@ sql() { >> } >> >> md5sums="bc8057bd5bdfa0f8e80e2fef1082a241 dovecot-2.2.22.tar.gz >> +5009b133096724aa2cb7fe1056d88125 dovecot-2.2-pigeonhole-0.4.13.tar.gz >> 49f7a03284cc657857fe2ae22b8c82a0 hide-dl-errors.patch >> 1a88280b65efb6cb7f70bc5a88bf264c dovecot.logrotate >> ddd77573827e0662be21303fb795eef3 dovecot.initd" >> sha256sums="c7a9db3c4ae9d9b4da920d2c82669700a0d407934501b405f37f89cc0b706ec7 dovecot-2.2.22.tar.gz >> +7fd187b8393a5048b302f90ad84adc7bf6e73bf79fd8d22a1c1aaa71f836a910 dovecot-2.2-pigeonhole-0.4.13.tar.gz >> d6accdd6e271647c01ab8fa0a9491ee822486484961e2d5c252bf70e816d2bfa hide-dl-errors.patch >> 2ac04bb7b5c503cd87ba044482e651dbe5c9d84a4268891fb2aa9ba26e62f833 dovecot.logrotate >> 3f74548051297cedc7f8d203f1d1d9dc904fe89004b54b52921d2050520daa6f dovecot.initd" >> sha512sums="ea02ae491e90c0b9de7c7320901c8f7235193303fb194805564582d30e630002f21f7195e5c5b99ff3ea1fadf95ddd43c2f7bb4d24067e0e5f40a66e9eb90012 dovecot-2.2.22.tar.gz >> +4e25a406b888fd8cbc9a4f4f7a7364f10ab47e932550970cede34c964d50a6fe697c4b6d61cc83846b97901368ac63d1e22aa4d1d2002f24540766c5fbbebbf5 dovecot-2.2-pigeonhole-0.4.13.tar.gz >> 1e9a1f2990019236546c7be581a4d6d0b430110d27a00bc3298f5c154ef9a4aadefa193d02a017912f826d771058fd5c6ef6cb454e14f0d15749fa8f3a68c64a hide-dl-errors.patch >> 58756fa06a063777ef7c4d1e67b63adbde5462264e14bd7a3187a318f498fff21ac2a8d53bb216f56fef4588206e14112da79542b6dfdf503988786f27bb6544 dovecot.logrotate >> d7f67991e11979da91162eb64a0b924655d0ac155d97bcc42a40c758003d60b7c096945544e6b321aa8ecb3416fe17b14b5898f1dba5e5a4b3e4c9c21295c8cb dovecot.initd" >> -- >> 2.7.4 --=_e28acd114905c688e2ab4301902ebbb0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

I know, but right now the plugin is only in edge :(
In my opinion s= ieve support is a must have for an IMAP configuration and the plugin should= be added to stable - As a subpackage it doesn't disrupt the main dovecot p= ackage in any way
Now the issue is that the plugin must be recompiled = each time dovecot is. After discussing the matter with Natanael on #alpine-= devel, we thought that it may be easier to have a subpackage for the sake o= f keeping recompilation in sync.

Cheers,
-O.

 

 

On 04.04.2016 08:15, Valery Kartel wrote:

Hey

the= re is already such a package in commun= ity (community/dovecot-pigeonhole-plugin)
=

2016-04-04 3:56 GMT+03:00 Olivier Mauras &= lt;olivier@mauras.ch>:
Sieve support in dovecot requires the = pigeonhole plugin.
The plugin requires to be rebuilded each time dove= cot minor version changes,
so having it as a subpackage will make it = easier.
---
 main/dovecot/APKBUILD | 50 ++++++++++++++++++= ++++++++++++++++++++++++++++++--
 1 file changed, 48 insertions(= +), 2 deletions(-)

diff --git a/main/dovecot/APKBUILD b/main/d= ovecot/APKBUILD
index 2ba4986..c6c0392 100644
--- a/main/doveco= t/APKBUILD
+++ b/main/dovecot/APKBUILD
@@ -4,7 +4,8 @@
&n= bsp;# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=3Ddovecot
 p= kgver=3D2.2.22
-pkgrel=3D0
+pigeonholever=3D0.4.13
+pkgre= l=3D1
 pkgdesc=3D"IMAP and POP3 server"
 url=3D"http://www.dovecot.org/"
 arc= h=3D"all"
@@ -17,9 +18,10 @@ makedepends=3D"libcap-dev zlib-dev opens= sl-dev bzip2-dev postgresql-dev
 install=3D"dovecot.pre-install = dovecot.post-install"
 subpackages=3D"$pkgname-doc $pkgname-dev<= br />         $pkgname-sql $pkgname-pgsql $pkgname-mysq= l $pkgname-sqlite
-       $pkgname-gssapi $pkgnam= e-ldap
+       $pkgname-gssapi $pkgname-ldap $pkg= name-pigeonhole
        "
 source=3D"<= a href=3D"http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar= =2Egz">http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz=
+       http://p= igeonhole.dovecot.org/releases/2.2/$pkgname-2.2-pigeonhole-$pigeonholever= =2Etar.gz
        hide-dl-errors.patch
=         dovecot.logrotate
      &n= bsp; dovecot.initd
@@ -27,6 +29,7 @@ source=3D"http://www.do= vecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz
 opt= ions=3D"libtool"

 _builddir=3D"$srcdir"/$pkgname-$pkgver<= br /> +_builddirpigeonhole=3D"$srcdir"/$pkgname-2.2-pigeonhole-$pigeonholev= er

 prepare() {
        cd "$_b= uilddir"
@@ -105,6 +108,46 @@ dev() {
      &nbs= p;         "$subpkgdir"/usr/lib/dovecot/
 }<= br />
+pigeonhole() {
+       pkgdesc=3D"S= ieve plugin for dovecot"
+       depends=3D"$pkgn= ame"
+
+       cd "$_builddirpigeonhole" +       ./configure \
+      &= nbsp;        --build=3D$CBUILD \
+    &= nbsp;          --host=3D$CHOST \
+  &nb= sp;            --prefix=3D/usr \
+ = ;              --localstatedir=3D/var \<= br /> +               --sysconfdir= =3D/etc \
+               --m= andir=3D/usr/share/man \
+            &= nbsp;  --infodir=3D/usr/share/info \
+       = ;        --with-dovecot=3D"$_builddir" \
+  =              --disable-static \
+&= nbsp;              || return 1
+&n= bsp;      make || return 1
+       = ;make install DESTDIR=3D"$pkgdir" || return 1
+
+    =    # Moving stuff before running _mv
+      =  mv "$pkgdir"/usr/share/doc/dovecot/example-config/conf.d/* \
+&= nbsp;              "$pkgdir"/etc/dovecot= /conf.d \
+       || return 1
+
+&nbs= p;      # We keep includes, man and doc in main package
+       _mv $(cd "$pkgdir" && find usr -name = '*sieve*' -prune \
+              =  -a -not -regex ".*/include/.*" \
+        &= nbsp;      -a -not -regex ".*/man/.*" \
+   =            -a -not -regex ".*/doc/.*" \
+               ) || return 1
+       _mv $(cd "$pkgdir" && find usr -name= '*pigeonhole*' \
+              &= nbsp;-a -not -regex ".*/include/.*" \
+        &n= bsp;      -a -not -regex ".*/man/.*" \
+    =            ) || return 1
+   =    _mv $(cd "$pkgdir" && find etc/dovecot -name '*sieve*= ') || return 1
+
+       # Compress man pag= es
+       find "$pkgdir"/usr/share/man/ -name "*= =2E1" -o -name "*.7" | xargs gzip -9
+}
+
 pgsql() {=
        pkgdesc=3D"postgresql driver for dovecot= "
        depends=3D"$pkgname-sql"
@@ -144,= 14 +187,17 @@ sql() {
 }

 md5sums=3D"bc8057bd5= bdfa0f8e80e2fef1082a241  dovecot-2.2.22.tar.gz
+5009b133096724aa= 2cb7fe1056d88125  dovecot-2.2-pigeonhole-0.4.13.tar.gz
 49f= 7a03284cc657857fe2ae22b8c82a0  hide-dl-errors.patch
 1a8828= 0b65efb6cb7f70bc5a88bf264c  dovecot.logrotate
 ddd77573827e= 0662be21303fb795eef3  dovecot.initd"
 sha256sums=3D"c7a9db3= c4ae9d9b4da920d2c82669700a0d407934501b405f37f89cc0b706ec7  dovecot-2= =2E2.22.tar.gz
+7fd187b8393a5048b302f90ad84adc7bf6e73bf79fd8d22a1c1aa= a71f836a910  dovecot-2.2-pigeonhole-0.4.13.tar.gz
 d6accdd6= e271647c01ab8fa0a9491ee822486484961e2d5c252bf70e816d2bfa  hide-dl-erro= rs.patch
 2ac04bb7b5c503cd87ba044482e651dbe5c9d84a4268891fb2aa9b= a26e62f833  dovecot.logrotate
 3f74548051297cedc7f8d203f1d1= d9dc904fe89004b54b52921d2050520daa6f  dovecot.initd"
 sha51= 2sums=3D"ea02ae491e90c0b9de7c7320901c8f7235193303fb194805564582d30e630002f2= 1f7195e5c5b99ff3ea1fadf95ddd43c2f7bb4d24067e0e5f40a66e9eb90012  doveco= t-2.2.22.tar.gz
+4e25a406b888fd8cbc9a4f4f7a7364f10ab47e932550970cede3= 4c964d50a6fe697c4b6d61cc83846b97901368ac63d1e22aa4d1d2002f24540766c5fbbebbf= 5  dovecot-2.2-pigeonhole-0.4.13.tar.gz
 1e9a1f299001923654= 6c7be581a4d6d0b430110d27a00bc3298f5c154ef9a4aadefa193d02a017912f826d771058f= d5c6ef6cb454e14f0d15749fa8f3a68c64a  hide-dl-errors.patch
 = 58756fa06a063777ef7c4d1e67b63adbde5462264e14bd7a3187a318f498fff21ac2a8d53bb= 216f56fef4588206e14112da79542b6dfdf503988786f27bb6544  dovecot.logrota= te
 d7f67991e11979da91162eb64a0b924655d0ac155d97bcc42a40c758003d= 60b7c096945544e6b321aa8ecb3416fe17b14b5898f1dba5e5a4b3e4c9c21295c8cb  = dovecot.initd"
--
2.7.4
--=_e28acd114905c688e2ab4301902ebbb0-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---