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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun May 15 22:40:25 2005 UTC (9 years, 1 month ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
- stable x86 - use toolchain-funcs vs gcc eclass - cleaned out older versions
(Portage version: 2.0.51.21)

1 # Copyright 1999-2005 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.0.ebuild,v 1.4 2005/02/25 19:02:35 solar Exp $
4
5 inherit flag-o-matic gcc eutils
6
7 MAINTAINER="solar@gentoo.org"
8 DESCRIPTION="Administrative interface for grsecuritys2 access control lists"
9 HOMEPAGE="http://www.grsecurity.net/"
10 SRC_URI="http://www.grsecurity.net/gradm-${PV}-200501071935.tar.gz"
11 #SRC_URI="mirror://gentoo/gradm-${PV}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="x86 ppc ~sparc arm amd64"
16 IUSE=""
17 RDEPEND=""
18 DEPEND="virtual/libc
19 sys-devel/bison
20 sys-devel/flex
21 sys-apps/chpax"
22
23 S="${WORKDIR}/${PN}2"
24
25 src_unpack() {
26 unpack ${A}
27 cd ${S}
28
29 ebegin "Patching Makefile to use gentoo CFLAGS"
30 sed -i -e "s|-O2|${CFLAGS}|" Makefile
31 eend $?
32 }
33
34 src_compile() {
35 cd ${S}
36 emake CC="$(gcc-getCC)" || die "compile problem"
37 return 0
38 }
39
40 src_install() {
41 cd ${S}
42 einstall DESTDIR=${D}
43 fperms 711 /sbin/gradm
44 return 0
45 }
46
47 pkg_postinst() {
48 if [ ! -e ${ROOT}/dev/grsec ] ; then
49 einfo "Making character device for grsec2 learning mode"
50 mkdir -p -m 755 ${ROOT}/dev/
51 mknod -m 0622 ${ROOT}/dev/grsec c 1 12 || die "Cant mknod for grsec learning device"
52 fi
53 ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20