Mercurial > hg > portage
annotate app-admin/jailkit/jailkit-2.13.ebuild @ 514:5d0d2cd775ca
new release 1.44.1
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Wed, 15 Apr 2020 13:15:19 +0200 |
parents | f379bcbcfffa |
children |
rev | line source |
---|---|
252
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2010 Gentoo Foundation |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # $Header: $ |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 EAPI="2" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 inherit autotools eutils |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 DESCRIPTION="Allows you to easily put programs and users in a chrooted environment" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 HOMEPAGE="http://olivier.sessink.nl/jailkit/" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 SRC_URI="http://olivier.sessink.nl/${PN}/${P}.tar.bz2" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 LICENSE="BSD" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 SLOT="0" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 KEYWORDS="~x86" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 IUSE="" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 src_prepare() { |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 epatch \ |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 "${FILESDIR}/${P}-ldflags.patch" \ |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 "${FILESDIR}/${P}-pyc.patch" \ |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 "${FILESDIR}/${P}-noshells.patch" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 eautoreconf |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 } |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 src_install() { |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 emake DESTDIR="${D}" install || die "emake install failed" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 doinitd "${FILESDIR}/jailkit" || die "doinit install failed" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 } |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 pkg_postinst() { |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 ebegin "Updating /etc/shells" |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
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 |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 mv -f "${T}"/shells "${ROOT}"etc/shells |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 eend $? |
f379bcbcfffa
ebuild for jailkit 2.13 that actually works
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 } |