From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-853552-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1D2F21384B4 for <garchives@archives.gentoo.org>; Sat, 26 Dec 2015 13:22:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 976E1E07F1; Sat, 26 Dec 2015 13:22:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1057C21C005 for <gentoo-commits@lists.gentoo.org>; Sat, 26 Dec 2015 13:21:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E28A53407B8 for <gentoo-commits@lists.gentoo.org>; Sat, 26 Dec 2015 13:21:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D9C28A4B for <gentoo-commits@lists.gentoo.org>; Sat, 26 Dec 2015 13:21:54 +0000 (UTC) From: "Dirkjan Ochtman" <djc@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dirkjan Ochtman" <djc@gentoo.org> Message-ID: <1451136075.48b46cf47d027d80d51d02b40a531eed3928d975.djc@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/rmilter/files/, mail-filter/rmilter/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/rmilter/Manifest mail-filter/rmilter/files/rmilter.initd mail-filter/rmilter/metadata.xml mail-filter/rmilter/rmilter-1.6.7.ebuild X-VCS-Directories: mail-filter/rmilter/ mail-filter/rmilter/files/ X-VCS-Committer: djc X-VCS-Committer-Name: Dirkjan Ochtman X-VCS-Revision: 48b46cf47d027d80d51d02b40a531eed3928d975 X-VCS-Branch: master Date: Sat, 26 Dec 2015 13:21:54 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 807cae3e-1c99-4a87-86ce-94c618b35048 X-Archives-Hash: 9103ffc52d9c79855177602b7e81d9ca commit: 48b46cf47d027d80d51d02b40a531eed3928d975 Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> AuthorDate: Sat Dec 26 13:17:41 2015 +0000 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> CommitDate: Sat Dec 26 13:21:15 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48b46cf4 mail-filter/rmilter: new ebuild, imported from my overlay mail-filter/rmilter/Manifest | 1 + mail-filter/rmilter/files/rmilter.initd | 27 ++++++++++++++++++++++++ mail-filter/rmilter/metadata.xml | 8 ++++++++ mail-filter/rmilter/rmilter-1.6.7.ebuild | 35 ++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+) diff --git a/mail-filter/rmilter/Manifest b/mail-filter/rmilter/Manifest new file mode 100644 index 0000000..16b1407 --- /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 0000000..0b40013 --- /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 0000000..56a1880 --- /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 0000000..674c1f4 --- /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 +}