You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-nds/nsscache/nsscache-0.21.14.ebuild

47 lines
1.1 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/nsscache/nsscache-0.21.14.ebuild,v 1.2 2011/09/08 22:37:17 robbat2 Exp $
EAPI=3
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
PYTHON_USE_WITH="berkdb"
inherit eutils python distutils
DESCRIPTION="commandline tool to sync directory services to local cache"
HOMEPAGE="http://code.google.com/p/nsscache/"
SRC_URI="http://nsscache.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nssdb nsscache"
DEPEND="dev-python/python-ldap
dev-python/pycurl"
RDEPEND="${DEPEND}
nssdb? ( sys-libs/nss-db )
nsscache? ( >=sys-auth/libnss-cache-0.10 )"
RESTRICT="test"
src_prepare() {
distutils_src_prepare
epatch "${FILESDIR}"/${PN}-0.8.3-starttls.patch
}
src_install() {
distutils_src_install
# overwrite default with working config.
insinto /etc
doins "${FILESDIR}/nsscache.conf" || die
doman nsscache.1 nsscache.conf.5
dodoc THANKS nsscache.cron
keepdir /var/lib/nsscache
}