annotate app-admin/jailkit/jailkit-2.11.ebuild @ 367:955e226c86a9

Automated merge with https://localhost/hg/portage
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 11 Nov 2014 09:54:43 +0100
parents b7f1409d82f3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
218
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header: $
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 EAPI="2"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 inherit autotools eutils
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 DESCRIPTION="Allows you to easily put programs and users in a chrooted environment"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 HOMEPAGE="http://olivier.sessink.nl/jailkit/"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 SRC_URI="http://olivier.sessink.nl/${PN}/${P}.tar.bz2"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 LICENSE="BSD"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 SLOT="0"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 KEYWORDS="~x86"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 IUSE=""
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 src_prepare() {
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 epatch \
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 "${FILESDIR}/${P}-ldflags.patch" \
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 "${FILESDIR}/${P}-pyc.patch" \
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 "${FILESDIR}/${P}-noshells.patch"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 eautoreconf
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 }
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 src_install() {
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 emake DESTDIR="${D}" install || die "emake install failed"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 doinitd "${FILESDIR}/jailkit" || die "doinit install failed"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 }
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 pkg_postinst() {
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 ebegin "Updating /etc/shells"
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 { grep -v "^/usr/sbin/jk_chrootsh$" "${ROOT}"etc/shells; echo "/usr/sbin/jk_chrootsh"; } > "${T}"/shells
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 mv -f "${T}"/shells "${ROOT}"etc/shells
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 eend $?
b7f1409d82f3 add jailkit ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 }