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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jan 5 10:36:37 2013 UTC (21 months, 2 weeks ago) by blueness
Branch: MAIN
Version bump

(Portage version: 2.1.11.31/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.201206091838-r1.ebuild,v 1.3 2012/11/24 19:34:54 ssuominen 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 CDEPEND="virtual/dev-manager"
20 RDEPEND="${CDEPEND}"
21 DEPEND="
22 ${CDEPEND}
23 sys-devel/bison
24 sys-devel/flex
25 pam? ( virtual/pam )"
26
27 S=${WORKDIR}/${PN}2
28
29 src_prepare() {
30 epatch "${FILESDIR}"/respect-gentoo-env.patch
31
32 # Without respect-gentoo-env.patch it's /etc/udev in Makefile:
33 sed -i -e "s:/lib/udev:$(udev_get_udevdir):" Makefile || die
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