Test nogo-sources-2.6.31_rc7
authorIngo Bormuth <ibormuth@efil.de>
Tue, 25 Aug 2009 17:58:09 +0000 (25 19:58 +0200)
committerIngo Bormuth <ibormuth@efil.de>
Tue, 25 Aug 2009 17:58:09 +0000 (25 19:58 +0200)
sys-kernel/nogo-sources/Manifest
sys-kernel/nogo-sources/nogo-sources-2.6.31_rc7.ebuild [new file with mode: 0644]

index 896e791..9788093 100644 (file)
@@ -4,5 +4,7 @@ DIST atoppatch-kernel-2.6.28.tar.gz 4273 RMD160 3bbccf2e8fe9742eee6ecd7810ce8492
 DIST current-tuxonice-for-2.6.30.patch-20090620-v1.bz2 114215 RMD160 835a301d27035f7ed030686308471a2b3b3d4346 SHA1 664df5a7c3c776835e2408b15d1966fac6e3ac7c SHA256 0c2c7969751625da59f02284bc346116a6e6a52b1b3e258cedc317bc0a16977f
 DIST linux-2.6.30.tar.bz2 59435895 RMD160 72219f992c6266dfe78c6d803d0506c9db1e45b8 SHA1 5fb7f2ccdc59c57887d586971a157bee7af324d1 SHA256 d7b9f19b92fd5c693c16cd62f441d051b699f28ec6a175d1b464e58bacd8c78f
 DIST patch-2.6.30.5.bz2 92005 RMD160 7069b3994e9f13b0a88b5c876494513640036d37 SHA1 3d69d845c2f9f1ce0868dbac0e4145a8a5a364a9 SHA256 95550343a0f013301c20a0d27f681b97fbf61379b7bb14ecee4057141891b5f2
+DIST patch-2.6.31-rc7.bz2 10554446 RMD160 95652f25d31260b8bfe19ccef4a277a342de44eb SHA1 9d5ef1cb2dcb4fad943a80e4e19c4a1ba7bc1753 SHA256 e71648cd7f43c79fe1520403affd5b0f0d08ec5c500619c8bdf183568af9499c
 DIST reiser4-for-2.6.30.patch.bz2 449742 RMD160 270b7a56dd4b4f8ab646a89c2bad008418265cad SHA1 2083faaf94fd00a7f0041b4f6ae07528c4c131fc SHA256 612bbd6b851515e37be8ebcf85ef8b3d2089628dccee7a73efef60a07dece421
 EBUILD nogo-sources-2.6.30.5.ebuild 3801 RMD160 12138b1e8591773983ac9734e289b5713491e0a3 SHA1 4f671569417ffa37cf521a9a8a0fe4353cc94516 SHA256 648108712f928df4a4198f5b75f143d378f3d5ed23938df5a6d8653934c88bad
