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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Mar 24 12:42:05 2013 UTC (19 months, 1 week ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove older stable

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

1 blueness 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.4 # $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.9.1.201206091838-r1.ebuild,v 1.3 2012/11/24 19:34:54 ssuominen Exp $
4 blueness 1.1
5 ssuominen 1.3 EAPI=5
6     inherit flag-o-matic toolchain-funcs versionator eutils udev
7 blueness 1.1
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 ssuominen 1.3 CDEPEND="virtual/dev-manager"
20 blueness 1.1 RDEPEND="${CDEPEND}"
21     DEPEND="
22     ${CDEPEND}
23     sys-devel/bison
24     sys-devel/flex
25     pam? ( virtual/pam )
26     sys-apps/paxctl"
27    
28 ssuominen 1.3 S=${WORKDIR}/${PN}2
29 blueness 1.1
30     src_prepare() {
31 ssuominen 1.3 epatch "${FILESDIR}"/respect-gentoo-env.patch
32    
33     # Without respect-gentoo-env.patch it's /etc/udev in Makefile:
34     sed -i -e "s:/lib/udev:$(udev_get_udevdir):" Makefile || die
35 blueness 1.1 }
36    
37     src_compile() {
38     local target
39     use pam || target="nopam"
40    
41     emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}"
42     }
43    
44     src_install() {
45     einstall DESTDIR="${D}"
46     fperms 711 /sbin/gradm
47     }
48    
49     pkg_postinst() {
50     udevadm control --reload-rules && udevadm trigger --action=add --sysname-match=grsec
51     einfo
52     ewarn
53     ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
54     ewarn "This version of gradm is only supported with hardened-sources >= 2.6.32-r10"
55     ewarn
56     einfo
57     }

  ViewVC Help
Powered by ViewVC 1.1.20