/[gentoo-x86]/sys-apps/gradm/gradm-2.9.1.201307031629.ebuild
Gentoo

Contents of /sys-apps/gradm/gradm-2.9.1.201307031629.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 3 12:44:54 2013 UTC (16 months, 3 weeks ago) by blueness
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable amd64 x86

(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.9.1.201307031629.ebuild,v 1.1 2013/07/06 15:14:29 blueness Exp $
4
5 EAPI="5"
6 inherit flag-o-matic toolchain-funcs versionator eutils udev
7
8 MY_PV="$(replace_version_separator 3 -)"
9
10 DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
11 HOMEPAGE="http://www.grsecurity.net/"
12 SRC_URI="http://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz"
13 LICENSE="GPL-2"
14
15 SLOT="0"
16 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
17 IUSE="pam"
18
19 RDEPEND=""
20 DEPEND="
21 sys-devel/bison
22 sys-devel/flex
23 pam? ( virtual/pam )"
24
25 S=${WORKDIR}/${PN}2
26
27 src_prepare() {
28 epatch "${FILESDIR}"/respect-gentoo-env.patch
29 sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die
30 }
31
32 src_compile() {
33 local target
34 use pam || target="nopam"
35
36 emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}"
37 }
38
39 src_install() {
40 einstall DESTDIR="${D}"
41 fperms 711 /sbin/gradm
42 }
43
44 pkg_postinst() {
45 ewarn
46 ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
47 ewarn "This version of gradm is only supported with hardened-sources >= 2.6.32-r10"
48 ewarn
49 }

  ViewVC Help
Powered by ViewVC 1.1.20