# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ RESTRICT="nomirror" ETYPE="sources" inherit kernel-2 detect_version GRSEC_MAJOR="2.1.14" GRSECPATCH_NAME="grsecurity-${GRSEC_MAJOR}-${PV}-${PR/r}.patch" GRSECPATCH_URI="http://grsecurity.net/stable/${GRSECPATCH_NAME}" UNIPATCH_LIST="${DISTDIR}/${GRSECPATCH_NAME}" UNIPATCH_STRICTORDER="1" SRC_URI="${KERNEL_URI} ${GRSECPATCH_URI} ${ARCH_URI}" DESCRIPTION="A patchset by Brad Spengler for the Linux kernel, with an emphasis on enhancing security" HOMEPAGE="http://grsecurity.net/" IUSE="" KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86" src_unpack() { kernel-2_src_unpack rm -f "${S}"/localversion-grsec } pkg_postinst() { kernel-2_pkg_postinst einfo "For further information on this patchset, please refer to:" einfo einfo "* http://www.grsecurity.net" einfo "* http://wikipedia.org/wiki/Grsecurity" einfo "* http://wikipedia.org/wiki/PaX" einfo einfo "These sources are best used in conjunction with a Hardened Gentoo base" einfo "system. For further details, please refer to the project homepage at:" einfo einfo "http://www.gentoo.org/proj/en/hardened/" }