Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/syslog-ng/files/3.7/, app-admin/syslog-ng/
Date: Fri, 28 Aug 2015 20:25:13
Message-Id: 1440793501.c83c00565d6af5a9a48cafd083345009c37b0e4a.mr_bones_@gentoo
1 commit: c83c00565d6af5a9a48cafd083345009c37b0e4a
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 20:24:25 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 20:25:01 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c83c0056
7
8 version bump to 3.7 series
9
10 Package-Manager: portage-2.2.20.1
11
12 app-admin/syslog-ng/Manifest | 1 +
13 .../syslog-ng/files/3.7/syslog-ng.conf.gentoo | 37 ++++++
14 .../syslog-ng/files/3.7/syslog-ng.conf.gentoo.fbsd | 25 ++++
15 .../files/3.7/syslog-ng.conf.gentoo.hardened | 115 ++++++++++++++++++
16 app-admin/syslog-ng/files/3.7/syslog-ng.confd | 42 +++++++
17 app-admin/syslog-ng/files/3.7/syslog-ng.rc6 | 59 +++++++++
18 app-admin/syslog-ng/syslog-ng-3.7.1.ebuild | 134 +++++++++++++++++++++
19 7 files changed, 413 insertions(+)
20
21 diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest
22 index 36b48cc..e434787 100644
23 --- a/app-admin/syslog-ng/Manifest
24 +++ b/app-admin/syslog-ng/Manifest
25 @@ -1,3 +1,4 @@
26 +DIST syslog-ng-3.7.1.tar.gz 3509575 SHA256 4c19841b9079b377cd814b1e6ebbf273af41d04d51c648f4c31f19bfadc20220 SHA512 6f9a68aec2594d83c43cf40e12a3d56e65661929a47c2a053ae120e34ad358d4dfd0b5b0303a374a5557f2ac0670114037a339530b111b1078b56e5baf284ed4 WHIRLPOOL 247498f144aec419d1214378332bc286795fa8f59ba33ce75b3d000be6340758f00a694d76b5cbfdd6b68d138a6cd373c06bb52c70e6ed6de29189c03a56d16b
27 DIST syslog-ng_3.4.8.tar.gz 3169372 SHA256 96c2f970fbba4fdd7659b1fee5e476d2858c911d4304d42099f495493762ff49 SHA512 23ba9908664e594c186cbe4bd5dcfb5d2ed3faf02ec45b931bb91b078660547989c2340a08b478a33adb530d39a6d6f39a2e7519107a3f6b923ac9f39529620e WHIRLPOOL 1085fa2c90e0c85421c64ed50e8a357f29006afea2f3e329e42d1e27f4210a10fe0f05d4af95a11c245d68b43644a4a829a50c05b7d541f59a6f580b3643b434
28 DIST syslog-ng_3.6.2.tar.gz 3207456 SHA256 ef47fada52981e09af570457a5af30f815f5d5b6c2e33754cedd4ca9780d8261 SHA512 15603b4df2001e1ce7e0019d0dd9a0f4295445e3fd19a527ebf3d49486da7da27fac6c465727ec0354f8f70ca0f671a285ec132f9aa0de62b40f18b44af2a226 WHIRLPOOL 7135db242374d6e5789c0820a06187b7e325054fd214e3aee75aac5b8dde56786b432cc4519c07ce0cd413c3a560e8e74ee6eca319c21eaa750ca8140ef1b63f
29 DIST syslog-ng_3.6.4.tar.gz 3276432 SHA256 7be11df31ac7d716f1f952e22b5ae8e2049edd633a41b223776a853d9106f4e7 SHA512 9c648628b9bd3ebb25bc44fa6586e88a4b9ed7c24b1c337569d3cccb04bf2f427ba1218900f8dfd8f668f245d6ab44ad45b67da661b7c2af68c6c42101b722e1 WHIRLPOOL 496a9b2e06e33b0c42726f3b13f859f356f136367c48363cd22b086b72f4f54a32cc057235636f2d2ea3ad7bdd622354ea67df1cbc770be608a84bc861fce93d
30
31 diff --git a/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo b/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo
32 new file mode 100644
33 index 0000000..d860127
34 --- /dev/null
35 +++ b/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo
36 @@ -0,0 +1,37 @@
37 +@version: 3.7
38 +# $Id$
39 +#
40 +# Syslog-ng default configuration file for Gentoo Linux
41 +
42 +# https://bugs.gentoo.org/show_bug.cgi?id=426814
43 +@include "scl.conf"
44 +
45 +options {
46 + threaded(yes);
47 + chain_hostnames(no);
48 +
49 + # The default action of syslog-ng is to log a STATS line
50 + # to the file every 10 minutes. That's pretty ugly after a while.
51 + # Change it to every 12 hours so you get a nice daily update of
52 + # how many messages syslog-ng missed (0).
53 + stats_freq(43200);
54 + # The default action of syslog-ng is to log a MARK line
55 + # to the file every 20 minutes. That's seems high for most
56 + # people so turn it down to once an hour. Set it to zero
57 + # if you don't want the functionality at all.
58 + mark_freq(3600);
59 +};
60 +
61 +source src { system(); internal(); };
62 +
63 +destination messages { file("/var/log/messages"); };
64 +
65 +# By default messages are logged to tty12...
66 +destination console_all { file("/dev/tty12"); };
67 +# ...if you intend to use /dev/console for programs like xconsole
68 +# you can comment out the destination line above that references /dev/tty12
69 +# and uncomment the line below.
70 +#destination console_all { file("/dev/console"); };
71 +
72 +log { source(src); destination(messages); };
73 +log { source(src); destination(console_all); };
74
75 diff --git a/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo.fbsd b/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo.fbsd
76 new file mode 100644
77 index 0000000..755ced0
78 --- /dev/null
79 +++ b/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo.fbsd
80 @@ -0,0 +1,25 @@
81 +@version: 3.7
82 +# $Id$
83 +#
84 +# Syslog-ng default configuration file for Gentoo FreeBSD
85 +#
86 +
87 +# https://bugs.gentoo.org/show_bug.cgi?id=426814
88 +@include "scl.conf"
89 +
90 +options {
91 + threaded(yes);
92 + chain_hostnames(no);
93 +
94 + # The default action of syslog-ng is to log a STATS line
95 + # to the file every 10 minutes. That's pretty ugly after a while.
96 + # Change it to every 12 hours so you get a nice daily update of
97 + # how many messages syslog-ng missed (0).
98 + stats_freq(43200);
99 +};
100 +
101 +source src { system(); internal(); };
102 +
103 +destination messages { file("/var/log/messages"); };
104 +
105 +log { source(src); destination(messages); };
106
107 diff --git a/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo.hardened b/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo.hardened
108 new file mode 100644
109 index 0000000..bcf9e29
110 --- /dev/null
111 +++ b/app-admin/syslog-ng/files/3.7/syslog-ng.conf.gentoo.hardened
112 @@ -0,0 +1,115 @@
113 +@version: 3.7
114 +# Copyright 1999-2011 Gentoo Foundation
115 +# Distributed under the terms of the GNU General Public License v2
116 +# $Id$
117 +
118 +# https://bugs.gentoo.org/show_bug.cgi?id=426814
119 +@include "scl.conf"
120 +
121 +#
122 +# Syslog-ng configuration file, compatible with default hardened installations.
123 +#
124 +
125 +options {
126 + threaded(yes);
127 + chain_hostnames(no);
128 + stats_freq(43200);
129 +};
130 +
131 +source src {
132 + unix-dgram("/dev/log");
133 + internal();
134 +};
135 +source kernsrc {
136 + file("/proc/kmsg");
137 +};
138 +
139 +#source net { udp(); };
140 +#log { source(net); destination(net_logs); };
141 +#destination net_logs { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY.log"); };
142 +
143 +destination authlog { file("/var/log/auth.log"); };
144 +destination _syslog { file("/var/log/syslog"); };
145 +destination cron { file("/var/log/cron.log"); };
146 +destination daemon { file("/var/log/daemon.log"); };
147 +destination kern { file("/var/log/kern.log"); file("/dev/tty12"); };
148 +destination lpr { file("/var/log/lpr.log"); };
149 +destination user { file("/var/log/user.log"); };
150 +destination uucp { file("/var/log/uucp.log"); };
151 +#destination ppp { file("/var/log/ppp.log"); };
152 +destination mail { file("/var/log/mail.log"); };
153 +
154 +destination avc { file("/var/log/avc.log"); };
155 +destination audit { file("/var/log/audit.log"); };
156 +destination pax { file("/var/log/pax.log"); };
157 +destination grsec { file("/var/log/grsec.log"); };
158 +
159 +destination mailinfo { file("/var/log/mail.info"); };
160 +destination mailwarn { file("/var/log/mail.warn"); };
161 +destination mailerr { file("/var/log/mail.err"); };
162 +
163 +destination newscrit { file("/var/log/news/news.crit"); };
164 +destination newserr { file("/var/log/news/news.err"); };
165 +destination newsnotice { file("/var/log/news/news.notice"); };
166 +
167 +destination debug { file("/var/log/debug"); };
168 +destination messages { file("/var/log/messages"); };
169 +destination console { usertty("root"); };
170 +destination console_all { file("/dev/tty12"); };
171 +#destination loghost { udp("loghost" port(999)); };
172 +
173 +destination xconsole { pipe("/dev/xconsole"); };
174 +
175 +filter f_auth { facility(auth); };
176 +filter f_authpriv { facility(auth, authpriv); };
177 +filter f_syslog { not facility(authpriv, mail); };
178 +filter f_cron { facility(cron); };
179 +filter f_daemon { facility(daemon); };
180 +filter f_kern { facility(kern); };
181 +filter f_lpr { facility(lpr); };
182 +filter f_mail { facility(mail); };
183 +filter f_user { facility(user); };
184 +filter f_uucp { facility(uucp); };
185 +#filter f_ppp { facility(ppp); };
186 +filter f_news { facility(news); };
187 +filter f_debug { not facility(auth, authpriv, news, mail); };
188 +filter f_messages { level(info..warn)
189 + and not facility(auth, authpriv, mail, news); };
190 +filter f_emergency { level(emerg); };
191 +
192 +filter f_info { level(info); };
193 +
194 +filter f_notice { level(notice); };
195 +filter f_warn { level(warn); };
196 +filter f_crit { level(crit); };
197 +filter f_err { level(err); };
198 +
199 +filter f_avc { message(".*avc: .*"); };
200 +filter f_audit { message("^(\\[.*\..*\] |)audit.*") and not message(".*avc: .*"); };
201 +filter f_pax { message("^(\\[.*\..*\] |)PAX:.*"); };
202 +filter f_grsec { message("^(\\[.*\..*\] |)grsec:.*"); };
203 +
204 +log { source(src); filter(f_authpriv); destination(authlog); };
205 +log { source(src); filter(f_syslog); destination(_syslog); };
206 +log { source(src); filter(f_cron); destination(cron); };
207 +log { source(src); filter(f_daemon); destination(daemon); };
208 +log { source(kernsrc); filter(f_kern); destination(kern); };
209 +log { source(src); filter(f_lpr); destination(lpr); };
210 +log { source(src); filter(f_mail); destination(mail); };
211 +log { source(src); filter(f_user); destination(user); };
212 +log { source(src); filter(f_uucp); destination(uucp); };
213 +log { source(kernsrc); filter(f_pax); destination(pax); };
214 +log { source(kernsrc); filter(f_grsec); destination(grsec); };
215 +log { source(kernsrc); filter(f_audit); destination(audit); };
216 +log { source(kernsrc); filter(f_avc); destination(avc); };
217 +log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
218 +log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
219 +log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
220 +log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
221 +log { source(src); filter(f_news); filter(f_err); destination(newserr); };
222 +log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
223 +log { source(src); filter(f_debug); destination(debug); };
224 +log { source(src); filter(f_messages); destination(messages); };
225 +log { source(src); filter(f_emergency); destination(console); };
226 +#log { source(src); filter(f_ppp); destination(ppp); };
227 +log { source(src); destination(console_all); };
228
229 diff --git a/app-admin/syslog-ng/files/3.7/syslog-ng.confd b/app-admin/syslog-ng/files/3.7/syslog-ng.confd
230 new file mode 100644
231 index 0000000..42fa26a
232 --- /dev/null
233 +++ b/app-admin/syslog-ng/files/3.7/syslog-ng.confd
234 @@ -0,0 +1,42 @@
235 +# Config file for /etc/init.d/syslog-ng
236 +
237 +# If you are not using network logging, this entire section should be
238 +# commented out. Otherwise, choose one of the settings below based on
239 +# how you are configuring your network.
240 +#
241 +# If you are using the net.* scripts to configure your network, you should
242 +# set rc_need to match the interface through which your logging server
243 +# can be reached.
244 +#rc_need="net.eth0"
245 +#
246 +# If you are using an interface manager like wicd, dhcpcd in standalone
247 +# mode, networkmanager, etc to control your interfaces, set rc_need to
248 +# the name of that service.
249 +# rc_need="dhcpcd"
250 +#rc_need="networkmanager"
251 +#
252 +# If you are using newnet and configuring your interface statically with
253 +# the network script, you should use this setting.
254 +#rc_need="network"
255 +#
256 +# You can use this setting, but I do not recommend relying on it.
257 +#rc_need="net"
258 +#
259 +# You may also want to uncomment the following if you are using network
260 +# logging.
261 +#rc_use="stunnel"
262 +
263 +# For very customized setups these variables can be adjusted as needed
264 +# but for most situations they should remain commented:
265 +# SYSLOG_NG_CONFIGFILE=/etc/syslog-ng/syslog-ng.conf
266 +# SYSLOG_NG_STATEFILE_DIR=/var/lib/syslog-ng
267 +# SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist
268 +# SYSLOG_NG_PIDFILE_DIR=/run
269 +# SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE_DIR}/syslog-ng.pid
270 +# SYSLOG_NG_GROUP=root
271 +# SYSLOG_NG_USER=root
272 +
273 +# Put any additional options for syslog-ng here.
274 +# See syslog-ng(8) for more information.
275 +
276 +SYSLOG_NG_OPTS=""
277
278 diff --git a/app-admin/syslog-ng/files/3.7/syslog-ng.rc6 b/app-admin/syslog-ng/files/3.7/syslog-ng.rc6
279 new file mode 100644
280 index 0000000..88ca55f
281 --- /dev/null
282 +++ b/app-admin/syslog-ng/files/3.7/syslog-ng.rc6
283 @@ -0,0 +1,59 @@
284 +#!/sbin/runscript
285 +# Copyright 1999-2015 Gentoo Foundation
286 +# Distributed under the terms of the GNU General Public License v2
287 +# $Id$
288 +
289 +SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf}
290 +SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/syslog-ng}
291 +SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist}
292 +SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/run}
293 +SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid}
294 +
295 +SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-root}
296 +SYSLOG_NG_USER=${SYSLOG_NG_USER:-root}
297 +
298 +command="/usr/sbin/syslog-ng"
299 +command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}"
300 +extra_commands="checkconfig"
301 +extra_started_commands="reload"
302 +pidfile="${SYSLOG_NG_PIDFILE}"
303 +start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\""
304 +description="Syslog-ng is a syslog replacement with advanced filtering features."
305 +description_checkconfig="Check the configuration file that will be used by \"start\""
306 +description_reload="Reload the configuration without exiting"
307 +required_files="${SYSLOG_NG_CONFIGFILE}"
308 +required_dirs="${SYSLOG_NG_PIDFILE_DIR}"
309 +
310 +depend() {
311 + use clock
312 + need hostname localmount
313 + after bootmisc
314 + provide logger
315 +}
316 +
317 +checkconfig() {
318 + ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})"
319 + syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}"
320 + eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})"
321 +}
322 +
323 +start_pre() {
324 + checkconfig || return 1
325 + checkpath \
326 + -d \
327 + --mode 0700 \
328 + --owner "${SYSLOG_NG_USER}:${SYSLOG_NG_GROUP}" \
329 + "${SYSLOG_NG_STATEFILE_DIR}"
330 +}
331 +
332 +stop_pre() {
333 + [ "$RC_CMD" = restart ] && sleep 1
334 + return 0
335 +}
336 +
337 +reload() {
338 + checkconfig || return 1
339 + ebegin "Reloading configuration and re-opening log files"
340 + start-stop-daemon --signal HUP --pidfile "${pidfile}"
341 + eend $?
342 +}
343
344 diff --git a/app-admin/syslog-ng/syslog-ng-3.7.1.ebuild b/app-admin/syslog-ng/syslog-ng-3.7.1.ebuild
345 new file mode 100644
346 index 0000000..4e713eb
347 --- /dev/null
348 +++ b/app-admin/syslog-ng/syslog-ng-3.7.1.ebuild
349 @@ -0,0 +1,134 @@
350 +# Copyright 1999-2015 Gentoo Foundation
351 +# Distributed under the terms of the GNU General Public License v2
352 +# $Id$
353 +
354 +EAPI=5
355 +PYTHON_COMPAT=( python2_7 )
356 +inherit python-any-r1 eutils multilib systemd versionator
357 +
358 +MY_PV=${PV/_/}
359 +MY_PV_MM=$(get_version_component_range 1-2)
360 +DESCRIPTION="syslog replacement with advanced filtering features"
361 +HOMEPAGE="http://www.balabit.com/network-security/syslog-ng"
362 +SRC_URI="https://github.com/balabit/syslog-ng/releases/download/${P}/${P}.tar.gz"
363 +
364 +LICENSE="GPL-2+ LGPL-2.1+"
365 +SLOT="0"
366 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
367 +IUSE="amqp caps dbi geoip ipv6 json mongodb pacct python redis smtp spoof-source systemd tcpd"
368 +RESTRICT="test"
369 +
370 +RDEPEND="
371 + caps? ( sys-libs/libcap )
372 + dbi? ( >=dev-db/libdbi-0.8.3 )
373 + geoip? ( >=dev-libs/geoip-1.5.0 )
374 + json? ( >=dev-libs/json-c-0.9 )
375 + python? ( ${PYTHON_DEPS} )
376 + redis? ( dev-libs/hiredis )
377 + smtp? ( net-libs/libesmtp )
378 + spoof-source? ( net-libs/libnet:1.1 )
379 + systemd? ( sys-apps/systemd )
380 + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
381 + dev-libs/libpcre
382 + dev-libs/openssl:=
383 + >=dev-libs/eventlog-0.2.12
384 + >=dev-libs/glib-2.10.1:2"
385 +DEPEND="${RDEPEND}
386 + virtual/pkgconfig
387 + sys-devel/flex"
388 +
389 +S=${WORKDIR}/${PN}-${MY_PV}
390 +
391 +pkg_setup() {
392 + use python && python-any-r1_pkg_setup
393 +}
394 +
395 +src_prepare() {
396 + epatch_user
397 + use python && python_fix_shebang .
398 + cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die
399 + cd "${TMPDIR}" || die
400 +
401 + for f in *logrotate*.in ; do
402 + if use systemd ; then
403 + sed \
404 + 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \
405 + $f > ${f/.in/} || die
406 + else
407 + sed \
408 + 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \
409 + $f > ${f/.in/} || die
410 + fi
411 + done
412 +}
413 +
414 +src_configure() {
415 + econf \
416 + --disable-java \
417 + --disable-docs \
418 + --enable-manpages \
419 + --with-embedded-crypto \
420 + --with-ivykis=internal \
421 + --with-libmongo-client=internal \
422 + --sysconfdir=/etc/syslog-ng \
423 + --localstatedir=/var/lib/syslog-ng \
424 + --with-pidfile-dir=/var/run \
425 + --with-module-dir=/usr/$(get_libdir)/syslog-ng \
426 + $(systemd_with_unitdir) \
427 + $(use_enable systemd) \
428 + $(use_enable caps linux-caps) \
429 + $(use_enable geoip) \
430 + $(use_enable ipv6) \
431 + $(use_enable json) \
432 + $(use_enable mongodb) \
433 + $(use_enable pacct) \
434 + $(use_enable python) \
435 + $(use_enable redis) \
436 + $(use_enable smtp) \
437 + $(use_enable amqp) \
438 + $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \
439 + $(use_enable spoof-source) \
440 + $(use_enable dbi sql) \
441 + $(use_enable tcpd tcp-wrapper)
442 +}
443 +
444 +src_install() {
445 + # -j1 for bug #484470
446 + emake -j1 DESTDIR="${D}" install
447 +
448 + dodoc AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf* \
449 + contrib/syslog2ng "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.hardened" \
450 + "${TMPDIR}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened"
451 +
452 + # Install default configuration
453 + insinto /etc/syslog-ng
454 + if use userland_BSD ; then
455 + newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf
456 + else
457 + newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo" syslog-ng.conf
458 + fi
459 +
460 + insinto /etc/logrotate.d
461 + newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng
462 +
463 + newinitd "${FILESDIR}/${MY_PV_MM}/syslog-ng.rc6" syslog-ng
464 + newconfd "${FILESDIR}/${MY_PV_MM}/syslog-ng.confd" syslog-ng
465 + keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng
466 + prune_libtool_files --modules
467 +
468 + use python && python_optimize
469 +}
470 +
471 +pkg_postinst() {
472 + elog "For detailed documentation please see the upstream website:"
473 + 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"
474 +
475 + # bug #355257
476 + if ! has_version app-admin/logrotate ; then
477 + echo
478 + elog "It is highly recommended that app-admin/logrotate be emerged to"
479 + elog "manage the log files. ${PN} installs a file in /etc/logrotate.d"
480 + elog "for logrotate to use."
481 + echo
482 + fi
483 +}