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

Contents of /sys-apps/gradm/gradm-2.1.8.200601212342-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Dec 13 21:12:10 2006 UTC (8 years ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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.8.200601212342-r1.ebuild,v 1.6 2006/04/09 16:29:17 corsair 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 epatch "${FILESDIR}"/2.1.7.200511041858-non-lazy-bindings.patch
34
35 # All of these patches can be dropped in gradm-2.1.9
36 epatch "${FILESDIR}/${PN}_${PV}-fix_gradm_pam_symlinks.patch"
37 epatch "${FILESDIR}/${PN}_${PV}-increase_num_pointers.patch"
38 epatch "${FILESDIR}/${PN}_${PV}-ip_state_interface_fix.patch"
39 }
40
41 src_compile() {
42 local target=""
43 use pam || target="nopam"
44
45 emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem"
46 }
47
48 src_install() {
49 einstall DESTDIR="${D}" || die "einstall failed"
50 fperms 711 /sbin/gradm
51 }
52
53 pkg_postinst() {
54 if [ ! -e "${ROOT}"/dev/grsec ] ; then
55 einfo "Making character device for grsec2 learning mode"
56 mkdir -p -m 755 "${ROOT}"/dev/
57 mknod -m 0622 "${ROOT}"/dev/grsec c 1 12 || die "Cant mknod for grsec learning device"
58 fi
59 ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
60 }

  ViewVC Help
Powered by ViewVC 1.1.20