1 |
commit: bf9f32337be6f19bdb82f8fd869f1ea93fd903e7 |
2 |
Author: Steffen Christgau <mail <AT> s14u <DOT> de> |
3 |
AuthorDate: Sat May 15 20:54:06 2021 +0000 |
4 |
Commit: Steffen Christgau <mail <AT> s14u <DOT> de> |
5 |
CommitDate: Sun May 16 07:32:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bf9f3233 |
7 |
|
8 |
net-misc/wsdd: use dedicated user/group (GLEP 81 compliance) |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Steffen Christgau <mail <AT> s14u.de> |
12 |
|
13 |
net-misc/wsdd/wsdd-0.6.4.ebuild | 6 ++++-- |
14 |
1 file changed, 4 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/net-misc/wsdd/wsdd-0.6.4.ebuild b/net-misc/wsdd/wsdd-0.6.4.ebuild |
17 |
index 05b681d16..6f2a9f1c2 100644 |
18 |
--- a/net-misc/wsdd/wsdd-0.6.4.ebuild |
19 |
+++ b/net-misc/wsdd/wsdd-0.6.4.ebuild |
20 |
@@ -19,7 +19,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
21 |
|
22 |
DEPEND="" |
23 |
# Samba is technically not a requirement of wsdd, but depend on it if the use flags is set. |
24 |
-RDEPEND="${PYTHON_DEPS} samba? ( net-fs/samba )" |
25 |
+RDEPEND="${PYTHON_DEPS} acct-group/${PN} acct-user/${PN} samba? ( net-fs/samba )" |
26 |
BDEPEND="" |
27 |
|
28 |
src_install() { |
29 |
@@ -30,11 +30,13 @@ src_install() { |
30 |
sed -i -e '/need samba/d' etc/openrc/init.d/wsdd |
31 |
fi |
32 |
|
33 |
+ sed -i -e "s/daemon:daemon/${PN}:${PN}/" etc/openrc/init.d/wsdd |
34 |
+ |
35 |
doinitd etc/openrc/init.d/wsdd |
36 |
doconfd etc/openrc/conf.d/wsdd |
37 |
|
38 |
# install systemd unit file with wsdd user and dependency on samba service if use flag is set |
39 |
- sed -i -e 's/=nobody/=daemon/' etc/systemd/wsdd.service |
40 |
+ sed -i -e "s/=nobody/=${PN}/" etc/systemd/wsdd.service |
41 |
if use samba; then |
42 |
sed -i -e 's/;Wants=smb.service/Wants=samba.service/' etc/systemd/wsdd.service |
43 |
fi |