From eab5731cdf11d4ae8cdf111461d46fd96c5bdd37 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 4 May 2019 12:02:00 +0100 Subject: gentoo resync : 04.05.2019 --- net-analyzer/vnstat/files/vnstat-2.2-conf.patch | 11 +++++++++++ net-analyzer/vnstat/files/vnstat-2.2-drop-root.patch | 15 +++++++++++++++ net-analyzer/vnstat/files/vnstat-2.2-run.patch | 11 +++++++++++ 3 files changed, 37 insertions(+) create mode 100644 net-analyzer/vnstat/files/vnstat-2.2-conf.patch create mode 100644 net-analyzer/vnstat/files/vnstat-2.2-drop-root.patch create mode 100644 net-analyzer/vnstat/files/vnstat-2.2-run.patch (limited to 'net-analyzer/vnstat/files') diff --git a/net-analyzer/vnstat/files/vnstat-2.2-conf.patch b/net-analyzer/vnstat/files/vnstat-2.2-conf.patch new file mode 100644 index 000000000000..7bea5d8ffe97 --- /dev/null +++ b/net-analyzer/vnstat/files/vnstat-2.2-conf.patch @@ -0,0 +1,11 @@ +--- a/cfg/vnstat.conf ++++ b/cfg/vnstat.conf +@@ -143,7 +143,7 @@ + LogFile "/var/log/vnstat/vnstat.log" + + # file used as daemon pid / lock file +-PidFile "/var/run/vnstat/vnstat.pid" ++PidFile "/run/vnstat/vnstat.pid" + + # 1 = 64-bit, 0 = 32-bit, -1 = old style logic, -2 = automatic detection + 64bitInterfaceCounters -2 diff --git a/net-analyzer/vnstat/files/vnstat-2.2-drop-root.patch b/net-analyzer/vnstat/files/vnstat-2.2-drop-root.patch new file mode 100644 index 000000000000..2ed3ec1404a4 --- /dev/null +++ b/net-analyzer/vnstat/files/vnstat-2.2-drop-root.patch @@ -0,0 +1,15 @@ +--- a/cfg/vnstat.conf ++++ b/cfg/vnstat.conf +@@ -69,10 +69,10 @@ + ## + + # switch to given user when started as root (leave empty to disable) +-DaemonUser "" ++DaemonUser "vnstat" + + # switch to given group when started as root (leave empty to disable) +-DaemonGroup "" ++DaemonGroup "vnstat" + + # try to detect interface maximum bandwidth, 0 = disable feature + # MaxBandwidth will be used as fallback value when enabled diff --git a/net-analyzer/vnstat/files/vnstat-2.2-run.patch b/net-analyzer/vnstat/files/vnstat-2.2-run.patch new file mode 100644 index 000000000000..bb9222b5fe2f --- /dev/null +++ b/net-analyzer/vnstat/files/vnstat-2.2-run.patch @@ -0,0 +1,11 @@ +--- a/src/common.h ++++ b/src/common.h +@@ -229,7 +229,7 @@ + #define CREATEDIRS 1 + #define UPDATEFILEOWNER 1 + #define LOGFILE "/var/log/vnstat/vnstat.log" +-#define PIDFILE "/var/run/vnstat/vnstat.pid" ++#define PIDFILE "/run/vnstat/vnstat.pid" + #define IS64BIT -2 + + /* no transparency by default */ -- cgit v1.2.3