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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Oct 4 06:25:13 2002 UTC (17 years, 10 months ago) by vapier
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.1: +2 -2 lines
Changed from "GPL2 or later" to "GPL2"

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

  ViewVC Help
Powered by ViewVC 1.1.20