/[gentoo-x86]/sys-kernel/hppa-sources/hppa-sources-2.4.27_p4-r2.ebuild
Gentoo

Contents of /sys-kernel/hppa-sources/hppa-sources-2.4.27_p4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jan 10 21:35:08 2005 UTC (13 years, 3 months ago) by gmsoft
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removing unneeded files.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/hppa-sources-2.4.27_p4-r2.ebuild,v 1.2 2005/01/01 23:10:37 gmsoft Exp $
4 #OKV=original kernel version, KV=patched kernel version. They can be the same.
5
6 ETYPE="sources"
7 inherit kernel eutils
8 OKV="${PV/_p*/}"
9 PATCH_LEVEL="${PV/${OKV}_p/}"
10 EXTRAVERSION="-pa${PATCH_LEVEL}"
11 [ ! "${PR}" = "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}"
12 KV="${OKV}${EXTRAVERSION}"
13
14 S=${WORKDIR}/linux-${KV}
15
16
17 DESCRIPTION="Full sources for the Linux kernel with patch for hppa"
18 SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://ftp.parisc-linux.org/cvs/linux-2.4/patch-${OKV}-pa${PATCH_LEVEL}.gz
19 http://dev.gentoo.org/~gmsoft/patches/parisc-2.4.23-pa4-missing-ioctl-translations.diff http://dev.gentoo.org/~gmsoft/patches/lasi-config-max-tag-queue-dep.patch"
20 HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org"
21 KEYWORDS="hppa -*"
22 IUSE=""
23 SLOT="${KV}"
24
25
26 src_unpack() {
27 unpack linux-${OKV}.tar.bz2
28 mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV}
29 cd ${S}
30
31 einfo Applying ${OKV}-pa${PATCH_LEVEL}.gz
32 zcat ${DISTDIR}/patch-${OKV}-pa${PATCH_LEVEL}.gz | patch -sp 1
33
34 DEFCONFIG="${S}/arch/parisc/defconfig"
35
36 # Tweaks the default configuration
37
38 # Enable stuff
39 for i in CONFIG_SERIAL_NONSTANDARD CONFIG_PDC_CONSOLE CONFIG_DEVFS_FS \
40 CONFIG_USB CONFIG_USB_OHCI CONFIG_USB_HID CONFIG_USB_HIDINPUT \
41 CONFIG_CRC32 CONFIG_BLK_STATS CONFIG_TMPFS
42 do
43 sed -i -e "s/^.*${i}\ .*$//" "${DEFCONFIG}"
44 echo "${i}=y" >> "${DEFCONFIG}"
45 done
46
47 # Disable stuff
48 for i in CONFIG_HOTPLUG CONFIG_PARPORT CONFIG_BLK_DEV_RAM CONFIG_MD \
49 CONFIG_CRYPTO CONFIG_DEVPTS_FS
50 do
51 sed -i -e "s/^.*${i}=.*$/# ${i} is not set/" "${DEFCONFIG}"
52 done
53
54 epatch ${DISTDIR}/parisc-2.4.23-pa4-missing-ioctl-translations.diff || die "Failed to patch missing ioctls translations!"
55 epatch ${DISTDIR}/lasi-config-max-tag-queue-dep.patch || die "Failed to patch lasi config max taq queue!"
56 epatch ${FILESDIR}/NFS-XDR-security.patch || die "Patch failed!"
57 epatch ${FILESDIR}/CAN-2004-0814.patch || die "Patch failed!"
58 epatch ${FILESDIR}/CAN-2004-1074.patch || die "Patch failed!"
59 epatch ${FILESDIR}/binfmt_elf-loader-security.patch || die "Patch failed!"
60 epatch ${FILESDIR}/CAN-2004-0882-0883.patch || die "Patch failed!"
61 epatch ${FILESDIR}/AF_UNIX-security.patch || die "Patch failed!"
62
63 kernel_universal_unpack
64 }

  ViewVC Help
Powered by ViewVC 1.1.20