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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Mar 24 18:08:48 2009 UTC (5 years, 7 months ago) by gengor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Clean out old versions of sys-apps/gradm
(Portage version: 2.1.6.7/cvs/Linux i686)

1 # Copyright 1999-2007 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.1.9.200602141850.ebuild,v 1.7 2007/04/29 15:23:35 phreak Exp $
4
5 inherit flag-o-matic toolchain-funcs eutils versionator
6
7 myPV="$(replace_version_separator 3 -)"
8
9 DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
10 HOMEPAGE="http://www.grsecurity.net/"
11 SRC_URI="mirror://gentoo/gradm-${myPV}.tar.gz"
12 #RESTRICT=primaryuri
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha amd64 arm ia64 ~mips ppc ppc64 s390 sh ~sparc x86"
16 IUSE="pam"
17 RDEPEND=""
18 DEPEND="virtual/libc
19 sys-devel/bison
20 sys-devel/flex
21 pam? ( virtual/pam )
22 || (
23 sys-apps/paxctl
24 sys-apps/chpax
25 )"
26
27 S="${WORKDIR}/${PN}2"
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32 epatch "${FILESDIR}"/2.1.7.200511041858-non-lazy-bindings.patch
33 epatch "${FILESDIR}/${PN}_${PV}-fix-admin-role.patch"
34 epatch "${FILESDIR}/${PN}_${PV}-fix-define-order.patch"
35 }
36
37 src_compile() {
38 local target=""
39 use pam || target="nopam"
40
41 emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem"
42 }
43
44 src_install() {
45 einstall DESTDIR="${D}" || die "einstall failed"
46 fperms 711 /sbin/gradm
47 }
48
49 pkg_postinst() {
50 if [ ! -e "${ROOT}"/dev/grsec ] ; then
51 einfo "Making character device for grsec2 learning mode"
52 mkdir -p -m 755 "${ROOT}"/dev/
53 mknod -m 0622 "${ROOT}"/dev/grsec c 1 13 || die "Cant mknod for grsec learning device"
54 fi
55 ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
56 }

  ViewVC Help
Powered by ViewVC 1.1.20