summaryrefslogtreecommitdiff
blob: b3460940c1b50141912949b13de2b0836cac69dd (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-1.2.1.ebuild,v 1.8 2002/10/04 06:25:08 vapier Exp $

DESCRIPTION="Administratinve interface to grsecurity"
SRC_URI="http://www.grsecurity.net/gradm-1.2.1.tar.gz
	http://pageexec.virtualave.net/chpax.c"
HOMEPAGE="http://www.grsecurity.net"
KEYWORDS="x86 ppc sparc sparc64"
SLOT="0"
#DEPEND=""
LICENSE="GPL-2"

src_unpack() {
	unpack ${P}.tar.gz
	cd ${S}
	cp ${DISTDIR}/chpax.c .
}

src_compile() {
	./configure || die
	emake || die
	emake chpax || die
}

src_install() {
	dodir /sbin /etc/grsec /etc/init.d /etc/conf.d /usr/share/man/man8

	cp gradm ${D}/sbin
	gzip -9 gradm.8
	cp gradm.8.gz ${D}/usr/share/man/man8
	cp chpax ${D}/sbin
	chmod 0700 ${D}/sbin/*
	cp ${FILESDIR}/grsecurity.rc ${D}/etc/init.d/grsecurity
	chmod 755 ${D}/etc/init.d/*
	cp ${FILESDIR}/grsecurity ${D}/etc/conf.d/grsecurity
	chmod 644 ${D}/etc/conf.d/*

	dodoc ChangeLog* INSTALL COPYING
}