linamh/sys-kernel/geos_one-sources/geos_one-sources-2.6.28-r4.ebuild

109 lines
4.1 KiB
Bash
Raw Normal View History

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="7"
AA_VER="2.3"
AA_KV="2.6.28"
REISER4_KV="2.6.28"
TUXONICE_VER="3.0-rc8"
TUXONICE_KV="2.6.28"
DSDT_VER="0.9c"
DSDT_KV="2.6.28"
UNION_VER="2.5.1"
UNION_KV="2.6.28.1"
ALSA_VER="1.0.18a"
inherit kernel-2
detect_version
detect_arch
KEYWORDS="~amd64 ~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 & AppArmor patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
AA_SRC="ftp://forgeftp.novell.com/apparmor/AppArmor%202.3-Beta1/${AA_KV}-AA${AA_VER}.tgz
http://ftp.mars.arge.at/apparmor/${AA_KV}-AA${AA_VER}.tgz"
REISER4_SRC="http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/reiser4-for-${REISER4_KV}.patch.bz2"
TUXONICE_SRC="http://www.tuxonice.net/downloads/all/tuxonice-${TUXONICE_VER}-for-${TUXONICE_KV}.patch.bz2
http://user.it.uu.se/~mikpe/linux/patches/tuxonice/tuxonice-${TUXONICE_VER}-for-${TUXONICE_KV}.patch.bz2
http://www-user.tu-chemnitz.de/~doto/kernel/tuxonice-${TUXONICE_VER}-for-${TUXONICE_KV}.patch.bz2"
DSDT_SRC="http://gaugusch.at/acpi-dsdt-initrd-patches/acpi-dsdt-initrd-v${DSDT_VER}-${DSDT_KV}.patch"
UNION_SRC="http://download.filesystems.org/unionfs/unionfs-2.x/unionfs-${UNION_VER}_for_${UNION_KV}.diff.gz
http://ftp.mars.arge.at/apparmor/UnionFS_${UNION_VER}-AppArmor_${AA_VER}.patch"
ALSA_SRC="ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${ALSA_VER}.tar.bz2"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${AA_SRC} ${EXT4_SRC} ${REISER4_SRC} ${TUXONICE_SRC} ${DSDT_SRC} ${UNION_SRC} ${ALSA_SRC}"
src_unpack() {
mkdir apparmor
cd apparmor
unpack "${AA_KV}-AA${AA_VER}.tgz"
sed -e '/^#/d' -i ${AA_KV}/series
cd ..
mkdir alsa
cd alsa
unpack "alsa-driver-${ALSA_VER}.tar.bz2"
epatch ${FILESDIR}/alsa-driver-1.0.18a-xa3530.patch
cd ..
kernel-2_src_unpack
for f in $(<../apparmor/${AA_KV}/series) ; do
EPATCH_OPTS="-p1" \
EPATCH_SINGLE_MSG="Applying AppArmor's ${f}" \
epatch ../apparmor/${AA_KV}/${f}
done
einfo "integrating ALSA ${ALSA_VER}"
# rm -rf sound/pci/hda/*
cp -rf ../alsa/alsa-driver-${ALSA_VER}/alsa-kernel/* sound/
rm -rf sound/include
cp -rf ../alsa/alsa-driver-${ALSA_VER}/alsa-kernel/include/* include/sound/
rm -rf sound/Documentation
cp -rf ../alsa/alsa-driver-${ALSA_VER}/alsa-kernel/Documentation/* Documentation
rm -rf sound/scripts
epatch ${FILESDIR}/alsa-driver-1.0.19-input.patch
epatch ${DISTDIR}/reiser4-for-${REISER4_KV}.patch.bz2
epatch ${FILESDIR}/fix-reiser4-for-2.6.28.1.patch
epatch ${DISTDIR}/tuxonice-${TUXONICE_VER}-for-${TUXONICE_KV}.patch.bz2
epatch ${DISTDIR}/acpi-dsdt-initrd-v${DSDT_VER}-${DSDT_KV}.patch
epatch ${DISTDIR}/unionfs-${UNION_VER}_for_${UNION_KV}.diff.gz
epatch ${DISTDIR}/UnionFS_${UNION_VER}-AppArmor_${AA_VER}.patch
epatch ${FILESDIR}/fix-unionfs-for-2.6.28.1.patch
epatch ${FILESDIR}/colored-printk-2.6.26.patch
epatch ${FILESDIR}/linux-2.6-x86-tune-generic.patch
epatch ${FILESDIR}/linux-2.6-defaults-fat-utf8.patch
epatch ${FILESDIR}/linux-2.6.27-lirc.patch
epatch ${FILESDIR}/hz-432-kconfig-option.patch
epatch ${FILESDIR}/hz-864-kconfig-option.patch
epatch ${FILESDIR}/enable-4k-stacks-default-2.6.24.patch
# epatch ${FILESDIR}/drm-next.patch
# epatch ${FILESDIR}/drm-modesetting-radeon.patch
# epatch ${FILESDIR}/drm-nouveau.patch
epatch ${FILESDIR}/1-bcm5974-headers.patch
epatch ${FILESDIR}/2-bcm5974-quad-finger-tapping.patch
epatch ${FILESDIR}/3-bcm5974-macbook5-support.patch
epatch ${FILESDIR}/linux-sabayon-2.6.28-ignore-mouse-interface-on-macbooks.patch
find ${WORKDIR} -iname "*.orig" -exec rm {} \; 2> /dev/null
}
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."
}