summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/gradm')
-rw-r--r--sys-apps/gradm/ChangeLog8
-rw-r--r--sys-apps/gradm/files/digest-gradm-2.1.10.2007022317593
-rw-r--r--sys-apps/gradm/gradm-2.1.10.200702231759.ebuild52
3 files changed, 62 insertions, 1 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index 770c840b5331..462a05f1b407 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.84 2007/02/22 13:32:10 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.85 2007/04/16 17:33:56 phreak Exp $
+
+*gradm-2.1.10.200702231759 (16 Apr 2007)
+
+ 16 Apr 2007; Christian Heim <phreak@gentoo.org>
+ +gradm-2.1.10.200702231759.ebuild:
+ Version bump, new upstream version to satisfy hardened-sources / grsec.
*gradm-2.1.10.200701121959 (22 Feb 2007)
diff --git a/sys-apps/gradm/files/digest-gradm-2.1.10.200702231759 b/sys-apps/gradm/files/digest-gradm-2.1.10.200702231759
new file mode 100644
index 000000000000..47ad4668cdf2
--- /dev/null
+++ b/sys-apps/gradm/files/digest-gradm-2.1.10.200702231759
@@ -0,0 +1,3 @@
+MD5 73c2fc91143012d76d7ef99aaa5804ee gradm-2.1.10-200702231759.tar.gz 62873
+RMD160 fb8bb19b51c33f1c236846169dd2a71084fdbb9d gradm-2.1.10-200702231759.tar.gz 62873
+SHA256 f2a8538e1bc790cf09d32ceee49333221986c274f8baef70519dc73a23db073b gradm-2.1.10-200702231759.tar.gz 62873
diff --git a/sys-apps/gradm/gradm-2.1.10.200702231759.ebuild b/sys-apps/gradm/gradm-2.1.10.200702231759.ebuild
new file mode 100644
index 000000000000..5b0f65c1566c
--- /dev/null
+++ b/sys-apps/gradm/gradm-2.1.10.200702231759.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.10.200702231759.ebuild,v 1.1 2007/04/16 17:33:56 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"
+}