mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-27 01:03:18 +02:00
95 lines
3.1 KiB
Bash
95 lines
3.1 KiB
Bash
# Copyright 1999-2014 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.15.5-r2.ebuild,v 1.2 2014/07/30 12:11:27 blueness Exp $
|
|
|
|
EAPI="5"
|
|
|
|
ETYPE="sources"
|
|
K_WANT_GENPATCHES="base"
|
|
K_GENPATCHES_VER="7"
|
|
K_DEBLOB_AVAILABLE="1"
|
|
|
|
inherit kernel-2
|
|
detect_version
|
|
|
|
HGPV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-3"
|
|
HGPV_URI="http://dev.gentoo.org/~blueness/hardened-sources/hardened-patches/hardened-patches-${HGPV}.extras.tar.bz2"
|
|
PENPATCHES_VER="2"
|
|
PENPATCHES="penpatches-${PV}-${PENPATCHES_VER}.tar.xz"
|
|
PENPATCHES_URI="http://dev.pentoo.ch/~zero/distfiles/${PENPATCHES}"
|
|
SRC_URI="${KERNEL_URI} ${HGPV_URI} ${GENPATCHES_URI} ${ARCH_URI} ${PENPATCHES_URI}"
|
|
|
|
UNIPATCH_LIST="${DISTDIR}/hardened-patches-${HGPV}.extras.tar.bz2 ${DISTDIR}/${PENPATCHES}"
|
|
|
|
DESCRIPTION="Pentoo kernel sources (kernel series ${KV_MAJOR}.${KV_MINOR})"
|
|
HOMEPAGE="https://code.google.com/p/pentoo/source/browse/#svn%2Fkernel%2Ftrunk%2F3.15.5"
|
|
#IUSE="aufs deblob injection openfile_log pax_kernel"
|
|
IUSE="aufs deblob injection pax_kernel"
|
|
|
|
KEYWORDS="amd64 x86"
|
|
|
|
PDEPEND=">=sys-devel/gcc-4.5
|
|
>=sys-apps/gradm-3.0"
|
|
|
|
pkg_setup() {
|
|
# We are proud of it, let's show it
|
|
UNIPATCH_EXCLUDE="4421_grsec-remove-localversion-grsec.patch"
|
|
if ! use pax_kernel; then
|
|
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} \
|
|
4427_force_XATTR_PAX_tmpfs.patch \
|
|
4440_selinux-avc_audit-log-curr_ip.patch \
|
|
4475_emutramp_default_on.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 \
|
|
9998_aufs-mmap-pax.patch \
|
|
9999_pax-3.15ish.patch"
|
|
else
|
|
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} \
|
|
1500_XATTR_USER_PREFIX.patch \
|
|
2900_dev-root-proc-mount-fix.patch \
|
|
4308_aufs3-mmap.patch \
|
|
4400_logo_larry_the_cow.patch"
|
|
fi
|
|
if ! use aufs ; then
|
|
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} \
|
|
4306_aufs3-kbuild.patch \
|
|
4307_aufs3-base.patch \
|
|
4308_aufs3-mmap.patch \
|
|
4309_aufs3-standalone.patch \
|
|
4310_aufs3.patch \
|
|
9998_aufs-mmap-pax.patch \
|
|
9999_pax-3.15ish.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-inject+dbi-fix-3.7.4.patch \
|
|
4005_ipw2200-inject.3.4.6.patch"
|
|
fi
|
|
#use openfile_log && UNIPATCH_LIST="${UNIPATCH_LIST} ${FILESDIR}/openfile_log-36.patch"
|
|
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 4500-new-dect-stack.patch"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
kernel-2_pkg_postinst
|
|
|
|
ewarn "It may be desired to download the official pentoo kernel config from here:"
|
|
if use amd64; then
|
|
if use pax_kernel; then
|
|
ewarn "https://pentoo.googlecode.com/svn/livecd/trunk/amd64/kernel/config-${PV}"
|
|
else
|
|
ewarn "https://pentoo.googlecode.com/svn/livecd/trunk/amd64/kernel/config-${PV}-soft"
|
|
fi
|
|
fi
|
|
if use x86; then
|
|
if use pax_kernel; then
|
|
ewarn "https://pentoo.googlecode.com/svn/livecd/trunk/x86/kernel/config-${PV}"
|
|
else
|
|
ewarn "https://pentoo.googlecode.com/svn/livecd/trunk/x86/kernel/config-${PV}-soft"
|
|
fi
|
|
fi
|
|
}
|