aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Christgau <mail@s14u.de>2021-05-15 22:54:06 +0200
committerSteffen Christgau <mail@s14u.de>2021-05-16 09:32:46 +0200
commitbf9f32337be6f19bdb82f8fd869f1ea93fd903e7 (patch)
tree660e38f713e3f97ddfab8ef9d0deb993524947e3 /net-misc
parentacct-group/wsdd: New ebuild (diff)
downloadguru-bf9f32337be6f19bdb82f8fd869f1ea93fd903e7.tar.gz
guru-bf9f32337be6f19bdb82f8fd869f1ea93fd903e7.tar.bz2
guru-bf9f32337be6f19bdb82f8fd869f1ea93fd903e7.zip
net-misc/wsdd: use dedicated user/group (GLEP 81 compliance)
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Steffen Christgau <mail@s14u.de>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/wsdd/wsdd-0.6.4.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/net-misc/wsdd/wsdd-0.6.4.ebuild b/net-misc/wsdd/wsdd-0.6.4.ebuild
index 05b681d16..6f2a9f1c2 100644
--- a/net-misc/wsdd/wsdd-0.6.4.ebuild
+++ b/net-misc/wsdd/wsdd-0.6.4.ebuild
@@ -19,7 +19,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND=""
# Samba is technically not a requirement of wsdd, but depend on it if the use flags is set.
-RDEPEND="${PYTHON_DEPS} samba? ( net-fs/samba )"
+RDEPEND="${PYTHON_DEPS} acct-group/${PN} acct-user/${PN} samba? ( net-fs/samba )"
BDEPEND=""
src_install() {
@@ -30,11 +30,13 @@ src_install() {
sed -i -e '/need samba/d' etc/openrc/init.d/wsdd
fi
+ sed -i -e "s/daemon:daemon/${PN}:${PN}/" etc/openrc/init.d/wsdd
+
doinitd etc/openrc/init.d/wsdd
doconfd etc/openrc/conf.d/wsdd
# install systemd unit file with wsdd user and dependency on samba service if use flag is set
- sed -i -e 's/=nobody/=daemon/' etc/systemd/wsdd.service
+ sed -i -e "s/=nobody/=${PN}/" etc/systemd/wsdd.service
if use samba; then
sed -i -e 's/;Wants=smb.service/Wants=samba.service/' etc/systemd/wsdd.service
fi