+EBUILD nogo-sources-2.6.31_rc7.ebuild 3987 RMD160 b4dbe1be000be01aabbcfd37fa11c0e53e50d442 SHA1 47d264990fde5dd49f7b645266372749cbf24519 SHA256 282e4dba5aeba90a7dfa2d49ab49128f884f1ebd26c9d79fac819e92db53a094
diff --git a/sys-kernel/nogo-sources/nogo-sources-2.6.31_rc7.ebuild b/sys-kernel/nogo-sources/nogo-sources-2.6.31_rc7.ebuild
new file mode 100644 (file)
index 0000000..509568b
--- /dev/null
@@ -0,0 +1,144 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ETYPE="sources"
+inherit kernel-2
+detect_version
+detect_arch
+
+#------------------------------------------------------------------------
+
+K_WANT_GENPATCHES="base extras"
+K_GENPATCHES_OKV="${OKV}"
+K_GENPATCHES_VER="6"
+
+TUXONICE_OKV="${OKV}"
+TUXONICE_VER="3.0.1"
+#TUXONICE_PATCH="tuxonice-${TUXONICE_VER}-for-${TUXONICE_OKV}.patch.bz2"
+TUXONICE_PATCH="current-tuxonice-for-2.6.30.patch-20090620-v1.bz2"
+
+REISER4_OKV="${OKV}"
+REISER4_VER=""
+REISER4_PATCH="reiser4-for-${REISER4_OKV}${REISER4_VER}.patch.bz2"
+
+ATOP_OKV="2.6.28"
+ATOP_VER=""
+ATOP_PATCH="atoppatch-kernel-${ATOP_OKV}${ATOP_VER}.tar.gz"
+
+#------------------------------------------------------------------------
+
+KEYWORDS="" #~amd64 ~x86"
+use tuxonice && die "No TuxOnIce support yet for this version."
+use reiset4 && die "No Reiser4e support yet for this version."
+use atop && die "No ATop support yet for this version."
+
+IUSE="atop currentconfig oneslot reiser4 toshiba-acpi tuxonice"
+
+use oneslot && SLOT="0"
+
+DESCRIPTION="Kernel, optionally with atop, genpatches, reiser4, tuxonice, toshiba-acpi."
+
+HOMEPAGE="http://www.kernel.org
+       ATOP:         http://www.atcomputing.nl/Tools/atop
+       GENPATCHES:   http://dev.gentoo.org/~dsd/genpatches
+       REISER4:      http://www.kernel.org/pub/linux/kernel/people/edward/reiser4
+       TOSHIBA-ACPI: http://memebeam.org/toys/ExperimentalToshibaAcpiDriver
+       TUXONICE:     http://www.tuxonice.net"
+
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
+       atop?     ( http://www.atcomputing.nl/Tools/atop/packages/${ATOP_PATCH} )
+       reiser4?  ( mirror://kernel/linux/kernel/people/edward/reiser4/reiser4-for-2.6/${REISER4_PATCH} )
+       tuxonice? ( http://www.tuxonice.net/downloads/all/${TUXONICE_PATCH} )"
+
+RDEPEND="${RDEPEND}
+       tuxonice? ( >=sys-apps/tuxonice-userui-0.7.3
+                   ( || ( sys-power/hibernate-script sys-power/pm-utils ) ) )
+       reiser4?  ( >=sys-fs/reiser4progs-1.0.6 )
+       atop?     ( sys-process/atop )"
+
+UNIPATCH_STRICTORDER="yes"
+UNIPATCH_LIST=""
+
+if use tuxonice
+then
+       if [[ ${#TUXONICE_VER} -lt 30 ]]   # official or local patch generated from git ?
+       then
+               UNIPATCH_LIST="${UNIPATCH_LIST} ${DISTDIR}/${TUXONICE_PATCH}"
+       else
+               UNIPATCH_LIST="${UNIPATCH_LIST} ${FILESDIR}/${TUXONICE_PATCH}"
+       fi
+fi
+
+if use reiser4
+then
+       UNIPATCH_LIST="${UNIPATCH_LIST}
+               ${DISTDIR}/${REISER4_PATCH}"
+fi
+
+if use toshiba-acpi
+then
+       UNIPATCH_LIST="${UNIPATCH_LIST}
+               ${FILESDIR}/linux-2.6.29-toshiba_acpi.patch"
+fi
+
+src_unpack() {
+       kernel-2_src_unpack
+       cd "${S}"
+
+       # Due to stupid naming atop patches don't work with unipatch
+       if use atop && [ -e "${DISTDIR}/${ATOP_PATCH}" ] 
+       then
+               echo "Atop Patch:"
+               ( ( ( tar -xzOf "${DISTDIR}/${ATOP_PATCH}" --exclude "README*" \
+                     || die "${ATOP_PATCH} is invalid (not yet available ?)" \
+                   ) | patch -p1 \
+                 ) || die "${ATOP_PATCH} failed (old version ?)"
+               )
+               echo "Fix Atop:"
+               patch -p1 < "${FILESDIR}/linux-2.6.29-atop_fix.patch" || die "Fix Atop Failed."
+
+       fi
+
+       # Copy current config from /proc
+       if use currentconfig ; then
+               if [ -e "/usr/src/linux-${KV_FULL}/.config" ]; then
+                       ewarn "Kernel config file already exist."
+                       ewarn "I will NOT overwrite that."
+               else
+                       echo "Copying kernel config file."
+                       zcat /proc/config > .config || ewarn "Can't copy /proc/config"
+               fi
+       fi
+}
+
+nogo_info() {
+       if use ${1}
+       then
+               einfo " + ${1}  (${2})"
+       else
+               einfo " - ${1}"
+       fi
+}
+
+pkg_postinst() {
+       kernel-2_pkg_postinst
+       echo
+       ewarn "========"
+       ewarn "WARNING:"
+       ewarn "========"
+       ewarn
+       ewarn "This is an experimental kernel version."
+       echo
+       einfo "Features:"
+       echo
+       nogo_info atop         "${ATOP_PATCH}"
+       nogo_info reiser4      "${REISER4_PATCH}"
+       nogo_info tuxonice     "${TUXONICE_PATCH}"
+       nogo_info toshiba-acpi "local"
+       echo
+       ewarn "Do NOT ask for official gentoo support."
+       ewarn "I am BY NO MEANS responsible for breaking your system."
+       ewarn "ALWAYS keep a second stable and bootable kernel apart in your boot manager."
+}
+