summaryrefslogtreecommitdiff
blob: 5ff61b11846721fba6a8a841fa4a42f460af7b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils
DESCRIPTION="Allows you to easily put programs and users in a chrooted environment"
HOMEPAGE="http://olivier.sessink.nl/jailkit/"
SRC_URI="http://olivier.sessink.nl/jailkit/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="dev-lang/python"
RDEPEND="${DEPEND}"
# The following line is for version 2.1 only
S="${WORKDIR}/${PN}"

src_unpack() {
	unpack "${A}"
	cd "${S}"
	epatch "${FILESDIR}/jailkit-2.0-destdir.patch"
	epatch "${FILESDIR}/jailkit-2.1-gentoo-sandbox.patch"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	doinitd "${FILESDIR}/jailkit"
}

pkg_postinst() {
	elog "Don't forget to add /usr/sbin/jk_chrootsh to /etc/shells."
}

pkg_postrm() {
	elog "If you want to keep your system clean, don't forget to remove"
	elog "the line containing /usr/sbin/jk_chrootsh from /etc/shells."
}