aboutsummaryrefslogtreecommitdiff
blob: b266cf5d17986bff2a303ad9fdfdaf921130e9cf (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

inherit toolchain-funcs

MY_PN="${PN#arachsys-}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Simple containers using Linux user namespaces"
HOMEPAGE="https://arachsys.github.io"
SRC_URI="https://github.com/arachsys/${MY_PN}/archive/refs/tags/${MY_P}.tar.gz"
# weird tag names
S="${WORKDIR}/${MY_PN}-${MY_P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+suid"

src_compile() {
	emake CC="$(tc-getCC)" CFLAGS="$CFLAGS"
}

src_install() {
	into /
	dobin inject contain pseudo
	dodoc README TIPS
	use suid && fperms u+s /bin/contain /bin/pseudo
}