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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +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.5.200504081812.ebuild,v 1.4 2006/01/27 01:27:59 solar Exp $
4
5 inherit flag-o-matic toolchain-funcs 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="x86 ~ppc ~sparc ~arm ~amd64 ~ppc64 ~ia64 ~mips ~alpha"
17 IUSE=""
18 RDEPEND=""
19 DEPEND="virtual/libc
20 sys-devel/bison
21 sys-devel/flex
22 || (
23 sys-apps/paxctl
24 sys-apps/chpax
25 )"
26
27 S="${WORKDIR}/${PN}2"
28
29 src_compile() {
30 emake OPT_FLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "compile problem"
31 }
32
33 src_install() {
34 einstall DESTDIR="${D}" || die "einstall failed"
35 fperms 711 /sbin/gradm
36 }
37
38 pkg_postinst() {
39 if [ ! -e "${ROOT}"/dev/grsec ] ; then
40 einfo "Making character device for grsec2 learning mode"
41 mkdir -p -m 755 "${ROOT}"/dev/
42 mknod -m 0622 "${ROOT}"/dev/grsec c 1 12 || die "Cant mknod for grsec learning device"
43 fi
44 ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
45 }

  ViewVC Help
Powered by ViewVC 1.1.20