1 |
commit: 041f07c1aa2f8e72413c7cce016568ad66c627e2 |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Dec 13 20:28:25 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 22 15:46:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=041f07c1 |
7 |
|
8 |
mail-filter/postgrey: remove unused rc file |
9 |
|
10 |
mail-filter/postgrey/files/postgrey.rc.new | 101 ----------------------------- |
11 |
1 file changed, 101 deletions(-) |
12 |
|
13 |
diff --git a/mail-filter/postgrey/files/postgrey.rc.new b/mail-filter/postgrey/files/postgrey.rc.new |
14 |
deleted file mode 100644 |
15 |
index d3f46e9..00000000 |
16 |
--- a/mail-filter/postgrey/files/postgrey.rc.new |
17 |
+++ /dev/null |
18 |
@@ -1,101 +0,0 @@ |
19 |
-#!/sbin/openrc-run |
20 |
-# Copyright 1999-2011 Gentoo Foundation |
21 |
-# Distributed under the terms of the GNU General Public License v2 |
22 |
-# $Id$ |
23 |
- |
24 |
-conf="/etc/conf.d/postgrey" |
25 |
- |
26 |
-extra_started_commands="reload" |
27 |
- |
28 |
-depend() { |
29 |
- need net |
30 |
- before postfix |
31 |
- provide postfix_greylist |
32 |
-} |
33 |
- |
34 |
-conf_error() { |
35 |
- eerror "You need to setup ${conf} first" |
36 |
- return 1 |
37 |
-} |
38 |
- |
39 |
-checkconfig() { |
40 |
-if [ -z "${POSTGREY_TYPE}" ] |
41 |
- then |
42 |
- einfo "You need to choose the server type you want" |
43 |
- einfo "by setting the POSTGREY_TYPE variable in ${conf}." |
44 |
- else |
45 |
- if [ "x${POSTGREY_TYPE}" = "xinet" ] |
46 |
- then |
47 |
- if [ -z "${POSTGREY_PORT}" ] || [ -z "${POSTGREY_HOST}" ] |
48 |
- then |
49 |
- einfo "The following entries are missing in ${conf}:" |
50 |
- [ -z "${POSTGREY_HOST}" ] && einfo " - POSTGREY_HOST" |
51 |
- [ -z "${POSTGREY_PORT}" ] && einfo " - POSTGREY_PORT" |
52 |
- conf_error |
53 |
- fi |
54 |
- POSTGREY_ADDR="${POSTGREY_TYPE}=${POSTGREY_HOST}:${POSTGREY_PORT}" |
55 |
- else |
56 |
- if [ -z "${POSTGREY_SOCKET}" ] |
57 |
- then |
58 |
- einfo "The following entries are missing in ${conf}:" |
59 |
- [ -z "${POSTGREY_SOCKET}" ] && einfo " - POSTGREY_SOCKET" |
60 |
- conf_error |
61 |
- fi |
62 |
- POSTGREY_ADDR="${POSTGREY_TYPE}=${POSTGREY_SOCKET}" |
63 |
- fi |
64 |
-fi |
65 |
- |
66 |
- if [ -z "${POSTGREY_PID}" ] |
67 |
- then |
68 |
- einfo "The following entries are missing in ${conf}:" |
69 |
- [ -z "${POSTGREY_PID}" ] && einfo " - POSTGREY_PID" |
70 |
- conf_error |
71 |
- fi |
72 |
-} |
73 |
- |
74 |
-start() { |
75 |
- checkconfig || return 1 |
76 |
- ebegin "Starting Postgrey" |
77 |
- |
78 |
- # HACK -- start a subshell and corrects perms on the socket... |
79 |
- ( if [ "x${POSTGREY_TYPE}" = "xunix" ]; then |
80 |
- rm -f ${POSTGREY_SOCKET}; |
81 |
- while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done; |
82 |
- chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & |
83 |
- |
84 |
- if [ -z ${POSTGREY_DELAY} ] ; then |
85 |
- POSTGREY_DELAY_ARG="" |
86 |
- else |
87 |
- POSTGREY_DELAY_ARG="--delay=${POSTGREY_DELAY}" |
88 |
- fi |
89 |
- |
90 |
- if [ -z "${POSTGREY_TEXT}" ] ; then |
91 |
- POSTGREY_TEXT_ARG="" |
92 |
- else |
93 |
- POSTGREY_TEXT_ARG="--greylist-text=${POSTGREY_TEXT}" |
94 |
- fi |
95 |
- |
96 |
- start-stop-daemon --start --quiet --background \ |
97 |
- --pidfile=${POSTGREY_PID} \ |
98 |
- --name postgrey \ |
99 |
- --exec /usr/sbin/postgrey -- \ |
100 |
- --${POSTGREY_ADDR} \ |
101 |
- --daemonize \ |
102 |
- --pidfile=${POSTGREY_PID} \ |
103 |
- ${POSTGREY_DELAY_ARG} \ |
104 |
- ${POSTGREY_OPTS} \ |
105 |
- "${POSTGREY_TEXT_ARG}" |
106 |
- eend ${?} |
107 |
-} |
108 |
- |
109 |
-stop() { |
110 |
- ebegin "Stopping Postgrey" |
111 |
- start-stop-daemon --stop --quiet --pidfile ${POSTGREY_PID} |
112 |
- eend ${?} |
113 |
-} |
114 |
- |
115 |
-reload() { |
116 |
- ebegin "Reloading Postgrey" |
117 |
- start-stop-daemon --stop --signal HUP --oknodo --pidfile ${POSTGREY_PID} |
118 |
- eend $? |
119 |
-} |