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 ACCB2DD4DF5 for ; Mon, 4 Apr 2016 06:25:43 +0000 (UTC) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 18798DC0AE7 for ; Mon, 4 Apr 2016 06:25:42 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id bc4so144575998lbc.2 for ; Sun, 03 Apr 2016 23:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=qsn5sEOl+N9Nn7NhqLXanKiYxPloT5DQEzU8faVhu/k=; b=ni/KB787E6H2GHmcbS7d1CCbrE0OdNPPBxCsoKghNmAh8ysDeR7Vc02mYuj4IAbdB6 414DYaz8mI/JJLQX32lUoFhgPCU39FsXAU4TyPT+y/DTbs+AxzLZjRhGdWdxFjNMwuxV 35OmrixLjuPYzeIRkcDCcKBNDMhYmmlIhECIze2DJkriA/pDDWKb4oJnK9fINcZoL11w pDErPUYdlXjWf3MwQH2zN3GV7DyO6FYcZ+1XBwPFU9QJJJR/5XspnrmmtcoYVjGhoXC8 /sGTyg7aQfz3KJNK78SQHTakeD53xcxDEdGt4PYgSJC3FQAWVaaGriSLkEHs2e/+33zQ IUvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version; bh=qsn5sEOl+N9Nn7NhqLXanKiYxPloT5DQEzU8faVhu/k=; b=mChF4/bfKEArLzJ2q140Jj4s/d8lDjo69BSIZHb1TLynxGGE/195zscwX+1xbQ/Hsl tSODwimPXA2vEfaI0H1HbXVrhe1lTX54fN7quJmUqQWy0VG+s8U2yUVulwcGmSmyaPZ+ 3wlDyIIW+Av0MjIV+uFTHMnK8hcRI4idY0iLdMsf8ZWjqd9dg0QmgpPUSBfJoaZ9s0UX 6iDnJ4M48L5V3Ie6PBWlS75NNHNDwLWzQc4zW0vnAiZibgkhMEwb7du5wTXoP0ToXWvt T/485Xe+zwwR64hkQfjziVxjrt9g+1anID6mKF/EGkkSiovwnLtyGtJ2VmMbRnXpsIme x/vw== X-Gm-Message-State: AD7BkJIqGqhQY7z0Z2fe0YExmham/vD9NImttE3y3OgDj/b9q/EhBhf/DLI93LNGwCG7EQ== X-Received: by 10.112.185.68 with SMTP id fa4mr3537396lbc.143.1459751141146; Sun, 03 Apr 2016 23:25:41 -0700 (PDT) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id jb5sm4475025lbc.8.2016.04.03.23.25.40 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Apr 2016 23:25:40 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Mon, 4 Apr 2016 09:25:38 +0300 From: Timo Teras To: Olivier Mauras Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/dovecot: Integrate pigeonhole plugin 0.4.13 as a subpackage Message-ID: <20160404092538.04145344@vostro.util.wtbts.net> In-Reply-To: <20160404025625.10d9cac7f8cb0e308f09041e@mauras.ch> References: <20160404025625.10d9cac7f8cb0e308f09041e@mauras.ch> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-alpine-linux-musl) 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/signed; micalg=pgp-sha256; boundary="Sig_/DQWAGwkPN=pwEHanG=Lr7l_"; protocol="application/pgp-signature" X-Virus-Scanned: ClamAV using ClamSMTP --Sig_/DQWAGwkPN=pwEHanG=Lr7l_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 4 Apr 2016 02:56:25 +0200 Olivier Mauras wrote: > 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(-) >=20 > 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=3Ddovecot > pkgver=3D2.2.22 > -pkgrel=3D0 > +pigeonholever=3D0.4.13 > +pkgrel=3D1 > pkgdesc=3D"IMAP and POP3 server" > url=3D"http://www.dovecot.org/" > arch=3D"all" > @@ -17,9 +18,10 @@ makedepends=3D"libcap-dev zlib-dev openssl-dev > bzip2-dev postgresql-dev install=3D"dovecot.pre-install > dovecot.post-install" subpackages=3D"$pkgname-doc $pkgname-dev > $pkgname-sql $pkgname-pgsql $pkgname-mysql $pkgname-sqlite > - $pkgname-gssapi $pkgname-ldap > + $pkgname-gssapi $pkgname-ldap $pkgname-pigeonhole > " > source=3D"http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.= tar.gz > + > http://pigeonhole.dovecot.org/releases/2.2/$pkgname-2.2-pigeonhole-$pigeo= nholever.tar.gz > hide-dl-errors.patch dovecot.logrotate > dovecot.initd > @@ -27,6 +29,7 @@ > source=3D"http://www.dovecot.org/releases/${pkgver%.*}/$pkgname-$pkgver.t= ar.gz > options=3D"libtool"=20 > _builddir=3D"$srcdir"/$pkgname-$pkgver > +_builddirpigeonhole=3D"$srcdir"/$pkgname-2.2-pigeonhole-$pigeonholever > =20 > prepare() { > cd "$_builddir" > @@ -105,6 +108,46 @@ dev() { > "$subpkgdir"/usr/lib/dovecot/ > } > =20 > +pigeonhole() { > + pkgdesc=3D"Sieve plugin for dovecot" > + depends=3D"$pkgname" > + > + cd "$_builddirpigeonhole" > + ./configure \ > + --build=3D$CBUILD \ > + --host=3D$CHOST \ > + --prefix=3D/usr \ > + --localstatedir=3D/var \ > + --sysconfdir=3D/etc \ > + --mandir=3D/usr/share/man \ > + --infodir=3D/usr/share/info \ > + --with-dovecot=3D"$_builddir" \ > + --disable-static \ > + || return 1 > + make || return 1 The build stage should go to build(). > + make install DESTDIR=3D"$pkgdir" || return 1 And this to package(). One reason for these is that some functions are run under fakeroot and some not. And that then the automatic split for -doc works (see below). And it also helps developers if they are running these stages individually. Otherwise it looks good to me. I'd also like to hear if dovecot maintainer has any comments on doing this? > + > + # 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 +} > + The man pages should go to -doc. Then they are also compressed manually. Another reason to use build() and package() correctly. > pgsql() { > pkgdesc=3D"postgresql driver for dovecot" > depends=3D"$pkgname-sql" > @@ -144,14 +187,17 @@ sql() { > } --Sig_/DQWAGwkPN=pwEHanG=Lr7l_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXAgjiAAoJEEZwDoxij6HO0KgH/jUbC8FcXxu8eQVKgnNxLOm1 c9r+BU29BOjcRFbd+9cCSYKMbxjwSxTPB74ZQoPZ7ziXwv7Yq4kHLOvOkbFHisLO ZvAjzk9WrL3VAbSJ/L+BLVPJlU9fxsihbYYzBQ1VXrkmBHxACt+U7V/nUFDF1U1J Kpm4RGoVMX6hNPKmhco/I/jvmpBZDQokSBg+Ey5FN1N5kwAPOcC9Z0HCovCnT0D0 Yh2xyFzVG58wRkEG/MFSDalZTdS5z7LcmijEgYguySCPOXhLvChHfYAFFxcbLzSG ZC9hW1cforv8nu9/3/WF8H5Ldo3dmqSocXntwbMd04BG/gS8Ey/99NHMluML6H0= =MBqQ -----END PGP SIGNATURE----- --Sig_/DQWAGwkPN=pwEHanG=Lr7l_-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---