summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-02-22 13:32:10 +0000
committerChristian Heim <phreak@gentoo.org>2007-02-22 13:32:10 +0000
commit95be4f7c2f63aa11fd29c969871c8775611fc03a (patch)
tree39e1e841e32a35f8a6be6eb1a41d35ebbc65f367 /sys-apps/gradm
parentSign Manfiest (diff)
downloadgentoo-2-95be4f7c2f63aa11fd29c969871c8775611fc03a.tar.gz
gentoo-2-95be4f7c2f63aa11fd29c969871c8775611fc03a.tar.bz2
gentoo-2-95be4f7c2f63aa11fd29c969871c8775611fc03a.zip
Version bump, new upstream version to satisfy hardened-sources / GRsec.
(Portage version: 2.1.2-r10)
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.2007011219593
-rw-r--r--sys-apps/gradm/gradm-2.1.10.200701121959.ebuild52
3 files changed, 62 insertions, 1 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index 73dadc8e9cb5..770c840b5331 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.83 2007/02/22 01:10:15 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.84 2007/02/22 13:32:10 phreak Exp $
+
+*gradm-2.1.10.200701121959 (22 Feb 2007)
+
+ 22 Feb 2007; Christian Heim <phreak@gentoo.org>
+ +gradm-2.1.10.200701121959.ebuild:
+ Version bump, new upstream version to satisfy hardened-sources / GRsec.
22 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
Redigest for Manifest2
diff --git a/sys-apps/gradm/files/digest-gradm-2.1.10.200701121959 b/sys-apps/gradm/files/digest-gradm-2.1.10.200701121959
new file mode 100644
index 000000000000..d84725b67a1a
--- /dev/null
+++ b/sys-apps/gradm/files/digest-gradm-2.1.10.200701121959
@@ -0,0 +1,3 @@
+MD5 c5f0bd4e4201683d2c1044274ad8ff16 gradm-2.1.10-200701121959.tar.gz 61974
+RMD160 d37de9526477e442734ac7360e4a225377f9bba5 gradm-2.1.10-200701121959.tar.gz 61974
+SHA256 5b2a25c5ba6f65abe4008cd1f37ebb024aa46b64a98b2356c6636febf2c63f3c gradm-2.1.10-200701121959.tar.gz 61974
diff --git a/sys-apps/gradm/gradm-2.1.10.200701121959.ebuild b/sys-apps/gradm/gradm-2.1.10.200701121959.ebuild
new file mode 100644
index 000000000000..fbaddfe7da98
--- /dev/null
+++ b/sys-apps/gradm/gradm-2.1.10.200701121959.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.200701121959.ebuild,v 1.1 2007/02/22 13:32:10 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"
+}