summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-01-01 11:09:18 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2016-01-01 11:09:40 -0800
commit3f1eca2bad3105fa709323298a683a9f55f9e627 (patch)
tree70f8250760bc2cfbe0e2b5d022b7ea94d234f6c3 /net-nds
parentprofiles: mask dev-libs/pth on musl, bug #525136 (diff)
downloadgentoo-3f1eca2bad3105fa709323298a683a9f55f9e627.tar.gz
gentoo-3f1eca2bad3105fa709323298a683a9f55f9e627.tar.bz2
gentoo-3f1eca2bad3105fa709323298a683a9f55f9e627.zip
net-nds/nsscache: dev-python/bsddb3 port, also newer python eclass usage
Package-Manager: portage-2.2.24
Diffstat (limited to 'net-nds')
-rw-r--r--net-nds/nsscache/nsscache-0.23-r1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/net-nds/nsscache/nsscache-0.23-r1.ebuild b/net-nds/nsscache/nsscache-0.23-r1.ebuild
new file mode 100644
index 000000000000..aaa5aaddf5a2
--- /dev/null
+++ b/net-nds/nsscache/nsscache-0.23-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 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://nsscache.googlecode.com/files/${P}.tar.gz"
+
+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}]
+ nssdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )"
+RDEPEND="${DEPEND}
+ nssdb? ( sys-libs/nss-db )
+ nsscache? ( >=sys-auth/libnss-cache-0.10 )"
+RESTRICT="test"
+
+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
+}