summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-10-21 00:55:25 +0000
committerChristian Heim <phreak@gentoo.org>2007-10-21 00:55:25 +0000
commit91030939992a117db77cb73a316848499cc8f272 (patch)
tree8c5f46b0e4e2cb4464a5daa483c6bb60b8e3ef85 /sys-apps/gradm
parentadd patch from upstream CVS to fix c++ comments in header file (bug #193404) (diff)
downloadgentoo-2-91030939992a117db77cb73a316848499cc8f272.tar.gz
gentoo-2-91030939992a117db77cb73a316848499cc8f272.tar.bz2
gentoo-2-91030939992a117db77cb73a316848499cc8f272.zip
Version bump for 2.6.23.
(Portage version: 2.1.3.9)
Diffstat (limited to 'sys-apps/gradm')
-rw-r--r--sys-apps/gradm/ChangeLog8
-rw-r--r--sys-apps/gradm/files/digest-gradm-2.1.11.2007080117003
-rw-r--r--sys-apps/gradm/gradm-2.1.11.200708011700.ebuild52
3 files changed, 62 insertions, 1 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index 5658b4f7761a..8b04fa439ecc 100644
--- a/sys-apps/gradm/ChangeLog
+++ b/sys-apps/gradm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/gradm
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.89 2007/10/15 14:52:17 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.90 2007/10/21 00:55:24 phreak Exp $
+
+*gradm-2.1.11.200708011700 (21 Oct 2007)
+
+ 21 Oct 2007; Christian Heim <phreak@gentoo.org>
+ +gradm-2.1.11.200708011700.ebuild:
+ Version bump for 2.6.23.
15 Oct 2007; Markus Rothe <corsair@gentoo.org>
gradm-2.1.10.200702231759.ebuild:
diff --git a/sys-apps/gradm/files/digest-gradm-2.1.11.200708011700 b/sys-apps/gradm/files/digest-gradm-2.1.11.200708011700
new file mode 100644
index 000000000000..97439e3deb6d
--- /dev/null
+++ b/sys-apps/gradm/files/digest-gradm-2.1.11.200708011700
@@ -0,0 +1,3 @@
+MD5 df1966f0e871014fa75c98b048e78b92 gradm-2.1.11-200708011700.tar.gz 62909
+RMD160 63e54bb1036d7d2a41c87d75990f3fe56bbd47a8 gradm-2.1.11-200708011700.tar.gz 62909
+SHA256 0fbdb7123cd14ed48a599551ad9e2b46aeb0b263a234d1168810adb2486f290c gradm-2.1.11-200708011700.tar.gz 62909
diff --git a/sys-apps/gradm/gradm-2.1.11.200708011700.ebuild b/sys-apps/gradm/gradm-2.1.11.200708011700.ebuild
new file mode 100644
index 000000000000..02b96d5e0a63
--- /dev/null
+++ b/sys-apps/gradm/gradm-2.1.11.200708011700.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.11.200708011700.ebuild,v 1.1 2007/10/21 00:55:24 phreak Exp $
+
+inherit flag-o-matic toolchain-funcs eutils versionator
+
+myPV="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system"
+HOMEPAGE="http://www.grsecurity.net/"
+SRC_URI="mirror://gentoo/gradm-${myPV}.tar.gz"
+#RESTRICT=primaryuri
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="pam"
+RDEPEND=""
+DEPEND="virtual/libc
+ sys-devel/bison
+ sys-devel/flex
+ pam? ( virtual/pam )
+ || ( sys-apps/paxctl sys-apps/chpax )"
+
+S="${WORKDIR}/${PN}2"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/2.1.7.200511041858-non-lazy-bindings.patch
+ sed -i -e s/MKNOD=/'MKNOD ?='/ -e s/STRIP=/'STRIP ?='/ ${S}/Makefile
+}
+
+src_compile() {
+ local target=""
+ use pam || target="nopam"
+
+ emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem"
+}
+
+src_install() {
+ einstall DESTDIR="${D}" MKNOD=true STRIP=true || 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 "Cant mknod for grsec learning device"
+
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
+}