Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37536676
en ru br
Репозитории ALT
S:3.34.1-alt1
5.1: 2.1.4-alt0.M51.1
4.1: 2.0.9-alt1
4.0: 2.0.3-alt1
3.0: 1.6.2-alt2
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: syslog-ng

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: syslog-ng-3.34.1-alt1.patch
Скачать


 .gear/rules                                        |   4 +
 .../tags/38f48107197fcb2be4f82bb9f848d5ca16eacf15  |  22 +
 .gear/tags/list                                    |   1 +
 .../conf.d.example/00-redefine-consoleall.conf     |  13 +
 .../conf.d.example/00-redefine-source-sys.conf     |  16 +
 altlinux/conf.d.example/00-to-remote-syslog.conf   |  25 +
 altlinux/conf.d.example/90-bind.conf               |  59 ++
 altlinux/conf.d.example/90-cyrus-imap.conf         |  10 +
 altlinux/conf.d.example/90-openvpn.conf            |  13 +
 .../conf.d.example/99-syslog-server-example1.conf  |  22 +
 .../conf.d.example/99-syslog-server-example2.conf  |  20 +
 .../syslog-ng-3.19.1-README-build-config.patch     |  19 +
 altlinux/syslog-ng.conf                            | 180 +++++
 altlinux/syslog-ng.init                            | 123 ++++
 altlinux/syslog-ng.service                         |  16 +
 altlinux/syslog-ng.spec                            | 794 +++++++++++++++++++++
 altlinux/syslog-ng.sysconfig                       |   9 +
 17 files changed, 1346 insertions(+)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 000000000..2b2b51158
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,4 @@
+spec: altlinux/syslog-ng.spec
+tar.gz: v@version@:. name=@name@-@version@
+diff: v@version@:. . name=@name@-@version@-@release@.patch
+
diff --git a/.gear/tags/38f48107197fcb2be4f82bb9f848d5ca16eacf15 b/.gear/tags/38f48107197fcb2be4f82bb9f848d5ca16eacf15
new file mode 100644
index 000000000..a31c1a238
--- /dev/null
+++ b/.gear/tags/38f48107197fcb2be4f82bb9f848d5ca16eacf15
@@ -0,0 +1,22 @@
+object 804919b3b5c983869b93df18fd54af3699deffa1
+type commit
+tag v3.34.1
+tagger Sergey Y. Afonin <asy@altlinux.org> 1635114411 +0400
+
+v3.34.1
+-----BEGIN PGP SIGNATURE-----
+
+iQIcBAABAgAGBQJhdd2rAAoJEMZvvLhU+KvU2iQQAJE8HQEAUcBqDXRRp6qTgxV1
+1zaru3KxHABm7NICsUJEvYmMt9CM02TSwEjzDWzPMy9GLoJcelrKt0jlob2jGZoO
+kui8VB8rolpxtjRejh4PQi3r2gOGhlDOzi1TZI7FImAUB/e9cirFETTT2Etglt4n
+x4jHyoniug7hT8JvWYb5g0w6F87AN3AlSuZh6oRD+PVX/zVGC8FvBWsip7EfyN/y
+NZvZXdb4ib/S3gt97ggfyJJIKIrydT4sH0fsEo7UcmUcr8Ia37ZadKV3sdsN2dEb
+EiX8wzTwt+KMv1sVuY2mhVObMro9tZz/8fZVlE8R5PzMGVVKNX8tmqiDdNMC1osF
+tA3esdmwEypvHAeGJF28cyv6Xq43wdCReWrZTSpqNoIX4Wgbv38qdUXFHldl2sNg
+TV9Dh/cXApqcInNB7sAtM1AJjEAOpiCnsIva/fEFZ2PNwL5CaCLNt2q9WBb3Bsau
+lQwBQ3AMVTCrVNGxdwcyvjFQoMb8m3+MvDzPwCKql87g2y7DNE0OZSPmzIW+r/R1
+9+Wmda6476b1RPNhhKSQDtSKGASxgyeBXkWP8cSmz1kU9pyQGsbJE9Elu8PxxKgv
+CwRdu2NT0HQHilP33oL3JfpV8CcLJ49R2m0DjoMQXIVjjxljyRV+5bcXwJFPVK0z
+6zWmlUWrPsAGHnLBpJtr
+=XQFb
+-----END PGP SIGNATURE-----
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 000000000..b5cf7778e
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+38f48107197fcb2be4f82bb9f848d5ca16eacf15 v3.34.1
diff --git a/altlinux/conf.d.example/00-redefine-consoleall.conf b/altlinux/conf.d.example/00-redefine-consoleall.conf
new file mode 100644
index 000000000..2c9ffba1b
--- /dev/null
+++ b/altlinux/conf.d.example/00-redefine-consoleall.conf
@@ -0,0 +1,13 @@
+#@version: @ver@
+#
+# Standard destination "consoleall" is /dev/tty12. It should be
+# redefined in some cases (in OpenVZ containers for example)
+#
+
+@define allow-config-dups 1
+
+destination consoleall	{ file("/dev/null"); };
+#destination consoleall	{ file("/var/log/syslog/console_all" template("$DATE $HOST $FACILITY $LEVEL $PROGRAM[$PID] $MESSAGE\n") template_escape(off) ); };
+
+@define allow-config-dups 0
+
diff --git a/altlinux/conf.d.example/00-redefine-source-sys.conf b/altlinux/conf.d.example/00-redefine-source-sys.conf
new file mode 100644
index 000000000..74428bf8f
--- /dev/null
+++ b/altlinux/conf.d.example/00-redefine-source-sys.conf
@@ -0,0 +1,16 @@
+#@version: @ver@
+#
+# Standard "source sys" in ALT Linux uses system() and file("/proc/kmsg").
+# It should be redefined for systems with kernel before 3.5 (OpenVZ 2.6.32
+# kernel for example). Look to Syslog-ng's Administration Guide for details
+# about system() source.
+#
+
+
+@define allow-config-dups 1
+
+source sys {
+        system()
+};
+
+@define allow-config-dups 0
diff --git a/altlinux/conf.d.example/00-to-remote-syslog.conf b/altlinux/conf.d.example/00-to-remote-syslog.conf
new file mode 100644
index 000000000..b6025b1be
--- /dev/null
+++ b/altlinux/conf.d.example/00-to-remote-syslog.conf
@@ -0,0 +1,25 @@
+#@version: @ver@
+#
+# should be first log statement because flags(final)
+# can be used in other log statements
+#
+
+options {
+#   use_dns (yes); dns-cache(yes);
+    use_fqdn (yes);
+    keep_hostname (yes);
+};
+
+# Destination for remote logs using bsd protocol, change "loghost"
+# to fqdn for remote host
+#
+#destination d_remote	{ udp("loghost" port(999)); };
+
+# Ddestination for remote logs using IETF protocol, change "loghost"
+# to fqdn for remote host
+#
+#destination d_remote	{ syslog("loghost" transport("udp") port(1999) localport(999)); };
+destination d_remote	{ syslog("loghost"); };
+
+log { source(sys); destination(d_remote); };
+
diff --git a/altlinux/conf.d.example/90-bind.conf b/altlinux/conf.d.example/90-bind.conf
new file mode 100644
index 000000000..9300d7b69
--- /dev/null
+++ b/altlinux/conf.d.example/90-bind.conf
@@ -0,0 +1,59 @@
+#@version: @ver@
+#
+# One problem is known. Look to
+# https://lists.altlinux.org/pipermail/sysadmins/2013-September/036379.html
+# https://lists.altlinux.org/pipermail/sysadmins/2019-March/038114.html
+#
+
+# Bind's configuration example for logging:
+#
+#logging {
+#        channel log_dns {
+#            syslog local3;
+#            print-category yes;
+#            print-severity yes;
+#            print-time no;
+#        };
+#        channel log_queries {
+#            syslog local4;
+#            print-category yes;
+#            print-severity yes;
+#            print-time no;
+#        };
+#
+#        category default {log_dns;};
+#        category queries {log_queries;};
+#        category lame-servers  { null; };
+#//      category edns-disabled { null; };
+#//      category unmatched { "null"; };
+#};
+#
+# Don't forgot to create /var/log/bind directory and logrotate's configuration.
+# You can use create-dirs(yes) option for file() destinations also.
+#
+
+source bind {
+    unix-dgram ("/var/lib/bind/dev/log");
+};
+
+
+destination bind_default	{ file("/var/log/bind/bind_default"); };
+destination bind_queries	{ file("/var/log/bind/bind_queries"); };
+destination bind_security	{ file("/var/log/bind/bind_security"); };
+destination bind_resolver	{ file("/var/log/bind/bind_resolver"); };
+destination bind_rate		{ file("/var/log/bind/bind_rate-limit"); };
+
+
+filter f_default	{ not message("(queries|security|resolver|edns-disabled|query-errors|rate-limit):"); };
+filter f_queries	{ message("(queries|edns-disabled):"); };
+filter f_security	{ message("security:"); };
+filter f_resolver	{ message("resolver:"); };
+filter f_rate		{ message("rate-limit|query-errors:"); };
+
+
+log { source(bind); filter(f_default);  destination(bind_default); };
+log { source(bind); filter(f_queries);  destination(bind_queries); };
+log { source(bind); filter(f_security); destination(bind_security); };
+log { source(bind); filter(f_resolver); destination(bind_resolver); };
+log { source(bind); filter(f_rate);     destination(bind_rate); };
+
diff --git a/altlinux/conf.d.example/90-cyrus-imap.conf b/altlinux/conf.d.example/90-cyrus-imap.conf
new file mode 100644
index 000000000..703466775
--- /dev/null
+++ b/altlinux/conf.d.example/90-cyrus-imap.conf
@@ -0,0 +1,10 @@
+#@version: @ver@
+
+destination cyrus	{ file("/var/log/mail/cyrus" perm(0640) group(adm)); };
+
+filter f_cyrus		{ program("cyrus/") or program("notifyd"); };
+filter f_cyrus_deliver	{ program("cyrus/lmtp") and message("Delivered"); };
+
+log { source(sys); filter(f_cyrus_deliver); destination(mailall); };
+log { source(sys); filter(f_cyrus); destination(cyrus); flags(final); };
+
diff --git a/altlinux/conf.d.example/90-openvpn.conf b/altlinux/conf.d.example/90-openvpn.conf
new file mode 100644
index 000000000..b8a16dffd
--- /dev/null
+++ b/altlinux/conf.d.example/90-openvpn.conf
@@ -0,0 +1,13 @@
+#@version: @ver@
+#
+# One problem is known. Look to
+# https://lists.altlinux.org/pipermail/sysadmins/2013-September/036379.html
+# https://lists.altlinux.org/pipermail/sysadmins/2019-March/038114.html
+#
+
+source openvpn {
+    unix-dgram ("/var/lib/openvpn/dev/log");
+};
+
+log { source(openvpn); destination(daemoninfo); };
+
diff --git a/altlinux/conf.d.example/99-syslog-server-example1.conf b/altlinux/conf.d.example/99-syslog-server-example1.conf
new file mode 100644
index 000000000..498fe41df
--- /dev/null
+++ b/altlinux/conf.d.example/99-syslog-server-example1.conf
@@ -0,0 +1,22 @@
+#@version: @ver@
+
+# Using old bsd protocol
+#source net	{ udp(ip(0.0.0.0) port(514)); };
+
+# Using IETF protocol
+source net	{ syslog( transport("udp")); };
+
+# Destination from remote hosts
+destination remote_kern	{ file("/var/log/remote/remote_kernel.log"); };
+destination remote_daem	{ file("/var/log/remote/remote_daemon.log"); };
+destination remote_auth	{ file("/var/log/remote/remote_auth.log"); };
+destination remote_user	{ file("/var/log/remote/remote_user.log"); };
+destination remote_boot	{ file("/var/log/remote/remote_boot.log"); };
+
+# Logs from remote hosts
+log { source(net); filter(f_kern); destination(remote_kern); };
+log { source(net); filter(f_daemon); destination(remote_daem); };
+log { source(net); filter(f_authall); destination(remote_auth); };
+log { source(net); filter(f_user); destination(remote_user); };
+log { source(net); filter(f_boot); destination(remote_boot); };
+
diff --git a/altlinux/conf.d.example/99-syslog-server-example2.conf b/altlinux/conf.d.example/99-syslog-server-example2.conf
new file mode 100644
index 000000000..b1638ae1c
--- /dev/null
+++ b/altlinux/conf.d.example/99-syslog-server-example2.conf
@@ -0,0 +1,20 @@
+#@version: @ver@
+
+options {
+    use-dns (yes); dns-cache(yes);
+    use-fqdn (yes);
+    keep-hostname (yes);
+};
+
+# Using old bsd protocol
+#source net	{ udp(ip(0.0.0.0) port(514)); };
+
+# Using IETF protocol
+source net	{ syslog(transport("udp") so-rcvbuf(2097152)); syslog(transport("tcp")); };
+
+# Destination from remote hosts
+destination remote_by_host { file("/var/log/remote/$HOST.log"); };
+
+# Logs from remote hosts
+log { source(net); destination(remote_by_host); };
+
diff --git a/altlinux/syslog-ng-3.19.1-README-build-config.patch b/altlinux/syslog-ng-3.19.1-README-build-config.patch
new file mode 100644
index 000000000..5fd04b138
--- /dev/null
+++ b/altlinux/syslog-ng-3.19.1-README-build-config.patch
@@ -0,0 +1,19 @@
+diff --git a/configure.ac b/configure.ac
+index 37cc73c..9be5ce2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1812,6 +1812,7 @@ AC_OUTPUT(dist.conf
+ 	  scripts/update-patterndb
+           )
+ 
++(
+ echo
+ echo "syslog-ng Open Source Edition $PACKAGE_VERSION configured"
+ echo " Edition settings:"
+@@ -1866,3 +1867,6 @@ echo "  python                      : ${enable_python:=no} (pkg-config package:
+ echo "  java                        : ${enable_java:=no}"
+ echo "  java modules                : ${enable_java_modules:=no}"
+ echo "  native bindings             : ${enable_native:=no}"
++) > README-build-config
++
++cat README-build-config
diff --git a/altlinux/syslog-ng.conf b/altlinux/syslog-ng.conf
new file mode 100644
index 000000000..bbc95ea8e
--- /dev/null
+++ b/altlinux/syslog-ng.conf
@@ -0,0 +1,180 @@
+@version: @ver@
+##############################################################################
+# Default syslog-ng.conf of ALT Linux. Should not be edited. You can create
+# parts of the configuration in the /etc/syslog-ng/conf.d directory. They
+# can redefine options and statements. Some examples are available in the
+# /usr/share/doc/syslog-ng-<version> directory.
+#
+##############################################################################
+# You can install syslog-ng-scl subpackage if you want to use SCL (Source
+# Configuration Library) supplied plugins.
+#
+# Name with * matches to scl.conf but it allow to miss file.
+# You can use other names in addition: scl.my.conf for example.
+#
+@include "scl*conf"
+
+options {
+    flush-lines (0);
+    time-reopen (10);
+    log-fifo-size (10000);
+    chain-hostnames (no);
+    use-dns (no); dns-cache(no);
+    use-fqdn (no);
+    create-dirs (no);
+    mark-freq(300);
+    stats-freq(3600);
+    keep-hostname (yes);
+
+    owner(root);
+    group(adm);
+    perm(0640);
+};
+
+source sys {
+    file ("/proc/kmsg" program-override("kernel") flags(kernel));
+    system();
+};
+
+source self {
+    internal();
+};
+
+destination self	{ file("/var/log/syslog/syslog-ng"); };
+
+destination kerninfo	{ file("/var/log/kernel/info"); };
+destination kernwarn	{ file("/var/log/kernel/warnings"); };
+destination kernerr	{ file("/var/log/kernel/errors"); };
+
+destination userinfo	{ file("/var/log/user/info"); };
+destination userwarn	{ file("/var/log/user/warnings"); };
+destination usererr	{ file("/var/log/user/errors"); };
+
+destination mailinfo	{ file("/var/log/mail/info"); };
+destination mailwarn	{ file("/var/log/mail/warnings"); };
+destination mailerr	{ file("/var/log/mail/errors"); };
+destination mailall	{ file("/var/log/mail/all" flush-lines(10)); };
+
+destination auth	{ file("/var/log/auth/messages"); };
+destination authpriv	{ file("/var/log/auth/secure"); };
+destination authall	{ file("/var/log/auth/all"); };
+
+destination daemoninfo	{ file("/var/log/daemons/info"); };
+destination daemonwarn	{ file("/var/log/daemons/warnings"); };
+destination daemonerr	{ file("/var/log/daemons/errors"); };
+
+destination lprinfo	{ file("/var/log/lpr/info"); };
+destination lprwarn	{ file("/var/log/lpr/warnings"); };
+destination lprerr	{ file("/var/log/lpr/error"); };
+
+destination newsinfo	{ file("/var/log/news/info"); };
+destination newswarn	{ file("/var/log/news/warnings"); };
+destination newserr	{ file("/var/log/news/error"); };
+
+destination uucpinfo	{ file("/var/log/uucp/info"); };
+destination uucpwarn	{ file("/var/log/uucp/warnings"); };
+destination uucperr	{ file("/var/log/uucp/error"); };
+
+destination croninfo	{ file("/var/log/cron/info"); };
+destination cronwarn	{ file("/var/log/cron/warnings"); };
+destination cronerr	{ file("/var/log/cron/error"); };
+
+destination ftpinfo	{ file("/var/log/ftp/info"); };
+destination ftpwarn	{ file("/var/log/ftp/warnings"); };
+destination ftperr	{ file("/var/log/ftp/error"); };
+
+destination mesg	{ file("/var/log/syslog/messages"); };
+destination alert	{ file("/var/log/syslog/alert"); };
+destination emerg	{ file("/var/log/syslog/emerg"); };
+destination spool	{ file("/var/log/syslog/spooler"); };
+destination boot	{ file("/var/log/syslog/boot"); };
+destination consoleall	{ file("/dev/tty12"); };
+
+# Generic filters
+filter f_info		{ level(debug,info,notice); };
+filter f_warn		{ level(warn); };
+filter f_error		{ level(error); };
+filter f_emergency	{ level(emerg); };
+filter f_alert		{ level(alert); };
+filter f_mail		{ facility(mail); };
+filter f_cron		{ facility(cron); };
+filter f_kernel		{ facility(kern); };
+filter f_lpr		{ facility(lpr); };
+filter f_news		{ facility(news); };
+filter f_daemon		{ facility(daemon); };
+filter f_uucp		{ facility(uucp); };
+filter f_ftp		{ facility(ftp); };
+
+# Specific filters
+filter f_authall	{ facility(auth,authpriv); };
+filter f_auth		{ facility(auth); };
+filter f_authpriv	{ facility(authpriv); };
+filter f_user		{ facility(user); };
+
+# Log anything (except mail) of level info or higher.  Don't log private authentication messages
+filter f_mesgs		{ level(info) and not facility(mail,authpriv); };
+
+# authpriv logging (restricted)
+filter f_secure		{ facility(authpriv); };
+filter f_spool		{ facility(uucp) or (facility(news) and level(crit)); };
+filter f_boot		{ facility(local7); };
+filter f_syslog		{ not facility(auth, authpriv); };
+
+# Source additional configuration files (.conf extension only)
+# should be placed before all standard log statements for allow to use flags(final)
+# look to https://lists.balabit.hu/pipermail/syslog-ng/2019-March/025118.html
+@include "/etc/syslog-ng/conf.d/*.conf"
+
+# Logging own Syslog-ng's messages
+log { source(self); destination(self); };
+
+# Log to logfiles
+log { source(sys); filter(f_kernel); filter(f_info); destination(kerninfo); };
+log { source(sys); filter(f_kernel); filter(f_warn); destination(kernwarn); };
+log { source(sys); filter(f_kernel); filter(f_error); destination(kernerr); };
+
+log { source(sys); filter(f_user); filter(f_info); destination(userinfo); };
+log { source(sys); filter(f_user); filter(f_warn); destination(userwarn); };
+log { source(sys); filter(f_user); filter(f_error); destination(usererr); };
+
+log { source(sys); filter(f_mail); filter(f_info); destination(mailinfo); };
+log { source(sys); filter(f_mail); filter(f_warn); destination(mailwarn); };
+log { source(sys); filter(f_mail); filter(f_error); destination(mailerr); };
+log { source(sys); filter(f_mail); destination(mailall); };
+
+log { source(sys); filter(f_daemon); filter(f_info); destination(daemoninfo); };
+log { source(sys); filter(f_daemon); filter(f_warn); destination(daemonwarn); };
+log { source(sys); filter(f_daemon); filter(f_error); destination(daemonerr); };
+
+log { source(sys); filter(f_authall); destination(authall); };
+log { source(sys); filter(f_auth); destination(auth); };
+log { source(sys); filter(f_authpriv); destination(authpriv); };
+
+log { source(sys); filter(f_lpr); filter(f_info); destination(lprinfo); };
+log { source(sys); filter(f_lpr); filter(f_warn); destination(lprwarn); };
+log { source(sys); filter(f_lpr); filter(f_error); destination(lprerr); };
+
+log { source(sys); filter(f_news); filter(f_info); destination(newsinfo); };
+log { source(sys); filter(f_news); filter(f_warn); destination(newswarn); };
+log { source(sys); filter(f_news); filter(f_error); destination(newserr); };
+
+log { source(sys); filter(f_uucp); filter(f_info); destination(uucpinfo); };
+log { source(sys); filter(f_uucp); filter(f_warn); destination(uucpwarn); };
+log { source(sys); filter(f_uucp); filter(f_error); destination(uucperr); };
+
+log { source(sys); filter(f_cron); filter(f_info); destination(croninfo); };
+log { source(sys); filter(f_cron); filter(f_warn); destination(cronwarn); };
+log { source(sys); filter(f_cron); filter(f_error); destination(cronerr); };
+
+log { source(sys); filter(f_ftp); filter(f_info); destination(ftpinfo); };
+log { source(sys); filter(f_ftp); filter(f_warn); destination(ftpwarn); };
+log { source(sys); filter(f_ftp); filter(f_error); destination(ftperr); };
+
+log { source(sys); filter(f_mesgs); destination(mesg); };
+log { source(sys); filter(f_alert); destination(alert); };
+log { source(sys); filter(f_emergency); destination(emerg); };
+log { source(sys); filter(f_spool); destination(spool); };
+log { source(sys); filter(f_boot); destination(boot); };
+
+# Log to console
+log { source(sys); destination(consoleall); };
diff --git a/altlinux/syslog-ng.init b/altlinux/syslog-ng.init
new file mode 100644
index 000000000..1e58e0a76
--- /dev/null
+++ b/altlinux/syslog-ng.init
@@ -0,0 +1,123 @@
+#!/bin/sh
+#
+# syslog-ng      Starts syslog-ng.
+#
+#
+# chkconfig: 2345 30 99
+# description: Syslog is the facility by which many daemons use to log \
+# messages to various system log files.  Syslog-ng is a more powerful \
+# system logger than syslog.
+
+### BEGIN INIT INFO
+# Provides:          syslog
+# Required-Start:    $remote_fs $time
+# Required-Stop:     $remote_fs $time
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start syslog-ng daemon at boot time
+# Description:       Syslog is the facility by which many daemons use
+#  to log messages to various system log files. Syslog-ng is a more
+#  powerful system logger than syslog.
+### END INIT INFO
+
+WITHOUT_RC_COMPAT=1
+
+# Source function library.
+. /etc/init.d/functions
+
+SourceIfNotEmpty /etc/sysconfig/syslog-ng
+
+RETVAL=0
+DAEMON=/sbin/syslog-ng
+LOCKFILE=/var/lock/subsys/syslog-ng
+PIDFILE=/var/run/syslog-ng.pid
+
+[ -x /sbin/syslog-ng ] || exit 0
+
+do_config_sanity_check()
+{
+	action "Checking syslog-ng configuration:" "$DAEMON" -s || exit
+}
+
+start()
+{
+	start_daemon --lockfile "$LOCKFILE" --pidfile "$PIDFILE" -- "$DAEMON" "$SYSLOG_NG_OPTIONS"
+	RETVAL=$?
+	return $RETVAL
+}
+
+stop()
+{
+	stop_daemon --lockfile "$LOCKFILE" --pidfile "$PIDFILE" -- "$DAEMON"
+	RETVAL=$?
+	return $RETVAL
+}
+
+restart()
+{
+	do_config_sanity_check
+	stop
+	start
+}
+
+reload()
+{
+    stop_daemon --pidfile "$PIDFILE" -HUP syslog-ng
+    RETVAL=$?
+    return $RETVAL
+}
+
+
+# See how we were called.
+case "$1" in
+	start)
+		do_config_sanity_check
+		start
+		;;
+	stop)
+		stop
+		;;
+	status)
+		status --pidfile "$PIDFILE" syslog-ng
+		RETVAL=$?
+		;;
+	restart)
+		do_config_sanity_check
+		restart
+		;;
+	reload)
+		do_config_sanity_check
+		reload
+		;;
+	check)
+		do_config_sanity_check
+		;;
+	condstart)
+		if [ ! -e "$LOCKFILE" ]; then
+			do_config_sanity_check
+			start
+		fi
+		;;
+	condstop)
+		if [ -e "$LOCKFILE" ]; then
+			stop
+		fi
+		;;
+	condrestart)
+		if [ -e "$LOCKFILE" ]; then
+			do_config_sanity_check
+			restart
+		fi
+		;;
+	condreload)
+		if [ -e "$LOCKFILE" ]; then
+			do_config_sanity_check
+			reload
+		fi
+		;;
+	*)
+		msg_usage "${0##*/} {start|stop|status|restart|reload|check|condstart|condstop|condrestart|condreload}"
+		RETVAL=1
+esac
+
+exit $RETVAL
diff --git a/altlinux/syslog-ng.service b/altlinux/syslog-ng.service
new file mode 100644
index 000000000..139ec1dec
--- /dev/null
+++ b/altlinux/syslog-ng.service
@@ -0,0 +1,16 @@
+
+[Unit]
+Description=System Logger Daemon
+Documentation=man:syslog-ng(8)
+
+[Service]
+Type=notify
+EnvironmentFile=-/etc/sysconfig/syslog-ng
+ExecStart=/sbin/syslog-ng -F $SYSLOG_NG_OPTIONS --pidfile /var/run/syslog-ng.pid
+ExecReload=/bin/kill -HUP $MAINPID
+StandardOutput=journal
+StandardError=journal
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/altlinux/syslog-ng.spec b/altlinux/syslog-ng.spec
new file mode 100644
index 000000000..46307c0dd
--- /dev/null
+++ b/altlinux/syslog-ng.spec
@@ -0,0 +1,794 @@
+#!TODO
+# chroot support
+# improve modules packaging (add config examples)
+
+%define _unpackaged_files_terminate_build 1
+
+%def_enable	geoip2
+%def_enable	smtp
+%def_enable	json
+%def_disable	amqp
+%def_enable	mongodb
+%def_enable	curl
+%def_enable	systemd
+%def_enable	snmp
+%def_enable	redis
+
+# static delel library
+%def_disable	native_connector
+
+# https://lists.altlinux.org/pipermail/devel/2019-March/207208.html
+%def_disable	unit_tests
+
+Name: syslog-ng
+Version: 3.34.1
+Release: alt1
+
+Summary: syslog-ng daemon
+Group: System/Kernel and hardware
+License: GPL-2.0-or-later and LGPL-2.1-or-later
+URL: https://www.syslog-ng.com
+
+Provides: syslogd-daemon
+Requires(pre): syslog-common
+Conflicts: klogd < 1.4.1-alt7
+
+Provides: libeventlog = %EVR
+Obsoletes: libeventlog < %EVR
+
+Source: %name-%version.tar.gz
+# VCS git
+#https://github.com/balabit/syslog-ng.git
+
+Patch1: %name-%version-%release.patch
+
+# Automatically added by buildreq on Fri Apr 19 2013 (-bi)
+# optimized out: elfutils libcom_err-devel libkrb5-devel pkg-config python-base python-modules
+# base config:
+# + SSL/TLS
+# + PCRE
+# + SQL
+BuildRequires: flex autoconf-archive glib2-devel libcap-devel libdbi-devel
+BuildRequires: libnet2-devel libpcre-devel libpopt-devel
+BuildRequires: libssl-devel libuuid-devel libivykis-devel
+BuildRequires: xsltproc docbook-style-xsl
+
+BuildRequires: python3-dev
+%add_python3_path %_libdir/syslog-ng/python/syslogng
+%add_python3_path %_libdir/syslog-ng/python/syslogng/debuggercli
+%add_python3_req_skip editline.editline
+
+# temporary for task 269916 (p9)
+BuildRequires(pre): rpm-macros-python3
+
+%{?_enable_geoip2:BuildRequires: libmaxminddb-devel}
+%{?_enable_json:BuildRequires: libjson-c-devel}
+%{?_enable_smtp:BuildRequires: libesmtp-devel}
+%{?_enable_amqp:BuildRequires: librabbitmq-c-devel}
+%{?_enable_mongodb:BuildRequires: libmongoc-devel}
+%{?_enable_curl:BuildRequires: libcurl-devel}
+%{?_enable_systemd:BuildRequires: libsystemd-devel}
+%{?_enable_snmp:BuildRequires: libnet-snmp-devel}
+%{?_enable_redis:BuildRequires: libhiredis-devel}
+
+%if_enabled unit_tests
+BuildRequires: libcriterion-devel
+BuildRequires: CUnit-devel
+BuildRequires: valgrind-devel
+%endif
+
+%description
+syslog-ng, as the name shows, is a syslogd replacement, but with new
+functionality for the new generation. The original syslogd allows
+messages only to be sorted based on priority/facility pairs; syslog-ng
+adds the possibility to filter based on message contents using regular
+expressions. The new configuration scheme is intuitive and powerful.
+Forwarding logs over TCP and remembering all forwarding hops makes it
+ideal for firewalled environments.
+
+%package scl
+Summary: SCL plugins for syslog-ng
+Group: System/Libraries
+BuildArch: noarch
+Requires: %name = %version-%release
+
+%description scl
+Source Configuration Library plugins for syslog-ng configuration files
+
+%package debun
+Summary: DEBUg buNdle generator for syslog-ng
+Group: System/Kernel and hardware
+BuildArch: noarch
+
+%description debun
+The syslog-ng-debun tool collects and saves information about your
+installation, making troubleshooting easier, especially if you ask
+help about your related problem.
+
+It packaged separately because it have many requirements but used
+not often
+
+%package libdbi
+Summary: libdbi support for %{name}
+Group: System/Libraries
+
+%description libdbi
+This module supports a large number of database systems via libdbi.
+
+%package geoip2
+Summary: GeoIP2 support for %{name}
+Group: System/Libraries
+Obsoletes: %name-geoip
+
+%description geoip2
+This module provides a function to get GeoIP2 info from an IPv4 address.
+
+%package smtp
+Summary: SMTP destination support for %{name}
+Group: System/Libraries
+
+%description smtp
+This module provides SMTP destination support for %{name}.
+
+%package json
+Summary: JSON support for %{name}
+Group: System/Libraries
+
+%description json
+This module provides JSON parsing & formatting support for %{name}.
+
+%package amqp
+Summary: AMQP support for %{name}
+Group: System/Libraries
+
+%description amqp
+This module provides AMQP destination support for %{name}.
+
+%package mongodb
+Summary: mongodb support for %{name}
+Group: System/Libraries
+
+%description mongodb
+This module supports the mongodb database via libmongoc
+
+%package http
+Summary: http support for %{name}
+Group: System/Libraries
+Provides: %name-curl = %EVR
+Obsoletes: %name-curl < %EVR
+
+%description http
+The http destination can send the log as HTTP requests to an HTTP server.
+It supports setting url, method, headers, user\_agent, authentication
+and body. Only PUT and POST method is supported so far. If the method is
+not set, POST will be used.
+
+%package journal
+Summary: Systemd journal support for %{name}
+Group: System/Libraries
+
+%description journal
+This module provides systemd journal support for %{name}.
+
+%package afsnmp
+Summary: SNMP support for %{name}
+Group: System/Libraries
+
+%description afsnmp
+This module provides SNMP support for %{name}.
+
+%package redis
+Summary: redis support for %{name}
+Group: System/Libraries
+
+%description redis
+This module provides redis support for %{name}.
+
+%package python3
+Summary: Python destination support for syslog-ng
+Requires: %name = %version-%release
+Group: System/Libraries
+
+%description python3
+This package provides python destination support for syslog-ng
+
+%package -n python3-module-%name-debuggercli
+Summary: Debug bundle generator script
+Requires: %name-python3 = %version-%release
+Group: System/Libraries
+# https://lists.balabit.hu/pipermail/syslog-ng/2019-August/025404.html
+#BuildArch: noarch
+
+%description -n python3-module-%name-debuggercli
+This package provides debug bundle generator script for
+collecting debug related information.
+
+%package devel
+Summary: Development files for %name
+Group: Development/C
+Requires: %name = %version-%release  libivykis-devel
+Provides: libeventlog-devel = %EVR
+Obsoletes: libeventlog-devel < %EVR
+
+%description devel
+The %name-devel package contains libraries and header files for
+developing applications that use %name.
+
+%prep
+%setup -q
+%patch1 -p1
+patch -p1 < altlinux/syslog-ng-3.19.1-README-build-config.patch
+
+%if_enabled amqp
+pushd modules/afamqp/rabbitmq-c
+tar -xf ../../../altlinux/rabbitmq-c-v0.3.0-80-gc9f6312.tar.gz
+autoreconf -i
+popd
+%endif
+
+# copied from "syslog-ng-3.6.1/autogen.sh"
+libtoolize --force --copy
+aclocal -I m4 --install
+#sed -i -e 's/PKG_PROG_PKG_CONFIG(\[0\.16\])/PKG_PROG_PKG_CONFIG([0.14])/g' aclocal.m4
+autoheader
+automake --foreign --add-missing --copy
+autoconf
+
+# fix perl path
+%{__sed} -i 's|^#!/usr/local/bin/perl|#!%{__perl}|' contrib/relogger.pl
+
+find -type f -name "*.py" -exec sed -i 's|/usr/bin/env python.*|%__python3|' {} \;
+
+%build
+skip_submodules=1 ./autogen.sh
+#add_optflags -levtlog -livykis -lgmodule-2.0 -lglib-2.0 -lpcre
+
+# configure is searching libmongoc instead of libmongoc-1.0 via pkg-config
+#export LIBMONGO_CFLAGS="-I%_includedir/libmongoc-1.0 -I%_includedir/libbson-1.0"
+#export LIBMONGO_LIBS="-lsasl2 -lssl -lcrypto -lrt -lmongoc-1.0 -lbson-1.0"
+
+%if_enabled native_connector
+%{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects}
+%endif
+
+%configure \
+ --sbindir=/sbin \
+ --sysconfdir=%_sysconfdir/%name \
+ --localstatedir=/var/lib/syslog-ng \
+ --datadir=%_datadir \
+ --mandir=%_mandir \
+ --with-ivykis=system \
+ --with-pidfile-dir=/var/run \
+ --with-module-dir=%_libdir/%name \
+%if_enabled systemd
+ --with-systemdsystemunitdir=%_unitdir \
+%endif
+ --enable-ipv6 \
+ --enable-dynamic-linking \
+ --enable-spoof-source \
+ --with-embedded-crypto \
+ --enable-manpages \
+ --disable-java \
+ --disable-java-modules \
+ --with-python=3 \
+ %{subst_enable geoip2} \
+ %{subst_enable smtp} \
+ %{subst_enable json} \
+ %{subst_enable amqp} \
+ %{subst_enable systemd} \
+%if_enabled unit_tests
+ --enable-valgrind \
+%endif
+%if_enabled mongodb
+ %{subst_enable mongodb} \
+ --with-mongoc=system \
+%endif
+ #
+
+##
+# disabled while auto* from autogen.sh is used
+## fixed libraries path in RPATH
+#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+##
+
+%make_build XSL_STYLESHEET=/usr/share/xml/docbook/xsl-stylesheets/manpages/docbook.xsl
+
+%if_enabled unit_tests
+%check
+make check
+%endif
+
+%install
+mkdir -p %buildroot%_initdir
+make DESTDIR=%buildroot sbindir=/sbin sysconfdir=%_sysconfdir/%name \
+  mandir=%_mandir prefix=%prefix install
+
+install -m755 -D -p altlinux/%name.init %buildroot%_initdir/%name
+
+#install -m640 -D -p altlinux/%name.conf %buildroot%_sysconfdir/%name/%name.conf
+mkdir -p %buildroot%_sysconfdir/%name
+VER=`echo %version | sed "s/^\([0-9]\+\.[0-9]\+\).*/\1/"`
+sed "s/@ver@/$VER/" < altlinux/%name.conf > %buildroot%_sysconfdir/%name/%name.conf
+sed "s/@ver@/$VER/" -i altlinux/conf.d.example/*.conf
+
+# exit with 1 if "scl/*/*.conf" not found
+sed '/scl\/\*\/\*.conf/{s||%_datadir/%name/include/scl/*/*.conf|;h};${x;/./{x;q0};x;q1}' -i %buildroot%_sysconfdir/%name/scl.conf
+
+install -m640 -D -p altlinux/%name.sysconfig %buildroot%_sysconfdir/sysconfig/%name
+%if_enabled systemd
+install -m644 -D -p altlinux/%name.service %buildroot%_unitdir/%name.service
+%endif
+rm -f %buildroot%_unitdir/%{name}@.service
+
+install -m644 -p config.h %buildroot%_includedir/%name
+
+mkdir -p %buildroot%_localstatedir/%name
+mkdir -p %buildroot%_sysconfdir/%name/conf.d
+
+# installation of xsd  broken in 3.6.3
+install -c -m 644 doc/xsd/patterndb-1.xsd doc/xsd/patterndb-2.xsd doc/xsd/patterndb-3.xsd doc/xsd/patterndb-4.xsd \
+    %buildroot%_datadir/%name/xsd
+
+find %buildroot -name "*.la" -exec rm -f {} +
+
+%if_disabled native_connector
+rm -f %buildroot%_pkgconfigdir/%name-native-connector.pc
+rm -f %buildroot%_libdir/libsyslog-ng-native-connector.a
+%endif
+
+%post
+%post_service %name
+if [ $1 = 1 ]; then
+    [ -x /sbin/syslogd ] && /sbin/chkconfig --level 2345 syslogd off ||:
+    [ -x /sbin/klogd ] && /sbin/chkconfig --level 2345 klogd off ||:
+fi
+
+%triggerpostun -- %name <= 3.0.10-alt1
+if [ -f %_sysconfdir/%name.conf.rpmsave ]; then
+	echo "legacy configuration detected, new config moved to %_sysconfdir/%name"
+	echo "please review and apply local changes from %_sysconfdir/%name.conf.rpmsave config!"
+fi
+
+%preun
+%preun_service %name
+if [ $1 = 0 ]; then
+    [ -x /sbin/syslogd ] && /sbin/chkconfig --level 2345 syslogd on ||:
+    [ -x /sbin/klogd ] && /sbin/chkconfig --level 2345 klogd on ||:
+fi
+
+%files
+%doc AUTHORS COPYING NEWS.md README.md README-build-config
+%doc doc/security/*.txt
+%doc contrib/{syslog2ng,syslog-ng.vim,relogger.pl,syslog-ng.conf.doc,README.syslog-ng-debun}
+%doc altlinux/conf.d.example
+
+%dir %_sysconfdir/%name
+%dir %_sysconfdir/%name/patterndb.d
+%dir %_sysconfdir/%name/conf.d
+%config(noreplace) %_sysconfdir/%name/%name.conf
+%config(noreplace) %_sysconfdir/sysconfig/%name
+%_initdir/%name
+%if_enabled systemd
+%_unitdir/%name.service
+%endif
+
+/sbin/%name
+/sbin/%name-ctl
+
+%_bindir/loggen
+%_bindir/pdbtool
+%_bindir/update-patterndb
+%_bindir/dqtool
+%_bindir/persist-tool
+
+%_bindir/slogencrypt
+%_bindir/slogkey
+%_bindir/slogverify
+
+%dir %_libdir/%name
+# basic plugin set
+%_libdir/%name/libaffile.so
+%_libdir/%name/libafprog.so
+%_libdir/%name/libafsocket.so
+%_libdir/%name/libafstomp.so
+%_libdir/%name/libafuser.so
+%_libdir/%name/libbasicfuncs.so
+%_libdir/%name/libconfgen.so
+%_libdir/%name/libcryptofuncs.so
+%_libdir/%name/libcsvparser.so
+%_libdir/%name/libdbparser.so
+%_libdir/%name/libgraphite.so
+%_libdir/%name/liblinux-kmsg-format.so
+%_libdir/%name/libpseudofile.so
+%_libdir/%name/libsyslogformat.so
+%_libdir/%name/libsystem-source.so
+%_libdir/%name/libkvformat.so
+# added in 3.8.1-alt1
+%_libdir/%name/libadd-contextual-data.so
+%_libdir/%name/libcef.so
+#_libdir/%name/libdate.so - removed in 3.24.1-alt1
+%_libdir/%name/libdisk-buffer.so
+# added in 3.12.1-alt1
+%_libdir/%name/libmap-value-pairs.so
+%_libdir/%name/libstardate.so
+%_libdir/%name/libtags-parser.so
+%_libdir/%name/libtfgetent.so
+%_libdir/%name/libxml.so
+# added in 3.13.1-alt1
+%_libdir/%name/libappmodel.so
+# added in 3.18.1-alt1
+%_libdir/%name/libexamples.so
+%_libdir/%name/libhook-commands.so
+%dir %_libdir/%name/loggen
+%_libdir/%name/loggen/libloggen_socket_plugin.so
+%_libdir/%name/loggen/libloggen_ssl_plugin.so
+# added in 3.24.1-alt1
+%_libdir/%name/libtimestamp.so
+# added in 3.28.1-alt1
+%_libdir/%name/libazure-auth-header.so
+%_libdir/%name/libsecure-logging.so
+# added in 3.34.1-alt1
+%_libdir/%name/libregexp-parser.so
+
+%_libdir/lib%name-*.so.*
+%_libdir/libevtlog-*.so.*
+%_libdir/libloggen_helper-*.so.*
+%_libdir/libloggen_plugin-*.so.*
+%_libdir/libsecret-storage.so.*
+
+%dir %_datadir/%name
+%dir %_datadir/%name/include
+%dir %_datadir/%name/xsd
+%_datadir/%name/xsd/*
+
+%exclude %_man1dir/%name-debun*
+%_man1dir/*
+%_man5dir/*
+%_man7dir/*
+%_man8dir/*
+
+%dir %_localstatedir/%name
+
+%files scl
+%config(noreplace) %_sysconfdir/%name/scl.conf
+%_datadir/%name/include/scl
+
+%files debun
+%_man1dir/%name-debun*
+/sbin/%name-debun
+
+%files libdbi
+%_libdir/%name/libafsql.so
+
+%if_enabled geoip2
+%files geoip2
+%_libdir/%name/libgeoip2-plugin.so
+%endif
+
+%if_enabled smtp
+%files smtp
+%_libdir/%name/libafsmtp.so
+%endif
+
+%if_enabled json
+%files json
+%_libdir/%name/libjson-plugin.so
+%endif
+
+%if_enabled amqp
+%files amqp
+%_libdir/%name/libafamqp.so
+%endif
+
+%if_enabled mongodb
+%files mongodb
+%_libdir/%name/libafmongodb.so
+%endif
+
+%if_enabled curl
+%files http
+%_libdir/%name/libhttp.so
+%endif
+
+%if_enabled systemd
+%files journal
+%_libdir/%name/libsdjournal.so
+%endif
+
+%if_enabled snmp
+%files afsnmp
+%_libdir/%name/libafsnmp.so
+%endif
+
+%if_enabled redis
+%files redis
+%_libdir/%name/libredis.so
+%endif
+
+%files python3
+%_libdir/%name/libmod-python.so
+
+%files -n python3-module-%name-debuggercli
+#%dir %python_sitelibdir_noarch/syslogng/
+#%python_sitelibdir_noarch/syslogng/*.py*
+#%python_sitelibdir_noarch/syslogng-1.0-py2.7.egg-info
+
+#%dir %python_sitelibdir_noarch/syslogng/debuggercli
+#%python_sitelibdir_noarch/syslogng/debuggercli/*.py*
+
+%dir %_libdir/%name/python
+%_libdir/%name/python/*
+
+%files devel
+%dir %_includedir/%name
+%_includedir/%name/*
+
+%dir %_datadir/%name/tools
+%_datadir/%name/tools/*
+
+%_libdir/libevtlog.so
+%_libdir/libloggen_helper.so
+%_libdir/libloggen_plugin.so
+%_libdir/libsecret-storage.so
+
+%_libdir/lib%name.so
+%_pkgconfigdir/%name.pc
+
+%if_enabled native_connector
+%_pkgconfigdir/%name-native-connector.pc
+%_libdir/libsyslog-ng-native-connector.a
+%endif
+
+%changelog
+* Sun Oct 31 2021 Sergey Y. Afonin <asy@altlinux.org> 3.34.1-alt1
+- 3.34.1
+- updated License tag to SPDX syntax, fixed GPL/LGPL versions
+- disabled build native connector static library (fixed build with LTO)
+
+* Tue Jun 08 2021 Sergey Y. Afonin <asy@altlinux.org> 3.32.1-alt1
+- 3.32.1
+- fixed build without rpm-build-python (ALT #40178)
+
+* Sun Mar 28 2021 Sergey Y. Afonin <asy@altlinux.org> 3.31.2-alt1
+- 3.31.2
+
+* Thu Aug 20 2020 Sergey Y. Afonin <asy@altlinux.org> 3.28.1-alt1
+- 3.28.1
+- syslog-ng-snmp replaced by syslog-ng-afsnmp
+
+* Sun Oct 20 2019 Sergey Y. Afonin <asy@altlinux.org> 3.24.1-alt2
+- added conf.d.example/00-redefine-source-sys.conf: redefinition
+  "source sys" for kernels before 3.5 (for 2.6.32-ovz-el formally)
+- added syslog-ng-redis subpackage
+- removed python-dev from BuildRequires
+- renamed syslog-ng-python to syslog-ng-python3
+- renamed python-module-syslog-ng-debuggercli to python3-module-syslog-ng-debuggercli
+
+* Fri Oct 11 2019 Sergey Y. Afonin <asy@altlinux.org> 3.24.1-alt1
+- 3.24.1
+- built syslog-ng-geoip2 instead of syslog-ng-geoip
+- switched to python3-dev
+- syslog-ng.conf:
+  + used system() source instead of unix-dgram ("/dev/log") (ALT #36454)
+  + logging own Syslog-ng's messages to /var/log/syslog/syslog-ng
+
+* Wed Aug 14 2019 Sergey Y. Afonin <asy@altlinux.org> 3.22.1-alt1
+- 3.22.1
+
+* Wed Mar 20 2019 Sergey Y. Afonin <asy@altlinux.ru> 3.20.1-alt4
+- 00-redefine-consoleall.conf: use file("/dev/null") by default
+- packaged syslog-ng-debun (as separated package)
+
+* Tue Mar 19 2019 Sergey Y. Afonin <asy@altlinux.ru> 3.20.1-alt3
+- updated examples for syslog-ng/conf.d
+- syslog-ng.conf: included scl.conf, added comments
+- packaged SCL as separated package, updated path in scl.conf
+
+* Fri Mar 08 2019 Sergey Y. Afonin <asy@altlinux.ru> 3.20.1-alt2
+- syslog-ng.conf: placed @include "/etc/syslog-ng/conf.d/*.conf"
+  before all standard log statements
+- added some examples for syslog-ng/conf.d to %%doc
+- set _unpackaged_files_terminate_build to 1
+- packed /usr/bin/persist-tool
+
+* Tue Mar 05 2019 Sergey Y. Afonin <asy@altlinux.ru> 3.20.1-alt1
+- 3.20.1
+
+* Sat Mar 02 2019 Sergey Y. Afonin <asy@altlinux.ru> 3.19.1-alt1
+- 3.19.1
+- updated URL
+- created and packaged README-build-config
+
+* Mon Oct 22 2018 Sergey Y. Afonin <asy@altlinux.ru> 3.18.1-alt1
+- 3.18.1 (ALT #35411)
+- removed subpackage devel-test
+
+* Wed Oct 10 2018 Grigory Ustinov <grenka@altlinux.org> 3.13.2-alt2
+- Rebuild without libwrap.
+
+* Wed Aug 29 2018 Grigory Ustinov <grenka@altlinux.org> 3.13.2-alt1.1
+- NMU: Rebuild with new openssl 1.1.0.
+
+* Mon Dec 11 2017 Alexey Shabalin <shaba@altlinux.ru> 3.13.2-alt1
+- 3.13.2
+- Exclude package debug bundle generator for avoid many requirements (ATL #34311)
+
+* Mon Dec 04 2017 Alexey Shabalin <shaba@altlinux.ru> 3.13.1-alt1
+- 3.13.1
+- add condition for build with systemd journal support
+- split package for systemd journal support
+- simplify confitions for BR:
+
+* Fri Dec 01 2017 Alexey Shabalin <shaba@altlinux.ru> 3.12.1-alt1
+- 3.12.1
+- build with new libmongoc-1.0 (1.8.2)
+- build with systemd support
+
+* Mon Oct 16 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 3.8.1-alt2
+- Rebuilt with libdbi-0.9.0.
+
+* Fri Jun 23 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 3.8.1-alt1.2
+- Update syslong-ng-json dependencies
+
+* Tue May 02 2017 Andrey Cherepanov <cas@altlinux.org> 3.8.1-alt1.1
+- Rebuild with new version of libjson
+
+* Wed Aug 24 2016 Sergey Y. Afonin <asy@altlinux.ru> 3.8.1-alt1
+- 3.8.1
+
+* Mon May 23 2016 Sergey Y. Afonin <asy@altlinux.ru> 3.7.3-alt1
+- 3.7.3
+
+* Thu Jun 25 2015 Sergey Y. Afonin <asy@altlinux.ru> 3.6.3-alt2
+- changed default configuration:
+  + removed "unix-dgram ("/var/lib/klogd/dev/log");"
+    (/var/lib/klogd/dev/log is a part of klogd package)
+  + changed "_" to "-" in names of options
+
+* Sun Jun 21 2015 Sergey Y. Afonin <asy@altlinux.ru> 3.6.3-alt1
+- 3.6.3
+
+* Sat Dec 06 2014 Sergey Y. Afonin <asy@altlinux.ru> 3.6.1-alt1
+- 3.6.1 (ALT #30325)
+- new subpackage devel-test
+- added disabling/enabling klogd in post/preun (ALT #28895#c12)
+
+* Thu Dec 26 2013 Sergey Y. Afonin <asy@altlinux.ru> 3.4.7-alt1
+- 3.4.7 (git20131225)
+
+* Thu Dec 05 2013 Sergey Y. Afonin <asy@altlinux.ru> 3.4.6-alt1.git20131204
+- 3.4.6 (git20131204)
+
+* Wed Sep 11 2013 Sergey Y. Afonin <asy@altlinux.ru> 3.4.3-alt2.git20130813
+- changed default permissions (ALT #29312)
+
+* Thu Aug 15 2013 L.A. Kostis <lakostis@altlinux.ru> 3.4.3-alt1.git20130813
+- Updated to v3.0.10-1507-g64d670f GIT.
+
+* Sun Jun 02 2013 L.A. Kostis <lakostis@altlinux.ru> 3.4.1-alt1.git20130528
+- packaging changes (see TODO for full list):
+  + .conf: sync config file with RedHat/upstream changes.
+  + .spec: notify about configuration changes.
+  + .spec: enhance doc section.
+  + .spec: split plugins to separate packages.
+  + .spec: fix rpath issue..
+  + .spec: fix module_dir.
+
+* Tue May 28 2013 L.A. Kostis <lakostis@altlinux.ru> 3.4.1-alt0.git20130528
+- Prepare for first build.
+- Use GIT 20130528 snapshot.
+
+* Mon Apr 15 2013 Sergey Y. Afonin <asy@altlinux.ru> 3.4.1-alt0
+- 3.4.1 (some parts of 3.4.1-1.fc19 spec used)
+
+* Mon Jan 31 2011 Sergey Alembekov <rt@altlinux.ru> 3.0.10-alt1
+- 3.0.10
+
+* Tue Dec 07 2010 Igor Vlasenko <viy@altlinux.ru> 3.0.5-alt2.1.1
+- rebuild with new openssl and/or boost by request of git.alt administrator
+
+* Tue Mar 09 2010 Sergey Alembekov <rt@altlinux.ru> 3.0.5-alt2.1
+- #23070 again :)
+
+* Mon Mar 08 2010 Sergey Alembekov <rt@altlinux.ru> 3.0.5-alt2
+- new syntax for default configuration; (#23070)
+- fix pid creation (#23071)
+
+* Thu Jan 28 2010 Sergey Alembekov <rt@altlinux.ru> 3.0.5-alt1
+- 3.0.5
+
+* Mon Jan 12 2009 Dmitry Lebkov <dlebkov@altlinux.ru> 2.1.3-alt1
+- 2.1.3
+
+* Sun Apr 06 2008 Dmitry Lebkov <dlebkov@altlinux.ru> 2.0.9-alt1
+- 2.0.9
+- init-script changes:
+  + add 'check' action -- validate syslog-ng.conf syntax;
+  + validate syslog-ng.conf syntax before start|restart|reload;
+- change default configuration:
+  + 'MARK' message every 5 min.;
+  + 'STATS' message every 1 hour (#14686)
+
+* Fri Feb 01 2008 Dmitry Lebkov <dlebkov@altlinux.ru> 2.0.8-alt1
+- 2.0.8
+
+* Thu Jan 10 2008 Dmitry Lebkov <dlebkov@altlinux.ru> 2.0.7-alt1
+- 2.0.7
+
+* Fri Jul 27 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.0.5-alt1
+- 2.0.5
+- add '--enable-tcp-wrapper' and '--enable-spoof-source'
+  configure flags
+
+
+* Sun Apr 01 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.0.3-alt1
+- fix path for syslog-ng.persist
+
+* Tue Mar 27 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.0.3-alt0
+- 2.0.3
+
+* Sat Feb 03 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.0.2-alt0
+- 2.0.2
+
+* Tue Jan 09 2007 Dmitry Lebkov <dlebkov@altlinux.ru> 2.0.1-alt0
+- 2.0.1
+
+* Tue Apr 13 2004 Stanislav Ievlev <inger@altlinux.org> 1.6.2-alt2
+- require resent libol (#3823)
+
+* Wed Mar 10 2004 Stanislav Ievlev <inger@altlinux.org> 1.6.2-alt1
+- 1.6.2
+
+* Tue Sep 30 2003 Stanislav Ievlev <inger@altlinux.ru> 1.4.17-alt1.1
+- don't made static link with libol
+- update init-script
+- fix building in hasher
+
+* Thu Oct 31 2002 Nikita Gergel <fc@altlinux.ru> 1.4.17-alt1
+- 1.4.17
+
+* Sun Oct 27 2002 Nikita Gergel <fc@altlinux.ru> 1.4.16-alt2
+- syslog-ng.conf patch
+
+* Fri Oct 25 2002 Nikita Gergel <fc@altlinux.ru> 1.4.16-alt1
+- 1.4.16
+
+* Fri Oct 11 2002 Stanislav Ievlev <inger@altlinux.ru> 1.4.15-alt3
+- security fix
+
+* Thu Sep 19 2002 Stanislav Ievlev <inger@altlinux.ru> 1.4.15-alt2
+- rebuild with gcc3
+
+* Sat May 18 2002 Stanislav Ievlev <inger@altlinux.ru> 1.4.15-alt1
+- 1.4.15
+
+* Tue Feb 05 2002 Stanislav Ievlev <inger@altlinux.ru> 1.4.14-alt2
+- sync with chrooted klogd
+
+* Thu Dec 20 2001 Stanislav Ievlev <inger@altlinux.ru> 1.4.14-alt1
+- 1.4.14
+
+* Tue Sep 25 2001 Stanislav Ievlev <inger@altlinux.ru> 1.4.12-alt2
+- added PreReq for syslog-common - general package for all syslogs.
+- added some documentation
+
+* Fri Jul 27 2001 Stanislav Ievlev <inger@altlinux.ru> 1.4.12-alt1
+- 1.4.12
+
+* Tue Jul 24 2001 Stanislav Ievlev <inger@altlinux.ru> 1.4.10-alt1
+- Initial release for ALT Linux.
+
+* Wed Jan 17 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.4.10-1mdk
+- used srpm from John Johnson <jjohnson@linux-mandrake.com> :
+	- Updated syslog-ng to version 1.4.
+
+* Mon Nov 13 2000 Vincent Danen <vdanen@mandrakesoft.com> 1.4.8-2mdk
+- specfile cleaning, use macros
+- rewrote init file
+- wrote proper syslog-ng.conf file based on syslog.conf
+- patch so config goes in /etc not /etc/syslog-ng
+- syslog-ng goes in /sbin not /usr/sbin
+
+* Wed Nov 8 2000 John Johnson <jjohnson@linux-mandrake.com> 1.4.8-1mdk
+- Made Mandrake rpm
diff --git a/altlinux/syslog-ng.sysconfig b/altlinux/syslog-ng.sysconfig
new file mode 100644
index 000000000..8d5b309fe
--- /dev/null
+++ b/altlinux/syslog-ng.sysconfig
@@ -0,0 +1,9 @@
+# Options to syslog-ng
+# -d	Set "debug  mode"
+# -f	Path to configuration file.
+# -p	Path to PID file
+# -v	Enable verbose mode
+# -V	Print version number
+# -C	Chroot dir.
+# See syslogd(8) for more details.
+SYSLOG_NG_OPTIONS=''
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin