From c218398bbbe70a616790cf146c28c1066b9284bf Mon Sep 17 00:00:00 2001 From: V3n3RiX <venerix@koprulu.sector> Date: Tue, 9 Jul 2024 12:24:59 +0100 Subject: gentoo auto-resync : 09:07:2024 - 12:24:58 --- net-nds/Manifest.gz | Bin 2229 -> 2231 bytes net-nds/nsscache/Manifest | 2 +- net-nds/nsscache/nsscache-0.49-r1.ebuild | 83 ++++++++++++++++++++++++++++ net-nds/nsscache/nsscache-0.49.ebuild | 89 ------------------------------- 4 files changed, 84 insertions(+), 90 deletions(-) create mode 100644 net-nds/nsscache/nsscache-0.49-r1.ebuild delete mode 100644 net-nds/nsscache/nsscache-0.49.ebuild (limited to 'net-nds') diff --git a/net-nds/Manifest.gz b/net-nds/Manifest.gz index 25c83dc61a51..cfca7f045936 100644 Binary files a/net-nds/Manifest.gz and b/net-nds/Manifest.gz differ diff --git a/net-nds/nsscache/Manifest b/net-nds/nsscache/Manifest index fcbeb2485bb9..454b3896f5cf 100644 --- a/net-nds/nsscache/Manifest +++ b/net-nds/nsscache/Manifest @@ -1,3 +1,3 @@ DIST nsscache-0.49.tar.gz 128598 BLAKE2B 2d0c9c2818f7dbab44bd4fd17b7e1dceb3f1a236c18c96be4cc5dcf8329c748c0b1f8dc0f462e186458b3ede380ebc408fe56bfe21bc5aa8720a15122f90cec6 SHA512 941f6fcb8f52294f910dcf8e1aaf7f07bf83e7812d9325a709248c49013b46a959c6abdbaafd161ddcef96525d02aa939c68c9548841a6b66b94417f86b67527 -EBUILD nsscache-0.49.ebuild 2276 BLAKE2B 2132bbfdeeff0198ced92d3a385c0c34cad9bf891ede0c458a33e2660db46cd975b651f97f1a802d065ef16ce568772d270baceceadabcdbc91840351bb9e3bb SHA512 8dc89f467831a288b8cb12c693cc76fa27258ab00876a212050c0a923aab24a2a124aacab4e33da931afc265d1ba9cfe2b54236fe45e2b85b8eb710d3a440e02 +EBUILD nsscache-0.49-r1.ebuild 2196 BLAKE2B d45c2495d7799e3389a5d354366a0b6f2d9df97b25805b06469ed7118c49d9794d2c00f9e42432d104f55329c3939a1b7aaed0cc587edacf7a1000fa9e1170a5 SHA512 7f7ad9e805e41976fa7005c567b938bd717dca0f2644409879ba525d325c381eff4cc9ffe9a16457fd18d4f42fef4348c901cf497ebf20e11a87f5bdda3b3bb9 MISC metadata.xml 467 BLAKE2B 49769763ea33cf2fa9ff8614ee16353cd0454bc9ed634787f2782493949d7f25bac9720ad2f0c16d8f6ce45d3b4e79b0f8a6592a7bcc5668ad3c834094584406 SHA512 e3f7f6bdc779dfc2cf63e00940de55faa22a7a8ac4de539c4785c13eff97faf541bd1badb5616a3b8d0a53eabe278290216830fefa4c683d5654d93af98149a7 diff --git a/net-nds/nsscache/nsscache-0.49-r1.ebuild b/net-nds/nsscache/nsscache-0.49-r1.ebuild new file mode 100644 index 000000000000..b0fd6dc60bed --- /dev/null +++ b/net-nds/nsscache/nsscache-0.49-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="commandline tool to sync directory services to local cache" +HOMEPAGE="https://github.com/google/nsscache" +SRC_URI="https://github.com/google/nsscache/archive/version/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-version-${PV}" + +# upstream *sources* say "or later", but upstream metadata does not include the +# 'or later' clause. +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nsscache s3 test" + +# Optional extras: +# TODO: gcs? ( https://pypi.org/project/google-cloud-storage/ ) +# +# Testing: +# *unit* tests do not require networking. +# *integration* tests require openldap's slapd and networking +# +# The ebuild runs the unit testing explicitly, as upstream uses Docker to run +# the integration tests. +RDEPEND=" + nsscache? ( >=sys-auth/libnss-cache-0.10 ) + >=dev-python/python-ldap-3.4[${PYTHON_USEDEP}] + >=dev-python/pycurl-7.45.2[${PYTHON_USEDEP}] + s3? ( dev-python/boto3[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + dev-python/packaging[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +python_prepare_all() { + # nsscache.conf is example only, and should be installed in docs. + # Default config tries $PREFIX/config/nsscache.conf + sed -i \ + -e '/data_files/{s,.nsscache.conf.,,}' \ + setup.py \ + || die + # Upstream forgot to bump the version + sed -i \ + -e '/^__version__/s,0.48,0.49,g' \ + nss_cache/__init__.py \ + || die + + distutils-r1_python_prepare_all +} + +python_install() { + distutils-r1_python_install + + python_scriptinto /usr/libexec/nsscache + python_doexe examples/authorized-keys-command.py + + # Do not install the tests as functional source. + # Subject to some debate, see bug 923061 + # To be raised on gentoo-dev 2024/02/01 + #find "${D}" \ + # -path '*/site-packages/nss_cache/*' \( \ + # -iname '*_test.py*' \ + # -o -iname '*_test.*.py*' \ + # \) \ + # -delete \ + #|| die "find failed" +} + +python_install_all() { + distutils-r1_python_install_all + + doman nsscache.1 nsscache.conf.5 + dodoc THANKS *.md nsscache.conf nsscache.cron + + keepdir /var/lib/nsscache +} diff --git a/net-nds/nsscache/nsscache-0.49.ebuild b/net-nds/nsscache/nsscache-0.49.ebuild deleted file mode 100644 index 7c9dfe0b027a..000000000000 --- a/net-nds/nsscache/nsscache-0.49.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10,11,12} ) - -inherit distutils-r1 - -DESCRIPTION="commandline tool to sync directory services to local cache" -HOMEPAGE="https://github.com/google/nsscache" -SRC_URI="https://github.com/google/nsscache/archive/version/${PV}.tar.gz -> ${P}.tar.gz" - -# upstream *sources* say "or later", but upstream metadata does not include the -# 'or later' clause. -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="nsscache s3 test" - -# Optional extras: -# TODO: gcs? ( https://pypi.org/project/google-cloud-storage/ ) -# -# Testing: -# *unit* tests do not require networking. -# *integration* tests require openldap's slapd and networking -# -# The ebuild runs the unit testing explicitly, as upstream uses Docker to run -# the integration tests. -RDEPEND=" - nsscache? ( >=sys-auth/libnss-cache-0.10 ) - >=dev-python/python-ldap-3.4[${PYTHON_USEDEP}] - >=dev-python/pycurl-7.45.2[${PYTHON_USEDEP}] - s3? ( dev-python/boto3[${PYTHON_USEDEP}] )" -DEPEND="${RDEPEND} - dev-python/packaging[${PYTHON_USEDEP}] - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - )" - -S="${WORKDIR}/${PN}-version-${PV}" - -distutils_enable_tests pytest - -python_prepare_all() { - # nsscache.conf is example only, and should be installed in docs. - # Default config tries $PREFIX/config/nsscache.conf - sed -i \ - -e '/data_files/{s,.nsscache.conf.,,}' \ - setup.py - # Upstream forgot to bump the version - sed -i \ - -e '/^__version__/s,0.48,0.49,g' \ - nss_cache/__init__.py - - distutils-r1_python_prepare_all -} - -python_compile() { - distutils-r1_python_compile -} - -python_install() { - distutils-r1_python_install - - python_scriptinto /usr/libexec/nsscache - python_doexe examples/authorized-keys-command.py - - # Do not install the tests as functional source. - # Subject to some debate, see bug 923061 - # To be raised on gentoo-dev 2024/02/01 - #find "${D}" \ - # -path '*/site-packages/nss_cache/*' \( \ - # -iname '*_test.py*' \ - # -o -iname '*_test.*.py*' \ - # \) \ - # -delete \ - #|| die "find failed" -} - -python_install_all() { - distutils-r1_python_install_all - - doman nsscache.1 nsscache.conf.5 - dodoc THANKS *.md nsscache.conf nsscache.cron - - keepdir /var/lib/nsscache -} -- cgit v1.2.3