X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from faros.axonpro.sk (faros.axonpro.sk [193.200.9.6]) by lists.alpinelinux.org (Postfix) with ESMTP id 56ABA1EBFF6 for ; Tue, 8 Feb 2011 10:00:08 +0000 (UTC) Received: from axonpro.sk (mollum.axonpro-local.sk [200.200.200.221]) by faros.axonpro.sk (8.12.11.20060308/8.12.11) with ESMTP id p18A05gY028090; Tue, 8 Feb 2011 11:00:05 +0100 Received: from localhost.localdomain ([200.200.200.209]) by axonpro.sk (8.14.4/8.13.1) with ESMTP id p18A04RZ006657; Tue, 8 Feb 2011 11:00:04 +0100 Date: Tue, 8 Feb 2011 11:04:51 +0100 From: Juraj Sujan To: alpine-devel@lists.alpinelinux.org Cc: Timo =?UTF-8?B?VGVyw6Rz?= Subject: Re: [alpine-devel] maildrop: new aport Message-ID: <20110208110451.2e422e3d@sofy.sk> In-Reply-To: <4D4D2EF3.9030104@iki.fi> References: <20110204234736.2b4ac96c@alpine.sofy.sk> <4D4D134F.5060108@iki.fi> <20110205110250.7508e5e2@alpine.sofy.sk> <4D4D2EF3.9030104@iki.fi> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/MgAv0b_bgtLSz9Sc62W80C8" --MP_/MgAv0b_bgtLSz9Sc62W80C8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi again, I tried to build this package under a minimal installation with only alpine-sdk installed. I've made these corrections: I added perl into makedepends, because configure failes without it. I realized, that when configure script checks for mailbox locations, it assumes either Courier sources, Qmail installation or one of the /var/mail, /usr/spool/mail, /var/spool/mail or /usr/mail directories. Otherwise it ends with error. So as a workaround I added setting of QMAIL variable to some string. Now configure script is satisfied and sets default mailbox location to ./Mailbox, but this is later overwritten by the value of --with-default-maildrop parameter (strange, isn't it?). Also this could be set later in the configuration file (DEFAULT variable). Juraj --MP_/MgAv0b_bgtLSz9Sc62W80C8 Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-testing-maildrop-new-aport.patch >From f407bc1be79c27bce5bd9fdeb05b8791d151d907 Mon Sep 17 00:00:00 2001 From: Juraj Sujan Date: Tue, 8 Feb 2011 10:53:33 +0100 Subject: [PATCH] testing/maildrop: new aport --- testing/maildrop/APKBUILD | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 testing/maildrop/APKBUILD diff --git a/testing/maildrop/APKBUILD b/testing/maildrop/APKBUILD new file mode 100644 index 0000000..88e8375 --- /dev/null +++ b/testing/maildrop/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Juraj Sujan +# Maintainer: Juraj Sujan +pkgname=maildrop +pkgver=2.5.2 +pkgrel=0 +pkgdesc="Mail delivery agent with filtering abilities" +url="http://courier-mta.org/maildrop/" +arch="all" +license="GPL3" +depends= +makedepends="perl pcre-dev" +install= +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/project/courier/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2 + http://www.max.rs/ozone/maildrop-2.3.0-dovecotauth.patch.txt" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here + if ! patch --verbose -p1 -i ../maildrop-2.3.0-dovecotauth.patch.txt; then + error "dovecotauth patch failed" + return 1 + fi +} + +build() { + cd "$_builddir" + # workaround for strange detection of default mailbox file/dir + export QMAIL="foo" + ./configure --prefix=/usr \ + --disable-authlib \ + --without-db \ + --enable-syslog=1 \ + --with-default-maildrop=./Maildir || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + mkdir "$pkgdir"/usr/share/doc + mv "$pkgdir"/usr/share/maildrop "$pkgdir"/usr/share/doc/ + cp README.dovecotauth "$pkgdir"/usr/share/doc/maildrop/ +} +md5sums="3edb56534ae442a494255db6c8aaab99 maildrop-2.5.2.tar.bz2 +f5e0fd910d76c4fba2a5fcdd40c6b375 maildrop-2.3.0-dovecotauth.patch.txt" -- 1.7.3.5 --MP_/MgAv0b_bgtLSz9Sc62W80C8-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---