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: net-nds/nsscache/
Date: Mon, 29 Jun 2020 05:37:29 +0000 (UTC)	[thread overview]
Message-ID: <1593409046.8e7e9de1c45c99f11fc19f47fa2ecd754900e837.robbat2@gentoo> (raw)

commit:     8e7e9de1c45c99f11fc19f47fa2ecd754900e837
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 29 05:12:43 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Jun 29 05:37:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e7e9de1

net-nds/nsscache: bump for py3

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 net-nds/nsscache/Manifest             |  1 +
 net-nds/nsscache/metadata.xml         |  1 +
 net-nds/nsscache/nsscache-0.39.ebuild | 59 +++++++++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+)

diff --git a/net-nds/nsscache/Manifest b/net-nds/nsscache/Manifest
index ea087fb9106..c51df7a7c19 100644
--- a/net-nds/nsscache/Manifest
+++ b/net-nds/nsscache/Manifest
@@ -3,3 +3,4 @@ DIST nsscache-0.30-r3-gentoo-authorized-keys-command.py 11974 BLAKE2B 4272bab8d8
 DIST nsscache-0.30.tar.gz 109615 BLAKE2B 1b67da7241a974a541514849643115d8e6dd0e587dbd39e1919eaca5064b6fde79678c3443246444d1b8c75c4455ad008231ee1f1a6b74511d9a38e742be2c6e SHA512 22c58904eadd2e69405c42263c1c85c7b612151466386870fbea7685ab32835250a84f1acd83fca6f3289582c74df5371cbfb4f354679a302f240fd0ff334712
 DIST nsscache-0.31.tar.gz 108073 BLAKE2B c730786e4a273d039273f104d1458587741c5bc8b2e470d12a551765f3141aafb33df811feca432b493415e20c9abb07244b9c624e38053b95c15c5e41ba8303 SHA512 1be90b0217605f86d2effc6063a805fb604f535386cc9f2eb8b0244ab1293521fd1342f52e3fad98c7d95cf66db3dabf93747bf40ce5ed2bf70c8c07382001a4
 DIST nsscache-0.32.tar.gz 112333 BLAKE2B ac477eef53e8e9d8cdcc7a0d7b460046883aaba8836ec5d49f449aae0d4f0ea34cd10f89a98849a18e0a0b1b5d1eb4f4c99a138d6eb2bc6bc608a1cc33c28ac2 SHA512 c35f539ea017a328c1630031b7934c231b256d3f2198c6764954c42f36ed281432ff97667e5754692971b4f24be38887406f98718d5f49d364e1e3eebb32185f
+DIST nsscache-0.39.tar.gz 127896 BLAKE2B 8383ca53ee5cf2f84e4485722d35598b624005bb32073696a23daa1061c0b057d26333cdee9c97cedcb99daa8c61362719d80b01b216c163a327cd4edeabeefd SHA512 f93cec949302f21bc5989ab3192302a32349ee4ae98e2f05f169cca8a16a821f39857cb0fff52c7b54552828684b4723d22e44f97525a01577ab89bd159e0376

diff --git a/net-nds/nsscache/metadata.xml b/net-nds/nsscache/metadata.xml
index 2391c0ec85c..49a9b9a18f2 100644
--- a/net-nds/nsscache/metadata.xml
+++ b/net-nds/nsscache/metadata.xml
@@ -6,6 +6,7 @@
 	</maintainer>
 	<use>
 		<flag name="nsscache">Depend on sys-auth/libnss-cache to handle flat files</flag>
+		<flag name="s3">Support for S3-based NSS sources</flag>
 	</use>
 	<upstream>
 		<remote-id type="github">google/nsscache</remote-id>

diff --git a/net-nds/nsscache/nsscache-0.39.ebuild b/net-nds/nsscache/nsscache-0.39.ebuild
new file mode 100644
index 00000000000..f615656a1ee
--- /dev/null
+++ b/net-nds/nsscache/nsscache-0.39.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit eutils distutils-r1
+
+DESCRIPTION="commandline tool to sync directory services to local cache"
+HOMEPAGE="https://github.com/google/nsscache"
+SCRIPT_A='nsscache-0.30-r3-gentoo-authorized-keys-command.py'
+SRC_URI="
+	https://github.com/google/nsscache/archive/version/${PV}.tar.gz -> ${P}.tar.gz
+	https://dev.gentoo.org/~robbat2/${SCRIPT_A}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+IUSE="nsscache s3"
+
+DEPEND="${PYTHON_DEPS}
+		dev-python/ldap3[${PYTHON_USEDEP}]
+		dev-python/pycurl[${PYTHON_USEDEP}]
+		dev-python/bsddb3[${PYTHON_USEDEP}]
+		s3? ( dev-python/boto3[${PYTHON_USEDEP}] )"
+RDEPEND="${DEPEND}
+		nsscache? ( >=sys-auth/libnss-cache-0.10 )"
+RESTRICT="test" # requires network
+S="${WORKDIR}/${PN}-version-${PV}"
+
+src_prepare() {
+	sed -i \
+		-e "/setup_requires/s,'pytest-runner',,g" \
+		-e '/tests_require/s,\[.*\],[],g' \
+		"${S}"/setup.py || die
+	sed -i \
+		-e '/test=pytest/d' \
+		"${S}"/setup.cfg || die
+	sed -i \
+		-e '/pytest/d' \
+		"${S}"/requirements.txt || die
+	distutils-r1_src_prepare
+}
+
+python_compile() {
+	distutils-r1_python_compile --verbose
+}
+
+src_install() {
+	distutils-r1_src_install
+
+	doman nsscache.1 nsscache.conf.5
+	dodoc THANKS nsscache.cron CONTRIBUTING.md README.md
+	exeinto /usr/libexec/nsscache
+	newexe "${DISTDIR}"/"${SCRIPT_A}" authorized-keys-command.py
+
+	keepdir /var/lib/nsscache
+}


             reply	other threads:[~2020-06-29  5:37 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-29  5:37 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-08 16:17 [gentoo-commits] repo/gentoo:master commit in: net-nds/nsscache/ Robin H. Johnson
2024-02-01  7:54 Robin H. Johnson
2024-01-30  8:23 Robin H. Johnson
2024-01-27 19:31 Robin H. Johnson
2023-01-10 14:37 Michał Górny
2022-11-15 18:22 Michał Górny
2022-09-10 21:12 Robin H. Johnson
2021-05-26 10:30 Sam James
2020-06-29 12:33 David Seifert
2020-06-29 12:33 David Seifert
2016-02-02  0:44 Robin H. Johnson
2016-01-11 20:46 Robin H. Johnson
2016-01-10  7:58 Robin H. Johnson
2016-01-02 23:29 Robin H. Johnson
2016-01-02 19:44 Robin H. Johnson
2016-01-02 19:44 Robin H. Johnson
2016-01-01 19:09 Robin H. Johnson
2015-09-01 19:55 Tobias Klausmann
2015-08-28 23:47 Manuel Rüger

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=1593409046.8e7e9de1c45c99f11fc19f47fa2ecd754900e837.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