summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-11-09 23:53:24 -0500
committerMike Frysinger <vapier@gentoo.org>2016-11-09 23:57:14 -0500
commitf0962e9d29a9aec5a11777d6753bd0ec1bd485b2 (patch)
tree992644bd2e24feed0ba8a1df229e96e19daaf7bc /net-nds/openldap/openldap-2.4.39.ebuild
parentsys-apps/gentoo-functions: fix source errors w/dumb terminals (diff)
downloadgentoo-f0962e9d29a9aec5a11777d6753bd0ec1bd485b2.tar.gz
gentoo-f0962e9d29a9aec5a11777d6753bd0ec1bd485b2.tar.bz2
gentoo-f0962e9d29a9aec5a11777d6753bd0ec1bd485b2.zip
net-nds/openldap: skip acct creation for USE=minimal
The accounts are only used by the ldap server, not its libraries, so skip account creation in those cases.
Diffstat (limited to 'net-nds/openldap/openldap-2.4.39.ebuild')
-rw-r--r--net-nds/openldap/openldap-2.4.39.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/net-nds/openldap/openldap-2.4.39.ebuild b/net-nds/openldap/openldap-2.4.39.ebuild
index 354d070d4b9..09e8f854a74 100644
--- a/net-nds/openldap/openldap-2.4.39.ebuild
+++ b/net-nds/openldap/openldap-2.4.39.ebuild
@@ -269,8 +269,12 @@ pkg_setup() {
openldap_find_versiontags
fi
- enewgroup ldap 439
- enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap
+ # The user/group are only used for running daemons which are
+ # disabled in minimal builds, so elide the accounts too.
+ if ! use minimal ; then
+ enewgroup ldap 439
+ enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap
+ fi
}
src_prepare() {