Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/swatch/files/, profiles/updates/, app-admin/swatch/
Date: Tue, 27 Sep 2016 11:19:24
Message-Id: 1474975148.4ed163ded8670b559d67765f3f9ba621a3079849.nimiux@gentoo
1 commit: 4ed163ded8670b559d67765f3f9ba621a3079849
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 27 11:18:24 2016 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 11:19:08 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ed163de
7
8 app-admin/swatch: renamed to app-admin/swatchdog
9
10 To satisfy a request made by the old Swiss watch company
11
12 app-admin/swatch/Manifest | 1 -
13 app-admin/swatch/files/swatch-confd | 25 ----------------
14 app-admin/swatch/files/swatch-init | 53 ---------------------------------
15 app-admin/swatch/files/swatch-initd | 52 --------------------------------
16 app-admin/swatch/files/swatchrc | 10 -------
17 app-admin/swatch/metadata.xml | 24 ---------------
18 app-admin/swatch/swatch-3.2.3-r2.ebuild | 31 -------------------
19 profiles/updates/3Q-2016 | 1 +
20 8 files changed, 1 insertion(+), 196 deletions(-)
21
22 diff --git a/app-admin/swatch/Manifest b/app-admin/swatch/Manifest
23 deleted file mode 100644
24 index 37fb698..00000000
25 --- a/app-admin/swatch/Manifest
26 +++ /dev/null
27 @@ -1 +0,0 @@
28 -DIST swatch-3.2.3.tar.gz 31199 SHA256 e29480993e52f245f3abec079b3103d8e97244dafe754f8c2d37e7b0b3b58077 SHA512 8020fb99b7acfc322b2a80d8fd9669fc97f272c33b19a36ef1be025ffd1a463658e9b0cc5ddbac02b12a68db9e148da53734beb632677ef88337848bbd60e90f WHIRLPOOL 2fa2ff6dacec9bb527814b041951cfd5c48760cad3a94afcfe362bd13b38f0ea9b970aa7ff4882b30a5dabd79a552ea6e0ac8397e350ef88aa6569cdd7369bf3
29
30 diff --git a/app-admin/swatch/files/swatch-confd b/app-admin/swatch/files/swatch-confd
31 deleted file mode 100644
32 index 813a2a0..00000000
33 --- a/app-admin/swatch/files/swatch-confd
34 +++ /dev/null
35 @@ -1,25 +0,0 @@
36 -# /etc/conf.d/swatch: config file for /etc/init.d/swatch
37 -
38 -# Path to the swatch program.
39 -#SWATCH_BINARY="/usr/bin/swatch"
40 -
41 -# Swatchrc to read patterns and actions from.
42 -#SWATCHRC="/etc/swatchrc"
43 -
44 -# File to monitor
45 -#SWATCH_TAILFILE="/var/log/syslog"
46 -
47 -# Arguments to tail program
48 -#SWATCH_TAILARGS=""
49 -
50 -# Swatch log file
51 -#SWATCH_LOGFILE="/var/log/swatch.log"
52 -
53 -# Swatch error file
54 -#SWATCH_ERRFILE="/var/log/swatch-err.log"
55 -
56 -# Where to output the generated script to. Should not be writable by others.
57 -#SWATCH_SCRIPT="/var/run/swatch/swatch_script.pl"
58 -
59 -# Whether to parse the complete file once at startup. Defaults to "NO".
60 -PARSE_FULL="NO"
61
62 diff --git a/app-admin/swatch/files/swatch-init b/app-admin/swatch/files/swatch-init
63 deleted file mode 100644
64 index f02b066..00000000
65 --- a/app-admin/swatch/files/swatch-init
66 +++ /dev/null
67 @@ -1,53 +0,0 @@
68 -#!/sbin/openrc-run
69 -# This script is based on the one created by Phil (bug #255329).
70 -
71 -depend() {
72 - need logger
73 -}
74 -
75 -SWATCH_BINARY=${SWATCH_BINARY:-/usr/bin/swatch}
76 -SWATCHRC=${SWATCHRC:-/etc/swatchrc}
77 -SWATCH_TAILFILE=${SWATCH_TAILFILE:-/var/log/syslog}
78 -SWATCH_LOGFILE=${SWATCH_LOGFILE:-/var/log/swatch.log}
79 -SWATCH_ERRFILE=${SWATCH_ERRFILE:-/var/log/swatch-err.log}
80 -SWATCH_SCRIPT=${SWATCH_SCRIPT:-/var/run/swatch/swatch_script.pl}
81 -
82 -gen_script() {
83 - local tailargs=""
84 - if [ "${SWATCH_TAILARGS}" ]; then
85 - tailargs="--tail-args=\"${SWATCH_TAILARGS}\""
86 - fi
87 - ebegin "Generating swatch script from config"
88 - ${SWATCH_BINARY} --dump-script="${SWATCH_SCRIPT}" \
89 - --use-cpan-file-tail ${tailargs} \
90 - --config-file "${SWATCHRC}" $1 "${SWATCH_TAILFILE}"
91 - eend $?
92 -}
93 -
94 -parse_full() {
95 - gen_script --examine
96 - ebegin "Parsing complete file once"
97 - /usr/bin/perl ${SWATCH_SCRIPT} 1>/dev/null
98 - eend $?
99 -}
100 -
101 -start() {
102 - checkpath -d -q -m 0750 -o root:root /var/run/swatch
103 - if [ "${PARSE_FULL}" == "YES" ]; then
104 - parse_full
105 - fi
106 - gen_script --tail-file
107 - ebegin "Starting swatch"
108 - start-stop-daemon --start --quiet --background \
109 - --make-pidfile --pidfile /var/run/swatch/swatch.pid \
110 - --stdout ${SWATCH_LOGFILE} --stderr ${SWATCH_ERRFILE} \
111 - --exec /usr/bin/perl -- ${SWATCH_SCRIPT}
112 - eend $?
113 -}
114 -
115 -stop() {
116 - ebegin "Stopping swatch"
117 - start-stop-daemon --stop --exec /usr/bin/perl \
118 - --pidfile /var/run/swatch/swatch.pid --quiet
119 - eend $?
120 -}
121
122 diff --git a/app-admin/swatch/files/swatch-initd b/app-admin/swatch/files/swatch-initd
123 deleted file mode 100644
124 index 76ca0cc..00000000
125 --- a/app-admin/swatch/files/swatch-initd
126 +++ /dev/null
127 @@ -1,52 +0,0 @@
128 -#!/sbin/openrc-run
129 -# This script is based on the one created by Phil (bug #255329).
130 -
131 -depend() {
132 - need logger
133 -}
134 -
135 -SWATCH_BINARY=${SWATCH_BINARY:-/usr/bin/swatch}
136 -SWATCHRC=${SWATCHRC:-/etc/swatchrc}
137 -SWATCH_TAILFILE=${SWATCH_TAILFILE:-/var/log/syslog}
138 -SWATCH_LOGFILE=${SWATCH_LOGFILE:-/var/log/swatch.log}
139 -SWATCH_ERRFILE=${SWATCH_ERRFILE:-/var/log/swatch-err.log}
140 -SWATCH_SCRIPT=${SWATCH_SCRIPT:-/var/run/swatch/swatch_script.pl}
141 -
142 -gen_script() {
143 - local tailargs=""
144 - if [ "${SWATCH_TAILARGS}" ]; then
145 - tailargs="--tail-args=\"${SWATCH_TAILARGS}\""
146 - fi
147 - ebegin "Generating swatch script from config"
148 - ${SWATCH_BINARY} --dump-script="${SWATCH_SCRIPT}" \
149 - --use-cpan-file-tail ${tailargs} \
150 - --config-file "${SWATCHRC}" $1 "${SWATCH_TAILFILE}"
151 - eend $?
152 -}
153 -
154 -parse_full() {
155 - gen_script --examine
156 - ebegin "Parsing complete file once"
157 - /usr/bin/perl ${SWATCH_SCRIPT} 1>/dev/null
158 - eend $?
159 -}
160 -
161 -start() {
162 - if [ "${PARSE_FULL}" == "YES" ]; then
163 - parse_full
164 - fi
165 - gen_script --tail-file
166 - ebegin "Starting swatch"
167 - start-stop-daemon --start --quiet --background \
168 - --make-pidfile --pidfile /var/run/swatch/swatch.pid \
169 - --stdout ${SWATCH_LOGFILE} --stderr ${SWATCH_ERRFILE} \
170 - --exec /usr/bin/perl -- ${SWATCH_SCRIPT}
171 - eend $?
172 -}
173 -
174 -stop() {
175 - ebegin "Stopping swatch"
176 - start-stop-daemon --stop --exec /usr/bin/perl \
177 - --pidfile /var/run/swatch/swatch.pid --quiet
178 - eend $?
179 -}
180
181 diff --git a/app-admin/swatch/files/swatchrc b/app-admin/swatch/files/swatchrc
182 deleted file mode 100644
183 index 92e88de..00000000
184 --- a/app-admin/swatch/files/swatchrc
185 +++ /dev/null
186 @@ -1,10 +0,0 @@
187 -#
188 -# A sample configuration file for swatch.
189 -#
190 -# See "man swatch" for details.
191 -
192 -# Mails root when invalid remote login attempted.
193 -watchfor /(.*) (.*) (.*) (.*) (.*):( [iI]nvalid [uU]ser )(.*)( from )(.*)$/
194 - threshold track_by=$9,type=limit,count=3,seconds=30
195 - mail root,subject="Invalid user"
196 -
197
198 diff --git a/app-admin/swatch/metadata.xml b/app-admin/swatch/metadata.xml
199 deleted file mode 100644
200 index 65cb32f..00000000
201 --- a/app-admin/swatch/metadata.xml
202 +++ /dev/null
203 @@ -1,24 +0,0 @@
204 -<?xml version="1.0" encoding="UTF-8"?>
205 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
206 -<pkgmetadata>
207 - <maintainer type="person">
208 - <email>nimiux@g.o</email>
209 - <name>Chema Alonso</name>
210 - </maintainer>
211 - <longdescription lang="en">
212 - Swatch.pl started out as the "simple watchdog" for actively
213 - monitoring log files produced by UNIX's syslog facility.
214 - It has since been evolving into a utility that can monitor
215 - just about any type of log.
216 - </longdescription>
217 - <longdescription lang="es">
218 - Swatch.pl comenzó como el "simple perro guardián" para
219 - monitorizar activamente ficheros de registro producidos por
220 - la capacidad syslog de los sistemas UNIX. Desde entonces ha
221 - evolucionado hacia una utilidad que puede monitorizar cualquier
222 - tipo de registro.
223 - </longdescription>
224 - <upstream>
225 - <remote-id type="sourceforge">swatch</remote-id>
226 - </upstream>
227 -</pkgmetadata>
228
229 diff --git a/app-admin/swatch/swatch-3.2.3-r2.ebuild b/app-admin/swatch/swatch-3.2.3-r2.ebuild
230 deleted file mode 100644
231 index 6753101..00000000
232 --- a/app-admin/swatch/swatch-3.2.3-r2.ebuild
233 +++ /dev/null
234 @@ -1,31 +0,0 @@
235 -# Copyright 1999-2016 Gentoo Foundation
236 -# Distributed under the terms of the GNU General Public License v2
237 -# $Id$
238 -
239 -EAPI=5
240 -
241 -GENTOO_DEPEND_ON_PERL_SUBSLOT=yes
242 -inherit perl-app
243 -
244 -DESCRIPTION="Perl-based system log watcher"
245 -HOMEPAGE="https://sourceforge.net/projects/swatch/"
246 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
247 -
248 -LICENSE="GPL-2"
249 -SLOT="0"
250 -KEYWORDS="amd64 ppc x86"
251 -IUSE=""
252 -
253 -RDEPEND="dev-perl/Date-Manip
254 - dev-perl/Date-Calc
255 - dev-perl/File-Tail
256 - dev-perl/TimeDate
257 - >=virtual/perl-Time-HiRes-1.12"
258 -
259 -src_install() {
260 - emake install
261 - newinitd "${FILESDIR}/${PN}-init" "${PN}"
262 - newconfd "${FILESDIR}/${PN}-confd" "${PN}"
263 - insinto /etc
264 - doins "${FILESDIR}/swatchrc"
265 -}
266
267 diff --git a/profiles/updates/3Q-2016 b/profiles/updates/3Q-2016
268 index 72b55e8..4f2646e 100644
269 --- a/profiles/updates/3Q-2016
270 +++ b/profiles/updates/3Q-2016
271 @@ -22,3 +22,4 @@ move dev-perl/data-buffer dev-perl/Data-Buffer
272 move dev-perl/dbix-searchbuilder dev-perl/DBIx-SearchBuilder
273 move dev-perl/digest-bubblebabble dev-perl/Digest-BubbleBabble
274 move dev-perl/digest-md2 dev-perl/Digest-MD2
275 +move app-admin/swatch app-admin/swatchdog