summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2004-11-30 06:28:49 +0000
committerNed Ludd <solar@gentoo.org>2004-11-30 06:28:49 +0000
commitda69e17e48be709997ece217f976c9d93996bdc6 (patch)
tree0aa1899d26eaf4a916b673539950186fe05d43d0 /sys-apps/gradm
parentchange fam dependency to virtual (Manifest recommit) (diff)
downloadgentoo-2-da69e17e48be709997ece217f976c9d93996bdc6.tar.gz
gentoo-2-da69e17e48be709997ece217f976c9d93996bdc6.tar.bz2
gentoo-2-da69e17e48be709997ece217f976c9d93996bdc6.zip
version bump
Diffstat (limited to 'sys-apps/gradm')
-rw-r--r--sys-apps/gradm/ChangeLog7
-rw-r--r--sys-apps/gradm/Manifest32
-rw-r--r--sys-apps/gradm/files/digest-gradm-2.0.21
-rw-r--r--sys-apps/gradm/gradm-2.0.2.ebuild75
4 files changed, 94 insertions, 21 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index 6d1c4e551ca8..9c6c2028d7d6 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.39 2004/08/19 07:03:42 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.40 2004/11/30 06:28:49 solar Exp $
+
+*gradm-2.0.2 (30 Nov 2004)
+
+ 30 Nov 2004; <solar@gentoo.org> +gradm-2.0.2.ebuild:
+ version bump
19 Aug 2004; <solar@gentoo.org> gradm-2.0.1-r1.ebuild, gradm-2.0.1.ebuild:
change device nods to major 1 minor 12 to match current grsecurity kernels
diff --git a/sys-apps/gradm/Manifest b/sys-apps/gradm/Manifest
index 495b9f3a4d83..06cebec944e1 100644
--- a/sys-apps/gradm/Manifest
+++ b/sys-apps/gradm/Manifest
@@ -1,27 +1,19 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 e6a0dc437eb5c10fbbb218f9d01f590c ChangeLog 5907
-MD5 dd780c1382fa681402cc19cd6c1559f9 gradm-2.0.ebuild 2315
-MD5 2413c7ee7a3e8df9cee929e1318a456b gradm-2.0-r1.ebuild 2505
-MD5 695a3bd3cfb34ea27e7dd493ce9ef398 metadata.xml 221
MD5 1b3c6a4feb6d2518c5bb4d4a1fe26597 gradm-1.9.14.ebuild 1639
+MD5 2ee8763181ff19b1d5b94395c994ef13 gradm-2.0.2.ebuild 2249
MD5 65e1508f6a89778d87de6d04d63ce27f gradm-2.0.1-r1.ebuild 2249
MD5 aff679c90b8d89922841da9e4dc58a67 gradm-2.0.1.ebuild 2551
-MD5 62ba83f9a7bd71b4011ad2a2cf48f4a3 files/digest-gradm-2.0 60
-MD5 62ba83f9a7bd71b4011ad2a2cf48f4a3 files/digest-gradm-2.0-r1 60
-MD5 838722234beedbde03008d451ec2327d files/digest-gradm-2.0.1 62
-MD5 c2618fc7963e008681dfd08db6886058 files/gradm_parse.c-1.9.x.patch 524
-MD5 36344ecbd7f54bdd4979c2fe6322c9c7 files/grsecurity 2325
+MD5 dd780c1382fa681402cc19cd6c1559f9 gradm-2.0.ebuild 2315
+MD5 e6a0dc437eb5c10fbbb218f9d01f590c ChangeLog 5907
+MD5 2413c7ee7a3e8df9cee929e1318a456b gradm-2.0-r1.ebuild 2505
+MD5 695a3bd3cfb34ea27e7dd493ce9ef398 metadata.xml 221
MD5 f2401396b01c577f727c2da3b694c779 files/grsecurity.rc 1810
-MD5 f008a8f1133ea0db35a4ee305d390c23 files/digest-gradm-1.9.14 63
+MD5 36344ecbd7f54bdd4979c2fe6322c9c7 files/grsecurity 2325
+MD5 838722234beedbde03008d451ec2327d files/digest-gradm-2.0.1 62
+MD5 a631aadfb61d10c6a99256f1cf0fbc53 files/digest-gradm-2.0.2 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
MD5 838722234beedbde03008d451ec2327d files/digest-gradm-2.0.1-r1 62
+MD5 f008a8f1133ea0db35a4ee305d390c23 files/digest-gradm-1.9.14 63
MD5 c016f75a48190153dcb63f9cba78abef files/gradm-2.0.1-install.patch 488
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBWM45HTu7gpaalycRAn5rAJ9QdxF2J+4kXnt/4k6MtFS+A9AXCQCfXbw2
-jHddZALr3v5RDFJKD/KOGl4=
-=tnFo
------END PGP SIGNATURE-----
+MD5 62ba83f9a7bd71b4011ad2a2cf48f4a3 files/digest-gradm-2.0-r1 60
diff --git a/sys-apps/gradm/files/digest-gradm-2.0.2 b/sys-apps/gradm/files/digest-gradm-2.0.2
new file mode 100644
index 000000000000..f462d31c5a92
--- /dev/null
+++ b/sys-apps/gradm/files/digest-gradm-2.0.2
@@ -0,0 +1 @@
+MD5 a766edd7027d78117307af66e6fe326a gradm-2.0.2.tar.gz 50978
diff --git a/sys-apps/gradm/gradm-2.0.2.ebuild b/sys-apps/gradm/gradm-2.0.2.ebuild
new file mode 100644
index 000000000000..f2922f84f80a
--- /dev/null
+++ b/sys-apps/gradm/gradm-2.0.2.ebuild
@@ -0,0 +1,75 @@
+# 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.2.ebuild,v 1.1 2004/11/30 06:28:49 solar Exp $
+
+inherit flag-o-matic gcc eutils
+
+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"
+#SRC_URI="mirror://gentoo/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}
+
+ # (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 $?
+ [ "$PV" == "2.0.1" ] && epatch ${FILESDIR}/${PN}-${PV}-install.patch
+}
+
+src_compile() {
+ cd ${S}
+ emake CC="$(gcc-getCC)" || die "compile problem"
+ return 0
+}
+
+src_install() {
+ cd ${S}
+ einstall DESTDIR=${D}
+
+ # 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 /sbin/gradm
+
+ return 0
+}
+
+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 12 || die "Cant mknod for grsec learning device"
+ fi
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
+}