Gentoo Archives: gentoo-commits

From: Dirkjan Ochtman <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/rmilter/files/, mail-filter/rmilter/
Date: Sat, 26 Dec 2015 13:22:02
Message-Id: 1451136075.48b46cf47d027d80d51d02b40a531eed3928d975.djc@gentoo
1 commit: 48b46cf47d027d80d51d02b40a531eed3928d975
2 Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 13:17:41 2015 +0000
4 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 13:21:15 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48b46cf4
7
8 mail-filter/rmilter: new ebuild, imported from my overlay
9
10 mail-filter/rmilter/Manifest | 1 +
11 mail-filter/rmilter/files/rmilter.initd | 27 ++++++++++++++++++++++++
12 mail-filter/rmilter/metadata.xml | 8 ++++++++
13 mail-filter/rmilter/rmilter-1.6.7.ebuild | 35 ++++++++++++++++++++++++++++++++
14 4 files changed, 71 insertions(+)
15
16 diff --git a/mail-filter/rmilter/Manifest b/mail-filter/rmilter/Manifest
17 new file mode 100644
18 index 0000000..16b1407
19 --- /dev/null
20 +++ b/mail-filter/rmilter/Manifest
21 @@ -0,0 +1 @@
22 +DIST rmilter-1.6.7.tar.gz 117993 SHA256 d8312be6ab79cf42fd28a85c4eda3868e20a4d182f06c1491ce8cdc8c2bed8df SHA512 015393e803603d2e6e95344c1b30f748e7d4460c4dc0cb2551639d25f9b4554963bc072c872608f94cd6e2110afd4623e9083eb82df8d23f47c36c84585052ca WHIRLPOOL e4913d46a57e370e57b64141a1f4247757f9a621db2f53a01f624ae3082bf693b87198c54a125eba7ce5853c452650b3e6621947d9ccf330c3f5df6ca6e677ec
23
24 diff --git a/mail-filter/rmilter/files/rmilter.initd b/mail-filter/rmilter/files/rmilter.initd
25 new file mode 100644
26 index 0000000..0b40013
27 --- /dev/null
28 +++ b/mail-filter/rmilter/files/rmilter.initd
29 @@ -0,0 +1,27 @@
30 +#!/sbin/runscript
31 +# Copyright 2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +RUNDIR=/var/run/rmilter
35 +PIDFILE=$RUNDIR/rmilter.pid
36 +
37 +depend() {
38 + need net
39 +}
40 +
41 +start() {
42 + ebegin "Starting ${SVCNAME}"
43 + mkdir -m0750 -p $RUNDIR
44 + chown rmilter:rmilter $RUNDIR
45 + chmod g+s $RUNDIR
46 + rm -f $RUNDIR/$SVCNAME.sock
47 + start-stop-daemon --start --quiet --pidfile $PIDFILE -u rmilter \
48 + --exec /usr/sbin/rmilter -- -c /etc/rmilter/rmilter.conf
49 + eend $?
50 +}
51 +
52 +stop() {
53 + ebegin "Stopping ${SVCNAME}"
54 + start-stop-daemon --stop --quiet --pidfile $PIDFILE
55 + eend $?
56 +}
57
58 diff --git a/mail-filter/rmilter/metadata.xml b/mail-filter/rmilter/metadata.xml
59 new file mode 100644
60 index 0000000..56a1880
61 --- /dev/null
62 +++ b/mail-filter/rmilter/metadata.xml
63 @@ -0,0 +1,8 @@
64 +<?xml version="1.0" encoding="UTF-8"?>
65 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
66 +<pkgmetadata>
67 + <maintainer>
68 + <email>djc@g.o</email>
69 + <name>Dirkjan Ochtman</name>
70 + </maintainer>
71 +</pkgmetadata>
72
73 diff --git a/mail-filter/rmilter/rmilter-1.6.7.ebuild b/mail-filter/rmilter/rmilter-1.6.7.ebuild
74 new file mode 100644
75 index 0000000..674c1f4
76 --- /dev/null
77 +++ b/mail-filter/rmilter/rmilter-1.6.7.ebuild
78 @@ -0,0 +1,35 @@
79 +# Copyright 1999-2015 Gentoo Foundation
80 +# Distributed under the terms of the GNU General Public License v2
81 +# $Id$
82 +
83 +EAPI=5
84 +
85 +inherit cmake-utils user
86 +
87 +DESCRIPTION="Another sendmail milter for different mail checks"
88 +SRC_URI="https://github.com/vstakhov/rmilter/archive/${PV}.tar.gz -> ${P}.tar.gz"
89 +HOMEPAGE="https://github.com/vstakhov/rmilter"
90 +
91 +LICENSE="BSD"
92 +SLOT="0"
93 +KEYWORDS="~amd64 ~x86"
94 +IUSE=""
95 +
96 +DEPEND="dev-libs/libpcre
97 + mail-filter/libmilter
98 + mail-filter/opendkim
99 + mail-filter/libspf2"
100 +RDEPEND="${DEPEND}"
101 +
102 +pkg_setup() {
103 + enewgroup rmilter
104 + enewuser rmilter -1 -1 /var/run/rmilter rmilter
105 +}
106 +
107 +src_install() {
108 + cmake-utils_src_install
109 + newinitd "${FILESDIR}/rmilter.initd" rmilter
110 + insinto /etc/rmilter
111 + newins rmilter.conf.sample rmilter.conf.sample
112 + newins rmilter-grey.conf rmilter-grey.conf
113 +}