summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/gradm/ChangeLog8
-rw-r--r--sys-apps/gradm/files/2.1.7.200511041858-non-lazy-bindings.patch12
-rw-r--r--sys-apps/gradm/files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch19
-rw-r--r--sys-apps/gradm/gradm-2.1.13.200902232204-r1.ebuild54
4 files changed, 7 insertions, 86 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index 9f01df028202..b99163a53fe3 100644
--- a/sys-apps/gradm/ChangeLog
+++ b/sys-apps/gradm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/gradm
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.143 2011/01/02 22:50:15 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.144 2011/01/20 02:33:53 blueness Exp $
+
+ 20 Jan 2011; Anthony G. Basile <blueness@gentoo.org>
+ -files/2.1.7.200511041858-non-lazy-bindings.patch,
+ -gradm-2.1.13.200902232204-r1.ebuild,
+ -files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch:
+ Deprecated
*gradm-2.2.1.201012301333 (02 Jan 2011)
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
deleted file mode 100644
index da0b1997f965..000000000000
--- a/sys-apps/gradm/files/2.1.7.200511041858-non-lazy-bindings.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-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/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch b/sys-apps/gradm/files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch
deleted file mode 100644
index e72aaeb8df6f..000000000000
--- a/sys-apps/gradm/files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Added-By: Gordon Malm <gengor@gentoo.org>
-
-Fix segmentation fault in gradm newlearn.
-
-Reference:
-http://bugs.gentoo.org/show_bug.cgi?id=281512
-http://forums.grsecurity.net/viewtopic.php?f=3&t=2126
-
---- a/gradm_newlearn.c
-+++ b/gradm_newlearn.c
-@@ -1204,7 +1204,7 @@ show_ips:
- display_ip_tree(connect, GR_IP_CONNECT, stream);
- else
- fprintf(stream, "\tconnect\tdisabled\n");
-- if (node->subject->inaddr_any_override) {
-+ if (node->subject != NULL && node->subject->inaddr_any_override) {
- struct in_addr addr;
- addr.s_addr = node->subject->inaddr_any_override;
- fprintf(stream, "\tip_override\t%s\n", inet_ntoa(addr));
diff --git a/sys-apps/gradm/gradm-2.1.13.200902232204-r1.ebuild b/sys-apps/gradm/gradm-2.1.13.200902232204-r1.ebuild
deleted file mode 100644
index ced12b3c1889..000000000000
--- a/sys-apps/gradm/gradm-2.1.13.200902232204-r1.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.13.200902232204-r1.ebuild,v 1.2 2009/09/23 20:24:21 patrick 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://dev.gentoo.org/~gengor/distfiles/${CATEGORY}/${PN}/${PN}-${myPV}.tar.gz"
-#RESTRICT=primaryuri
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sh ~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_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/2.1.7.200511041858-non-lazy-bindings.patch \
- "${FILESDIR}"/${P}-fix-segfault-in-newlearn.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"
- ewarn
- ewarn "This version of gradm is only supported with a kernel >=2.6.28!"
-}