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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Nov 30 09:56:56 2005 UTC (12 years, 9 months ago) by chriswhite
Changes since 1.1: +20 -22 lines
*** empty log message ***

1 solar 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 chriswhite 1.1.1.1 # $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.6.200506131347.ebuild,v 1.5 2005/09/17 15:05:20 swegener Exp $
4 solar 1.1
5 chriswhite 1.1.1.1 inherit flag-o-matic toolchain-funcs eutils versionator
6 solar 1.1
7 chriswhite 1.1.1.1 myPV="$(replace_version_separator 3 -)"
8 solar 1.1
9     DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
10     HOMEPAGE="http://www.grsecurity.net/"
11     SRC_URI="http://www.grsecurity.net/gradm-${myPV}.tar.gz"
12     #SRC_URI="mirror://gentoo/gradm-${myPV}.tar.gz"
13     #RESTRICT=primaryuri
14     LICENSE="GPL-2"
15     SLOT="0"
16 chriswhite 1.1.1.1 KEYWORDS="alpha ~amd64 ~arm ia64 ~mips ppc ~ppc64 ~sparc x86"
17     IUSE="pam"
18 solar 1.1 RDEPEND=""
19     DEPEND="virtual/libc
20     sys-devel/bison
21     sys-devel/flex
22 chriswhite 1.1.1.1 pam? ( virtual/pam )
23     || (
24     sys-apps/paxctl
25     sys-apps/chpax
26     )"
27 solar 1.1
28     S="${WORKDIR}/${PN}2"
29    
30     src_unpack() {
31     unpack ${A}
32 chriswhite 1.1.1.1 cd "${S}"
33 solar 1.1
34 chriswhite 1.1.1.1 epatch "${FILESDIR}"/${PV}-non-lazy-bindings.patch
35 solar 1.1 }
36    
37     src_compile() {
38 chriswhite 1.1.1.1 local target=""
39     use pam || target="nopam"
40    
41     emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem"
42 solar 1.1 }
43    
44     src_install() {
45 chriswhite 1.1.1.1 einstall DESTDIR="${D}" || die "einstall failed"
46 solar 1.1 fperms 711 /sbin/gradm
47     }
48    
49     pkg_postinst() {
50 chriswhite 1.1.1.1 if [ ! -e "${ROOT}"/dev/grsec ] ; then
51 solar 1.1 einfo "Making character device for grsec2 learning mode"
52 chriswhite 1.1.1.1 mkdir -p -m 755 "${ROOT}"/dev/
53     mknod -m 0622 "${ROOT}"/dev/grsec c 1 12 || die "Cant mknod for grsec learning device"
54 solar 1.1 fi
55     ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
56     }

  ViewVC Help
Powered by ViewVC 1.1.20