commit:     f0962e9d29a9aec5a11777d6753bd0ec1bd485b2
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 10 04:53:24 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Nov 10 04:57:14 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0962e9d

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.

 net-nds/openldap/openldap-2.3.43-r3.ebuild | 8 ++++++--
 net-nds/openldap/openldap-2.3.43-r4.ebuild | 8 ++++++--
 net-nds/openldap/openldap-2.4.38-r2.ebuild | 8 ++++++--
 net-nds/openldap/openldap-2.4.39.ebuild    | 8 ++++++--
 net-nds/openldap/openldap-2.4.40-r2.ebuild | 8 ++++++--
 net-nds/openldap/openldap-2.4.40-r4.ebuild | 8 ++++++--
 net-nds/openldap/openldap-2.4.40.ebuild    | 8 ++++++--
 net-nds/openldap/openldap-2.4.42-r1.ebuild | 8 ++++++--
 net-nds/openldap/openldap-2.4.42.ebuild    | 8 ++++++--
 net-nds/openldap/openldap-2.4.43-r1.ebuild | 8 ++++++--
 net-nds/openldap/openldap-2.4.43.ebuild    | 8 ++++++--
 net-nds/openldap/openldap-2.4.44.ebuild    | 8 ++++++--
 12 files changed, 72 insertions(+), 24 deletions(-)

diff --git a/net-nds/openldap/openldap-2.3.43-r3.ebuild 
b/net-nds/openldap/openldap-2.3.43-r3.ebuild
index 43fc797..7d5c8c0 100644
--- a/net-nds/openldap/openldap-2.3.43-r3.ebuild
+++ b/net-nds/openldap/openldap-2.3.43-r3.ebuild
@@ -188,8 +188,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() {

diff --git a/net-nds/openldap/openldap-2.3.43-r4.ebuild 
b/net-nds/openldap/openldap-2.3.43-r4.ebuild
index bdb8c8d..e8c1aa5 100644
--- a/net-nds/openldap/openldap-2.3.43-r4.ebuild
+++ b/net-nds/openldap/openldap-2.3.43-r4.ebuild
@@ -188,8 +188,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() {

diff --git a/net-nds/openldap/openldap-2.4.38-r2.ebuild 
b/net-nds/openldap/openldap-2.4.38-r2.ebuild
index 54cb2f6..a24614b 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() {

diff --git a/net-nds/openldap/openldap-2.4.39.ebuild 
b/net-nds/openldap/openldap-2.4.39.ebuild
index 354d070..09e8f85 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() {

diff --git a/net-nds/openldap/openldap-2.4.40-r2.ebuild 
b/net-nds/openldap/openldap-2.4.40-r2.ebuild
index 3aab68c..3330f90 100644
--- a/net-nds/openldap/openldap-2.4.40-r2.ebuild
+++ b/net-nds/openldap/openldap-2.4.40-r2.ebuild
@@ -288,8 +288,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() {

diff --git a/net-nds/openldap/openldap-2.4.40-r4.ebuild 
b/net-nds/openldap/openldap-2.4.40-r4.ebuild
index d7a9f34..b12340e 100644
--- a/net-nds/openldap/openldap-2.4.40-r4.ebuild
+++ b/net-nds/openldap/openldap-2.4.40-r4.ebuild
@@ -288,8 +288,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() {

diff --git a/net-nds/openldap/openldap-2.4.40.ebuild 
b/net-nds/openldap/openldap-2.4.40.ebuild
index d43fc01..8268a01 100644
--- a/net-nds/openldap/openldap-2.4.40.ebuild
+++ b/net-nds/openldap/openldap-2.4.40.ebuild
@@ -274,8 +274,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() {

diff --git a/net-nds/openldap/openldap-2.4.42-r1.ebuild 
b/net-nds/openldap/openldap-2.4.42-r1.ebuild
index d86a0f9..2803acd 100644
--- a/net-nds/openldap/openldap-2.4.42-r1.ebuild
+++ b/net-nds/openldap/openldap-2.4.42-r1.ebuild
@@ -298,8 +298,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() {

diff --git a/net-nds/openldap/openldap-2.4.42.ebuild 
b/net-nds/openldap/openldap-2.4.42.ebuild
index 2cabc23..9207343 100644
--- a/net-nds/openldap/openldap-2.4.42.ebuild
+++ b/net-nds/openldap/openldap-2.4.42.ebuild
@@ -288,8 +288,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() {

diff --git a/net-nds/openldap/openldap-2.4.43-r1.ebuild 
b/net-nds/openldap/openldap-2.4.43-r1.ebuild
index 01b0bc4..dd87fea 100644
--- a/net-nds/openldap/openldap-2.4.43-r1.ebuild
+++ b/net-nds/openldap/openldap-2.4.43-r1.ebuild
@@ -301,8 +301,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() {

diff --git a/net-nds/openldap/openldap-2.4.43.ebuild 
b/net-nds/openldap/openldap-2.4.43.ebuild
index 978f7d1..10dcd00 100644
--- a/net-nds/openldap/openldap-2.4.43.ebuild
+++ b/net-nds/openldap/openldap-2.4.43.ebuild
@@ -298,8 +298,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() {

diff --git a/net-nds/openldap/openldap-2.4.44.ebuild 
b/net-nds/openldap/openldap-2.4.44.ebuild
index 1412f49..e232b36 100644
--- a/net-nds/openldap/openldap-2.4.44.ebuild
+++ b/net-nds/openldap/openldap-2.4.44.ebuild
@@ -301,8 +301,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() {

Reply via email to