sys-kernel/pentoo-sources: added the fhas patch to ebuild

This commit is contained in:
Wuodan0 2013-02-16 22:20:57 +00:00
parent 155a1eb0d3
commit 16400a3ab4
2 changed files with 85 additions and 0 deletions

View file

@ -64,3 +64,4 @@ EBUILD pentoo-sources-3.4.5.ebuild 3325 SHA256 3b5fc4f358417a55e511b63704c6bc607
EBUILD pentoo-sources-3.5.4.ebuild 3325 SHA256 fd89cdefbedbf3afdb1f93c253eee02da7cf0d24bb642199656418294fc55a0f SHA512 07b171335c36d2a09851083f0833d6ccaea55b73a81eba4a13c551051bf5512a29f722e1d37fa9eb8e9000efdd1253e377590886500e2f1565856eaee30df663 WHIRLPOOL 2d61432e30fab72da5625715f90df98a7f6e1963b7e93b8e634df5a808c6165a8d0fddbecda0fa16e77163abc00e0278e8fc43a387a943dd321ee04875226651
EBUILD pentoo-sources-3.7.0-r1.ebuild 2911 SHA256 2845921fbce48cf974cf2498261e736f124be886c2313a5128b4a08388ea3af9 SHA512 4dccef7027f2865a724e06f7899ee4de2e5963a7acded52c221a6ebc3dbd8e6a93abc9b0ec296420cc5fbe40706bf151393cdb0871d24ffb76ae9618f5c5f63f WHIRLPOOL f46e3a0bd21ab717769fac76093ce936f8781c6650008265b4e7bc5591f0ce6621604745dff6a83717ce0e7072ec35ed1d4f887e89bc690f3c548ec7383f5cd1
EBUILD pentoo-sources-3.7.0-r2.ebuild 3115 SHA256 4e3c8e689ccc3a0795b3973d63bf827cb133a5e7a8780771050022fa3f6a0ed6 SHA512 f1ddc32b8822aa9fcdd5e16fc7eea10a9ea8b1e774621c2b903abb3aa6008abac3a63789091a6d2db46d336cbea7cb6a563baec35857182649027a5b6b771c5c WHIRLPOOL 1d8ef8a6fd8c2ea907dc1a9bfa92b06fe4ac1de1c6cdfde63376284f942980dc578a59d995bd644954dc50d4fdcbbde40c2f15f8f6b5b64e40ddc6e92ecde48e
EBUILD pentoo-sources-3.7.0-r3.ebuild 3178 SHA256 3ef3ffbfd887cd542799b5fe03e187b8dd9f84df2ddf16946ceeebb9983e56d0 SHA512 49504bbf22fed55b4477bdea2b6304bbb51facbd782da3d1d13517f3b65a5b13b0858cfcedf1286ae959d72423c41318093a391802ec86d6f38b58d2358ceb8d WHIRLPOOL d991ff85ad2b76f0491f91b8eefc16a1400aed3a63ede6c59dbf5b687202f3196a78239e3ce52987c8a4b3f011e859f4061eb88d1bbb7ef9c8b824859491a2cc

View file

@ -0,0 +1,84 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hardened-sources/hardened-sources-3.4.2.ebuild,v 1.2 2012/06/29 00:11:38 blueness Exp $
EAPI="4"
ETYPE="sources"
K_WANT_GENPATCHES="base"
K_GENPATCHES_VER="1"
K_DEBLOB_AVAILABLE="1"
inherit kernel-2
detect_version
PENPATCHES_VER="3"
PENPATCHES="penpatches-${PV}-${PENPATCHES_VER}.tar.xz"
PENPATCHES_URI="http://dev.pentoo.ch/~zero/distfiles/${PENPATCHES}"
HGPV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-1"
HGPV_URI="http://dev.gentoo.org/~blueness/hardened-sources/hardened-patches/hardened-patches-${HGPV}.extras.tar.bz2"
SRC_URI="${KERNEL_URI} ${HGPV_URI} ${GENPATCHES_URI} ${ARCH_URI} ${PENPATCHES_URI}"
UNIPATCH_LIST="${DISTDIR}/hardened-patches-${HGPV}.extras.tar.bz2 ${DISTDIR}/${PENPATCHES}"
UNIPATCH_EXCLUDE="4200_fbcondecor-0.9.6.patch"
DESCRIPTION="Hardened kernel sources (kernel series ${KV_MAJOR}.${KV_MINOR})"
HOMEPAGE="http://www.gentoo.org/proj/en/hardened/"
IUSE="aufs deblob injection openfile_log pax_kernel"
KEYWORDS="amd64 x86"
RDEPEND=">=sys-devel/gcc-4.5
pax_kernel? ( >=sys-apps/gradm-2.9.1 )"
pkg_setup() {
# We are proud of it, let's show it
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 4421_grsec-remove-localversion-grsec.patch"
if ! use pax_kernel; then
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} \
4440_selinux-avc_audit-log-curr_ip.patch \
44??-grsec*
44??_grsec*
4445_disable-compat_vdso.patch \
4420_grsecurity-*
4465_selinux-avc_audit-log-curr_ip.patch
4470_disable-compat_vdso.patch
9999_aufs3-grsec.patch"
else
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 4400_logo_larry_the_cow.patch"
fi
if ! use aufs ; then
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE}
4310_aufs3.patch \
9999_aufs3-grsec.patch"
fi
if ! use injection ; then
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE}
4002_mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch
4004_zd1211rw-2.6.28.patch
ipw2200-inject.3.4.6.patch"
fi
use openfile_log && UNIPATCH_LIST="${UNIPATCH_LIST} ${FILESDIR}/openfile_log-36.patch"
#UNIPATCH_LIST="${UNIPATCH_LIST} ${FILESDIR}/9997-desktop-responsiveness_2.6.35_fix.patch"
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 4500-new-dect-stack.patch"
UNIPATCH_LIST="${UNIPATCH_LIST} ${FILESDIR}/${P}-fhash.patch"
}
pkg_postinst() {
kernel-2_pkg_postinst
ewarn
ewarn "Hardened Gentoo provides three different predefined grsecurity level:"
ewarn "[server], [workstation], and [virtualization]. Those who intend to"
ewarn "use one of these predefined grsecurity levels should read the help"
ewarn "associated with the level. Because some options require >=gcc-4.5,"
ewarn "users with more, than one version of gcc installed should use gcc-config"
ewarn "to select a compatible version."
ewarn
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
ewarn "It may be desired to download the official pentoo kernel config from here:"
use x86 && ewarn "https://pentoo.googlecode.com/svn/livecd/trunk/x86/kernel/config-${PV}"
use amd64 && ewarn "https://pentoo.googlecode.com/svn/livecd/trunk/amd64/kernel/config-${PV}"
}