summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2015-12-26 14:17:41 +0100
committerDirkjan Ochtman <djc@gentoo.org>2015-12-26 14:21:15 +0100
commit48b46cf47d027d80d51d02b40a531eed3928d975 (patch)
tree15b32f1a0d2ce61fa1458b3744c0371732b808f5 /mail-filter
parentapp-emulation/virt-manager: Version bump (diff)
downloadgentoo-48b46cf47d027d80d51d02b40a531eed3928d975.tar.gz
gentoo-48b46cf47d027d80d51d02b40a531eed3928d975.tar.bz2
gentoo-48b46cf47d027d80d51d02b40a531eed3928d975.zip
mail-filter/rmilter: new ebuild, imported from my overlay
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/rmilter/Manifest1
-rw-r--r--mail-filter/rmilter/files/rmilter.initd27
-rw-r--r--mail-filter/rmilter/metadata.xml8
-rw-r--r--mail-filter/rmilter/rmilter-1.6.7.ebuild35
4 files changed, 71 insertions, 0 deletions
diff --git a/mail-filter/rmilter/Manifest b/mail-filter/rmilter/Manifest
new file mode 100644
index 000000000000..16b140793ff2
--- /dev/null
+++ b/mail-filter/rmilter/Manifest
@@ -0,0 +1 @@
+DIST rmilter-1.6.7.tar.gz 117993 SHA256 d8312be6ab79cf42fd28a85c4eda3868e20a4d182f06c1491ce8cdc8c2bed8df SHA512 015393e803603d2e6e95344c1b30f748e7d4460c4dc0cb2551639d25f9b4554963bc072c872608f94cd6e2110afd4623e9083eb82df8d23f47c36c84585052ca WHIRLPOOL e4913d46a57e370e57b64141a1f4247757f9a621db2f53a01f624ae3082bf693b87198c54a125eba7ce5853c452650b3e6621947d9ccf330c3f5df6ca6e677ec
diff --git a/mail-filter/rmilter/files/rmilter.initd b/mail-filter/rmilter/files/rmilter.initd
new file mode 100644
index 000000000000..0b40013d778e
--- /dev/null
+++ b/mail-filter/rmilter/files/rmilter.initd
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+RUNDIR=/var/run/rmilter
+PIDFILE=$RUNDIR/rmilter.pid
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ mkdir -m0750 -p $RUNDIR
+ chown rmilter:rmilter $RUNDIR
+ chmod g+s $RUNDIR
+ rm -f $RUNDIR/$SVCNAME.sock
+ start-stop-daemon --start --quiet --pidfile $PIDFILE -u rmilter \
+ --exec /usr/sbin/rmilter -- -c /etc/rmilter/rmilter.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE
+ eend $?
+}
diff --git a/mail-filter/rmilter/metadata.xml b/mail-filter/rmilter/metadata.xml
new file mode 100644
index 000000000000..56a1880364bf
--- /dev/null
+++ b/mail-filter/rmilter/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>djc@gentoo.org</email>
+ <name>Dirkjan Ochtman</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/mail-filter/rmilter/rmilter-1.6.7.ebuild b/mail-filter/rmilter/rmilter-1.6.7.ebuild
new file mode 100644
index 000000000000..674c1f42aea9
--- /dev/null
+++ b/mail-filter/rmilter/rmilter-1.6.7.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils user
+
+DESCRIPTION="Another sendmail milter for different mail checks"
+SRC_URI="https://github.com/vstakhov/rmilter/archive/${PV}.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="https://github.com/vstakhov/rmilter"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/libpcre
+ mail-filter/libmilter
+ mail-filter/opendkim
+ mail-filter/libspf2"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup rmilter
+ enewuser rmilter -1 -1 /var/run/rmilter rmilter
+}
+
+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
+}