| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-nds/nsscache/nsscache-0.8.8.ebuild,v 1.1 2010/05/04 02:42:38 idl0r Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
|
| 7 |
PYTHON_DEPEND="2"
|
| 8 |
SUPPORT_PYTHON_ABIS="1"
|
| 9 |
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
| 10 |
|
| 11 |
inherit eutils python distutils
|
| 12 |
|
| 13 |
DESCRIPTION="commandline tool to sync directory services to local cache"
|
| 14 |
HOMEPAGE="http://code.google.com/p/nsscache/"
|
| 15 |
SRC_URI="http://nsscache.googlecode.com/files/${P}.tar.gz"
|
| 16 |
|
| 17 |
LICENSE="GPL-2"
|
| 18 |
SLOT="0"
|
| 19 |
KEYWORDS="~amd64 ~x86"
|
| 20 |
IUSE="nssdb nsscache"
|
| 21 |
|
| 22 |
DEPEND="dev-python/python-ldap"
|
| 23 |
RDEPEND="${DEPEND}
|
| 24 |
nssdb? ( sys-libs/nss-db )
|
| 25 |
nsscache? ( sys-auth/libnss-cache )"
|
| 26 |
|
| 27 |
src_prepare() {
|
| 28 |
distutils_src_prepare
|
| 29 |
epatch "${FILESDIR}"/${PN}-0.8.3-starttls.patch
|
| 30 |
}
|
| 31 |
|
| 32 |
src_install() {
|
| 33 |
distutils_src_install
|
| 34 |
insinto /etc
|
| 35 |
doins "${FILESDIR}/nsscache.conf" # overwrite default with working config.
|
| 36 |
doman nsscache.1 nsscache.conf.5
|
| 37 |
dodoc THANKS nsscache.cron
|
| 38 |
keepdir /var/lib/nsscache
|
| 39 |
}
|