public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/ssh-ldap-pubkey/
Date: Wed, 14 Nov 2018 07:06:33 +0000 (UTC)	[thread overview]
Message-ID: <1542179189.5d2eef62c1e6dea87e974fdf99667914ec6a1807.robbat2@gentoo> (raw)

commit:     5d2eef62c1e6dea87e974fdf99667914ec6a1807
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 14 07:03:52 2018 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed Nov 14 07:06:29 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d2eef62

sys-auth/ssh-ldap-pubkey: selectively install LPK schema file

The LPK schema file is only needed on LDAP servers, and otherwise causes
this package to block the OpenSSH upgrade everywhere. By making it
optional and not enabled by default, the OpenSSH upgrade is much
smoother.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.10

 sys-auth/ssh-ldap-pubkey/metadata.xml                    |  3 +++
 sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0-r1.ebuild | 10 ++++++----
 sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild    | 12 +++++++-----
 3 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/sys-auth/ssh-ldap-pubkey/metadata.xml b/sys-auth/ssh-ldap-pubkey/metadata.xml
index 798419df911..d01451ddfcc 100644
--- a/sys-auth/ssh-ldap-pubkey/metadata.xml
+++ b/sys-auth/ssh-ldap-pubkey/metadata.xml
@@ -9,4 +9,7 @@
 		<bugs-to>https://github.com/jirutka/ssh-ldap-pubkey/issues</bugs-to>
 		<remote-id type="github">jirutka/ssh-ldap-pubkey</remote-id>
 	</upstream>
+	<use>
+		<flag name="schema">Install a copy of the LPK schema, only needed on LDAP servers.</flag>
+	</use>
 </pkgmetadata>

diff --git a/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0-r1.ebuild b/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0-r1.ebuild
index 628ee8f4f19..33d171a2c2b 100644
--- a/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0-r1.ebuild
+++ b/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0-r1.ebuild
@@ -20,7 +20,7 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE="test"
+IUSE="schema test"
 RESTRICT="!test? ( test )"
 
 MY_CDEPEND="
@@ -40,7 +40,7 @@ DEPEND="
 # We need to block previous net-misc/openssh packages
 # to avoid file collision on "/etc/openldap/schema/openssh-lpk.schema"
 RDEPEND="${MY_CDEPEND}
-	!net-misc/openssh[ldap]"
+	schema? ( !net-misc/openssh[ldap] )"
 
 DOCS=( README.md CHANGELOG.adoc )
 
@@ -56,8 +56,10 @@ python_test() {
 python_install_all() {
 	distutils-r1_python_install_all
 
-	insinto /etc/openldap/schema
-	doins etc/openssh-lpk.schema
+	if use schema; then
+		insinto /etc/openldap/schema
+		doins etc/openssh-lpk.schema
+	fi
 
 	local MY_DOCDIR="/usr/share/doc/${PF}/examples"
 	insinto "${MY_DOCDIR}"

diff --git a/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild b/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild
index 1c422cf550f..7d04c5fd300 100644
--- a/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild
+++ b/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -20,7 +20,7 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE="test"
+IUSE="schema test"
 RESTRICT="!test? ( test )"
 
 MY_CDEPEND="
@@ -40,7 +40,7 @@ DEPEND="
 # We need to block previous net-misc/openssh packages
 # to avoid file collision on "/etc/openldap/schema/openssh-lpk.schema"
 RDEPEND="${MY_CDEPEND}
-	!net-misc/openssh[ldap]"
+	schema? ( !net-misc/openssh[ldap] )"
 
 DOCS=( README.md CHANGELOG.adoc )
 
@@ -51,8 +51,10 @@ python_test() {
 python_install_all() {
 	distutils-r1_python_install_all
 
-	insinto /etc/openldap/schema
-	doins etc/openssh-lpk.schema
+	if use schema; then
+		insinto /etc/openldap/schema
+		doins etc/openssh-lpk.schema
+	fi
 
 	local MY_DOCDIR="/usr/share/doc/${PF}/examples"
 	insinto "${MY_DOCDIR}"


             reply	other threads:[~2018-11-14  7:06 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-14  7:06 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-03  6:30 [gentoo-commits] repo/gentoo:master commit in: sys-auth/ssh-ldap-pubkey/ Sam James
2023-10-22 19:14 Michał Górny
2023-05-07 10:37 David Seifert
2023-03-07  9:23 Sam James
2022-06-07  6:02 Sam James
2022-06-07  5:54 Sam James
2022-05-22  3:14 Sam James
2022-05-22  3:13 Sam James
2021-06-14  9:19 David Seifert
2021-06-08  4:03 Sam James
2021-06-08  4:03 Sam James
2020-09-02 16:20 Thomas Deutschmann
2020-09-02 16:19 Thomas Deutschmann
2020-02-05 20:11 Michał Górny
2019-11-27  8:52 Thomas Deutschmann
2019-07-22 16:58 Thomas Deutschmann
2019-04-18 21:21 Aaron Bauman
2019-03-15  9:35 Michał Górny
2019-02-17 17:34 Sergei Trofimovich
2019-02-17 17:34 Sergei Trofimovich
2019-02-15 17:46 Mikle Kolyada
2019-01-03 15:02 Sergei Trofimovich
2019-01-03 15:02 Sergei Trofimovich
2018-11-19  0:42 Robin H. Johnson
2018-11-18  9:38 Mikle Kolyada
2018-10-25 17:33 Brian Evans
2018-10-17 12:11 Tobias Klausmann
2018-08-06  9:14 Sergei Trofimovich
2018-08-04 20:21 Thomas Deutschmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1542179189.5d2eef62c1e6dea87e974fdf99667914ec6a1807.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox