app-admin/jailkit - 2.23 (hering-overlay)

Search

Install

Install this version:

emerge -a =app-admin/jailkit-2.23

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-admin/jailkit-2.23

Or alternatively:

emerge --autounmask-write -a =app-admin/jailkit-2.23

Package Information

Description:
Allows you to easily put programs and users in a chrooted environment
Homepage:
http://olivier.sessink.nl/jailkit/
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
2.23 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( pypy3 python3_{8..15} python3_{13..14}t )

inherit autotools python-single-r1 systemd

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/${PN}/${P}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="systemd"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="${PYTHON_DEPS}
	systemd? ( sys-apps/systemd )"

src_prepare() {
	eapply \
		"${FILESDIR}/pyc.patch" \
		"${FILESDIR}/noshells.patch"
	eautoreconf
	default
}

src_install() {
	emake DESTDIR="${D}" PYTHONINTERPRETER=${PYTHON} install || die "emake install failed"

	doinitd "${FILESDIR}/jailkit.initscript"
	if use systemd ; then
		systemd_dounit "${FILESDIR}/jailkit.service"
	fi

	sed -i -e 's:^#!.*:#!/usr/bin/env python3:' "${ED}"/usr/sbin/* || die
	python_fix_shebang "${ED}"
}

pkg_postinst() {
	ebegin "Updating /etc/shells"
	{ grep -v "^/usr/sbin/jk_chrootsh$" "${ROOT}"/etc/shells; echo "/usr/sbin/jk_chrootsh"; } > "${T}"/shells
	mv -f "${T}"/shells "${ROOT}"/etc/shells
	eend $?
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-admin/jailkit | euse -E <flag> -p app-admin/jailkit | euse -D <flag> -p app-admin/jailkit

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

	systemd? ( sys-apps/systemd )

Manifest for 2.23

Type File Size Source URLs
DIST jailkit-2.23.tar.bz2 116285 bytes http://olivier.sessink.nl/jailkit/jailkit-2.23.tar.bz2