Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/vnstat/, net-analyzer/vnstat/files/
Date: Sat, 14 Oct 2017 13:25:06
Message-Id: 1507987475.fa49bd03d6ed83cf14b30542dc1e57f9549d1154.jer@gentoo
1 commit: fa49bd03d6ed83cf14b30542dc1e57f9549d1154
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 14 13:24:35 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 14 13:24:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa49bd03
7
8 net-analyzer/vnstat: Drop privileges by default.
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch | 15 +++++++++++++++
13 .../{vnstat-1.17-r2.ebuild => vnstat-1.17-r3.ebuild} | 1 +
14 2 files changed, 16 insertions(+)
15
16 diff --git a/net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch b/net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch
17 new file mode 100644
18 index 00000000000..c0446c3b341
19 --- /dev/null
20 +++ b/net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch
21 @@ -0,0 +1,15 @@
22 +--- a/cfg/vnstat.conf
23 ++++ b/cfg/vnstat.conf
24 +@@ -81,10 +81,10 @@
25 + ##
26 +
27 + # switch to given user when started as root (leave empty to disable)
28 +-DaemonUser ""
29 ++DaemonUser "vnstat"
30 +
31 + # switch to given user when started as root (leave empty to disable)
32 +-DaemonGroup ""
33 ++DaemonGroup "vnstat"
34 +
35 + # how often (in seconds) interface data is updated
36 + UpdateInterval 30
37
38 diff --git a/net-analyzer/vnstat/vnstat-1.17-r2.ebuild b/net-analyzer/vnstat/vnstat-1.17-r3.ebuild
39 similarity index 97%
40 rename from net-analyzer/vnstat/vnstat-1.17-r2.ebuild
41 rename to net-analyzer/vnstat/vnstat-1.17-r3.ebuild
42 index 88ba28fdb0e..6e0d7ba752b 100644
43 --- a/net-analyzer/vnstat/vnstat-1.17-r2.ebuild
44 +++ b/net-analyzer/vnstat/vnstat-1.17-r3.ebuild
45 @@ -26,6 +26,7 @@ RDEPEND="
46 "
47 PATCHES=(
48 "${FILESDIR}"/${PN}-1.17-conf.patch
49 + "${FILESDIR}"/${PN}-1.17-drop-root.patch
50 "${FILESDIR}"/${PN}-1.17-run.patch
51 )