summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2005-11-14 20:32:30 +0000
committerJohn Mylchreest <johnm@gentoo.org>2005-11-14 20:32:30 +0000
commite590cfc14c1eef46fe8a8a156cfa3d25760cf2fe (patch)
tree11606560973cef2d334b95b29c6dca02bc142579 /sys-apps/gradm
parentAdd message digest. (diff)
downloadhistorical-e590cfc14c1eef46fe8a8a156cfa3d25760cf2fe.tar.gz
historical-e590cfc14c1eef46fe8a8a156cfa3d25760cf2fe.tar.bz2
historical-e590cfc14c1eef46fe8a8a156cfa3d25760cf2fe.zip
Adding gradm suitable for 2.6.13+
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'sys-apps/gradm')
-rw-r--r--sys-apps/gradm/ChangeLog13
-rw-r--r--sys-apps/gradm/Manifest11
-rw-r--r--sys-apps/gradm/files/2.1.7.200511041858-non-lazy-bindings.patch12
-rw-r--r--sys-apps/gradm/files/digest-gradm-2.1.7.2005110418581
-rw-r--r--sys-apps/gradm/gradm-2.1.7.200511041858.ebuild56
5 files changed, 88 insertions, 5 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index f26c90454085..05793416b9ba 100644
--- a/sys-apps/gradm/ChangeLog
+++ b/sys-apps/gradm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/gradm
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.59 2005/09/17 15:05:20 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.60 2005/11/14 20:32:30 johnm Exp $
+
+ 14 Nov 2005; John Mylchreest <johnm@gentoo.org>
+ +files/2.1.7.200511041858-non-lazy-bindings.patch,
+ +gradm-2.1.7.200511041858.ebuild:
+ Adding gradm, suitable for hardened-sources-2.6.13+
17 Sep 2005; Sven Wegener <swegener@gentoo.org>
+files/2.1.6.200506131347-non-lazy-bindings.patch,
@@ -17,6 +22,12 @@
gradm-2.1.6.200506131347.ebuild:
stable on ia64
+*gradm-2.1.7.200511041858 (14 Nov 2005)
+
+ 14 Nov 2005; John Mylchreest <johnm@gentoo.org>
+ +gradm-2.1.7.200511041858.ebuild:
+ Adding gradm, suitable for hardened-sources-2.6.13+
+
01 Jul 2005; <solar.@gentoo.org> gradm-2.1.6.200506131347.ebuild:
- stable on x86, ppc
diff --git a/sys-apps/gradm/Manifest b/sys-apps/gradm/Manifest
index 8860a5ee998d..26f74921af11 100644
--- a/sys-apps/gradm/Manifest
+++ b/sys-apps/gradm/Manifest
@@ -1,19 +1,22 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 3b6e45be29db72891be2c4940c7cc623 ChangeLog 9458
+MD5 620d6198c6b652c7368cd143e02900ca ChangeLog 9831
MD5 0433ac1be1a1e05d61281b7a1ebe377b files/2.1.6.200506131347-non-lazy-bindings.patch 546
+MD5 0433ac1be1a1e05d61281b7a1ebe377b files/2.1.7.200511041858-non-lazy-bindings.patch 546
MD5 4f610b1a69bb13a22080460f47de34a1 files/digest-gradm-2.1.5.200504081812 75
MD5 071dc45d1922b65c304d4d8635470c0e files/digest-gradm-2.1.6.200506131347 75
+MD5 85c6a6df28491978d2a0c0c078b0b76b files/digest-gradm-2.1.7.200511041858 75
MD5 36344ecbd7f54bdd4979c2fe6322c9c7 files/grsecurity 2325
MD5 f2401396b01c577f727c2da3b694c779 files/grsecurity.rc 1810
MD5 b98247eb3f77f4eda11cd38125fa734e gradm-2.1.5.200504081812.ebuild 1317
MD5 d53ba3368011aec360b848c3f09e128b gradm-2.1.6.200506131347.ebuild 1496
+MD5 df07c55c3b470b3a67ac22746f3a82ab gradm-2.1.7.200511041858.ebuild 1497
MD5 695a3bd3cfb34ea27e7dd493ce9ef398 metadata.xml 221
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-iD8DBQFDLDDGI1lqEGTUzyQRAqrhAKDeg2NKwIQIq5as2IYUy7f/PMSz5QCgseX/
-HNU/MaAdUzfGciVwiMOIBB4=
-=4LkR
+iD8DBQFDePRIz7mlh8wQzGMRAuNCAJ9gJuJR/Shv3kqo5aVetrPlTr8DXACfcWbH
+5Tpz0BxCKDBAxQMM5G5IqmI=
+=zE7P
-----END PGP SIGNATURE-----
diff --git a/sys-apps/gradm/files/2.1.7.200511041858-non-lazy-bindings.patch b/sys-apps/gradm/files/2.1.7.200511041858-non-lazy-bindings.patch
new file mode 100644
index 000000000000..da0b1997f965
--- /dev/null
+++ b/sys-apps/gradm/files/2.1.7.200511041858-non-lazy-bindings.patch
@@ -0,0 +1,12 @@
+diff -Nur gradm2.orig/Makefile gradm2/Makefile
+--- gradm2.orig/Makefile 2005-05-14 19:10:34.000000000 +0000
++++ gradm2/Makefile 2005-09-17 14:47:32.573701563 +0000
+@@ -53,7 +53,7 @@
+ @if [ ! -f /usr/include/security/pam_appl.h ] ; then \
+ echo "Unable to detect PAM headers, disabling PAM support." ; \
+ else \
+- $(CC) $(CFLAGS) -o $@ gradm_pam.c -lpam -lpam_misc $(LDFLAGS) ; \
++ $(CC) $(CFLAGS) -o $@ gradm_pam.c -lpam -lpam_misc -Wl,-z,now $(LDFLAGS) ; \
+ fi
+
+ grlearn: grlearn.c gradm_lib.c grlearn2_config.tab.c lex.grlearn_config.c
diff --git a/sys-apps/gradm/files/digest-gradm-2.1.7.200511041858 b/sys-apps/gradm/files/digest-gradm-2.1.7.200511041858
new file mode 100644
index 000000000000..9b0f52451063
--- /dev/null
+++ b/sys-apps/gradm/files/digest-gradm-2.1.7.200511041858
@@ -0,0 +1 @@
+MD5 ca33202dbe8ddef81492fda8c9ea7937 gradm-2.1.7-200511041858.tar.gz 60587
diff --git a/sys-apps/gradm/gradm-2.1.7.200511041858.ebuild b/sys-apps/gradm/gradm-2.1.7.200511041858.ebuild
new file mode 100644
index 000000000000..7f8ce91b407c
--- /dev/null
+++ b/sys-apps/gradm/gradm-2.1.7.200511041858.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.7.200511041858.ebuild,v 1.1 2005/11/14 20:32:30 johnm 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="http://www.grsecurity.net/gradm-${myPV}.tar.gz"
+#SRC_URI="mirror://gentoo/gradm-${myPV}.tar.gz"
+#RESTRICT=primaryuri
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~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}"/${PV}-non-lazy-bindings.patch
+}
+
+src_compile() {
+ local target=""
+ use pam || target="nopam"
+
+ emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem"
+}
+
+src_install() {
+ einstall DESTDIR="${D}" || die "einstall failed"
+ fperms 711 /sbin/gradm
+}
+
+pkg_postinst() {
+ if [ ! -e "${ROOT}"/dev/grsec ] ; then
+ einfo "Making character device for grsec2 learning mode"
+ mkdir -p -m 755 "${ROOT}"/dev/
+ mknod -m 0622 "${ROOT}"/dev/grsec c 1 12 || die "Cant mknod for grsec learning device"
+ fi
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
+}