1 # Copyright 1999-2009 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"
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"
32 ebegin "Updating /etc/shells"
33 ( grep -v "^/usr/sbin/jk_chroots$" "${ROOT}"etc/shells; echo "/usr/sbin/jk_chroots" ) > "${T}"/shells
34 mv -f "${T}"/shells "${ROOT}"etc/shells
39 elog "If you want to keep your system clean, don't forget to remove"
40 elog "the line containing /usr/sbin/jk_chrootsh from /etc/shells."