From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EB5D41382C5 for ; Sun, 16 May 2021 07:38:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F4BEE081A; Sun, 16 May 2021 07:38:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A384E081A for ; Sun, 16 May 2021 07:37:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5A20B340F01 for ; Sun, 16 May 2021 07:37:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E083787 for ; Sun, 16 May 2021 07:37:57 +0000 (UTC) From: "Steffen Christgau" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Steffen Christgau" Message-ID: <1621150366.bf9f32337be6f19bdb82f8fd869f1ea93fd903e7.christgau@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/wsdd/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-misc/wsdd/wsdd-0.6.4.ebuild X-VCS-Directories: net-misc/wsdd/ X-VCS-Committer: christgau X-VCS-Committer-Name: Steffen Christgau X-VCS-Revision: bf9f32337be6f19bdb82f8fd869f1ea93fd903e7 X-VCS-Branch: dev Date: Sun, 16 May 2021 07:37:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: afec1950-d94f-482e-812d-9d3f001d2dc4 X-Archives-Hash: 206a20288b05ae587934ebe116481fac commit: bf9f32337be6f19bdb82f8fd869f1ea93fd903e7 Author: Steffen Christgau s14u de> AuthorDate: Sat May 15 20:54:06 2021 +0000 Commit: Steffen Christgau s14u de> CommitDate: Sun May 16 07:32:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bf9f3233 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 s14u.de> net-misc/wsdd/wsdd-0.6.4.ebuild | 6 ++++-- 1 file 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