summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2004-08-08 16:15:37 +0000
committerNed Ludd <solar@gentoo.org>2004-08-08 16:15:37 +0000
commit234e52e9b10bb6f6b9675eddd27e5a61358b47ca (patch)
treea734b1f77afa5dd43b5c483d915ab3fb7fd2ea08 /sys-apps/gradm
parentremoved "info ebuild" (Manifest recommit) (diff)
downloadgentoo-2-234e52e9b10bb6f6b9675eddd27e5a61358b47ca.tar.gz
gentoo-2-234e52e9b10bb6f6b9675eddd27e5a61358b47ca.tar.bz2
gentoo-2-234e52e9b10bb6f6b9675eddd27e5a61358b47ca.zip
version bump for 2.4.27/2.6.7 kernels
Diffstat (limited to 'sys-apps/gradm')
-rw-r--r--sys-apps/gradm/ChangeLog7
-rw-r--r--sys-apps/gradm/Manifest2
-rw-r--r--sys-apps/gradm/files/digest-gradm-2.0.11
-rw-r--r--sys-apps/gradm/gradm-2.0.1.ebuild88
4 files changed, 97 insertions, 1 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index 911dc51ea7c2..904772fdb8df 100644
--- a/sys-apps/gradm/ChangeLog
+++ b/sys-apps/gradm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/gradm
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.34 2004/06/24 22:08:29 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.35 2004/08/08 16:15:37 solar Exp $
+
+*gradm-2.0.1 (08 Aug 2004)
+
+ 08 Aug 2004; <solar@gentoo.org> gradm-2.0.1.ebuild:
+ version bump for 2.4.27/2.6.7 kernels
*gradm-2.0-r1 (20 Jun 2004)
diff --git a/sys-apps/gradm/Manifest b/sys-apps/gradm/Manifest
index ea3c277c03ef..cf986128b765 100644
--- a/sys-apps/gradm/Manifest
+++ b/sys-apps/gradm/Manifest
@@ -1,10 +1,12 @@
MD5 1b3c6a4feb6d2518c5bb4d4a1fe26597 gradm-1.9.14.ebuild 1639
+MD5 f2870b6654b3e3590c983e5b6970afd5 gradm-2.0.1.ebuild 2508
MD5 dd780c1382fa681402cc19cd6c1559f9 gradm-2.0.ebuild 2315
MD5 dc11697f1efa18ac66687921ce2c3ef9 ChangeLog 4945
MD5 2413c7ee7a3e8df9cee929e1318a456b gradm-2.0-r1.ebuild 2505
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
MD5 f2401396b01c577f727c2da3b694c779 files/grsecurity.rc 1810
MD5 36344ecbd7f54bdd4979c2fe6322c9c7 files/grsecurity 2325
+MD5 838722234beedbde03008d451ec2327d files/digest-gradm-2.0.1 62
MD5 62ba83f9a7bd71b4011ad2a2cf48f4a3 files/digest-gradm-2.0 60
MD5 264e377e7c3221570d3730444e84d792 files/gradm2-cvs-20Jun2004.diff 8251
MD5 c2618fc7963e008681dfd08db6886058 files/gradm_parse.c-1.9.x.patch 524
diff --git a/sys-apps/gradm/files/digest-gradm-2.0.1 b/sys-apps/gradm/files/digest-gradm-2.0.1
new file mode 100644
index 000000000000..fb4207ac5639
--- /dev/null
+++ b/sys-apps/gradm/files/digest-gradm-2.0.1
@@ -0,0 +1 @@
+MD5 26a33a884a8f92d29ddb34be81334429 gradm-2.0.1.tar.gz 50464
diff --git a/sys-apps/gradm/gradm-2.0.1.ebuild b/sys-apps/gradm/gradm-2.0.1.ebuild
new file mode 100644
index 000000000000..a43e3a7cbbb5
--- /dev/null
+++ b/sys-apps/gradm/gradm-2.0.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.0.1.ebuild,v 1.1 2004/08/08 16:15:37 solar Exp $
+
+inherit flag-o-matic gcc
+
+#MY_PV=2.0-${PV/*_/}
+
+MAINTAINER="solar@gentoo.org"
+DESCRIPTION="Administrative interface for grsecuritys2 access control lists"
+HOMEPAGE="http://www.grsecurity.net/"
+SRC_URI="http://www.grsecurity.net/gradm-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~arm ~amd64" ; # ~alpha"
+IUSE=""
+
+DEPEND="virtual/libc
+ sys-devel/bison
+ sys-devel/flex
+ sys-apps/chpax"
+
+S="${WORKDIR}/${PN}2"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Fixup for hardened-dev-sources-2.6.5-r5
+ #ebegin "Patching gradm 2.0 sources with a few cvs fixes"
+ #patch -p1 -s -N -E -d ${S} < ${FILESDIR}/gradm2-cvs-20Jun2004.diff || die
+ #eend $?
+
+ # (Jan 03 2004) - <solar@gentoo>
+ # static linking required for proper operation of gradm
+ # however ssp is known to break static linking when it's enabled
+ # in >=gcc-3.3.1 && <=gcc-3.3.2-r5 . So we strip ssp if needed.
+ gmicro=$(gcc-micro-version)
+ if [ "$(gcc-version)" == "3.3" -a -n "${gmicro}" -a ${gmicro} -le 2 ]; then
+ # extract out gentoo revision
+ gentoo_gcc_r=$($(gcc-getCC) -v 2>&1 | tail -n 1 | awk '{print $7}')
+ gentoo_gcc_r=${gentoo_gcc_r/,/}
+ gentoo_gcc_r=${gentoo_gcc_r/-/ }
+ gentoo_gcc_r=${gentoo_gcc_r:7}
+ [ -n "${gentoo_gcc_r}" -a ${gentoo_gcc_r} -le 5 ] && \
+ filter-flags -fstack-protector -fstack-protector-all
+ fi
+
+ ebegin "Patching Makefile to use gentoo CFLAGS"
+ sed -i -e "s|-O2|${CFLAGS}|" Makefile
+ eend $?
+
+}
+
+src_compile() {
+ cd ${S}
+ emake CC="$(gcc-getCC)" || die "compile problem"
+}
+
+src_install() {
+ cd ${S}
+ # Were not ready for init.d,script functions yet.
+ #exeinto /etc/init.d
+ #newexe ${FILESDIR}/grsecurity2.rc grsecurity2
+ #insinto /etc/conf.d
+ #doins ${FILESDIR}/grsecurity2
+
+ mkdir -p -m 700 ${D}/etc/grsec
+ doman gradm.8
+ dodoc acl
+
+ into /
+ dosbin grlearn gradm || die
+
+ # Normal users can authenticate to special roles now and thus
+ # need execution permission on gradm2. We remove group,other readable bits
+ # to help ensure that our gradm2 binary is as protected from misbehaving users.
+ fperms 711 ${D}/sbin/gradm
+}
+
+pkg_postinst() {
+ if [ ! -e /dev/grsec ] ; then
+ einfo "Making character device for grsec2 learning mode"
+ mkdir -p -m 755 /dev/
+ mknod -m 0622 /dev/grsec c 1 10 || die "Cant mknod for grsec learning device"
+ fi
+}