mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-07 21:55:04 +02:00
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/30583 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
29 lines
594 B
Bash
29 lines
594 B
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Switch user and group id and exec"
|
|
HOMEPAGE="https://github.com/ncopa/su-exec"
|
|
SRC_URI="https://github.com/ncopa/su-exec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="static"
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -i -e "s/-Werror//" Makefile || die
|
|
}
|
|
|
|
src_compile() {
|
|
CC="$(tc-getCC)" emake $(usex static "${PN}-static" "")
|
|
}
|
|
|
|
src_install() {
|
|
newbin ${PN}$(usex static "-static" "") ${PN}
|
|
dodoc README.md
|
|
}
|