blob: 5469c661ce53a72b8a98662d3de2522a103f26bf (
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
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit toolchain-funcs
DESCRIPTION="Run commands as super user or another user, alternative to sudo from OpenBSD"
MY_PN=OpenDoas
MY_P=${MY_PN}-${PV}
HOMEPAGE="https://github.com/Duncaen/OpenDoas"
SRC_URI="https://github.com/Duncaen/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}"/${MY_P}
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~arm"
IUSE="pam"
RDEPEND="pam? ( virtual/pam )"
DEPEND="${RDEPEND}
virtual/yacc"
src_prepare()
{
default
sed -i 's/-Werror //' Makefile || die
}
src_configure()
{
tc-export CC AR
./configure \
--prefix="${EPREFIX}"/usr \
--sysconfdir="${EPREFIX}"/etc \
$(use_with pam) \
|| die
}
|