summaryrefslogtreecommitdiff
path: root/net-nds/nsscache
diff options
context:
space:
mode:
Diffstat (limited to 'net-nds/nsscache')
-rw-r--r--net-nds/nsscache/Manifest10
-rw-r--r--net-nds/nsscache/nsscache-0.30-r2.ebuild46
-rw-r--r--net-nds/nsscache/nsscache-0.30.ebuild41
-rw-r--r--net-nds/nsscache/nsscache-0.31.ebuild47
-rw-r--r--net-nds/nsscache/nsscache-0.32.ebuild47
-rw-r--r--net-nds/nsscache/nsscache-0.39.ebuild45
6 files changed, 27 insertions, 209 deletions
diff --git a/net-nds/nsscache/Manifest b/net-nds/nsscache/Manifest
index 8dce38189f54..008d3601ecef 100644
--- a/net-nds/nsscache/Manifest
+++ b/net-nds/nsscache/Manifest
@@ -1,12 +1,4 @@
-DIST nsscache-0.30-gentoo-authorized-keys-command.py 8004 BLAKE2B d5acb0edf6389a7dd1382aad290b1541f147c11d06e1e8458aa1c6a7a3dd9e5d1db0a1a0f6f63d489c0bc464d545c6a1b6cf752f8a0050f9efb6f6d576e6e32f SHA512 58d3053aa140cbec214033ea3c524e7e7b670aa94a6ff306b9d816ffd4c23b8c781b1178ef7ce14009f8b45afaf05f75e9248e8c1eebef790b838baef5f50c26
DIST nsscache-0.30-r3-gentoo-authorized-keys-command.py 11974 BLAKE2B 4272bab8d85ef0f39c8b26fd035009d3c77dd629fd7853e0072232393d329af1885ce44c4877d7718a37154661d9c85bb1f5276463875f9dfbbd023106d9d15a SHA512 b660a6ae19e6e42efbb07d0a368704706b0a0bd1bf0b2c84855f0d1c00d4cda80872432f5a25384d0c27e99bf60072beb12975bcfa0201b52fa040d0e6bc2da2
-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
-EBUILD nsscache-0.30-r2.ebuild 1258 BLAKE2B bc58fdd5f12687ed17e2966d3a2480285c451b34b7152d6d769b6a3781b1270f9dc37d914c2d6c0c888f0520de26e9566b1524bf334d1671437f5de4c6f91c5f SHA512 3572ebb5a3f386e3b518ee8de4615e825f9a475a8cfc80e5075d3094580d4006c9c86b84dd8cc1d4ef3e2481eb73a0f07b8b380e1f4b30eb4b73b222905425d9
-EBUILD nsscache-0.30.ebuild 984 BLAKE2B f56a5d51be382f98abbc8db71de294d0227d7759e9ce9e288b356f41561c27d78bfb2c8a5487a7071cc3f893b8c51e776aed451116bdb28d2657a7001b0ab036 SHA512 e543dab6c1d1b79af6a19156eecf54f257e428798e002b349a6e0870253c3f326b78ad62d75ac086a40370172c8296fb72e0e52b3bd541c5c746a5bc67b53cb0
-EBUILD nsscache-0.31.ebuild 1250 BLAKE2B dac8feb0ae93798a2c6bd82491180ffdaf0185b7197fa271ccd48e2465eb7c3bdc6e1a6aced484736aa4ea1fde4ec947938736062825d10e32f999633daeea46 SHA512 97941a27a899a81330cd9ebaabe99f7c1c39c772cf8407171e9f6f743516e2da66bf9fa5efd363e62746f86f3fc7540f1729130fd8ae116025a708885748cca5
-EBUILD nsscache-0.32.ebuild 1250 BLAKE2B dac8feb0ae93798a2c6bd82491180ffdaf0185b7197fa271ccd48e2465eb7c3bdc6e1a6aced484736aa4ea1fde4ec947938736062825d10e32f999633daeea46 SHA512 97941a27a899a81330cd9ebaabe99f7c1c39c772cf8407171e9f6f743516e2da66bf9fa5efd363e62746f86f3fc7540f1729130fd8ae116025a708885748cca5
-EBUILD nsscache-0.39.ebuild 1522 BLAKE2B b19ad72d1d7b9cf2095d9631cc7408cda27befd2c8919930316c843b64adf1cb4a10d76a52f7eb05f4f86a4281b3818092a5c90647f90796c175860cd40b0b5c SHA512 c48c3418283de752c2f5e2d0961780df6b3c715465e96a5baec87e9c842c7f8958587e4bdb6867ff5cb89b28f353ac2d75c1f98139f5d029e44c6033ec52b609
+EBUILD nsscache-0.39.ebuild 1534 BLAKE2B c07e454e8bcc227fcea4840ebcee482f81ceb3d8c75e1b5b3c78f995bc49fea61aca4c70e6411ed512af49dc6704f789123c21b2a506d17a21cec3789b5ce917 SHA512 73dbb7a72d9773f2d794f2db7f0d37f491bcc38b71a27631da8ec0df4e6ba166345bb97d1cdeda1f331f70443da4365e14a1fb7c1340352cc9538bfaf0addb44
MISC metadata.xml 455 BLAKE2B 1e71e0d24defac1beb64e865e0d30327414874bd0017fed5059e530f3dc08c8f11d20b6234bd16486bd6192c52e417e2c85262d1479e6da07e6cff7027ac7e28 SHA512 04e60c7b2db069aecaa3d69cb2760143ccf30a34f5ac304d63962de65bc4db3fbcadd8be27c8a7b949a115ca0e879f3136773a6e63f4573faa817efc1821f075
diff --git a/net-nds/nsscache/nsscache-0.30-r2.ebuild b/net-nds/nsscache/nsscache-0.30-r2.ebuild
deleted file mode 100644
index 522bf5454392..000000000000
--- a/net-nds/nsscache/nsscache-0.30-r2.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-
-inherit eutils 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
- https://dev.gentoo.org/~robbat2/nsscache-0.30-gentoo-authorized-keys-command.py"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-IUSE="nsscache"
-
-DEPEND="${PYTHON_DEPS}
- dev-python/python-ldap[${PYTHON_USEDEP}]
- dev-python/pycurl[${PYTHON_USEDEP}]
- dev-python/bsddb3[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}
- nsscache? ( >=sys-auth/libnss-cache-0.10 )"
-RESTRICT="test"
-S="${WORKDIR}/${PN}-version-${PV}"
-
-src_prepare() {
- find "${S}" -name '*.py' -exec \
- sed -i '/^import bsddb$/s,bsddb,bsddb3 as bsddb,g' \
- {} \+
- distutils-r1_src_prepare
-}
-
-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}"/nsscache-0.30-gentoo-authorized-keys-command.py authorized-keys-command.py
-
- keepdir /var/lib/nsscache
-}
diff --git a/net-nds/nsscache/nsscache-0.30.ebuild b/net-nds/nsscache/nsscache-0.30.ebuild
deleted file mode 100644
index 822766f671c9..000000000000
--- a/net-nds/nsscache/nsscache-0.30.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-
-inherit eutils 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"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-IUSE="nsscache"
-
-DEPEND="${PYTHON_DEPS}
- dev-python/python-ldap[${PYTHON_USEDEP}]
- dev-python/pycurl[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}
- nsscache? ( >=sys-auth/libnss-cache-0.10 )"
-RESTRICT="test"
-S="${WORKDIR}/${PN}-version-${PV}"
-
-src_prepare() {
- find "${S}" -name '*.py' -exec \
- sed -i '/^import bsddb$/s,bsddb,bsddb3 as bsddb,g' \
- {} \+
- distutils-r1_src_prepare
-}
-
-src_install() {
- distutils-r1_src_install
-
- doman nsscache.1 nsscache.conf.5
- dodoc THANKS nsscache.cron
-
- keepdir /var/lib/nsscache
-}
diff --git a/net-nds/nsscache/nsscache-0.31.ebuild b/net-nds/nsscache/nsscache-0.31.ebuild
deleted file mode 100644
index a62723e48c66..000000000000
--- a/net-nds/nsscache/nsscache-0.31.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-
-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"
-
-DEPEND="${PYTHON_DEPS}
- dev-python/python-ldap[${PYTHON_USEDEP}]
- dev-python/pycurl[${PYTHON_USEDEP}]
- dev-python/bsddb3[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}
- nsscache? ( >=sys-auth/libnss-cache-0.10 )"
-RESTRICT="test"
-S="${WORKDIR}/${PN}-version-${PV}"
-
-src_prepare() {
- find "${S}" -name '*.py' -exec \
- sed -i '/^import bsddb$/s,bsddb,bsddb3 as bsddb,g' \
- {} \+
- distutils-r1_src_prepare
-}
-
-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
-}
diff --git a/net-nds/nsscache/nsscache-0.32.ebuild b/net-nds/nsscache/nsscache-0.32.ebuild
deleted file mode 100644
index a62723e48c66..000000000000
--- a/net-nds/nsscache/nsscache-0.32.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-
-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"
-
-DEPEND="${PYTHON_DEPS}
- dev-python/python-ldap[${PYTHON_USEDEP}]
- dev-python/pycurl[${PYTHON_USEDEP}]
- dev-python/bsddb3[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}
- nsscache? ( >=sys-auth/libnss-cache-0.10 )"
-RESTRICT="test"
-S="${WORKDIR}/${PN}-version-${PV}"
-
-src_prepare() {
- find "${S}" -name '*.py' -exec \
- sed -i '/^import bsddb$/s,bsddb,bsddb3 as bsddb,g' \
- {} \+
- distutils-r1_src_prepare
-}
-
-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
-}
diff --git a/net-nds/nsscache/nsscache-0.39.ebuild b/net-nds/nsscache/nsscache-0.39.ebuild
index f615656a1ee1..f50a61c5cd89 100644
--- a/net-nds/nsscache/nsscache-0.39.ebuild
+++ b/net-nds/nsscache/nsscache-0.39.ebuild
@@ -1,10 +1,11 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
+
PYTHON_COMPAT=( python3_{6,7,8} )
-inherit eutils distutils-r1
+inherit distutils-r1
DESCRIPTION="commandline tool to sync directory services to local cache"
HOMEPAGE="https://github.com/google/nsscache"
@@ -16,44 +17,50 @@ SRC_URI="
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
IUSE="nsscache s3"
+RESTRICT="test" # requires network
-DEPEND="${PYTHON_DEPS}
- dev-python/ldap3[${PYTHON_USEDEP}]
- dev-python/pycurl[${PYTHON_USEDEP}]
- dev-python/bsddb3[${PYTHON_USEDEP}]
- s3? ( dev-python/boto3[${PYTHON_USEDEP}] )"
+DEPEND="
+ 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
+ nsscache? ( >=sys-auth/libnss-cache-0.10 )"
+
S="${WORKDIR}/${PN}-version-${PV}"
-src_prepare() {
+python_prepare_all() {
sed -i \
-e "/setup_requires/s,'pytest-runner',,g" \
-e '/tests_require/s,\[.*\],[],g' \
- "${S}"/setup.py || die
+ setup.py || die
sed -i \
-e '/test=pytest/d' \
- "${S}"/setup.cfg || die
+ setup.cfg || die
sed -i \
-e '/pytest/d' \
- "${S}"/requirements.txt || die
- distutils-r1_src_prepare
+ requirements.txt || die
+
+ distutils-r1_python_prepare_all
}
python_compile() {
distutils-r1_python_compile --verbose
}
-src_install() {
- distutils-r1_src_install
+python_install() {
+ distutils-r1_python_install
+
+ python_scriptinto /usr/libexec/nsscache
+ python_newexe "${DISTDIR}"/"${SCRIPT_A}" authorized-keys-command.py
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
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
}