diff options
author | Andrea Luzzardi <scox@gentoo.org> | 2003-12-05 21:30:17 +0000 |
---|---|---|
committer | Andrea Luzzardi <scox@gentoo.org> | 2003-12-05 21:30:17 +0000 |
commit | ce3e8375bfaaadea3a713617df1bd691ca5b3374 (patch) | |
tree | a83c2dd04f296c2317dd102f7fc0f6d7c60f7d28 /sys-kernel/pac-sources | |
parent | initial version of pac-sources (diff) | |
download | gentoo-2-ce3e8375bfaaadea3a713617df1bd691ca5b3374.tar.gz gentoo-2-ce3e8375bfaaadea3a713617df1bd691ca5b3374.tar.bz2 gentoo-2-ce3e8375bfaaadea3a713617df1bd691ca5b3374.zip |
initial version of pac-sources
Diffstat (limited to 'sys-kernel/pac-sources')
-rw-r--r-- | sys-kernel/pac-sources/ChangeLog | 6 | ||||
-rw-r--r-- | sys-kernel/pac-sources/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/pac-sources/files/digest-pac-sources-2.4.23-r1 | 2 | ||||
-rw-r--r-- | sys-kernel/pac-sources/metadata.xml | 14 | ||||
-rw-r--r-- | sys-kernel/pac-sources/pac-sources-2.4.23-r1.ebuild | 64 |
5 files changed, 88 insertions, 2 deletions
diff --git a/sys-kernel/pac-sources/ChangeLog b/sys-kernel/pac-sources/ChangeLog new file mode 100644 index 000000000000..d4d10e380582 --- /dev/null +++ b/sys-kernel/pac-sources/ChangeLog @@ -0,0 +1,6 @@ +# ChangeLog for sys-kernel/pac-sources +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pac-sources/ChangeLog,v 1.1 2003/12/05 21:30:10 scox Exp $ + + 05 Dec 2003; Andrea Luzzardi <scox@gentoo.org> + Initial import of pac-sources. diff --git a/sys-kernel/pac-sources/Manifest b/sys-kernel/pac-sources/Manifest index b696d5433d2f..93008e5c2489 100644 --- a/sys-kernel/pac-sources/Manifest +++ b/sys-kernel/pac-sources/Manifest @@ -1,4 +1,4 @@ -MD5 18396c55ee3ae9fa9dbf94f4e2d74452 pac-sources-2.4.23-r1.ebuild 1951 -MD5 b5b71d3991c358bf4389cff7661b919e ChangeLog 213 +MD5 a5675d8bf51210a6feca676f827d338e pac-sources-2.4.23-r1.ebuild 2063 +MD5 a0403ca0a02e30baa029acd68de2930f ChangeLog 306 MD5 daa14c3311aff54352fca02cadfd84a4 metadata.xml 409 MD5 6229e77dde1f21dc58f51f1dbb668c0d files/digest-pac-sources-2.4.23-r1 134 diff --git a/sys-kernel/pac-sources/files/digest-pac-sources-2.4.23-r1 b/sys-kernel/pac-sources/files/digest-pac-sources-2.4.23-r1 new file mode 100644 index 000000000000..75e05aae1086 --- /dev/null +++ b/sys-kernel/pac-sources/files/digest-pac-sources-2.4.23-r1 @@ -0,0 +1,2 @@ +MD5 642af5ab5e1fc63685fde85e9ae601e4 linux-2.4.23.tar.bz2 29832609 +MD5 ad1985cdeb4499b2260d2c874e89feed patch-2.4.23-pac1.bz2 1671379 diff --git a/sys-kernel/pac-sources/metadata.xml b/sys-kernel/pac-sources/metadata.xml new file mode 100644 index 000000000000..5a9d167efaa3 --- /dev/null +++ b/sys-kernel/pac-sources/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <herd>x86-kernel</herd> + <maintainer> + <email>x86-kernel@gentoo.org</email> + <name>x86 kernel team</name> + <description>Actively maintained</description> + </maintainer> + <longdescription> + Bernhard Rosenkraenzer's kernel patchset. + </longdescription> +</pkgmetadata> diff --git a/sys-kernel/pac-sources/pac-sources-2.4.23-r1.ebuild b/sys-kernel/pac-sources/pac-sources-2.4.23-r1.ebuild new file mode 100644 index 000000000000..9b270cf82cc1 --- /dev/null +++ b/sys-kernel/pac-sources/pac-sources-2.4.23-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pac-sources/pac-sources-2.4.23-r1.ebuild,v 1.1 2003/12/05 21:30:10 scox Exp $ + +IUSE="build" + +# OKV=original kernel version, KV=patched kernel version. + +ETYPE="sources" + +inherit kernel + +# PACV=Bernhard Rosenkraenzer's release version +PACV=pac${PR/r/} +# KV=patched kernel version +KV="${PV/_/-}-${PACV}" +# OKV=original kernel version as provided by ebuild +OKV="`echo ${KV} | cut -d- -f1`" +# OKVLAST=(working) last digit of OKV +OKVLAST="`echo ${OKV} | cut -d. -f3`" +# OKVLASTPR=the previous kernel version (for a marcelo pre/rc release) +OKVLASTPR="`expr ${OKVLAST} - 1`" +# If _ isn't there, then it's a stable+ac, otherwise last-stable+pre/rc+ac +PRERC="`echo ${PV}|grep \_`" + +# Other working variables +S=${WORKDIR}/linux-${KV} +EXTRAVERSION="`echo ${KV}|sed -e 's:[^-]*\(-.*$\):\1:'`" +BASE="`echo ${KV}|sed -e s:${EXTRAVERSION}::`" + +# If it's a last-stable+pre/rc+aa (marcelo), we need to handle it differently +# ourkernel is the stable kernel we'll be working with (previous or current) +if [ ${PRERC} ]; then + OURKERNEL="2.4.${OKVLASTPR}" + SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OURKERNEL}.tar.bz2 + mirror://kernel/linux/kernel/people/bero/2.4/${OURKERNEL}/patch-${KV/-}.bz2 + mirror://kernel/linux/kernel/v2.4/testing/patch-${PV/_/-}.bz2" +else + OURKERNEL="2.4.${OKVLAST}" + SRC_URI="mirror://kernel//linux/kernel/v2.4/linux-${OURKERNEL}.tar.bz2 + mirror://kernel/linux/kernel/people/bero/2.4/${OURKERNEL}/patch-${KV}.bz2" +fi + + +DESCRIPTION="Full sources for Bernhard Rosenkraenzer's Linux kernel" +KEYWORDS="~x86" +SLOT="${KV}" + +src_unpack() { + sleep 1 + unpack linux-${OURKERNEL}.tar.bz2 + mv linux-${OURKERNEL} linux-${KV} || die + + cd linux-${KV} + + # if we need a pre/rc patch, then use it + if [ ${PRERC} ]; then + bzcat ${DISTDIR}/patch-${PV/_/-}.bz2|patch -p1 || die "-pac patch failed" + fi + + bzcat ${DISTDIR}/patch-${KV}.bz2|patch -p1 || die "-pac patch failed" + + kernel_universal_unpack +} |