Subject: [alpine-aports] [PATCH] community/dovecot-pigeonhole-plugin: fix depends, move config from -doc to main package.

From: Valery Kartel <[email-masked]>
Date: Fri, 25 Dec 2015 11:38:27 +0200

How to make a request to rename the package?
I think, this package need to be renamed to "dovecot-pigeonhole" (without -plugin) or to "dovecot-sieve" to do like the names of the other dovecot-subpackages.
---
 community/dovecot-pigeonhole-plugin/APKBUILD     | 17 ++++----
 community/dovecot-pigeonhole-plugin/APKBUILD.old | 55 ++++++++++++++++++++++++
 2 files changed, 63 insertions(+), 9 deletions(-)
 create mode 100644 community/dovecot-pigeonhole-plugin/APKBUILD.old

diff --git a/community/dovecot-pigeonhole-plugin/APKBUILD b/community/dovecot-pigeonhole-plugin/APKBUILD
index e46330d..79977b8 100644
--- a/community/dovecot-pigeonhole-plugin/APKBUILD
+++ b/community/dovecot-pigeonhole-plugin/APKBUILD
@@ -5,19 +5,20 @@
 pkgname=dovecot-pigeonhole-plugin
 _realname=dovecot-2.2-pigeonhole
 pkgver=0.4.10
-pkgrel=0
+pkgrel=1
 pkgdesc="Pigeonhole project provides Sieve support as a plugin to Dovecot's LDA"
 url="http://pigeonhole.dovecot.org"
 arch="all"
 license="LGPL"
-depends="dovecot"
-depends_dev=""
-makedepends="dovecot-dev openssl-dev"
+depends=""
+depends_dev="$pkgname"
+makedepends="dovecot-dev"
 install=""
 subpackages="$pkgname-doc $pkgname-dev $pkgname-tools"
 source="http://pigeonhole.dovecot.org/releases/2.2/$_realname-$pkgver.tar.gz"
 
-_builddir="$srcdir/$_realname-$pkgver"
+_builddir="$srcdir"/$_realname-$pkgver
+
 prepare() {
 	cd "$_builddir"
 	update_config_sub || return 1
@@ -29,10 +30,6 @@ build() {
 		--build=$CBUILD \
 		--host=$CHOST \
 		--prefix=/usr \
-		--sysconfdir=/etc \
-		--mandir=/usr/share/man \
-		--infodir=/usr/share/info \
-		--localstatedir=/var \
 		--with-dovecot=/usr/lib/dovecot \
 		--disable-static \
 		|| return 1
@@ -42,6 +39,8 @@ build() {
 package() {
 	cd "$_builddir"
 	make DESTDIR="$pkgdir" install || return 1
+	mkdir -p "$pkgdir"/etc
+	mv "$pkgdir"/usr/share/doc/dovecot/example-config "$pkgdir"/etc/dovecot
 }
 
 tools() {
diff --git a/community/dovecot-pigeonhole-plugin/APKBUILD.old b/community/dovecot-pigeonhole-plugin/APKBUILD.old
new file mode 100644
index 0000000..e46330d
--- /dev/null
+++ b/community/dovecot-pigeonhole-plugin/APKBUILD.old
@@ -0,0 +1,55 @@
+# Contributor: Valery Kartel <[email-masked]>
+# Contributor: Sören Tempel <[email-masked]>
+# Contributor: Kozak Ivan <[email-masked]>
+# Maintainer: Kozak Ivan <[email-masked]>
+pkgname=dovecot-pigeonhole-plugin
+_realname=dovecot-2.2-pigeonhole
+pkgver=0.4.10
+pkgrel=0
+pkgdesc="Pigeonhole project provides Sieve support as a plugin to Dovecot's LDA"
+url="http://pigeonhole.dovecot.org"
+arch="all"
+license="LGPL"
+depends="dovecot"
+depends_dev=""
+makedepends="dovecot-dev openssl-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-dev $pkgname-tools"
+source="http://pigeonhole.dovecot.org/releases/2.2/$_realname-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_realname-$pkgver"
+prepare() {
+	cd "$_builddir"
+	update_config_sub || return 1
+}
+
+build() {
+	cd "$_builddir"
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
+		--localstatedir=/var \
+		--with-dovecot=/usr/lib/dovecot \
+		--disable-static \
+		|| return 1
+	make || return 1
+}
+
+package() {
+	cd "$_builddir"
+	make DESTDIR="$pkgdir" install || return 1
+}
+
+tools() {
+	pkgdesc="Pigeonhole project provides Sieve support (test and debug tools)"
+	mkdir -p "$subpkgdir"/usr
+	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+md5sums="a11632e1302d2d906267d67e761da218  dovecot-2.2-pigeonhole-0.4.10.tar.gz"
+sha256sums="e9dfe7160fd3b465d6d5068f219122626ef790cce507e290cd09852c7d90726f  dovecot-2.2-pigeonhole-0.4.10.tar.gz"
+sha512sums="3e864727fc2bd346a7212135a3dd8759f9a5c27abd938c4d6b805c784c5c2c5aa401dd49cfa90951348a00202b85f91d86a2fa17ccab9a983a6faf2d0add48e8  dovecot-2.2-pigeonhole-0.4.10.tar.gz"
-- 
2.6.4

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---