diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-11-09 23:53:24 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-11-09 23:57:14 -0500 |
commit | f0962e9d29a9aec5a11777d6753bd0ec1bd485b2 (patch) | |
tree | 992644bd2e24feed0ba8a1df229e96e19daaf7bc /net-nds/openldap/openldap-2.4.38-r2.ebuild | |
parent | sys-apps/gentoo-functions: fix source errors w/dumb terminals (diff) | |
download | gentoo-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.38-r2.ebuild')
-rw-r--r-- | net-nds/openldap/openldap-2.4.38-r2.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net-nds/openldap/openldap-2.4.38-r2.ebuild b/net-nds/openldap/openldap-2.4.38-r2.ebuild index 54cb2f66c021..a24614bbb658 100644 --- a/net-nds/openldap/openldap-2.4.38-r2.ebuild +++ b/net-nds/openldap/openldap-2.4.38-r2.ebuild @@ -270,8 +270,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() { |