# 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.9h-r1.ebuild,v 1.2 2003/06/21 21:19:39 drobbins Exp $ DESCRIPTION="Administrative interface for grsecuritys access control lists" SRC_URI="http://www.grsecurity.net/${P}.tar.gz" HOMEPAGE="http://www.grsecurity.net/" LICENSE="GPL-2" KEYWORDS="x86 amd64" SLOT="0" IUSE="" DEPEND="sys-devel/bison sys-devel/flex" RDEPEND="sys-apps/chpax" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/gradm_parse.c-${PV}.patch mv Makefile{,.orig} sed -e "s|-O2|${CFLAGS}|" Makefile.orig > Makefile } src_compile() { emake CC="${CC}" || 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 into / dosbin gradm fperms 700 /sbin/gradm }