1 |
commit: 30aa93f2be313e0c87153ad722a50e8a0d67af1c |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 20 16:46:42 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 20 16:46:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30aa93f2 |
7 |
|
8 |
app-admin/syslog-ng: Old. |
9 |
|
10 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
11 |
|
12 |
app-admin/syslog-ng/Manifest | 4 - |
13 |
.../syslog-ng/files/3.4/syslog-ng.conf.gentoo | 36 ------ |
14 |
.../syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd | 24 ---- |
15 |
.../files/3.4/syslog-ng.conf.gentoo.hardened | 114 ---------------- |
16 |
app-admin/syslog-ng/files/3.4/syslog-ng.confd | 42 ------ |
17 |
app-admin/syslog-ng/files/3.4/syslog-ng.rc6 | 58 --------- |
18 |
.../files/3.6/syslog-ng-3.6.2-redis.patch | 29 ----- |
19 |
.../syslog-ng/files/3.6/syslog-ng.conf.gentoo | 36 ------ |
20 |
.../syslog-ng/files/3.6/syslog-ng.conf.gentoo.fbsd | 24 ---- |
21 |
.../files/3.6/syslog-ng.conf.gentoo.hardened | 114 ---------------- |
22 |
app-admin/syslog-ng/files/3.6/syslog-ng.confd | 42 ------ |
23 |
app-admin/syslog-ng/files/3.6/syslog-ng.rc6 | 58 --------- |
24 |
app-admin/syslog-ng/syslog-ng-3.4.8.ebuild | 119 ----------------- |
25 |
app-admin/syslog-ng/syslog-ng-3.6.2.ebuild | 123 ------------------ |
26 |
app-admin/syslog-ng/syslog-ng-3.6.4.ebuild | 123 ------------------ |
27 |
app-admin/syslog-ng/syslog-ng-3.7.2.ebuild | 143 --------------------- |
28 |
16 files changed, 1089 deletions(-) |
29 |
|
30 |
diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest |
31 |
index ef3c871124c..eb4f5c9341b 100644 |
32 |
--- a/app-admin/syslog-ng/Manifest |
33 |
+++ b/app-admin/syslog-ng/Manifest |
34 |
@@ -1,5 +1 @@ |
35 |
-DIST syslog-ng-3.7.2.tar.gz 3558377 SHA256 b1b3ccc0ce7f0d8bf15b23e59f2f4f5ded70eed410dfd27105219bc8856388a5 SHA512 dbf58b51b68bc6616a136df5eb67a120718d8c83f785218d40f62e5f7b3691a3ad4d21db617551e4192e053dc9340440424e3d3b072b47ca590d4eac0dbf0e6f WHIRLPOOL 3721841f6e5ea883cd5ee71bf1651fa0861904008eb1136127c36990e2fe8801deafdf31ce880677eff7739b0b07411eee4542d8d4a80b60819fa3bd9ab24b9e |
36 |
DIST syslog-ng-3.7.3.tar.gz 3511155 SHA256 49201dcfd59c8992936aa16c694f5e6593d505b44895f6c66b7d7f7895ce2c62 SHA512 e58d793bd1a8b48c5836090ee244f6e8b223f234f5a27fbf81f6a838b9b1e3e45f73a66dab2bc58a0bba230bd778a247ae22bf529a28fb2e9fee52b8181d304b WHIRLPOOL ee434b8919183a70f484e6c96246b020a53a42e4306b2dea3b8ec15de71a1ad5be5185f0f3df5da76f0ca68618ff8391806748c6bea4a6844648e0939a57e97a |
37 |
-DIST syslog-ng_3.4.8.tar.gz 3169372 SHA256 96c2f970fbba4fdd7659b1fee5e476d2858c911d4304d42099f495493762ff49 SHA512 23ba9908664e594c186cbe4bd5dcfb5d2ed3faf02ec45b931bb91b078660547989c2340a08b478a33adb530d39a6d6f39a2e7519107a3f6b923ac9f39529620e WHIRLPOOL 1085fa2c90e0c85421c64ed50e8a357f29006afea2f3e329e42d1e27f4210a10fe0f05d4af95a11c245d68b43644a4a829a50c05b7d541f59a6f580b3643b434 |
38 |
-DIST syslog-ng_3.6.2.tar.gz 3207456 SHA256 ef47fada52981e09af570457a5af30f815f5d5b6c2e33754cedd4ca9780d8261 SHA512 15603b4df2001e1ce7e0019d0dd9a0f4295445e3fd19a527ebf3d49486da7da27fac6c465727ec0354f8f70ca0f671a285ec132f9aa0de62b40f18b44af2a226 WHIRLPOOL 7135db242374d6e5789c0820a06187b7e325054fd214e3aee75aac5b8dde56786b432cc4519c07ce0cd413c3a560e8e74ee6eca319c21eaa750ca8140ef1b63f |
39 |
-DIST syslog-ng_3.6.4.tar.gz 3276432 SHA256 7be11df31ac7d716f1f952e22b5ae8e2049edd633a41b223776a853d9106f4e7 SHA512 9c648628b9bd3ebb25bc44fa6586e88a4b9ed7c24b1c337569d3cccb04bf2f427ba1218900f8dfd8f668f245d6ab44ad45b67da661b7c2af68c6c42101b722e1 WHIRLPOOL 496a9b2e06e33b0c42726f3b13f859f356f136367c48363cd22b086b72f4f54a32cc057235636f2d2ea3ad7bdd622354ea67df1cbc770be608a84bc861fce93d |
40 |
|
41 |
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo |
42 |
deleted file mode 100644 |
43 |
index 075d3435673..00000000000 |
44 |
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo |
45 |
+++ /dev/null |
46 |
@@ -1,36 +0,0 @@ |
47 |
-@version: 3.4 |
48 |
-# |
49 |
-# Syslog-ng default configuration file for Gentoo Linux |
50 |
- |
51 |
-# https://bugs.gentoo.org/show_bug.cgi?id=426814 |
52 |
-@include "scl.conf" |
53 |
- |
54 |
-options { |
55 |
- threaded(yes); |
56 |
- chain_hostnames(no); |
57 |
- |
58 |
- # The default action of syslog-ng is to log a STATS line |
59 |
- # to the file every 10 minutes. That's pretty ugly after a while. |
60 |
- # Change it to every 12 hours so you get a nice daily update of |
61 |
- # how many messages syslog-ng missed (0). |
62 |
- stats_freq(43200); |
63 |
- # The default action of syslog-ng is to log a MARK line |
64 |
- # to the file every 20 minutes. That's seems high for most |
65 |
- # people so turn it down to once an hour. Set it to zero |
66 |
- # if you don't want the functionality at all. |
67 |
- mark_freq(3600); |
68 |
-}; |
69 |
- |
70 |
-source src { system(); internal(); }; |
71 |
- |
72 |
-destination messages { file("/var/log/messages"); }; |
73 |
- |
74 |
-# By default messages are logged to tty12... |
75 |
-destination console_all { file("/dev/tty12"); }; |
76 |
-# ...if you intend to use /dev/console for programs like xconsole |
77 |
-# you can comment out the destination line above that references /dev/tty12 |
78 |
-# and uncomment the line below. |
79 |
-#destination console_all { file("/dev/console"); }; |
80 |
- |
81 |
-log { source(src); destination(messages); }; |
82 |
-log { source(src); destination(console_all); }; |
83 |
|
84 |
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd |
85 |
deleted file mode 100644 |
86 |
index ff4a297390a..00000000000 |
87 |
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd |
88 |
+++ /dev/null |
89 |
@@ -1,24 +0,0 @@ |
90 |
-@version: 3.4 |
91 |
-# |
92 |
-# Syslog-ng default configuration file for Gentoo FreeBSD |
93 |
-# |
94 |
- |
95 |
-# https://bugs.gentoo.org/show_bug.cgi?id=426814 |
96 |
-@include "scl.conf" |
97 |
- |
98 |
-options { |
99 |
- threaded(yes); |
100 |
- chain_hostnames(no); |
101 |
- |
102 |
- # The default action of syslog-ng is to log a STATS line |
103 |
- # to the file every 10 minutes. That's pretty ugly after a while. |
104 |
- # Change it to every 12 hours so you get a nice daily update of |
105 |
- # how many messages syslog-ng missed (0). |
106 |
- stats_freq(43200); |
107 |
-}; |
108 |
- |
109 |
-source src { system(); internal(); }; |
110 |
- |
111 |
-destination messages { file("/var/log/messages"); }; |
112 |
- |
113 |
-log { source(src); destination(messages); }; |
114 |
|
115 |
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened |
116 |
deleted file mode 100644 |
117 |
index 3c68261a9a6..00000000000 |
118 |
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened |
119 |
+++ /dev/null |
120 |
@@ -1,114 +0,0 @@ |
121 |
-@version: 3.4 |
122 |
-# Copyright 1999-2011 Gentoo Foundation |
123 |
-# Distributed under the terms of the GNU General Public License v2 |
124 |
- |
125 |
-# https://bugs.gentoo.org/show_bug.cgi?id=426814 |
126 |
-@include "scl.conf" |
127 |
- |
128 |
-# |
129 |
-# Syslog-ng configuration file, compatible with default hardened installations. |
130 |
-# |
131 |
- |
132 |
-options { |
133 |
- threaded(yes); |
134 |
- chain_hostnames(no); |
135 |
- stats_freq(43200); |
136 |
-}; |
137 |
- |
138 |
-source src { |
139 |
- unix-dgram("/dev/log"); |
140 |
- internal(); |
141 |
-}; |
142 |
-source kernsrc { |
143 |
- file("/proc/kmsg"); |
144 |
-}; |
145 |
- |
146 |
-#source net { udp(); }; |
147 |
-#log { source(net); destination(net_logs); }; |
148 |
-#destination net_logs { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY.log"); }; |
149 |
- |
150 |
-destination authlog { file("/var/log/auth.log"); }; |
151 |
-destination _syslog { file("/var/log/syslog"); }; |
152 |
-destination cron { file("/var/log/cron.log"); }; |
153 |
-destination daemon { file("/var/log/daemon.log"); }; |
154 |
-destination kern { file("/var/log/kern.log"); file("/dev/tty12"); }; |
155 |
-destination lpr { file("/var/log/lpr.log"); }; |
156 |
-destination user { file("/var/log/user.log"); }; |
157 |
-destination uucp { file("/var/log/uucp.log"); }; |
158 |
-#destination ppp { file("/var/log/ppp.log"); }; |
159 |
-destination mail { file("/var/log/mail.log"); }; |
160 |
- |
161 |
-destination avc { file("/var/log/avc.log"); }; |
162 |
-destination audit { file("/var/log/audit.log"); }; |
163 |
-destination pax { file("/var/log/pax.log"); }; |
164 |
-destination grsec { file("/var/log/grsec.log"); }; |
165 |
- |
166 |
-destination mailinfo { file("/var/log/mail.info"); }; |
167 |
-destination mailwarn { file("/var/log/mail.warn"); }; |
168 |
-destination mailerr { file("/var/log/mail.err"); }; |
169 |
- |
170 |
-destination newscrit { file("/var/log/news/news.crit"); }; |
171 |
-destination newserr { file("/var/log/news/news.err"); }; |
172 |
-destination newsnotice { file("/var/log/news/news.notice"); }; |
173 |
- |
174 |
-destination debug { file("/var/log/debug"); }; |
175 |
-destination messages { file("/var/log/messages"); }; |
176 |
-destination console { usertty("root"); }; |
177 |
-destination console_all { file("/dev/tty12"); }; |
178 |
-#destination loghost { udp("loghost" port(999)); }; |
179 |
- |
180 |
-destination xconsole { pipe("/dev/xconsole"); }; |
181 |
- |
182 |
-filter f_auth { facility(auth); }; |
183 |
-filter f_authpriv { facility(auth, authpriv); }; |
184 |
-filter f_syslog { not facility(authpriv, mail); }; |
185 |
-filter f_cron { facility(cron); }; |
186 |
-filter f_daemon { facility(daemon); }; |
187 |
-filter f_kern { facility(kern); }; |
188 |
-filter f_lpr { facility(lpr); }; |
189 |
-filter f_mail { facility(mail); }; |
190 |
-filter f_user { facility(user); }; |
191 |
-filter f_uucp { facility(uucp); }; |
192 |
-#filter f_ppp { facility(ppp); }; |
193 |
-filter f_news { facility(news); }; |
194 |
-filter f_debug { not facility(auth, authpriv, news, mail); }; |
195 |
-filter f_messages { level(info..warn) |
196 |
- and not facility(auth, authpriv, mail, news); }; |
197 |
-filter f_emergency { level(emerg); }; |
198 |
- |
199 |
-filter f_info { level(info); }; |
200 |
- |
201 |
-filter f_notice { level(notice); }; |
202 |
-filter f_warn { level(warn); }; |
203 |
-filter f_crit { level(crit); }; |
204 |
-filter f_err { level(err); }; |
205 |
- |
206 |
-filter f_avc { message(".*avc: .*"); }; |
207 |
-filter f_audit { message("^(\\[.*\..*\] |)audit.*") and not message(".*avc: .*"); }; |
208 |
-filter f_pax { message("^(\\[.*\..*\] |)PAX:.*"); }; |
209 |
-filter f_grsec { message("^(\\[.*\..*\] |)grsec:.*"); }; |
210 |
- |
211 |
-log { source(src); filter(f_authpriv); destination(authlog); }; |
212 |
-log { source(src); filter(f_syslog); destination(_syslog); }; |
213 |
-log { source(src); filter(f_cron); destination(cron); }; |
214 |
-log { source(src); filter(f_daemon); destination(daemon); }; |
215 |
-log { source(kernsrc); filter(f_kern); destination(kern); }; |
216 |
-log { source(src); filter(f_lpr); destination(lpr); }; |
217 |
-log { source(src); filter(f_mail); destination(mail); }; |
218 |
-log { source(src); filter(f_user); destination(user); }; |
219 |
-log { source(src); filter(f_uucp); destination(uucp); }; |
220 |
-log { source(kernsrc); filter(f_pax); destination(pax); }; |
221 |
-log { source(kernsrc); filter(f_grsec); destination(grsec); }; |
222 |
-log { source(kernsrc); filter(f_audit); destination(audit); }; |
223 |
-log { source(kernsrc); filter(f_avc); destination(avc); }; |
224 |
-log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; |
225 |
-log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; |
226 |
-log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; |
227 |
-log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; |
228 |
-log { source(src); filter(f_news); filter(f_err); destination(newserr); }; |
229 |
-log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; |
230 |
-log { source(src); filter(f_debug); destination(debug); }; |
231 |
-log { source(src); filter(f_messages); destination(messages); }; |
232 |
-log { source(src); filter(f_emergency); destination(console); }; |
233 |
-#log { source(src); filter(f_ppp); destination(ppp); }; |
234 |
-log { source(src); destination(console_all); }; |
235 |
|
236 |
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.confd b/app-admin/syslog-ng/files/3.4/syslog-ng.confd |
237 |
deleted file mode 100644 |
238 |
index 6a437d1bf36..00000000000 |
239 |
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.confd |
240 |
+++ /dev/null |
241 |
@@ -1,42 +0,0 @@ |
242 |
-# Config file for /etc/init.d/syslog-ng |
243 |
- |
244 |
-# If you are not using network logging, this entire section should be |
245 |
-# commented out. Otherwise, choose one of the settings below based on |
246 |
-# how you are configuring your network. |
247 |
-# |
248 |
-# If you are using the net.* scripts to configure your network, you should |
249 |
-# set rc_need to match the interface through which your logging server |
250 |
-# can be reached. |
251 |
-#rc_need="net.eth0" |
252 |
-# |
253 |
-# If you are using an interface manager like wicd, dhcpcd in standalone |
254 |
-# mode, networkmanager, etc to control your interfaces, set rc_need to |
255 |
-# the name of that service. |
256 |
-# rc_need="dhcpcd" |
257 |
-#rc_need="networkmanager" |
258 |
-# |
259 |
-# If you are using newnet and configuring your interface statically with |
260 |
-# the network script, you should use this setting. |
261 |
-#rc_need="network" |
262 |
-# |
263 |
-# You can use this setting, but I do not recommend relying on it. |
264 |
-#rc_need="net" |
265 |
-# |
266 |
-# You may also want to uncomment the following if you are using network |
267 |
-# logging. |
268 |
-#rc_use="stunnel" |
269 |
- |
270 |
-# For very customized setups these variables can be adjusted as needed |
271 |
-# but for most situations they should remain commented: |
272 |
-# SYSLOG_NG_CONFIGFILE=/etc/syslog-ng/syslog-ng.conf |
273 |
-# SYSLOG_NG_STATEFILE_DIR=/var/lib/syslog-ng |
274 |
-# SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist |
275 |
-# SYSLOG_NG_PIDFILE_DIR=/var/run |
276 |
-# SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE_DIR}/syslog-ng.pid |
277 |
-# SYSLOG_NG_GROUP=root |
278 |
-# SYSLOG_NG_USER=root |
279 |
- |
280 |
-# Put any additional options for syslog-ng here. |
281 |
-# See syslog-ng(8) for more information. |
282 |
- |
283 |
-SYSLOG_NG_OPTS="" |
284 |
|
285 |
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.rc6 b/app-admin/syslog-ng/files/3.4/syslog-ng.rc6 |
286 |
deleted file mode 100644 |
287 |
index 8db2101e132..00000000000 |
288 |
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.rc6 |
289 |
+++ /dev/null |
290 |
@@ -1,58 +0,0 @@ |
291 |
-#!/sbin/openrc-run |
292 |
-# Copyright 1999-2013 Gentoo Foundation |
293 |
-# Distributed under the terms of the GNU General Public License v2 |
294 |
- |
295 |
-SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf} |
296 |
-SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/syslog-ng} |
297 |
-SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist} |
298 |
-SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/var/run} |
299 |
-SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid} |
300 |
- |
301 |
-SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-root} |
302 |
-SYSLOG_NG_USER=${SYSLOG_NG_USER:-root} |
303 |
- |
304 |
-command="/usr/sbin/syslog-ng" |
305 |
-command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}" |
306 |
-extra_commands="checkconfig" |
307 |
-extra_started_commands="reload" |
308 |
-pidfile="${SYSLOG_NG_PIDFILE}" |
309 |
-start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\"" |
310 |
-description="Syslog-ng is a syslog replacement with advanced filtering features." |
311 |
-description_checkconfig="Check the configuration file that will be used by \"start\"" |
312 |
-description_reload="Reload the configuration without exiting" |
313 |
-required_files="${SYSLOG_NG_CONFIGFILE}" |
314 |
-required_dirs="${SYSLOG_NG_PIDFILE_DIR}" |
315 |
- |
316 |
-depend() { |
317 |
- use clock |
318 |
- need hostname localmount |
319 |
- after bootmisc |
320 |
- provide logger |
321 |
-} |
322 |
- |
323 |
-checkconfig() { |
324 |
- ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})" |
325 |
- syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}" |
326 |
- eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})" |
327 |
-} |
328 |
- |
329 |
-start_pre() { |
330 |
- checkconfig || return 1 |
331 |
- checkpath \ |
332 |
- -d \ |
333 |
- --mode 0700 \ |
334 |
- --owner "${SYSLOG_NG_OWNER}:${SYSLOG_NG_GROUP}" \ |
335 |
- "${SYSLOG_NG_STATEFILE_DIR}" |
336 |
-} |
337 |
- |
338 |
-stop_pre() { |
339 |
- [ "$RC_CMD" = restart ] && sleep 1 |
340 |
- return 0 |
341 |
-} |
342 |
- |
343 |
-reload() { |
344 |
- checkconfig || return 1 |
345 |
- ebegin "Reloading configuration and re-opening log files" |
346 |
- start-stop-daemon --signal HUP --pidfile "${pidfile}" |
347 |
- eend $? |
348 |
-} |
349 |
|
350 |
diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng-3.6.2-redis.patch b/app-admin/syslog-ng/files/3.6/syslog-ng-3.6.2-redis.patch |
351 |
deleted file mode 100644 |
352 |
index aa00c3b9d0e..00000000000 |
353 |
--- a/app-admin/syslog-ng/files/3.6/syslog-ng-3.6.2-redis.patch |
354 |
+++ /dev/null |
355 |
@@ -1,29 +0,0 @@ |
356 |
-From 0e51c69056a93bd2b95341f005b8b1fdceec2b10 Mon Sep 17 00:00:00 2001 |
357 |
-From: Tibor Benke <ihrwein@×××××.com> |
358 |
-Date: Wed, 17 Dec 2014 23:52:41 +0100 |
359 |
-Subject: [PATCH] redis: free reply object after a succesful ping |
360 |
- |
361 |
---- |
362 |
- modules/redis/redis.c | 7 ++++++- |
363 |
- 1 file changed, 6 insertions(+), 1 deletion(-) |
364 |
- |
365 |
-diff --git a/modules/redis/redis.c b/modules/redis/redis.c |
366 |
-index 46a5b6b..9114324 100644 |
367 |
---- a/modules/redis/redis.c |
368 |
-+++ b/modules/redis/redis.c |
369 |
-@@ -132,9 +132,14 @@ redis_dd_format_persist_name(LogThrDestDriver *d) |
370 |
- static gboolean |
371 |
- redis_dd_connect(RedisDriver *self, gboolean reconnect) |
372 |
- { |
373 |
-+ redisReply *reply; |
374 |
-+ |
375 |
- if (reconnect && (self->c != NULL)) |
376 |
- { |
377 |
-- redisCommand(self->c, "ping"); |
378 |
-+ reply = redisCommand(self->c, "ping"); |
379 |
-+ |
380 |
-+ if (reply) |
381 |
-+ freeReplyObject(reply); |
382 |
- |
383 |
- if (!self->c->err) |
384 |
- return TRUE; |
385 |
|
386 |
diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo |
387 |
deleted file mode 100644 |
388 |
index 2da277949df..00000000000 |
389 |
--- a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo |
390 |
+++ /dev/null |
391 |
@@ -1,36 +0,0 @@ |
392 |
-@version: 3.6 |
393 |
-# |
394 |
-# Syslog-ng default configuration file for Gentoo Linux |
395 |
- |
396 |
-# https://bugs.gentoo.org/show_bug.cgi?id=426814 |
397 |
-@include "scl.conf" |
398 |
- |
399 |
-options { |
400 |
- threaded(yes); |
401 |
- chain_hostnames(no); |
402 |
- |
403 |
- # The default action of syslog-ng is to log a STATS line |
404 |
- # to the file every 10 minutes. That's pretty ugly after a while. |
405 |
- # Change it to every 12 hours so you get a nice daily update of |
406 |
- # how many messages syslog-ng missed (0). |
407 |
- stats_freq(43200); |
408 |
- # The default action of syslog-ng is to log a MARK line |
409 |
- # to the file every 20 minutes. That's seems high for most |
410 |
- # people so turn it down to once an hour. Set it to zero |
411 |
- # if you don't want the functionality at all. |
412 |
- mark_freq(3600); |
413 |
-}; |
414 |
- |
415 |
-source src { system(); internal(); }; |
416 |
- |
417 |
-destination messages { file("/var/log/messages"); }; |
418 |
- |
419 |
-# By default messages are logged to tty12... |
420 |
-destination console_all { file("/dev/tty12"); }; |
421 |
-# ...if you intend to use /dev/console for programs like xconsole |
422 |
-# you can comment out the destination line above that references /dev/tty12 |
423 |
-# and uncomment the line below. |
424 |
-#destination console_all { file("/dev/console"); }; |
425 |
- |
426 |
-log { source(src); destination(messages); }; |
427 |
-log { source(src); destination(console_all); }; |
428 |
|
429 |
diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.fbsd b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.fbsd |
430 |
deleted file mode 100644 |
431 |
index 4e83482b980..00000000000 |
432 |
--- a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.fbsd |
433 |
+++ /dev/null |
434 |
@@ -1,24 +0,0 @@ |
435 |
-@version: 3.6 |
436 |
-# |
437 |
-# Syslog-ng default configuration file for Gentoo FreeBSD |
438 |
-# |
439 |
- |
440 |
-# https://bugs.gentoo.org/show_bug.cgi?id=426814 |
441 |
-@include "scl.conf" |
442 |
- |
443 |
-options { |
444 |
- threaded(yes); |
445 |
- chain_hostnames(no); |
446 |
- |
447 |
- # The default action of syslog-ng is to log a STATS line |
448 |
- # to the file every 10 minutes. That's pretty ugly after a while. |
449 |
- # Change it to every 12 hours so you get a nice daily update of |
450 |
- # how many messages syslog-ng missed (0). |
451 |
- stats_freq(43200); |
452 |
-}; |
453 |
- |
454 |
-source src { system(); internal(); }; |
455 |
- |
456 |
-destination messages { file("/var/log/messages"); }; |
457 |
- |
458 |
-log { source(src); destination(messages); }; |
459 |
|
460 |
diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.hardened b/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.hardened |
461 |
deleted file mode 100644 |
462 |
index 11719174ca8..00000000000 |
463 |
--- a/app-admin/syslog-ng/files/3.6/syslog-ng.conf.gentoo.hardened |
464 |
+++ /dev/null |
465 |
@@ -1,114 +0,0 @@ |
466 |
-@version: 3.6 |
467 |
-# Copyright 1999-2011 Gentoo Foundation |
468 |
-# Distributed under the terms of the GNU General Public License v2 |
469 |
- |
470 |
-# https://bugs.gentoo.org/show_bug.cgi?id=426814 |
471 |
-@include "scl.conf" |
472 |
- |
473 |
-# |
474 |
-# Syslog-ng configuration file, compatible with default hardened installations. |
475 |
-# |
476 |
- |
477 |
-options { |
478 |
- threaded(yes); |
479 |
- chain_hostnames(no); |
480 |
- stats_freq(43200); |
481 |
-}; |
482 |
- |
483 |
-source src { |
484 |
- unix-dgram("/dev/log"); |
485 |
- internal(); |
486 |
-}; |
487 |
-source kernsrc { |
488 |
- file("/proc/kmsg"); |
489 |
-}; |
490 |
- |
491 |
-#source net { udp(); }; |
492 |
-#log { source(net); destination(net_logs); }; |
493 |
-#destination net_logs { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY.log"); }; |
494 |
- |
495 |
-destination authlog { file("/var/log/auth.log"); }; |
496 |
-destination _syslog { file("/var/log/syslog"); }; |
497 |
-destination cron { file("/var/log/cron.log"); }; |
498 |
-destination daemon { file("/var/log/daemon.log"); }; |
499 |
-destination kern { file("/var/log/kern.log"); file("/dev/tty12"); }; |
500 |
-destination lpr { file("/var/log/lpr.log"); }; |
501 |
-destination user { file("/var/log/user.log"); }; |
502 |
-destination uucp { file("/var/log/uucp.log"); }; |
503 |
-#destination ppp { file("/var/log/ppp.log"); }; |
504 |
-destination mail { file("/var/log/mail.log"); }; |
505 |
- |
506 |
-destination avc { file("/var/log/avc.log"); }; |
507 |
-destination audit { file("/var/log/audit.log"); }; |
508 |
-destination pax { file("/var/log/pax.log"); }; |
509 |
-destination grsec { file("/var/log/grsec.log"); }; |
510 |
- |
511 |
-destination mailinfo { file("/var/log/mail.info"); }; |
512 |
-destination mailwarn { file("/var/log/mail.warn"); }; |
513 |
-destination mailerr { file("/var/log/mail.err"); }; |
514 |
- |
515 |
-destination newscrit { file("/var/log/news/news.crit"); }; |
516 |
-destination newserr { file("/var/log/news/news.err"); }; |
517 |
-destination newsnotice { file("/var/log/news/news.notice"); }; |
518 |
- |
519 |
-destination debug { file("/var/log/debug"); }; |
520 |
-destination messages { file("/var/log/messages"); }; |
521 |
-destination console { usertty("root"); }; |
522 |
-destination console_all { file("/dev/tty12"); }; |
523 |
-#destination loghost { udp("loghost" port(999)); }; |
524 |
- |
525 |
-destination xconsole { pipe("/dev/xconsole"); }; |
526 |
- |
527 |
-filter f_auth { facility(auth); }; |
528 |
-filter f_authpriv { facility(auth, authpriv); }; |
529 |
-filter f_syslog { not facility(authpriv, mail); }; |
530 |
-filter f_cron { facility(cron); }; |
531 |
-filter f_daemon { facility(daemon); }; |
532 |
-filter f_kern { facility(kern); }; |
533 |
-filter f_lpr { facility(lpr); }; |
534 |
-filter f_mail { facility(mail); }; |
535 |
-filter f_user { facility(user); }; |
536 |
-filter f_uucp { facility(uucp); }; |
537 |
-#filter f_ppp { facility(ppp); }; |
538 |
-filter f_news { facility(news); }; |
539 |
-filter f_debug { not facility(auth, authpriv, news, mail); }; |
540 |
-filter f_messages { level(info..warn) |
541 |
- and not facility(auth, authpriv, mail, news); }; |
542 |
-filter f_emergency { level(emerg); }; |
543 |
- |
544 |
-filter f_info { level(info); }; |
545 |
- |
546 |
-filter f_notice { level(notice); }; |
547 |
-filter f_warn { level(warn); }; |
548 |
-filter f_crit { level(crit); }; |
549 |
-filter f_err { level(err); }; |
550 |
- |
551 |
-filter f_avc { message(".*avc: .*"); }; |
552 |
-filter f_audit { message("^(\\[.*\..*\] |)audit.*") and not message(".*avc: .*"); }; |
553 |
-filter f_pax { message("^(\\[.*\..*\] |)PAX:.*"); }; |
554 |
-filter f_grsec { message("^(\\[.*\..*\] |)grsec:.*"); }; |
555 |
- |
556 |
-log { source(src); filter(f_authpriv); destination(authlog); }; |
557 |
-log { source(src); filter(f_syslog); destination(_syslog); }; |
558 |
-log { source(src); filter(f_cron); destination(cron); }; |
559 |
-log { source(src); filter(f_daemon); destination(daemon); }; |
560 |
-log { source(kernsrc); filter(f_kern); destination(kern); }; |
561 |
-log { source(src); filter(f_lpr); destination(lpr); }; |
562 |
-log { source(src); filter(f_mail); destination(mail); }; |
563 |
-log { source(src); filter(f_user); destination(user); }; |
564 |
-log { source(src); filter(f_uucp); destination(uucp); }; |
565 |
-log { source(kernsrc); filter(f_pax); destination(pax); }; |
566 |
-log { source(kernsrc); filter(f_grsec); destination(grsec); }; |
567 |
-log { source(kernsrc); filter(f_audit); destination(audit); }; |
568 |
-log { source(kernsrc); filter(f_avc); destination(avc); }; |
569 |
-log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; |
570 |
-log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; |
571 |
-log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; |
572 |
-log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; |
573 |
-log { source(src); filter(f_news); filter(f_err); destination(newserr); }; |
574 |
-log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; |
575 |
-log { source(src); filter(f_debug); destination(debug); }; |
576 |
-log { source(src); filter(f_messages); destination(messages); }; |
577 |
-log { source(src); filter(f_emergency); destination(console); }; |
578 |
-#log { source(src); filter(f_ppp); destination(ppp); }; |
579 |
-log { source(src); destination(console_all); }; |
580 |
|
581 |
diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.confd b/app-admin/syslog-ng/files/3.6/syslog-ng.confd |
582 |
deleted file mode 100644 |
583 |
index 42fa26ab4cf..00000000000 |
584 |
--- a/app-admin/syslog-ng/files/3.6/syslog-ng.confd |
585 |
+++ /dev/null |
586 |
@@ -1,42 +0,0 @@ |
587 |
-# Config file for /etc/init.d/syslog-ng |
588 |
- |
589 |
-# If you are not using network logging, this entire section should be |
590 |
-# commented out. Otherwise, choose one of the settings below based on |
591 |
-# how you are configuring your network. |
592 |
-# |
593 |
-# If you are using the net.* scripts to configure your network, you should |
594 |
-# set rc_need to match the interface through which your logging server |
595 |
-# can be reached. |
596 |
-#rc_need="net.eth0" |
597 |
-# |
598 |
-# If you are using an interface manager like wicd, dhcpcd in standalone |
599 |
-# mode, networkmanager, etc to control your interfaces, set rc_need to |
600 |
-# the name of that service. |
601 |
-# rc_need="dhcpcd" |
602 |
-#rc_need="networkmanager" |
603 |
-# |
604 |
-# If you are using newnet and configuring your interface statically with |
605 |
-# the network script, you should use this setting. |
606 |
-#rc_need="network" |
607 |
-# |
608 |
-# You can use this setting, but I do not recommend relying on it. |
609 |
-#rc_need="net" |
610 |
-# |
611 |
-# You may also want to uncomment the following if you are using network |
612 |
-# logging. |
613 |
-#rc_use="stunnel" |
614 |
- |
615 |
-# For very customized setups these variables can be adjusted as needed |
616 |
-# but for most situations they should remain commented: |
617 |
-# SYSLOG_NG_CONFIGFILE=/etc/syslog-ng/syslog-ng.conf |
618 |
-# SYSLOG_NG_STATEFILE_DIR=/var/lib/syslog-ng |
619 |
-# SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist |
620 |
-# SYSLOG_NG_PIDFILE_DIR=/run |
621 |
-# SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE_DIR}/syslog-ng.pid |
622 |
-# SYSLOG_NG_GROUP=root |
623 |
-# SYSLOG_NG_USER=root |
624 |
- |
625 |
-# Put any additional options for syslog-ng here. |
626 |
-# See syslog-ng(8) for more information. |
627 |
- |
628 |
-SYSLOG_NG_OPTS="" |
629 |
|
630 |
diff --git a/app-admin/syslog-ng/files/3.6/syslog-ng.rc6 b/app-admin/syslog-ng/files/3.6/syslog-ng.rc6 |
631 |
deleted file mode 100644 |
632 |
index a27ae55dcbd..00000000000 |
633 |
--- a/app-admin/syslog-ng/files/3.6/syslog-ng.rc6 |
634 |
+++ /dev/null |
635 |
@@ -1,58 +0,0 @@ |
636 |
-#!/sbin/openrc-run |
637 |
-# Copyright 1999-2015 Gentoo Foundation |
638 |
-# Distributed under the terms of the GNU General Public License v2 |
639 |
- |
640 |
-SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf} |
641 |
-SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/syslog-ng} |
642 |
-SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist} |
643 |
-SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/run} |
644 |
-SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid} |
645 |
- |
646 |
-SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-root} |
647 |
-SYSLOG_NG_USER=${SYSLOG_NG_USER:-root} |
648 |
- |
649 |
-command="/usr/sbin/syslog-ng" |
650 |
-command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}" |
651 |
-extra_commands="checkconfig" |
652 |
-extra_started_commands="reload" |
653 |
-pidfile="${SYSLOG_NG_PIDFILE}" |
654 |
-start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\"" |
655 |
-description="Syslog-ng is a syslog replacement with advanced filtering features." |
656 |
-description_checkconfig="Check the configuration file that will be used by \"start\"" |
657 |
-description_reload="Reload the configuration without exiting" |
658 |
-required_files="${SYSLOG_NG_CONFIGFILE}" |
659 |
-required_dirs="${SYSLOG_NG_PIDFILE_DIR}" |
660 |
- |
661 |
-depend() { |
662 |
- use clock |
663 |
- need hostname localmount |
664 |
- after bootmisc |
665 |
- provide logger |
666 |
-} |
667 |
- |
668 |
-checkconfig() { |
669 |
- ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})" |
670 |
- syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}" |
671 |
- eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})" |
672 |
-} |
673 |
- |
674 |
-start_pre() { |
675 |
- checkconfig || return 1 |
676 |
- checkpath \ |
677 |
- -d \ |
678 |
- --mode 0700 \ |
679 |
- --owner "${SYSLOG_NG_USER}:${SYSLOG_NG_GROUP}" \ |
680 |
- "${SYSLOG_NG_STATEFILE_DIR}" |
681 |
-} |
682 |
- |
683 |
-stop_pre() { |
684 |
- [ "$RC_CMD" = restart ] && sleep 1 |
685 |
- return 0 |
686 |
-} |
687 |
- |
688 |
-reload() { |
689 |
- checkconfig || return 1 |
690 |
- ebegin "Reloading configuration and re-opening log files" |
691 |
- start-stop-daemon --signal HUP --pidfile "${pidfile}" |
692 |
- eend $? |
693 |
-} |
694 |
|
695 |
diff --git a/app-admin/syslog-ng/syslog-ng-3.4.8.ebuild b/app-admin/syslog-ng/syslog-ng-3.4.8.ebuild |
696 |
deleted file mode 100644 |
697 |
index cfe719f2446..00000000000 |
698 |
--- a/app-admin/syslog-ng/syslog-ng-3.4.8.ebuild |
699 |
+++ /dev/null |
700 |
@@ -1,119 +0,0 @@ |
701 |
-# Copyright 1999-2014 Gentoo Foundation |
702 |
-# Distributed under the terms of the GNU General Public License v2 |
703 |
- |
704 |
-EAPI=5 |
705 |
-inherit eutils multilib systemd |
706 |
- |
707 |
-MY_PV=${PV/_/} |
708 |
-DESCRIPTION="syslog replacement with advanced filtering features" |
709 |
-HOMEPAGE="http://www.balabit.com/network-security/syslog-ng" |
710 |
-SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz" |
711 |
- |
712 |
-LICENSE="GPL-2+ LGPL-2.1+" |
713 |
-SLOT="0" |
714 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd" |
715 |
-IUSE="amqp caps dbi geoip ipv6 json mongodb pacct +pcre smtp spoof-source ssl systemd tcpd" |
716 |
-RESTRICT="test" |
717 |
- |
718 |
-RDEPEND=" |
719 |
- pcre? ( dev-libs/libpcre ) |
720 |
- spoof-source? ( net-libs/libnet:1.1 ) |
721 |
- ssl? ( dev-libs/openssl:= ) |
722 |
- smtp? ( net-libs/libesmtp ) |
723 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
724 |
- >=dev-libs/eventlog-0.2.12 |
725 |
- >=dev-libs/glib-2.10.1:2 |
726 |
- json? ( >=dev-libs/json-c-0.9 ) |
727 |
- caps? ( sys-libs/libcap ) |
728 |
- geoip? ( >=dev-libs/geoip-1.5.0 ) |
729 |
- dbi? ( >=dev-db/libdbi-0.8.3 ) |
730 |
- systemd? ( sys-apps/systemd )" |
731 |
-DEPEND="${RDEPEND} |
732 |
- virtual/pkgconfig |
733 |
- sys-devel/flex" |
734 |
- |
735 |
-S=${WORKDIR}/${PN}-${MY_PV} |
736 |
- |
737 |
-src_prepare() { |
738 |
- cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die |
739 |
- cd "${TMPDIR}" || die |
740 |
- |
741 |
- for f in *logrotate*.in ; do |
742 |
- if use systemd ; then |
743 |
- sed \ |
744 |
- 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \ |
745 |
- $f > ${f/.in/} || die |
746 |
- else |
747 |
- sed \ |
748 |
- 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \ |
749 |
- $f > ${f/.in/} || die |
750 |
- fi |
751 |
- done |
752 |
-} |
753 |
- |
754 |
-src_configure() { |
755 |
- econf \ |
756 |
- --disable-docs \ |
757 |
- --with-ivykis=internal \ |
758 |
- --with-libmongo-client=internal \ |
759 |
- --sysconfdir=/etc/syslog-ng \ |
760 |
- --localstatedir=/var/lib/syslog-ng \ |
761 |
- --with-pidfile-dir=/var/run \ |
762 |
- --with-module-dir=/usr/$(get_libdir)/syslog-ng \ |
763 |
- $(systemd_with_unitdir) \ |
764 |
- $(use_enable systemd) \ |
765 |
- $(use_enable caps linux-caps) \ |
766 |
- $(use_enable geoip) \ |
767 |
- $(use_enable ipv6) \ |
768 |
- $(use_enable json) \ |
769 |
- $(use_enable mongodb) \ |
770 |
- $(use_enable pacct) \ |
771 |
- $(use_enable pcre) \ |
772 |
- $(use_enable smtp) \ |
773 |
- $(use_enable amqp) \ |
774 |
- $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \ |
775 |
- $(use_enable spoof-source) \ |
776 |
- $(use_enable dbi sql) \ |
777 |
- $(use_enable ssl) \ |
778 |
- $(use_enable tcpd tcp-wrapper) |
779 |
-} |
780 |
- |
781 |
-src_install() { |
782 |
- # -j1 for bug #484470 |
783 |
- emake -j1 DESTDIR="${D}" install |
784 |
- |
785 |
- dodoc AUTHORS NEWS contrib/syslog-ng.conf* contrib/syslog2ng \ |
786 |
- "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo.hardened" \ |
787 |
- "${TMPDIR}/syslog-ng.logrotate.hardened" \ |
788 |
- "${FILESDIR}/README.hardened" |
789 |
- |
790 |
- # Install default configuration |
791 |
- insinto /etc/syslog-ng |
792 |
- if use userland_BSD ; then |
793 |
- newins "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf |
794 |
- else |
795 |
- newins "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo" syslog-ng.conf |
796 |
- fi |
797 |
- |
798 |
- insinto /etc/logrotate.d |
799 |
- newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng |
800 |
- |
801 |
- newinitd "${FILESDIR}/${PV%.*}/syslog-ng.rc6" syslog-ng |
802 |
- newconfd "${FILESDIR}/${PV%.*}/syslog-ng.confd" syslog-ng |
803 |
- keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng |
804 |
- prune_libtool_files --modules |
805 |
-} |
806 |
- |
807 |
-pkg_postinst() { |
808 |
- elog "For detailed documentation please see the upstream website:" |
809 |
- elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.4-guides/en/syslog-ng-ose-v3.4-guide-admin/html/index.html" |
810 |
- |
811 |
- # bug #355257 |
812 |
- if ! has_version app-admin/logrotate ; then |
813 |
- echo |
814 |
- elog "It is highly recommended that app-admin/logrotate be emerged to" |
815 |
- elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" |
816 |
- elog "for logrotate to use." |
817 |
- echo |
818 |
- fi |
819 |
-} |
820 |
|
821 |
diff --git a/app-admin/syslog-ng/syslog-ng-3.6.2.ebuild b/app-admin/syslog-ng/syslog-ng-3.6.2.ebuild |
822 |
deleted file mode 100644 |
823 |
index febb3545a58..00000000000 |
824 |
--- a/app-admin/syslog-ng/syslog-ng-3.6.2.ebuild |
825 |
+++ /dev/null |
826 |
@@ -1,123 +0,0 @@ |
827 |
-# Copyright 1999-2015 Gentoo Foundation |
828 |
-# Distributed under the terms of the GNU General Public License v2 |
829 |
- |
830 |
-EAPI=5 |
831 |
-inherit eutils multilib systemd versionator |
832 |
- |
833 |
-MY_PV=${PV/_/} |
834 |
-MY_PV_MM=$(get_version_component_range 1-2) |
835 |
-DESCRIPTION="syslog replacement with advanced filtering features" |
836 |
-HOMEPAGE="http://www.balabit.com/network-security/syslog-ng" |
837 |
-SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz" |
838 |
- |
839 |
-LICENSE="GPL-2+ LGPL-2.1+" |
840 |
-SLOT="0" |
841 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" |
842 |
-IUSE="amqp caps dbi geoip ipv6 json mongodb pacct redis smtp spoof-source ssl systemd tcpd" |
843 |
-RESTRICT="test" |
844 |
- |
845 |
-RDEPEND=" |
846 |
- caps? ( sys-libs/libcap ) |
847 |
- dbi? ( >=dev-db/libdbi-0.8.3 ) |
848 |
- geoip? ( >=dev-libs/geoip-1.5.0 ) |
849 |
- json? ( >=dev-libs/json-c-0.9 ) |
850 |
- redis? ( dev-libs/hiredis ) |
851 |
- smtp? ( net-libs/libesmtp ) |
852 |
- spoof-source? ( net-libs/libnet:1.1 ) |
853 |
- ssl? ( dev-libs/openssl:= ) |
854 |
- systemd? ( sys-apps/systemd ) |
855 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
856 |
- dev-libs/libpcre |
857 |
- >=dev-libs/eventlog-0.2.12 |
858 |
- >=dev-libs/glib-2.10.1:2" |
859 |
-DEPEND="${RDEPEND} |
860 |
- virtual/pkgconfig |
861 |
- sys-devel/flex" |
862 |
- |
863 |
-S=${WORKDIR}/${PN}-${MY_PV} |
864 |
- |
865 |
-src_prepare() { |
866 |
- epatch "${FILESDIR}"/${MY_PV_MM}/${P}-redis.patch |
867 |
- epatch_user |
868 |
- cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die |
869 |
- cd "${TMPDIR}" || die |
870 |
- |
871 |
- for f in *logrotate*.in ; do |
872 |
- if use systemd ; then |
873 |
- sed \ |
874 |
- 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \ |
875 |
- $f > ${f/.in/} || die |
876 |
- else |
877 |
- sed \ |
878 |
- 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \ |
879 |
- $f > ${f/.in/} || die |
880 |
- fi |
881 |
- done |
882 |
-} |
883 |
- |
884 |
-src_configure() { |
885 |
- econf \ |
886 |
- --disable-docs \ |
887 |
- --with-embedded-crypto \ |
888 |
- --with-ivykis=internal \ |
889 |
- --with-libmongo-client=internal \ |
890 |
- --sysconfdir=/etc/syslog-ng \ |
891 |
- --localstatedir=/var/lib/syslog-ng \ |
892 |
- --with-pidfile-dir=/var/run \ |
893 |
- --with-module-dir=/usr/$(get_libdir)/syslog-ng \ |
894 |
- $(systemd_with_unitdir) \ |
895 |
- $(use_enable systemd) \ |
896 |
- $(use_enable caps linux-caps) \ |
897 |
- $(use_enable geoip) \ |
898 |
- $(use_enable ipv6) \ |
899 |
- $(use_enable json) \ |
900 |
- $(use_enable mongodb) \ |
901 |
- $(use_enable pacct) \ |
902 |
- $(use_enable redis) \ |
903 |
- $(use_enable smtp) \ |
904 |
- $(use_enable amqp) \ |
905 |
- $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \ |
906 |
- $(use_enable spoof-source) \ |
907 |
- $(use_enable dbi sql) \ |
908 |
- $(use_enable ssl) \ |
909 |
- $(use_enable tcpd tcp-wrapper) |
910 |
-} |
911 |
- |
912 |
-src_install() { |
913 |
- # -j1 for bug #484470 |
914 |
- emake -j1 DESTDIR="${D}" install |
915 |
- |
916 |
- dodoc AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf* \ |
917 |
- contrib/syslog2ng "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.hardened" \ |
918 |
- "${TMPDIR}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" |
919 |
- |
920 |
- # Install default configuration |
921 |
- insinto /etc/syslog-ng |
922 |
- if use userland_BSD ; then |
923 |
- newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf |
924 |
- else |
925 |
- newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo" syslog-ng.conf |
926 |
- fi |
927 |
- |
928 |
- insinto /etc/logrotate.d |
929 |
- newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng |
930 |
- |
931 |
- newinitd "${FILESDIR}/${MY_PV_MM}/syslog-ng.rc6" syslog-ng |
932 |
- newconfd "${FILESDIR}/${MY_PV_MM}/syslog-ng.confd" syslog-ng |
933 |
- keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng |
934 |
- prune_libtool_files --modules |
935 |
-} |
936 |
- |
937 |
-pkg_postinst() { |
938 |
- elog "For detailed documentation please see the upstream website:" |
939 |
- elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.6-guides/en/syslog-ng-ose-v3.6-guide-admin/html/index.html" |
940 |
- |
941 |
- # bug #355257 |
942 |
- if ! has_version app-admin/logrotate ; then |
943 |
- echo |
944 |
- elog "It is highly recommended that app-admin/logrotate be emerged to" |
945 |
- elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" |
946 |
- elog "for logrotate to use." |
947 |
- echo |
948 |
- fi |
949 |
-} |
950 |
|
951 |
diff --git a/app-admin/syslog-ng/syslog-ng-3.6.4.ebuild b/app-admin/syslog-ng/syslog-ng-3.6.4.ebuild |
952 |
deleted file mode 100644 |
953 |
index 641db918336..00000000000 |
954 |
--- a/app-admin/syslog-ng/syslog-ng-3.6.4.ebuild |
955 |
+++ /dev/null |
956 |
@@ -1,123 +0,0 @@ |
957 |
-# Copyright 1999-2017 Gentoo Foundation |
958 |
-# Distributed under the terms of the GNU General Public License v2 |
959 |
- |
960 |
-EAPI=5 |
961 |
-inherit eutils multilib systemd versionator |
962 |
- |
963 |
-MY_PV=${PV/_/} |
964 |
-MY_PV_MM=$(get_version_component_range 1-2) |
965 |
-DESCRIPTION="syslog replacement with advanced filtering features" |
966 |
-HOMEPAGE="http://www.balabit.com/network-security/syslog-ng" |
967 |
-SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz" |
968 |
- |
969 |
-LICENSE="GPL-2+ LGPL-2.1+" |
970 |
-SLOT="0" |
971 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" |
972 |
-IUSE="amqp caps dbi geoip ipv6 json mongodb pacct redis smtp spoof-source ssl systemd tcpd" |
973 |
-RESTRICT="test" |
974 |
- |
975 |
-RDEPEND=" |
976 |
- caps? ( sys-libs/libcap ) |
977 |
- dbi? ( >=dev-db/libdbi-0.8.3 ) |
978 |
- geoip? ( >=dev-libs/geoip-1.5.0 ) |
979 |
- json? ( >=dev-libs/json-c-0.9 ) |
980 |
- redis? ( dev-libs/hiredis ) |
981 |
- smtp? ( net-libs/libesmtp ) |
982 |
- spoof-source? ( net-libs/libnet:1.1 ) |
983 |
- ssl? ( dev-libs/openssl:= ) |
984 |
- systemd? ( sys-apps/systemd ) |
985 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
986 |
- dev-libs/libpcre |
987 |
- >=dev-libs/eventlog-0.2.12 |
988 |
- >=dev-libs/glib-2.10.1:2" |
989 |
-DEPEND="${RDEPEND} |
990 |
- virtual/pkgconfig |
991 |
- sys-devel/flex" |
992 |
- |
993 |
-S=${WORKDIR}/${PN}-${MY_PV} |
994 |
- |
995 |
-src_prepare() { |
996 |
- epatch_user |
997 |
- cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die |
998 |
- cd "${TMPDIR}" || die |
999 |
- |
1000 |
- for f in *logrotate*.in ; do |
1001 |
- if use systemd ; then |
1002 |
- sed \ |
1003 |
- 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \ |
1004 |
- $f > ${f/.in/} || die |
1005 |
- else |
1006 |
- sed \ |
1007 |
- 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \ |
1008 |
- $f > ${f/.in/} || die |
1009 |
- fi |
1010 |
- done |
1011 |
-} |
1012 |
- |
1013 |
-src_configure() { |
1014 |
- econf \ |
1015 |
- --disable-docs \ |
1016 |
- --enable-manpages \ |
1017 |
- --with-embedded-crypto \ |
1018 |
- --with-ivykis=internal \ |
1019 |
- --with-libmongo-client=internal \ |
1020 |
- --sysconfdir=/etc/syslog-ng \ |
1021 |
- --localstatedir=/var/lib/syslog-ng \ |
1022 |
- --with-pidfile-dir=/var/run \ |
1023 |
- --with-module-dir=/usr/$(get_libdir)/syslog-ng \ |
1024 |
- $(systemd_with_unitdir) \ |
1025 |
- $(use_enable systemd) \ |
1026 |
- $(use_enable caps linux-caps) \ |
1027 |
- $(use_enable geoip) \ |
1028 |
- $(use_enable ipv6) \ |
1029 |
- $(use_enable json) \ |
1030 |
- $(use_enable mongodb) \ |
1031 |
- $(use_enable pacct) \ |
1032 |
- $(use_enable redis) \ |
1033 |
- $(use_enable smtp) \ |
1034 |
- $(use_enable amqp) \ |
1035 |
- $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \ |
1036 |
- $(use_enable spoof-source) \ |
1037 |
- $(use_enable dbi sql) \ |
1038 |
- $(use_enable ssl) \ |
1039 |
- $(use_enable tcpd tcp-wrapper) |
1040 |
-} |
1041 |
- |
1042 |
-src_install() { |
1043 |
- # -j1 for bug #484470 |
1044 |
- emake -j1 DESTDIR="${D}" install |
1045 |
- |
1046 |
- dodoc AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf* \ |
1047 |
- contrib/syslog2ng "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.hardened" \ |
1048 |
- "${TMPDIR}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" |
1049 |
- |
1050 |
- # Install default configuration |
1051 |
- insinto /etc/syslog-ng |
1052 |
- if use userland_BSD ; then |
1053 |
- newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf |
1054 |
- else |
1055 |
- newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo" syslog-ng.conf |
1056 |
- fi |
1057 |
- |
1058 |
- insinto /etc/logrotate.d |
1059 |
- newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng |
1060 |
- |
1061 |
- newinitd "${FILESDIR}/${MY_PV_MM}/syslog-ng.rc6" syslog-ng |
1062 |
- newconfd "${FILESDIR}/${MY_PV_MM}/syslog-ng.confd" syslog-ng |
1063 |
- keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng |
1064 |
- prune_libtool_files --modules |
1065 |
-} |
1066 |
- |
1067 |
-pkg_postinst() { |
1068 |
- elog "For detailed documentation please see the upstream website:" |
1069 |
- elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.6-guides/en/syslog-ng-ose-v3.6-guide-admin/html/index.html" |
1070 |
- |
1071 |
- # bug #355257 |
1072 |
- if ! has_version app-admin/logrotate ; then |
1073 |
- echo |
1074 |
- elog "It is highly recommended that app-admin/logrotate be emerged to" |
1075 |
- elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" |
1076 |
- elog "for logrotate to use." |
1077 |
- echo |
1078 |
- fi |
1079 |
-} |
1080 |
|
1081 |
diff --git a/app-admin/syslog-ng/syslog-ng-3.7.2.ebuild b/app-admin/syslog-ng/syslog-ng-3.7.2.ebuild |
1082 |
deleted file mode 100644 |
1083 |
index a855ef61bc5..00000000000 |
1084 |
--- a/app-admin/syslog-ng/syslog-ng-3.7.2.ebuild |
1085 |
+++ /dev/null |
1086 |
@@ -1,143 +0,0 @@ |
1087 |
-# Copyright 1999-2017 Gentoo Foundation |
1088 |
-# Distributed under the terms of the GNU General Public License v2 |
1089 |
- |
1090 |
-EAPI=5 |
1091 |
-PYTHON_COMPAT=( python2_7 ) |
1092 |
-inherit autotools python-single-r1 eutils multilib systemd versionator |
1093 |
- |
1094 |
-MY_PV=${PV/_/} |
1095 |
-MY_PV_MM=$(get_version_component_range 1-2) |
1096 |
-DESCRIPTION="syslog replacement with advanced filtering features" |
1097 |
-HOMEPAGE="http://www.balabit.com/network-security/syslog-ng" |
1098 |
-SRC_URI="https://github.com/balabit/syslog-ng/releases/download/${P}/${P}.tar.gz" |
1099 |
- |
1100 |
-LICENSE="GPL-2+ LGPL-2.1+" |
1101 |
-SLOT="0" |
1102 |
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd" |
1103 |
-IUSE="amqp caps dbi geoip ipv6 json libressl mongodb pacct python redis smtp spoof-source systemd tcpd" |
1104 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
1105 |
-RESTRICT="test" |
1106 |
- |
1107 |
-RDEPEND=" |
1108 |
- caps? ( sys-libs/libcap ) |
1109 |
- dbi? ( >=dev-db/libdbi-0.8.3 ) |
1110 |
- geoip? ( >=dev-libs/geoip-1.5.0 ) |
1111 |
- json? ( >=dev-libs/json-c-0.9 ) |
1112 |
- python? ( ${PYTHON_DEPS} ) |
1113 |
- redis? ( dev-libs/hiredis ) |
1114 |
- smtp? ( net-libs/libesmtp ) |
1115 |
- spoof-source? ( net-libs/libnet:1.1 ) |
1116 |
- systemd? ( sys-apps/systemd ) |
1117 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
1118 |
- dev-libs/libpcre |
1119 |
- !libressl? ( dev-libs/openssl:0= ) |
1120 |
- libressl? ( dev-libs/libressl:0= ) |
1121 |
- >=dev-libs/eventlog-0.2.12 |
1122 |
- >=dev-libs/glib-2.10.1:2" |
1123 |
-DEPEND="${RDEPEND} |
1124 |
- virtual/pkgconfig |
1125 |
- sys-devel/flex" |
1126 |
- |
1127 |
-S=${WORKDIR}/${PN}-${MY_PV} |
1128 |
- |
1129 |
-pkg_setup() { |
1130 |
- use python && python-single-r1_pkg_setup |
1131 |
-} |
1132 |
- |
1133 |
-src_prepare() { |
1134 |
- epatch_user |
1135 |
- use python && python_fix_shebang . |
1136 |
- |
1137 |
- if use !json ; then |
1138 |
- sed -i \ |
1139 |
- -e '1 s/cim //' \ |
1140 |
- scl/Makefile.am || die |
1141 |
- eautoreconf |
1142 |
- fi |
1143 |
- |
1144 |
- cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die |
1145 |
- cd "${TMPDIR}" || die |
1146 |
- |
1147 |
- for f in *logrotate*.in ; do |
1148 |
- if use systemd ; then |
1149 |
- sed \ |
1150 |
- 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \ |
1151 |
- $f > ${f/.in/} || die |
1152 |
- else |
1153 |
- sed \ |
1154 |
- 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \ |
1155 |
- $f > ${f/.in/} || die |
1156 |
- fi |
1157 |
- done |
1158 |
-} |
1159 |
- |
1160 |
-src_configure() { |
1161 |
- econf \ |
1162 |
- --disable-java \ |
1163 |
- --disable-docs \ |
1164 |
- --enable-manpages \ |
1165 |
- --with-embedded-crypto \ |
1166 |
- --with-ivykis=internal \ |
1167 |
- --with-libmongo-client=internal \ |
1168 |
- --sysconfdir=/etc/syslog-ng \ |
1169 |
- --localstatedir=/var/lib/syslog-ng \ |
1170 |
- --with-pidfile-dir=/var/run \ |
1171 |
- --with-module-dir=/usr/$(get_libdir)/syslog-ng \ |
1172 |
- $(systemd_with_unitdir) \ |
1173 |
- $(use_enable systemd) \ |
1174 |
- $(use_enable caps linux-caps) \ |
1175 |
- $(use_enable geoip) \ |
1176 |
- $(use_enable ipv6) \ |
1177 |
- $(use_enable json) \ |
1178 |
- $(use_enable mongodb) \ |
1179 |
- $(use_enable pacct) \ |
1180 |
- $(use_enable python) \ |
1181 |
- $(use_enable redis) \ |
1182 |
- $(use_enable smtp) \ |
1183 |
- $(use_enable amqp) \ |
1184 |
- $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \ |
1185 |
- $(use_enable spoof-source) \ |
1186 |
- $(use_enable dbi sql) \ |
1187 |
- $(use_enable tcpd tcp-wrapper) |
1188 |
-} |
1189 |
- |
1190 |
-src_install() { |
1191 |
- # -j1 for bug #484470 |
1192 |
- emake -j1 DESTDIR="${D}" install |
1193 |
- |
1194 |
- dodoc AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf* \ |
1195 |
- contrib/syslog2ng "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.hardened" \ |
1196 |
- "${TMPDIR}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" |
1197 |
- |
1198 |
- # Install default configuration |
1199 |
- insinto /etc/syslog-ng |
1200 |
- if use userland_BSD ; then |
1201 |
- newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf |
1202 |
- else |
1203 |
- newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo" syslog-ng.conf |
1204 |
- fi |
1205 |
- |
1206 |
- insinto /etc/logrotate.d |
1207 |
- newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng |
1208 |
- |
1209 |
- newinitd "${FILESDIR}/${MY_PV_MM}/syslog-ng.rc6" syslog-ng |
1210 |
- newconfd "${FILESDIR}/${MY_PV_MM}/syslog-ng.confd" syslog-ng |
1211 |
- keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng |
1212 |
- prune_libtool_files --modules |
1213 |
- |
1214 |
- use python && python_optimize |
1215 |
-} |
1216 |
- |
1217 |
-pkg_postinst() { |
1218 |
- elog "For detailed documentation please see the upstream website:" |
1219 |
- elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.7-guides/en/syslog-ng-ose-v3.7-guide-admin/html/index.html" |
1220 |
- |
1221 |
- # bug #355257 |
1222 |
- if ! has_version app-admin/logrotate ; then |
1223 |
- echo |
1224 |
- elog "It is highly recommended that app-admin/logrotate be emerged to" |
1225 |
- elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" |
1226 |
- elog "for logrotate to use." |
1227 |
- echo |
1228 |
- fi |
1229 |
-} |