mail-filter/rmilter: new ebuild, imported from my overlay
authorDirkjan Ochtman <djc@gentoo.org>
Sat, 26 Dec 2015 13:17:41 +0000 (14:17 +0100)
committerDirkjan Ochtman <djc@gentoo.org>
Sat, 26 Dec 2015 13:21:15 +0000 (14:21 +0100)
mail-filter/rmilter/Manifest [new file with mode: 0644]
mail-filter/rmilter/files/rmilter.initd [new file with mode: 0644]
mail-filter/rmilter/metadata.xml [new file with mode: 0644]
mail-filter/rmilter/rmilter-1.6.7.ebuild [new file with mode: 0644]

diff --git a/mail-filter/rmilter/Manifest b/mail-filter/rmilter/Manifest
new file mode 100644 (file)
index 0000000..16b1407
--- /dev/null
@@ -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 (file)
index 0000000..0b40013
--- /dev/null
@@ -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 (file)
index 0000000..56a1880
--- /dev/null
@@ -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 (file)
index 0000000..674c1f4
--- /dev/null
@@ -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
+}