1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools eutils
9 DESCRIPTION="Allows you to easily put programs and users in a chrooted environment"
10 HOMEPAGE="http://olivier.sessink.nl/jailkit/"
11 SRC_URI="http://olivier.sessink.nl/${PN}/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
20 "${FILESDIR}/${P}-ldflags.patch" \
21 "${FILESDIR}/${P}-pyc.patch" \
22 "${FILESDIR}/${P}-noshells.patch"
27 emake DESTDIR="${D}" install || die "emake install failed"
28 doinitd "${FILESDIR}/jailkit" || die "doinit install failed"
32 ebegin "Updating /etc/shells"
33 { grep -v "^/usr/sbin/jk_chrootsh$" "${ROOT}"etc/shells; echo "/usr/sbin/jk_chrootsh"; } > "${T}"/shells
34 mv -f "${T}"/shells "${ROOT}"etc/shells