summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2016-11-19 21:59:06 +0100
committerDirkjan Ochtman <djc@gentoo.org>2016-11-19 21:59:06 +0100
commitb8a570265af8785484ca400de7aff0f49575ffe2 (patch)
tree05b757c65a5c00a5df6d92ee142430dbab0de5eb /mail-filter
parentmail-filters/rmilter: remove old versions (diff)
downloadgentoo-b8a570265af8785484ca400de7aff0f49575ffe2.tar.gz
gentoo-b8a570265af8785484ca400de7aff0f49575ffe2.tar.bz2
gentoo-b8a570265af8785484ca400de7aff0f49575ffe2.zip
mail-filter/rmilter: add live ebuild (fixes bug 600242)
Thanks to Christian Roessner for contributing the ebuild. Package-Manager: portage-2.3.0
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/rmilter/rmilter-9999.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/mail-filter/rmilter/rmilter-9999.ebuild b/mail-filter/rmilter/rmilter-9999.ebuild
new file mode 100644
index 000000000000..43deb82e6d8a
--- /dev/null
+++ b/mail-filter/rmilter/rmilter-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils user git-r3
+
+DESCRIPTION="Another sendmail milter for different mail checks"
+HOMEPAGE="https://github.com/vstakhov/rmilter"
+EGIT_REPO_URI="https://github.com/vstakhov/rmilter.git"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="dkim libressl +memcached"
+
+RDEPEND="dev-libs/libpcre
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ mail-filter/libmilter
+ >=dev-libs/glib-2.28
+ dkim? ( mail-filter/opendkim )
+ memcached? ( dev-libs/libmemcached )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ enewgroup rmilter
+ enewuser rmilter -1 -1 /var/run/rmilter rmilter
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DKIM=$(usex dkim ON OFF)
+ -DENABLE_MEMCACHED=$(usex memcached ON OFF)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ newinitd "${FILESDIR}/rmilter.initd" rmilter
+ insinto /etc/rmilter
+ newins rmilter.conf.sample rmilter.conf.sample
+ newins rmilter-grey.conf rmilter-grey.conf
+}