X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from forward2h.mail.yandex.net (forward2h.mail.yandex.net [84.201.187.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 0EC52DC052B for ; Wed, 29 Jan 2014 14:54:50 +0000 (UTC) Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [84.201.186.21]) by forward2h.mail.yandex.net (Yandex) with ESMTP id 6EA3A703133 for ; Wed, 29 Jan 2014 18:54:48 +0400 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id 3C7C92C1447; Wed, 29 Jan 2014 18:54:48 +0400 (MSK) Received: from mail.inco-service.ru (mail.inco-service.ru [88.87.95.137]) by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTPA id ixtjca8Ln5-slP4AmF8; Wed, 29 Jan 2014 18:54:47 +0400 X-Yandex-Uniq: 2866cd63-6a3c-47b5-8271-91206835bf19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1391007287; bh=GVjUBJrHMLd0mE2v7wPmyW+Ae8D8DLiVgJHM1uTLsQo=; h=From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=rWYihdfxuA/eQayECxfu8DG/gZTExOnj7NouYvwvKg6KrvN0S5QILyDS4KoX0E/6X CaAnmSCu8qE/eGTyvZLmNtxRgLyjNWnAv5sZMzOS5kGm0oKjReeLAkccDYIMM4vBVq 8REpT4Q8NtUm5wDU+rMJiOhvFtHm+4Tw9aQkSuhM= Authentication-Results: smtp4h.mail.yandex.net; dkim=pass header.i=@yandex.ru From: Kozak Ivan To: alpine-devel@lists.alpinelinux.org Cc: Kozak Ivan Subject: [alpine-devel] [PATCH] testing/dovecot-antispam-plugin: new aport Date: Wed, 29 Jan 2014 22:54:48 +0400 Message-Id: <1391021688-9137-1-git-send-email-kozak-iv@yandex.ru> X-Mailer: git-send-email 1.8.4.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/dovecot-antispam-plugin/APKBUILD | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testing/dovecot-antispam-plugin/APKBUILD diff --git a/testing/dovecot-antispam-plugin/APKBUILD b/testing/dovecot-antispam-plugin/APKBUILD new file mode 100644 index 0000000..65f3198 --- /dev/null +++ b/testing/dovecot-antispam-plugin/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Kozak Ivan +# Maintainer: Kozak Ivan +pkgname=dovecot-antispam-plugin +pkgver=51 +pkgrel=0 +pkgdesc="Integrates DSPAM into dovecot IMAP server. Mercurial Version for dovecot >= 2.1" +url="http://hg.dovecot.org/dovecot-antispam-plugin/" +arch="all" +license="GPL" +depends="dovecot" +depends_dev="dovecot-dev mercurial autoconf automake gawk" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="" + +_hgroot="http://hg.dovecot.org/dovecot-antispam-plugin" +_hgrepo="dovecot-antispam-plugin" +_builddir="$srcdir/$_hgrepo" + +prepare() { + cd "$srcdir" + msg "Connecting to Mercurial server..." + + if [[ -d "$_hgrepo" ]]; then + cd "$_hgrepo" + hg pull -r 51 -u + msg "The local files are updated." + else + hg clone -r 51 "$_hgroot" "$_hgrepo" + fi +} + +build() { + cd "$_builddir" + ./autogen.sh || return 1 + ./configure --prefix=/usr --with-dovecot=/usr/lib/dovecot || return 1 + sed -i -e 's/install -o/install -D -o/' -e 's|$(INSTALLDIR)/|$(INSTALLDIR)/$(LIBRARY_NAME)|' Makefile || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + -- 1.8.4.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---