From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2BF75139085 for ; Tue, 3 Jan 2017 19:01:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AFD00E0CE9; Tue, 3 Jan 2017 19:01:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A927E0CE9 for ; Tue, 3 Jan 2017 19:01:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DBE6A341149 for ; Tue, 3 Jan 2017 19:00:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 49FD2261C for ; Tue, 3 Jan 2017 19:00:57 +0000 (UTC) From: "Dirkjan Ochtman" 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" Message-ID: <1483470051.918473fa31099a4d596ad4ff50b52417b15169fe.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/files/rmilter.initd-r1 mail-filter/rmilter/rmilter-1.10.0-r1.ebuild X-VCS-Directories: mail-filter/rmilter/files/ mail-filter/rmilter/ X-VCS-Committer: djc X-VCS-Committer-Name: Dirkjan Ochtman X-VCS-Revision: 918473fa31099a4d596ad4ff50b52417b15169fe X-VCS-Branch: master Date: Tue, 3 Jan 2017 19:00:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 42413a12-c116-4cb9-a03c-0b11e5c76226 X-Archives-Hash: 99150e4e9e52bf3fa011c011c060c3c4 commit: 918473fa31099a4d596ad4ff50b52417b15169fe Author: Dirkjan Ochtman gentoo org> AuthorDate: Tue Jan 3 19:00:39 2017 +0000 Commit: Dirkjan Ochtman gentoo org> CommitDate: Tue Jan 3 19:00:51 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=918473fa mail-filter/rmilter: use checkpath in init script (fixes bug 603336) Package-Manager: portage-2.3.0 mail-filter/rmilter/files/rmilter.initd-r1 | 25 +++++++++++++++ mail-filter/rmilter/rmilter-1.10.0-r1.ebuild | 46 ++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/mail-filter/rmilter/files/rmilter.initd-r1 b/mail-filter/rmilter/files/rmilter.initd-r1 new file mode 100644 index 00000000..03eaa25 --- /dev/null +++ b/mail-filter/rmilter/files/rmilter.initd-r1 @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 2015-2017 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}" + checkpath -d $RUNDIR -m2750 -o rmilter:rmilter + 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/rmilter-1.10.0-r1.ebuild b/mail-filter/rmilter/rmilter-1.10.0-r1.ebuild new file mode 100644 index 00000000..7147ccf --- /dev/null +++ b/mail-filter/rmilter/rmilter-1.10.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 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="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-r1" rmilter + insinto /etc/rmilter + newins rmilter.conf.sample rmilter.conf.sample + newins rmilter-grey.conf rmilter-grey.conf +}