diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-07-06 11:04:03 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-07-06 11:04:03 +0000 |
commit | e5ea8e544ac761fd522f8c6f2128af1a85e01164 (patch) | |
tree | b9313dc015d8f54a0fa02fd7a78a454b7119009a /sys-kernel | |
parent | Added sys-kernel/suspend2-sources:ultra1 (diff) | |
download | historical-e5ea8e544ac761fd522f8c6f2128af1a85e01164.tar.gz historical-e5ea8e544ac761fd522f8c6f2128af1a85e01164.tar.bz2 historical-e5ea8e544ac761fd522f8c6f2128af1a85e01164.zip |
Initial import.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'sys-kernel')
7 files changed, 134 insertions, 0 deletions
diff --git a/sys-kernel/suspend2-sources/ChangeLog b/sys-kernel/suspend2-sources/ChangeLog new file mode 100644 index 000000000000..bc951b29207b --- /dev/null +++ b/sys-kernel/suspend2-sources/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-kernel/suspend2-sources +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/suspend2-sources/ChangeLog,v 1.1 2005/07/06 11:04:03 brix Exp $ + +*suspend2-sources-2.6.12 (06 Jul 2005) + + 06 Jul 2005; <brix@gentoo.org> +files/4306_dm-bbr-create_workqueue.patch, + +files/linux-2.6.12-vesafb-tng-suspend2.patch, +metadata.xml, + +suspend2-sources-2.6.12.ebuild: + Initial import. + diff --git a/sys-kernel/suspend2-sources/Manifest b/sys-kernel/suspend2-sources/Manifest new file mode 100644 index 000000000000..8e75ed0aa58f --- /dev/null +++ b/sys-kernel/suspend2-sources/Manifest @@ -0,0 +1,6 @@ +MD5 af3a2dc84edfa599714c447ccd2b58a2 suspend2-sources-2.6.12.ebuild 1965 +MD5 48296f6b51f8564eea9a5ebfb50ea9e1 ChangeLog 459 +MD5 93f5bba7043e57c7092196362f2b494f metadata.xml 255 +MD5 2c13f91d861547f897bd8bc3e4d7e9cb files/digest-suspend2-sources-2.6.12 310 +MD5 2b6c45a5cc42e34edf11954e71a95815 files/4306_dm-bbr-create_workqueue.patch 548 +MD5 0b4371d982e38217edb8af1023bb4803 files/linux-2.6.12-vesafb-tng-suspend2.patch 633 diff --git a/sys-kernel/suspend2-sources/files/4306_dm-bbr-create_workqueue.patch b/sys-kernel/suspend2-sources/files/4306_dm-bbr-create_workqueue.patch new file mode 100644 index 000000000000..59a8e9d6cb77 --- /dev/null +++ b/sys-kernel/suspend2-sources/files/4306_dm-bbr-create_workqueue.patch @@ -0,0 +1,15 @@ +diff -urp linux-2.6.12/drivers/md/dm-bbr.c linux-2.6.12-dm-bbr-create_workqueue/drivers/md/dm-bbr.c +--- linux-2.6.12/drivers/md/dm-bbr.c 2005-06-29 14:35:31.000000000 +0200 ++++ linux-2.6.12-dm-bbr-create_workqueue/drivers/md/dm-bbr.c 2005-06-29 16:58:37.000000000 +0200 +@@ -959,7 +959,11 @@ int __init dm_bbr_init(void) + goto err4; + } + ++#ifdef PF_SYNCTHREAD ++ dm_bbr_wq = create_workqueue("dm-bbr", 0); ++#else + dm_bbr_wq = create_workqueue("dm-bbr"); ++#endif + if (!dm_bbr_wq) { + DMERR("dm-bbr: error creating work-queue."); + rc = ENOMEM; diff --git a/sys-kernel/suspend2-sources/files/digest-suspend2-sources-2.6.12 b/sys-kernel/suspend2-sources/files/digest-suspend2-sources-2.6.12 new file mode 100644 index 000000000000..8e46667ccf83 --- /dev/null +++ b/sys-kernel/suspend2-sources/files/digest-suspend2-sources-2.6.12 @@ -0,0 +1,4 @@ +MD5 c5d2a1b62e1dad502c871bba267337d5 linux-2.6.12.tar.bz2 37511570 +MD5 ddab7b1cb14955286ed3ac849bb79ae8 genpatches-2.6.12-7.base.tar.bz2 21193 +MD5 2d9aad1136dafa46665320ba4dec2d76 genpatches-2.6.12-7.extras.tar.bz2 227527 +MD5 7b6f8366a02b829fb696218188ad836b software-suspend-2.1.9.8-for-2.6.12.tar.bz2 127256 diff --git a/sys-kernel/suspend2-sources/files/linux-2.6.12-vesafb-tng-suspend2.patch b/sys-kernel/suspend2-sources/files/linux-2.6.12-vesafb-tng-suspend2.patch new file mode 100644 index 000000000000..f43dd0bcb75b --- /dev/null +++ b/sys-kernel/suspend2-sources/files/linux-2.6.12-vesafb-tng-suspend2.patch @@ -0,0 +1,17 @@ +diff -urp linux-2.6.12/drivers/video/vesafb-thread.c linux-2.6.12-vesafb-tng-suspend2/drivers/video/vesafb-thread.c +--- linux-2.6.12/drivers/video/vesafb-thread.c 2005-06-29 14:35:32.000000000 +0200 ++++ linux-2.6.12-vesafb-tng-suspend2/drivers/video/vesafb-thread.c 2005-07-04 23:44:38.000000000 +0200 +@@ -540,8 +540,13 @@ int vesafb_thread(void *unused) + while (1) { + vesafb_handle_tasks(); + wait_event_interruptible(vesafb_wait, !list_empty(&vesafb_task_list)); ++ ++#ifdef PF_FREEZE + if (current->flags & PF_FREEZE) + refrigerator(PF_FREEZE); ++#else ++ try_to_freeze(); ++#endif + + if (signal_pending(current)) + break; diff --git a/sys-kernel/suspend2-sources/metadata.xml b/sys-kernel/suspend2-sources/metadata.xml new file mode 100644 index 000000000000..a7e8c888f719 --- /dev/null +++ b/sys-kernel/suspend2-sources/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>kernel</herd> +<maintainer> + <email>brix@gentoo.org</email> + <name>Henrik Brix Andersen</name> +</maintainer> +</pkgmetadata> diff --git a/sys-kernel/suspend2-sources/suspend2-sources-2.6.12.ebuild b/sys-kernel/suspend2-sources/suspend2-sources-2.6.12.ebuild new file mode 100644 index 000000000000..178bcd5fa297 --- /dev/null +++ b/sys-kernel/suspend2-sources/suspend2-sources-2.6.12.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/suspend2-sources/suspend2-sources-2.6.12.ebuild,v 1.1 2005/07/06 11:04:03 brix Exp $ + +ETYPE="sources" +K_WANT_GENPATCHES="base extras" +K_GENPATCHES_VER="7" + +inherit eutils kernel-2 +detect_version +detect_arch + +DESCRIPTION="Software Suspend 2 + Gentoo patchset sources" +HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net" + +SUSPEND2_VERSION="2.1.9.8" +SUSPEND2_TARGET="${PV}" +SUSPEND2_SRC="software-suspend-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}" +SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.tar.bz2" + +UNIPATCH_LIST="${FILESDIR}/4306_dm-bbr-create_workqueue.patch +${FILESDIR}/linux-2.6.12-vesafb-tng-suspend2.patch" +UNIPATCH_STRICTORDER="yes" + +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${SUSPEND2_URI}" + +KEYWORDS="~x86" + +IUSE="ultra1" +RDEPEND="${RDEPEND} + >=sys-apps/suspend2-userui-0.5.0 + >=sys-power/hibernate-script-1.09" + +K_EXTRAEINFO="If there are issues with this kernel, please direct any +queries to the suspend2-devel mailing list: +http://lists.suspend2.net/cgi-bin/mailman/listinfo/suspend2-devel" + +pkg_setup() { + if use sparc; then + # hme lockup hack on ultra1 + use ultra1 || UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 1399_sparc-U1-hme-lockup.patch" + fi +} + +src_unpack() { + kernel-2_src_unpack + + cd ${WORKDIR} + unpack ${SUSPEND2_SRC}.tar.bz2 + + cd ${S} + EPATCH_EXCLUDE="apply unapply ToDo" \ + EPATCH_FORCE="yes" \ + EPATCH_SUFFIX="" \ + EPATCH_OPTS="-p1" \ + epatch ${WORKDIR}/${SUSPEND2_SRC} +} + +pkg_postinst() { + postinst_sources + + echo + + if [ "${ARCH}" = "sparc" ]; then + if [ x"`cat /proc/openprom/name 2>/dev/null`" \ + = x"'SUNW,Ultra-1'" ]; then + einfo "For users with an Enterprise model Ultra 1 using the HME" + einfo "network interface, please emerge the kernel using the" + einfo "following command: USE=ultra1 emerge ${PN}" + fi + fi +} |