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

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

parent f0226c57
No related merge requests found
From bf87ab2a424e428e04a8fdc6e24af78f1f5c6b67 Mon Sep 17 00:00:00 2001 From bf87ab2a424e428e04a8fdc6e24af78f1f5c6b67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz> From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
Date: Mon, 15 Apr 2019 15:31:04 +0200 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 MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit Content-Transfer-Encoding: 8bit
...@@ -24,12 +24,12 @@ index 68881e8..ac5c6ec 100644 ...@@ -24,12 +24,12 @@ index 68881e8..ac5c6ec 100644
--- a/admin/syslog-ng/Makefile --- a/admin/syslog-ng/Makefile
+++ b/admin/syslog-ng/Makefile +++ b/admin/syslog-ng/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=syslog-ng PKG_NAME:=syslog-ng
PKG_VERSION:=3.20.1 PKG_VERSION:=3.21.1
-PKG_RELEASE:=1 -PKG_RELEASE:=1
+PKG_RELEASE:=3 +PKG_RELEASE:=2
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz> PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
PKG_LICENSE:=LGPL-2.1+ PKG_LICENSE:=LGPL-2.1+
@@ -25,7 +25,7 @@ include $(INCLUDE_DIR)/nls.mk @@ -25,7 +25,7 @@ include $(INCLUDE_DIR)/nls.mk
...@@ -43,12 +43,12 @@ index 68881e8..ac5c6ec 100644 ...@@ -43,12 +43,12 @@ index 68881e8..ac5c6ec 100644
endef endef
@@ -85,6 +85,8 @@ define Package/syslog-ng/install @@ -85,6 +85,8 @@ define Package/syslog-ng/install
touch $(1)/etc/syslog-ng.d/.keep touch $(1)/etc/syslog-ng.d/.keep
$(INSTALL_BIN) ./files/logread $(1)/usr/sbin $(INSTALL_BIN) ./files/logread $(1)/usr/sbin
+ $(INSTALL_DIR) $(1)/etc/logrotate.d + $(INSTALL_DIR) $(1)/etc/logrotate.d
+ $(INSTALL_DATA) ./files/logrotate.conf $(1)/etc/logrotate.d/syslog-ng.conf + $(INSTALL_DATA) ./files/logrotate.conf $(1)/etc/logrotate.d/syslog-ng.conf
endef endef
define Package/syslog-ng/postinst define Package/syslog-ng/postinst
diff --git a/admin/syslog-ng/files/logrotate.conf b/admin/syslog-ng/files/logrotate.conf diff --git a/admin/syslog-ng/files/logrotate.conf b/admin/syslog-ng/files/logrotate.conf
new file mode 100644 new file mode 100644
...@@ -64,6 +64,5 @@ index 000000000..ce1e087c4 ...@@ -64,6 +64,5 @@ index 000000000..ce1e087c4
+ /etc/init.d/syslog-ng restart + /etc/init.d/syslog-ng restart
+ endscript + endscript
+} +}
-- --
2.21.0 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