/[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.3 - (show annotations) (download)
Sat Nov 24 19:34:54 2012 UTC (20 months ago) by ssuominen
Branch: MAIN
Changes since 1.2: +9 -7 lines
Use udev.eclass to install udev rules into correct directory. Change from sys-fs/udev to virtual/dev-manager wrt #435060 by "El Goretto"

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

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.1.201206091838-r1.ebuild,v 1.2 2012/07/12 08:27:17 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 CDEPEND="virtual/dev-manager"
20 RDEPEND="${CDEPEND}"
21 DEPEND="
22 ${CDEPEND}
23 sys-devel/bison
24 sys-devel/flex
25 pam? ( virtual/pam )
26 sys-apps/paxctl"
27
28 S=${WORKDIR}/${PN}2
29
30 src_prepare() {
31 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 }
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