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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Aug 21 18:56:27 2009 UTC (4 years, 7 months ago) by gengor
Branch: MAIN
Revision bump - fix bug #281512. Thanks to Matthew Thode for reporting and providing a patch.
(Portage version: 2.1.6.13/cvs/Linux i686, RepoMan options: --force)

1 gengor 1.1 # Copyright 1999-2009 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.13.200902232204.ebuild,v 1.4 2009/05/25 03:02:05 gengor 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://dev.gentoo.org/~gengor/distfiles/${CATEGORY}/${PN}/${PN}-${myPV}.tar.gz"
12     #RESTRICT=primaryuri
13     LICENSE="GPL-2"
14     SLOT="0"
15     KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86"
16     IUSE="pam"
17     RDEPEND=""
18     DEPEND="virtual/libc
19     sys-devel/bison
20     sys-devel/flex
21     pam? ( virtual/pam )
22     || ( sys-apps/paxctl sys-apps/chpax )"
23    
24     S="${WORKDIR}/${PN}2"
25    
26     src_unpack() {
27     unpack ${A}
28     cd "${S}"
29     epatch "${FILESDIR}"/2.1.7.200511041858-non-lazy-bindings.patch \
30     "${FILESDIR}"/${P}-fix-segfault-in-newlearn.patch
31     sed -i -e s/MKNOD=/'MKNOD ?='/ -e s/STRIP=/'STRIP ?='/ "${S}/Makefile"
32     }
33    
34     src_compile() {
35     local target=""
36     use pam || target="nopam"
37    
38     emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem"
39     }
40    
41     src_install() {
42     einstall DESTDIR="${D}" MKNOD=true STRIP=true || die "einstall failed"
43     fperms 711 /sbin/gradm
44     }
45    
46     pkg_postinst() {
47     [ -e "${ROOT}"/dev/grsec ] && rm -f "${ROOT}"/dev/grsec
48     einfo "Making character device for grsec2 learning mode"
49     mkdir -p -m 755 "${ROOT}"/dev/
50     mknod -m 0622 "${ROOT}"/dev/grsec c 1 13 || die "Cant mknod for grsec learning device"
51    
52     ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
53     ewarn
54     ewarn "This version of gradm is only supported with a kernel >=2.6.28!"
55     }

  ViewVC Help
Powered by ViewVC 1.1.20