From: Josef Schlehofer Date: Tue, 18 Aug 2026 08:38:10 +0000 (+0200) Subject: syslog-ng: install the configuration with INSTALL_CONF X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=397c29176b12908cc3e16c3ce0612a6441a9b00c;p=openwrt-packages.git syslog-ng: install the configuration with INSTALL_CONF /etc/syslog-ng.conf is installed with INSTALL_DATA, so it ends up world readable at 0644. The file holds the credentials of every destination that needs them, so install it with INSTALL_CONF and 0600 instead, as the rest of the tree does for configuration under /etc. Signed-off-by: Josef Schlehofer --- diff --git a/admin/syslog-ng/Makefile b/admin/syslog-ng/Makefile index 6e1440015..9bd12cc53 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:=4.12.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Josef Schlehofer PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later @@ -125,7 +125,7 @@ define Package/syslog-ng/install $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng $(INSTALL_DIR) $(1)/etc/syslog-ng.d - $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc + $(INSTALL_CONF) ./files/syslog-ng.conf $(1)/etc/syslog-ng.conf touch $(1)/etc/syslog-ng.d/.keep $(INSTALL_DIR) $(1)/usr/libexec