2014-01-18 14:10:18 +01:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2012-10-26 20:00:28 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2013-10-28 19:43:10 +01:00
|
|
|
EAPI="5"
|
2012-10-26 20:00:28 +02:00
|
|
|
ETYPE="sources"
|
|
|
|
K_DEBLOB_AVAILABLE="1"
|
2013-12-29 05:15:33 +01:00
|
|
|
K_WANT_GENPATCHES=""
|
|
|
|
K_GENPATCHES_VER=""
|
2012-10-26 20:00:28 +02:00
|
|
|
|
2014-01-18 14:10:18 +01:00
|
|
|
GOPATCHES_VER="2"
|
2013-12-29 05:15:33 +01:00
|
|
|
GOPATCHES="sablink-patches-${PV}-${GOPATCHES_VER}.tar.xz"
|
|
|
|
GOPATCHES_URI="http://ftp.disconnected-by-peer.at/sablink/sys-kernel/linux-sablink-patches/${GOPATCHES}"
|
2012-10-26 20:00:28 +02:00
|
|
|
|
|
|
|
inherit kernel-2
|
|
|
|
detect_version
|
|
|
|
detect_arch
|
|
|
|
|
|
|
|
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
|
|
|
IUSE=""
|
|
|
|
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://forge.novell.com/modules/xfmod/project/?apparmor"
|
|
|
|
|
|
|
|
DESCRIPTION="Full sources including the Gentoo & Geos One patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
|
|
|
|
|
2013-12-29 05:15:33 +01:00
|
|
|
SRC_URI="${KERNEL_URI} ${GOPATCHES_URI}"
|
2012-10-26 20:00:28 +02:00
|
|
|
|
2013-12-29 05:15:33 +01:00
|
|
|
UNIPATCH_LIST="${DISTDIR}/${GOPATCHES}"
|
|
|
|
UNIPATCH_EXCLUDE="1000_patch-${PV}.patch"
|
2012-10-26 20:00:28 +02:00
|
|
|
|
2012-10-28 16:48:30 +01:00
|
|
|
src_unpack() {
|
|
|
|
kernel-2_src_unpack
|
2012-10-26 20:00:28 +02:00
|
|
|
|
2012-10-28 16:48:30 +01:00
|
|
|
# Comment out EXTRAVERSION added by CK patch:
|
|
|
|
sed -i -e 's/\(^EXTRAVERSION :=.*$\)/# \1/' "${S}/Makefile"
|
|
|
|
find "${WORKDIR}" -iname "*.orig" -exec rm {} \; 2> /dev/null
|
2012-10-26 20:00:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
kernel-2_pkg_postinst
|
|
|
|
einfo "For more info on this patchset, and how to report problems, see:"
|
|
|
|
einfo "${HOMEPAGE}"
|
|
|
|
einfo
|
|
|
|
einfo "Make sure that your kernel configuration file is set with:"
|
|
|
|
einfo " CONFIG_SECURITY=y"
|
|
|
|
einfo " CONFIG_SECURITY_APPARMOR=y"
|
|
|
|
einfo "Without these, apparmor will not function."
|
|
|
|
}
|