diff options
author | Jeroen Roovers <jer@gentoo.org> | 2019-04-30 15:56:17 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2019-04-30 16:02:03 +0200 |
commit | d7d5091e957eef385af8236032cf6ab0a4ef1170 (patch) | |
tree | 837e4be53dfba55178a438d9e7aeb3757c820e15 /net-analyzer/vnstat/files | |
parent | www-client/opera-developer: Old (diff) | |
download | gentoo-d7d5091e957eef385af8236032cf6ab0a4ef1170.tar.gz gentoo-d7d5091e957eef385af8236032cf6ab0a4ef1170.tar.bz2 gentoo-d7d5091e957eef385af8236032cf6ab0a4ef1170.zip |
net-analyzer/vnstat: Version 2.2
Package-Manager: Portage-2.3.65, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/vnstat/files')
-rw-r--r-- | net-analyzer/vnstat/files/vnstat-2.2-conf.patch | 11 | ||||
-rw-r--r-- | net-analyzer/vnstat/files/vnstat-2.2-drop-root.patch | 15 | ||||
-rw-r--r-- | net-analyzer/vnstat/files/vnstat-2.2-run.patch | 11 |
3 files changed, 37 insertions, 0 deletions
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 */ |