blob: f51e2f258af454888ffbbc40067d80bc18284b68 (
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
29
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
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
}
|