| 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.11.ebuild,v 1.5 2004/02/23 17:28:57 mr_bones_ Exp $ |
| 4 |
|
| 5 |
DESCRIPTION="Administrative interface for grsecurity ${PV} access control lists" |
| 6 |
SRC_URI="http://www.grsecurity.net/${P}.tar.gz" |
| 7 |
HOMEPAGE="http://www.grsecurity.net/" |
| 8 |
|
| 9 |
LICENSE="GPL-2" |
| 10 |
KEYWORDS="x86 ~amd64 sparc ~ppc hppa" |
| 11 |
SLOT="0" |
| 12 |
|
| 13 |
IUSE="" |
| 14 |
DEPEND="virtual/glibc |
| 15 |
sys-devel/bison |
| 16 |
sys-devel/flex |
| 17 |
sys-apps/chpax" |
| 18 |
|
| 19 |
S="${WORKDIR}/${PN}" |
| 20 |
|
| 21 |
src_unpack() { |
| 22 |
unpack ${A} |
| 23 |
cd ${S} |
| 24 |
epatch ${FILESDIR}/gradm_parse.c-1.9.x.patch |
| 25 |
mv Makefile{,.orig} |
| 26 |
sed -e "s|-O2|${CFLAGS}|" Makefile.orig > Makefile |
| 27 |
} |
| 28 |
|
| 29 |
src_compile() { |
| 30 |
emake CC="${CC}" || die "compile problem" |
| 31 |
} |
| 32 |
|
| 33 |
src_install() { |
| 34 |
doman gradm.8 |
| 35 |
dodoc acl |
| 36 |
exeinto /etc/init.d |
| 37 |
newexe ${FILESDIR}/grsecurity.rc grsecurity |
| 38 |
insinto /etc/conf.d |
| 39 |
doins ${FILESDIR}/grsecurity |
| 40 |
into / |
| 41 |
dosbin gradm |
| 42 |
fperms 700 /sbin/gradm |
| 43 |
} |