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

Contents of /sys-apps/gradm/gradm-2.9.0.201202232055-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Aug 29 03:42:46 2012 UTC (23 months, 3 weeks ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove older version no longer needed for hardened-sources on the tree

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.0.201202232055-r1.ebuild,v 1.2 2012/07/12 08:27:17 blueness Exp $
4
5 EAPI="4"
6
7 inherit flag-o-matic toolchain-funcs versionator eutils
8
9 MY_PV="$(replace_version_separator 3 -)"
10 MY_PV="${MY_PV/2.9.0/2.9}"
11
12 DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
13 HOMEPAGE="http://www.grsecurity.net/"
14 SRC_URI="http://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz"
15 LICENSE="GPL-2"
16
17 SLOT="0"
18 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
19 IUSE="pam"
20
21 CDEPEND="sys-fs/udev"
22 RDEPEND="${CDEPEND}"
23 DEPEND="
24 ${CDEPEND}
25 sys-devel/bison
26 sys-devel/flex
27 pam? ( virtual/pam )
28 sys-apps/paxctl"
29
30 S="${WORKDIR}/${PN}2"
31
32 src_prepare() {
33 epatch "${FILESDIR}/respect-gentoo-env.patch"
34 }
35
36 src_compile() {
37 local target
38 use pam || target="nopam"
39
40 emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}"
41 }
42
43 src_install() {
44 einstall DESTDIR="${D}"
45 fperms 711 /sbin/gradm
46 }
47
48 pkg_postinst() {
49 udevadm control --reload-rules && udevadm trigger --action=add --sysname-match=grsec
50 einfo
51 ewarn
52 ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
53 ewarn "This version of gradm is only supported with hardened-sources >= 2.6.32-r10"
54 ewarn
55 einfo
56 }

  ViewVC Help
Powered by ViewVC 1.1.20