summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-03-02 13:58:53 +0100
committerManuel Rüger <mrueg@gentoo.org>2018-03-02 13:58:53 +0100
commit749940b097dfd73aa6e7a06aed16336ed443fd7a (patch)
treec107e59cb3c8abbe15fbf65c4fc20ff2f5faea52 /dev-db/etcd
parentdev-python/flask-gravatar: Bump to 0.5.0 (diff)
downloadgentoo-749940b097dfd73aa6e7a06aed16336ed443fd7a.tar.gz
gentoo-749940b097dfd73aa6e7a06aed16336ed443fd7a.tar.bz2
gentoo-749940b097dfd73aa6e7a06aed16336ed443fd7a.zip
dev-db/etcd: Create user only if USE="server" is enabled
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-db/etcd')
-rw-r--r--dev-db/etcd/etcd-3.3.1.ebuild6
1 files 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 7ec5b9eda5c9..88b1e478fe0a 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() {