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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Feb 25 19:02:35 2005 UTC (9 years, 5 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
- removed older ebuilds. If somebody needs them they can get them from the viewcvs Attic. Updated /dev/grsec to use ROOT for device nod creation. Thanks carlo for pointing this out.
(Portage version: 2.0.51-r15)

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-1.9.14.ebuild,v 1.5 2005/01/08 21:26:59 solar Exp $
4
5 inherit gcc flag-o-matic eutils
6
7 DESCRIPTION="Administrative interface for grsecurity ${PV} access control lists"
8 HOMEPAGE="http://www.grsecurity.net/"
9 SRC_URI="http://www.grsecurity.net/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~x86 ~sparc ~ppc ~hppa ~amd64"
14 IUSE=""
15
16 DEPEND="virtual/libc
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