summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Malm <gengor@gentoo.org>2010-02-01 04:56:05 +0000
committerGordon Malm <gengor@gentoo.org>2010-02-01 04:56:05 +0000
commitc5994093b4b1d655c590f6a66194c5d87ac181d9 (patch)
tree593b5d3b3fb39e3362b6fa95ce70f9cccc3f0132 /sys-apps
parentActually bump, as have been using it in infra for a while. (diff)
downloadgentoo-2-c5994093b4b1d655c590f6a66194c5d87ac181d9.tar.gz
gentoo-2-c5994093b4b1d655c590f6a66194c5d87ac181d9.tar.bz2
gentoo-2-c5994093b4b1d655c590f6a66194c5d87ac181d9.zip
Version bump, fix bug 282272
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/gradm/ChangeLog10
-rw-r--r--sys-apps/gradm/gradm-2.1.14.200910072130.ebuild59
2 files changed, 67 insertions, 2 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index 281be2707f36..199f1f6e86d7 100644
--- a/sys-apps/gradm/ChangeLog
+++ b/sys-apps/gradm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/gradm
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.115 2009/09/23 20:24:21 patrick Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.116 2010/02/01 04:56:05 gengor Exp $
+
+*gradm-2.1.14.200910072130 (01 Feb 2010)
+
+ 01 Feb 2010; Gordon Malm <gengor@gentoo.org>
+ +gradm-2.1.14.200910072130.ebuild:
+ Version bump, fix bug #282272.
23 Sep 2009; Patrick Lauer <patrick@gentoo.org>
gradm-2.1.11.200804142058.ebuild, gradm-2.1.12.200805181037.ebuild,
diff --git a/sys-apps/gradm/gradm-2.1.14.200910072130.ebuild b/sys-apps/gradm/gradm-2.1.14.200910072130.ebuild
new file mode 100644
index 000000000000..e540f62d7c8c
--- /dev/null
+++ b/sys-apps/gradm/gradm-2.1.14.200910072130.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.14.200910072130.ebuild,v 1.1 2010/02/01 04:56:05 gengor Exp $
+
+EAPI=2
+
+inherit flag-o-matic toolchain-funcs versionator
+
+MY_PV="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
+HOMEPAGE="http://www.grsecurity.net/"
+SRC_URI="http://dev.gentoo.org/~gengor/distfiles/${CATEGORY}/${PN}/${PN}-${MY_PV}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pam"
+
+RDEPEND=""
+DEPEND="sys-devel/bison
+ sys-devel/flex
+ pam? ( virtual/pam )
+ || ( sys-apps/paxctl sys-apps/chpax )"
+
+S="${WORKDIR}/${PN}2"
+
+src_prepare() {
+ sed -i -e s:^LDFLAGS=:LDFLAGS+=: \
+ -e s:^MKNOD=.*:MKNOD=true: \
+ -e s:^STRIP=.*:STRIP=true: Makefile
+
+ append-ldflags -Wl,-z,now
+}
+
+src_compile() {
+ local target
+ use pam || target="nopam"
+
+ emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ einstall DESTDIR="${D}" || die "einstall failed"
+ fperms 711 /sbin/gradm
+}
+
+pkg_postinst() {
+ [ -e "${ROOT}"/dev/grsec ] && rm -f "${ROOT}"/dev/grsec
+ einfo "Making character device for grsec2 learning mode"
+ mkdir -p -m 755 "${ROOT}"/dev/
+ mknod -m 0622 "${ROOT}"/dev/grsec c 1 13 || die "mknod on grsec learning device failed"
+
+ einfo
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
+ ewarn
+ ewarn "This version of gradm is only supported with a kernel >=2.6.29!"
+ einfo
+}