1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit flag-o-matic toolchain-funcs udev versionator
7 MY_PV="$(replace_version_separator 2 -)"
9 DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
10 HOMEPAGE="https://www.grsecurity.net/"
11 SRC_URI="https://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
22 pam? ( sys-libs/pam )"
27 "${FILESDIR}"/respect-gentoo-env-r3.patch
32 sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die
37 use pam || target="nopam"
39 emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}"
43 emake DESTDIR="${D}" install
44 fperms 711 /sbin/gradm
49 ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode."