diff options
author | 2016-01-05 15:08:09 -0800 | |
---|---|---|
committer | 2016-01-05 23:37:28 -0800 | |
commit | 4aac468dd735c08eb7441e1129c180381a2c7689 (patch) | |
tree | 3141fad19cd5758e90ff51bea23b0cf5f129d7fd /net-nds/nsscache/nsscache-0.30-r2.ebuild | |
parent | dev-ruby/text: add 1.3.1 (diff) | |
download | gentoo-4aac468dd735c08eb7441e1129c180381a2c7689.tar.gz gentoo-4aac468dd735c08eb7441e1129c180381a2c7689.tar.bz2 gentoo-4aac468dd735c08eb7441e1129c180381a2c7689.zip |
net-nds/nsscache: much better authorized_keys command, in use in infra soon.
Package-Manager: portage-2.2.24
Diffstat (limited to 'net-nds/nsscache/nsscache-0.30-r2.ebuild')
-rw-r--r-- | net-nds/nsscache/nsscache-0.30-r2.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net-nds/nsscache/nsscache-0.30-r2.ebuild b/net-nds/nsscache/nsscache-0.30-r2.ebuild new file mode 100644 index 000000000000..b6456123856b --- /dev/null +++ b/net-nds/nsscache/nsscache-0.30-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="nssdb nsscache" + +DEPEND="${PYTHON_DEPS} + dev-python/python-ldap[${PYTHON_USEDEP}] + dev-python/pycurl[${PYTHON_USEDEP}] + dev-python/bsddb3[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + nssdb? ( sys-libs/nss-db ) + 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 +} |