Subject: [alpine-devel] New package: dovecot-pigeonhole-plugin-extdata

From: Pierre Jaury <[email-masked]>
Date: Sun, 24 Apr 2016 15:19:04 +0200

Hey guys,

I have been using alpine for some time now, first time packaging however.

Attached is a patch adding a package I maintain for one of my own
projects. Feedback is welcome, also should it get to testing or community?

Thanks,
From ec7d2f56cffeb154195493c593ad91630425e7c5 Mon Sep 17 00:00:00 2001
From: Pierre Jaury <[email-masked]>
Date: Sun, 24 Apr 2016 13:10:10 +0000
Subject: [PATCH] testing/dovecot-pigeonhole-plugin-extdata: new aport

http://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/Extdata
Pigeonhole Sieve Extdata Plugin
---
 testing/dovecot-pigeonhole-plugin-extdata/APKBUILD | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 testing/dovecot-pigeonhole-plugin-extdata/APKBUILD

diff --git a/testing/dovecot-pigeonhole-plugin-extdata/APKBUILD b/testing/dovecot-pigeonhole-plugin-extdata/APKBUILD
new file mode 100644
index 0000000..99d29a4
--- /dev/null
+++ b/testing/dovecot-pigeonhole-plugin-extdata/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor:
+# Maintainer: Pierre Jaury <[email-masked]>
+pkgname=dovecot-pigeonhole-plugin-extdata
+pkgver=39
+pkgrel=0
+pkgdesc="Pigeonhole Sieve Extdata Plugin"
+url="http://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/Extdata"
+arch="all"
+license="LGPL2+"
+depends="dovecot-pigeonhole-plugin"
+depends_dev="dovecot-pigeonhole-plugin-dev autoconf automake libtool mercurial"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source=""
+
+_hgroot="http://hg.rename-it.nl/pigeonhole-0.4-sieve-extdata"
+_hgrepo="pigeonhole-0.4-sieve-extdata"
+_builddir="$srcdir/$_hgrepo"
+
+prepare() {
+	cd "$srcdir"
+	msg "Connecting to Mercurial server..."
+	if [ -d "$_hgrepo" ]; then
+		cd "$_hgrepo"
+		hg pull -r $pkgver -u
+		msg "The local files are updated."
+	else
+		hg clone -r $pkgver "$_hgroot" "$_hgrepo"
+	fi
+}
+
+build() {
+	cd "$_builddir"
+	./autogen.sh
+	./configure --prefix=/usr || return 1
+	make || return 1
+
+}
+
+package() {
+	cd "$_builddir"
+	make DESTDIR="$pkgdir" install || return 1
+}
+
-- 
2.6.6

---

From: Natanael Copa <[email-masked]>
Date: Wed, 22 Jun 2016 00:26:48 +0200

On Sun, 24 Apr 2016 15:19:04 +0200

> projects. Feedback is welcome, also should it get to testing or community?

Thank you for sharing it. Sorry late response.

dovecot plugins are a bit tricky because they need to be rebuilt every
minor dovecot release. So it kind of makes sense to ship build them
together with dovecot itself.

We did so with the pigeonhole plugin.
http://git.alpinelinux.org/cgit/aports/commit/main/dovecot?id=9f3024f08dff221dc786e7430e809cde383688fb

-nc

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