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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Wed Sep 23 20:24:21 2009 UTC (9 years, 1 month ago) by patrick
Branch: MAIN
Changes since 1.5: +2 -3 lines
Remove virtual/libc
(Portage version: 2.2_rc41/cvs/Linux x86_64)

1 gengor 1.5 # Copyright 1999-2009 Gentoo Foundation
2 phreak 1.1 # Distributed under the terms of the GNU General Public License v2
3 patrick 1.6 # $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.12.200805181037.ebuild,v 1.5 2009/05/25 03:02:05 gengor Exp $
4 phreak 1.1
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 gengor 1.5 SRC_URI="http://dev.gentoo.org/~gengor/distfiles/${CATEGORY}/${PN}/${PN}-${myPV}.tar.gz"
12 phreak 1.1 #RESTRICT=primaryuri
13     LICENSE="GPL-2"
14     SLOT="0"
15 vapier 1.4 KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ~ppc64 s390 sh ~sparc x86"
16 phreak 1.1 IUSE="pam"
17     RDEPEND=""
18 patrick 1.6 DEPEND="sys-devel/bison
19 phreak 1.1 sys-devel/flex
20     pam? ( virtual/pam )
21     || ( sys-apps/paxctl sys-apps/chpax )"
22    
23     S="${WORKDIR}/${PN}2"
24    
25     src_unpack() {
26     unpack ${A}
27     cd "${S}"
28     epatch "${FILESDIR}"/2.1.7.200511041858-non-lazy-bindings.patch
29     sed -i -e s/MKNOD=/'MKNOD ?='/ -e s/STRIP=/'STRIP ?='/ "${S}/Makefile"
30     }
31    
32     src_compile() {
33     local target=""
34     use pam || target="nopam"
35    
36     emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem"
37     }
38    
39     src_install() {
40     einstall DESTDIR="${D}" MKNOD=true STRIP=true || die "einstall failed"
41     fperms 711 /sbin/gradm
42     }
43    
44     pkg_postinst() {
45     [ -e "${ROOT}"/dev/grsec ] && rm -f "${ROOT}"/dev/grsec
46     einfo "Making character device for grsec2 learning mode"
47     mkdir -p -m 755 "${ROOT}"/dev/
48     mknod -m 0622 "${ROOT}"/dev/grsec c 1 13 || die "Cant mknod for grsec learning device"
49    
50     ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
51     ewarn
52     ewarn "This version of gradm is only useful/supported with a kernel >=2.6.25!"
53     }

  ViewVC Help
Powered by ViewVC 1.1.20