commit:     749940b097dfd73aa6e7a06aed16336ed443fd7a
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  2 12:58:53 2018 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Fri Mar  2 12:58:53 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=749940b0

dev-db/etcd: Create user only if USE="server" is enabled

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-db/etcd/etcd-3.3.1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-db/etcd/etcd-3.3.1.ebuild b/dev-db/etcd/etcd-3.3.1.ebuild
index 7ec5b9eda5c..88b1e478fe0 100644
--- a/dev-db/etcd/etcd-3.3.1.ebuild
+++ b/dev-db/etcd/etcd-3.3.1.ebuild
@@ -24,8 +24,10 @@ src_prepare() {
 }
 
 pkg_setup() {
-       enewgroup ${PN}
-       enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+       if use server; then
+               enewgroup ${PN}
+               enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+       fi
 }
 
 src_compile() {

Reply via email to