From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/blueness:master commit in: sys-apps/gradm/files/, sys-apps/gradm/
Date: Sun, 27 Mar 2011 15:18:36 +0000 (UTC) [thread overview]
Message-ID: <8df4820d79af98612d8e8d9066e2236784a3c76b.blueness@gentoo> (raw)
commit: 8df4820d79af98612d8e8d9066e2236784a3c76b
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 27 15:18:25 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Mar 27 15:18:25 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=8df4820d
sys-apps/gradm: Version bump, needed for hardened-sources-2.6.32-r43 and hardened-sources-2.6.38
(Portage version: 2.1.9.42/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
---
sys-apps/gradm/ChangeLog | 7 +++
sys-apps/gradm/Manifest | 15 +++++-
.../gradm/files/gradm-2.2.2.201103262019.patch | 32 +++++++++++
sys-apps/gradm/gradm-2.2.2.201103262019.ebuild | 55 ++++++++++++++++++++
4 files changed, 108 insertions(+), 1 deletions(-)
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog
index 0b19df6..f7987a9 100644
--- a/sys-apps/gradm/ChangeLog
+++ b/sys-apps/gradm/ChangeLog
@@ -1,5 +1,12 @@
+*gradm-2.2.2.201103262019 (27 Mar 2011)
+
+ 27 Mar 2011; Anthony G. Basile <blueness@gentoo.org>
+ +gradm-2.2.2.201103262019.ebuild, +files/gradm-2.2.2.201103262019.patch:
+ Version bump, needed for hardened-sources-2.6.32-r43 and
+ hardened-sources-2.6.38
+
14 Dec 2010; Anthony G. Basile <blueness@gentoo.org>
-gradm-2.2.1.201012121738.ebuild, -files/gradm-2.2.1.201012121738.patch:
moved to tree
diff --git a/sys-apps/gradm/Manifest b/sys-apps/gradm/Manifest
index 52b0301..4fe5791 100644
--- a/sys-apps/gradm/Manifest
+++ b/sys-apps/gradm/Manifest
@@ -1,2 +1,15 @@
-MISC ChangeLog 3204 RMD160 4eaf7b1ce0c443ec8edf20c0ca507ec9ed83a4dd SHA1 f596dc5db399e5c5c7dbfa6d192ca9b4f221ee89 SHA256 d192819cb4aca6f94550d5aa7c00989ac03b3240f1679e6aa4750979e2e6366e
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX gradm-2.2.2.201103262019.patch 1333 RMD160 1d6384d3c7fa8fb4b519ab09b8816ffc624cab8a SHA1 8224562e7e45c05a07ad95962d74402161485e9b SHA256 8198ec14f85d9389f454cf893530ed3bfa09b22123e052dfb41849e31f08028d
+DIST gradm-2.2.2-201103262019.tar.gz 75048 RMD160 ba80a24d5a335a4586e31f99cb56dbb9843e6c08 SHA1 48863a19e2fe4cda129120e6eb98622c7bf74f14 SHA256 1f9561b74d3dbce74098f79f6e309b488ce3d704da3eda72d1287a99316b5e95
+EBUILD gradm-2.2.2.201103262019.ebuild 1399 RMD160 a8927526b5429aa60e81d14b1fea7118f7231992 SHA1 0b6324beedec4cf182e7d2e5fddb66ae8e3b0e3f SHA256 15a0446a82be689db017ff8cef1b349c37e624f4330140037acd6215b3a61ca7
+MISC ChangeLog 3461 RMD160 1071a584e249a8ef171c483e795e3d3b25525d7e SHA1 7716a358edf34598f7422b551e197fdd6cf35f4f SHA256 d5597d9fa846a6c735fa8c3652b07be1826f961ae96e3db175c353ec0d887997
MISC metadata.xml 446 RMD160 4d31627c251814e2f5fe17c09d62d99908bf6c11 SHA1 1c74ff9fbb7ca48525459ad1b4377ec70bc5b3e0 SHA256 43b473e6638ecade10909928c64cb2b0f5328728269dc5413cd3665ae225154a
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEAREIAAYFAk2PVUEACgkQl5yvQNBFVTVFzwCggTVxBIjLEr/aDzNDiU9QShkR
+qfIAoJYA9PkQAeDtWp9j4wQp7scl9exD
+=uSLb
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/gradm/files/gradm-2.2.2.201103262019.patch b/sys-apps/gradm/files/gradm-2.2.2.201103262019.patch
new file mode 100644
index 0000000..cd878ee
--- /dev/null
+++ b/sys-apps/gradm/files/gradm-2.2.2.201103262019.patch
@@ -0,0 +1,32 @@
+diff -Naur gradm2.orig/Makefile gradm2/Makefile
+--- gradm2.orig/Makefile 2011-03-26 14:46:14.000000000 -0400
++++ gradm2/Makefile 2011-03-27 11:11:36.000000000 -0400
+@@ -18,16 +18,16 @@
+ BISON=/usr/bin/bison
+ #YACC := $(shell if [ -x $(BYACC) ]; then echo $(BYACC); else echo $(BISON); fi)
+ YACC=$(BISON)
+-MKNOD=/bin/mknod
++MKNOD=true
+ #for dietlibc
+ #CC=/usr/bin/diet /usr/bin/gcc
+ CC=/usr/bin/gcc
+ FIND=/usr/bin/find
+-STRIP=/usr/bin/strip
++STRIP=true
+ LIBS := $(shell if [ "`uname -m`" != "sparc64" -a "`uname -m`" != "x86_64" ]; then echo "-lfl" ; else echo "" ; fi)
+ OPT_FLAGS := $(shell if [ "`uname -m`" != "sparc64" ] && [ "`uname -m`" != "x86_64" ]; then echo "-O2" ; else echo "-O2 -m64" ; fi)
+-CFLAGS := $(OPT_FLAGS) -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE
+-LDFLAGS=
++CFLAGS := $(OPT_FLAGS) -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE $(CFLAGS)
++LDFLAGS+=
+ INSTALL = /usr/bin/install -c
+
+ # FHS
+@@ -134,6 +134,7 @@
+ $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \
+ fi \
+ fi
++ @mkdir -p $(DESTDIR)/etc/udev/rules.d
+ @if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \
+ echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
+ echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
diff --git a/sys-apps/gradm/gradm-2.2.2.201103262019.ebuild b/sys-apps/gradm/gradm-2.2.2.201103262019.ebuild
new file mode 100644
index 0000000..0747fb4
--- /dev/null
+++ b/sys-apps/gradm/gradm-2.2.2.201103262019.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.2.1.201012301333.ebuild,v 1.2 2011/01/25 12:54:37 blueness Exp $
+
+EAPI=2
+
+inherit flag-o-matic toolchain-funcs versionator
+
+MY_PV="$(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/~blueness/hardened-sources/gradm/gradm-2.2.2-201103262019.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pam"
+
+RDEPEND=""
+DEPEND="sys-devel/bison
+ sys-devel/flex
+ pam? ( virtual/pam )
+ sys-apps/paxctl"
+
+S="${WORKDIR}/${PN}2"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}.patch"
+}
+
+src_compile() {
+ local target
+ use pam || target="nopam"
+
+ emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ einstall DESTDIR="${D}" || die "einstall failed"
+ fperms 711 /sbin/gradm
+}
+
+pkg_postinst() {
+ local UDEVADM="/sbin/udevadm"
+ if [[ -x ${UDEVADM} ]] ; then
+ $UDEVADM trigger --action=add --sysname-match=grsec
+ fi
+ einfo
+ ewarn
+ ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
+ ewarn "This version of gradm is only supported with hardened-sources >= 2.6.32-r10"
+ ewarn
+ einfo
+}
next reply other threads:[~2011-03-27 15:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-27 15:18 Anthony G. Basile [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-03-29 16:32 [gentoo-commits] dev/blueness:master commit in: sys-apps/gradm/files/, sys-apps/gradm/ Anthony G. Basile
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8df4820d79af98612d8e8d9066e2236784a3c76b.blueness@gentoo \
--to=blueness@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox