blob: f8ef154265ec25d677e35655edc1cd79bac98f7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-1.4.ebuild,v 1.1 2002/08/12 20:22:13 blizzy Exp $
DESCRIPTION="Administrative interface to grsecurity"
SRC_URI="http://www.grsecurity.net/gradm-1.4.tar.gz
http://pageexec.virtualave.net/chpax.c"
HOMEPAGE="http://www.grsecurity.net"
LICENSE="GPL-2"
KEYWORDS="x86"
SLOT="0"
DEPEND="sys-devel/bison
sys-devel/flex"
RDEPEND=""
S="${WORKDIR}/${PN}"
src_unpack() {
unpack ${P}.tar.gz
cd ${S}
cp ${DISTDIR}/chpax.c .
mv Makefile Makefile.orig
sed <Makefile.orig >Makefile \
-e 's|YACC=/usr/bin/yacc|YACC=/usr/bin/bison|' \
-e 's|$(YACC) -d|$(YACC) -y -d|'
}
src_compile() {
emake || die "compile problem"
emake chpax || die "compile problem"
}
src_install() {
doman gradm.8
exeinto /etc/init.d
newexe ${FILESDIR}/grsecurity.rc grsecurity
insinto /etc/conf.d
doins ${FILESDIR}/grsecurity
into /
dosbin gradm chpax
chmod 700 ${D}/sbin/gradm ${D}/sbin/chpax
}
|