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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Sep 17 13:29:18 2013 UTC (5 years, 2 months ago) by blueness
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable on amd64 and x86

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

1 blueness 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.9.1.201308091629.ebuild,v 1.1 2013/08/10 11:56:27 blueness Exp $
4 blueness 1.1
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 blueness 1.2 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
17 blueness 1.1 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-r2.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