diff options
author | John Mylchreest <johnm@gentoo.org> | 2005-11-14 20:32:30 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2005-11-14 20:32:30 +0000 |
commit | 9f2038edc82cacf9d7ca4563f6a97f0bdaaba1f2 (patch) | |
tree | ddf90a090957f7311a8ccfecdef5c7c7d0c9292d | |
parent | Add message digest. (diff) | |
download | gentoo-2-9f2038edc82cacf9d7ca4563f6a97f0bdaaba1f2.tar.gz gentoo-2-9f2038edc82cacf9d7ca4563f6a97f0bdaaba1f2.tar.bz2 gentoo-2-9f2038edc82cacf9d7ca4563f6a97f0bdaaba1f2.zip |
Adding gradm suitable for 2.6.13+
(Portage version: 2.0.53_rc7)
-rw-r--r-- | sys-apps/gradm/ChangeLog | 13 | ||||
-rw-r--r-- | sys-apps/gradm/files/2.1.7.200511041858-non-lazy-bindings.patch | 12 | ||||
-rw-r--r-- | sys-apps/gradm/files/digest-gradm-2.1.7.200511041858 | 1 | ||||
-rw-r--r-- | sys-apps/gradm/gradm-2.1.7.200511041858.ebuild | 56 |
4 files changed, 81 insertions, 1 deletions
diff --git a/sys-apps/gradm/ChangeLog b/sys-apps/gradm/ChangeLog index f26c90454085..05793416b9ba 100644 --- a/sys-apps/gradm/ChangeLog +++ b/sys-apps/gradm/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/gradm # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.59 2005/09/17 15:05:20 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/ChangeLog,v 1.60 2005/11/14 20:32:30 johnm Exp $ + + 14 Nov 2005; John Mylchreest <johnm@gentoo.org> + +files/2.1.7.200511041858-non-lazy-bindings.patch, + +gradm-2.1.7.200511041858.ebuild: + Adding gradm, suitable for hardened-sources-2.6.13+ 17 Sep 2005; Sven Wegener <swegener@gentoo.org> +files/2.1.6.200506131347-non-lazy-bindings.patch, @@ -17,6 +22,12 @@ gradm-2.1.6.200506131347.ebuild: stable on ia64 +*gradm-2.1.7.200511041858 (14 Nov 2005) + + 14 Nov 2005; John Mylchreest <johnm@gentoo.org> + +gradm-2.1.7.200511041858.ebuild: + Adding gradm, suitable for hardened-sources-2.6.13+ + 01 Jul 2005; <solar.@gentoo.org> gradm-2.1.6.200506131347.ebuild: - stable on x86, ppc 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 new file mode 100644 index 000000000000..da0b1997f965 --- /dev/null +++ b/sys-apps/gradm/files/2.1.7.200511041858-non-lazy-bindings.patch @@ -0,0 +1,12 @@ +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/digest-gradm-2.1.7.200511041858 b/sys-apps/gradm/files/digest-gradm-2.1.7.200511041858 new file mode 100644 index 000000000000..9b0f52451063 --- /dev/null +++ b/sys-apps/gradm/files/digest-gradm-2.1.7.200511041858 @@ -0,0 +1 @@ +MD5 ca33202dbe8ddef81492fda8c9ea7937 gradm-2.1.7-200511041858.tar.gz 60587 diff --git a/sys-apps/gradm/gradm-2.1.7.200511041858.ebuild b/sys-apps/gradm/gradm-2.1.7.200511041858.ebuild new file mode 100644 index 000000000000..7f8ce91b407c --- /dev/null +++ b/sys-apps/gradm/gradm-2.1.7.200511041858.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gradm/gradm-2.1.7.200511041858.ebuild,v 1.1 2005/11/14 20:32:30 johnm 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://www.grsecurity.net/gradm-${myPV}.tar.gz" +#SRC_URI="mirror://gentoo/gradm-${myPV}.tar.gz" +#RESTRICT=primaryuri +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~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}"/${PV}-non-lazy-bindings.patch +} + +src_compile() { + local target="" + use pam || target="nopam" + + emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" || die "compile problem" +} + +src_install() { + einstall DESTDIR="${D}" || die "einstall failed" + fperms 711 /sbin/gradm +} + +pkg_postinst() { + if [ ! -e "${ROOT}"/dev/grsec ] ; then + einfo "Making character device for grsec2 learning mode" + mkdir -p -m 755 "${ROOT}"/dev/ + mknod -m 0622 "${ROOT}"/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" +} |