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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Mon Mar 14 23:19:09 2005 UTC (9 years, 9 months ago) by solar
Branch: MAIN
Changes since 1.3: +2 -2 lines
- unstable ppc64
(Portage version: 2.0.51-r15)

1 solar 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 solar 1.4 # $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.3.200503070918.ebuild,v 1.3 2005/03/12 19:09:47 weeve Exp $
4 solar 1.1
5     inherit flag-o-matic gcc eutils
6    
7     myPV=${PV:0:5}-${PV:6}
8    
9     MAINTAINER="solar@gentoo.org"
10     DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
11     HOMEPAGE="http://www.grsecurity.net/"
12     SRC_URI="http://www.grsecurity.net/gradm-${myPV}.tar.gz"
13     #SRC_URI="mirror://gentoo/gradm-${myPV}.tar.gz"
14     #RESTRICT=primaryuri
15     LICENSE="GPL-2"
16     SLOT="0"
17 solar 1.4 KEYWORDS="x86 ppc ~sparc arm amd64 ~ppc64 ia64 mips"
18 solar 1.1 IUSE=""
19     RDEPEND=""
20     DEPEND="virtual/libc
21     sys-devel/bison
22     sys-devel/flex
23     sys-apps/chpax"
24    
25     S="${WORKDIR}/${PN}2"
26    
27     src_unpack() {
28     unpack ${A}
29     cd ${S}
30    
31     #epatch ${FILESDIR}/gradm-2.1.2-non-interactive.patch
32    
33     ebegin "Patching Makefile to use gentoo CFLAGS"
34     sed -i -e "s|-O2|${CFLAGS}|" Makefile
35     eend $?
36     }
37    
38     src_compile() {
39     cd ${S}
40     emake CC="$(gcc-getCC)" || die "compile problem"
41     return 0
42     }
43    
44     src_install() {
45     cd ${S}
46     einstall DESTDIR=${D}
47     fperms 711 /sbin/gradm
48     return 0
49     }
50    
51     pkg_postinst() {
52     if [ ! -e ${ROOT}/dev/grsec ] ; then
53     einfo "Making character device for grsec2 learning mode"
54     mkdir -p -m 755 ${ROOT}/dev/
55     mknod -m 0622 ${ROOT}/dev/grsec c 1 12 || die "Cant mknod for grsec learning device"
56     fi
57     ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
58     }

  ViewVC Help
Powered by ViewVC 1.1.20