Skip to content
Snippets Groups Projects
Verified Commit 03254df0 authored by Josef Schlehofer's avatar Josef Schlehofer
Browse files

patches: packages: syslog-ng: rebase log with logrotate

parent 5e72ef24
Branches
Tags
1 merge request!123Turris OS 5.0 (HBK)
From bf87ab2a424e428e04a8fdc6e24af78f1f5c6b67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
Date: Mon, 15 Apr 2019 15:31:04 +0200
Subject: [PATCH] syslong-ng: rotate default log with logrotate
Subject: [PATCH] syslog-ng: rotate default log with logrotate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
......@@ -24,12 +24,12 @@ index 68881e8..ac5c6ec 100644
--- a/admin/syslog-ng/Makefile
+++ b/admin/syslog-ng/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=syslog-ng
PKG_VERSION:=3.20.1
PKG_VERSION:=3.21.1
-PKG_RELEASE:=1
+PKG_RELEASE:=3
+PKG_RELEASE:=2
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
PKG_LICENSE:=LGPL-2.1+
@@ -25,7 +25,7 @@ include $(INCLUDE_DIR)/nls.mk
......@@ -43,12 +43,12 @@ index 68881e8..ac5c6ec 100644
endef
@@ -85,6 +85,8 @@ define Package/syslog-ng/install
touch $(1)/etc/syslog-ng.d/.keep
$(INSTALL_BIN) ./files/logread $(1)/usr/sbin
+ $(INSTALL_DIR) $(1)/etc/logrotate.d
+ $(INSTALL_DATA) ./files/logrotate.conf $(1)/etc/logrotate.d/syslog-ng.conf
endef
define Package/syslog-ng/postinst
diff --git a/admin/syslog-ng/files/logrotate.conf b/admin/syslog-ng/files/logrotate.conf
new file mode 100644
......@@ -64,6 +64,5 @@ index 0000000..ce1e087
+ /etc/init.d/syslog-ng restart
+ endscript
+}
--
--
2.21.0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment