/[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.8 - (show annotations) (download)
Wed Dec 13 21:12:10 2006 UTC (7 years, 7 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
- version bump. clean up old ebuilds
(Portage version: 2.1.2_pre1)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.6.200506131347.ebuild,v 1.7 2006/01/27 01:27:59 solar Exp $
4
5 inherit flag-o-matic toolchain-funcs eutils versionator
6
7 myPV="$(replace_version_separator 3 -)"
8
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 KEYWORDS="alpha ~amd64 ~arm ia64 ~mips ppc ppc64 ~sparc x86"
17 IUSE="pam"
18 RDEPEND=""
19 DEPEND="virtual/libc
20 sys-devel/bison
21 sys-devel/flex
22 pam? ( virtual/pam )
23 || (
24 sys-apps/paxctl
25 sys-apps/chpax
26 )"
27
28 S="${WORKDIR}/${PN}2"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33
34 epatch "${FILESDIR}"/${PV}-non-lazy-bindings.patch
35 }
36
37 src_compile() {
38 local target=""
39 use pam || target="nopam"
40
41 emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem"
42 }
43
44 src_install() {
45 einstall DESTDIR="${D}" || die "einstall failed"
46 fperms 711 /sbin/gradm
47 }
48
49 pkg_postinst() {
50 if [ ! -e "${ROOT}"/dev/grsec ] ; then
51 einfo "Making character device for grsec2 learning mode"
52 mkdir -p -m 755 "${ROOT}"/dev/
53 mknod -m 0622 "${ROOT}"/dev/grsec c 1 12 || die "Cant mknod for grsec learning device"
54 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