Relase Notes: https://www.zabbix.com/rn/rn4.2.0
Signed-off-by: Alexander Koch ipfire@starkstromkonsument.de --- lfs/zabbix_agentd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lfs/zabbix_agentd b/lfs/zabbix_agentd index b086d9f..d7f7fc3 100644 --- a/lfs/zabbix_agentd +++ b/lfs/zabbix_agentd @@ -24,7 +24,7 @@
include Config
-VER = 4.0.4 +VER = 4.2.0
THISAPP = zabbix-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -43,7 +43,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 46fdb83d4b24e13127a20a3e874b1d8f +$(DL_FILE)_MD5 = 20f261708f95787f3dbea3eab89f804d
install : $(TARGET)
Files containing an '~' or '.' are ignored by sudo when placed in the includedir /etc/sudoers.d This makes the file useless. The file is renamed to "zabbix" instead of "zabbix.user" to fix this.
See: https://www.sudo.ws/man/1.8.13/sudoers.man.html#Including_other_files_from_w...
Signed-off-by: Alexander Koch ipfire@starkstromkonsument.de --- config/backup/includes/zabbix_agentd | 2 +- config/rootfiles/packages/zabbix_agentd | 2 +- lfs/zabbix_agentd | 2 +- src/paks/zabbix_agentd/update.sh | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/config/backup/includes/zabbix_agentd b/config/backup/includes/zabbix_agentd index b410dbe..cba18d7 100644 --- a/config/backup/includes/zabbix_agentd +++ b/config/backup/includes/zabbix_agentd @@ -1,2 +1,2 @@ -/etc/sudoers.d/zabbix.user +/etc/sudoers.d/zabbix /etc/zabbix_agentd/* diff --git a/config/rootfiles/packages/zabbix_agentd b/config/rootfiles/packages/zabbix_agentd index db85238..eaecf26 100644 --- a/config/rootfiles/packages/zabbix_agentd +++ b/config/rootfiles/packages/zabbix_agentd @@ -1,6 +1,6 @@ etc/logrotate.d/zabbix_agentd etc/rc.d/init.d/zabbix_agentd -etc/sudoers.d/zabbix.user +etc/sudoers.d/zabbix etc/zabbix_agentd etc/zabbix_agentd/scripts etc/zabbix_agentd/zabbix_agentd.conf diff --git a/lfs/zabbix_agentd b/lfs/zabbix_agentd index d7f7fc3..5e50235 100644 --- a/lfs/zabbix_agentd +++ b/lfs/zabbix_agentd @@ -108,7 +108,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
# Install sudoers include file install -v -m 644 $(DIR_SRC)/config/zabbix_agentd/sudoers \ - /etc/sudoers.d/zabbix.user + /etc/sudoers.d/zabbix
# Install include file for backup install -v -m 644 $(DIR_SRC)/config/backup/includes/zabbix_agentd \ diff --git a/src/paks/zabbix_agentd/update.sh b/src/paks/zabbix_agentd/update.sh index 89c40d0..7fc1c96 100644 --- a/src/paks/zabbix_agentd/update.sh +++ b/src/paks/zabbix_agentd/update.sh @@ -24,3 +24,8 @@ . /opt/pakfire/lib/functions.sh ./uninstall.sh ./install.sh + +# Ensure /etc/sudoers.d/zabbix.user is renamed to /etc/sudoers.d/zabbix +if [ -e /etc/sudoers.d/zabbix.user ]; then + mv -v /etc/sudoers.d/zabbix.user /etc/sudoers.d/zabbix +fi
Hello Alex,
Thank you for sending in this update.
It is important that we keep all packages up to date!
I bumped the package version in the commit after your two patches. That is required that pakfire regards this as an update.
Best, -Michael
On 10 Apr 2019, at 19:33, Alexander Koch ipfire@starkstromkonsument.de wrote:
Relase Notes: https://www.zabbix.com/rn/rn4.2.0
Signed-off-by: Alexander Koch ipfire@starkstromkonsument.de
lfs/zabbix_agentd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lfs/zabbix_agentd b/lfs/zabbix_agentd index b086d9f..d7f7fc3 100644 --- a/lfs/zabbix_agentd +++ b/lfs/zabbix_agentd @@ -24,7 +24,7 @@
include Config
-VER = 4.0.4 +VER = 4.2.0
THISAPP = zabbix-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -43,7 +43,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 46fdb83d4b24e13127a20a3e874b1d8f +$(DL_FILE)_MD5 = 20f261708f95787f3dbea3eab89f804d
install : $(TARGET)
-- 2.7.4