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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Apr 19 01:48:53 2004 UTC (11 years ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
grsec1 has been deprecated upstream and thus will no longer be supported by gentoo either. This means it's time to flush your old policies and begin using the really nice gradm2 learning mode offers. Note: also that the gradm2 package has also been deprecated and is now simply this one. This gradm-2 works for both 2.4.x and 2.6.x kernels. Gentoo init.d/conf.d scripts comming in due time.. User contributions welcome for that.

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/sys-apps/gradm/gradm-1.9.13.ebuild,v 1.4 2004/03/08 21:09:58 avenj Exp $
4
5 inherit gcc flag-o-matic
6
7 DESCRIPTION="Administrative interface for grsecurity ${PV} access control lists"
8 SRC_URI="http://www.grsecurity.net/${P}.tar.gz"
9 HOMEPAGE="http://www.grsecurity.net/"
10
11 LICENSE="GPL-2"
12 KEYWORDS="x86 amd64 sparc ~ppc hppa"
13 SLOT="0"
14
15 IUSE=""
16 DEPEND="virtual/glibc
17 sys-devel/bison
18 sys-devel/flex
19 sys-apps/chpax"
20
21 S="${WORKDIR}/${PN}"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26 epatch ${FILESDIR}/gradm_parse.c-1.9.x.patch
27
28 # (Jan 2 2004) - <solar@gentoo>
29 # static linking required for proper operation of gradm
30 # however ssp is known to break static linking when it's enabled
31 # in >=gcc-3.3.1 && <=gcc-3.3.2-r5 . So we strip ssp if needed.
32 gmicro=$(gcc-micro-version)
33 if [ "$(gcc-version)" == "3.3" -a -n "${gmicro}" -a ${gmicro} -le 2 ]; then
34 # extract out gentoo revision
35 gentoo_gcc_r=$($(gcc-getCC) -v 2>&1 | tail -n 1 | awk '{print $7}')
36 gentoo_gcc_r=${gentoo_gcc_r/,/}
37 gentoo_gcc_r=${gentoo_gcc_r/-/ }
38 gentoo_gcc_r=${gentoo_gcc_r:7}
39 [ -n "${gentoo_gcc_r}" -a ${gentoo_gcc_r} -le 5 ] && \
40 filter-flags -fstack-protector -fstack-protector-all
41 fi
42
43 sed -i -e "s|-O2|${CFLAGS}|" Makefile
44 }
45
46 src_compile() {
47 emake CC="$(gcc-getCC)" || die "compile problem"
48 }
49
50 src_install() {
51 doman gradm.8
52 dodoc acl
53 exeinto /etc/init.d
54 newexe ${FILESDIR}/grsecurity.rc grsecurity
55 insinto /etc/conf.d
56 doins ${FILESDIR}/grsecurity
57 into /
58 dosbin gradm
59 fperms 700 /sbin/gradm
60 }

  ViewVC Help
Powered by ViewVC 1.1.20