blob: 41c0d9ded9460c4a8c5cdf7da01c43b970ecee15 (
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
44
45
46
47
48
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-1.9.9g.ebuild,v 1.1 2003/04/20 18:21:14 method Exp $
DESCRIPTION="ACL administrative interface to grsecurity including gentoo policies"
SRC_URI="http://www.grsecurity.net/${P}.tar.gz"
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 ${A}
cd ${S}
cp ${FILESDIR}/${PN}-chpax.c chpax.c
mv Makefile{,.orig}
sed -e "s|-O2|${CFLAGS}|" Makefile.orig > Makefile
}
src_compile() {
emake CC="${CC}" || die "compile problem"
emake CC="${CC}" chpax || die "compile problem"
}
src_install() {
doman gradm.8
dodoc acl
exeinto /etc/init.d
newexe ${FILESDIR}/grsecurity.rc grsecurity
insinto /etc/conf.d
doins ${FILESDIR}/grsecurity
insinto /etc/grsec/gentoo_secure_acls
doins ${S}/gentoo_secure_acls/*
echo "include </etc/grsec/gentoo_secure_acls>" > ${D}/etc/grsec/acl
into /
dosbin gradm chpax
fperms 700 /sbin/gradm
fperms 700 /sbin/chpax
}
|