diff options
author | Ali Polatel <hawking@gentoo.org> | 2006-12-19 22:22:42 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2006-12-19 22:22:42 +0000 |
commit | cc0b9daacb77c09b45adee53eacf3f2db348a010 (patch) | |
tree | bf90da545900789639a7d96aefa9661ddd5a290c /app-laptop | |
parent | media-sound/poddy: Upstream version bump and removed old ebuild (diff) | |
download | sunrise-cc0b9daacb77c09b45adee53eacf3f2db348a010.tar.gz sunrise-cc0b9daacb77c09b45adee53eacf3f2db348a010.tar.bz2 sunrise-cc0b9daacb77c09b45adee53eacf3f2db348a010.zip |
app-laptop/linux-phc: New ebuild for bug 158579
svn path=/sunrise/; revision=2366
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/linux-phc/ChangeLog | 8 | ||||
-rw-r--r-- | app-laptop/linux-phc/Manifest | 16 | ||||
-rw-r--r-- | app-laptop/linux-phc/files/digest-linux-phc-0.2.8 | 3 | ||||
-rw-r--r-- | app-laptop/linux-phc/linux-phc-0.2.8.ebuild | 99 | ||||
-rw-r--r-- | app-laptop/linux-phc/metadata.xml | 5 |
5 files changed, 131 insertions, 0 deletions
diff --git a/app-laptop/linux-phc/ChangeLog b/app-laptop/linux-phc/ChangeLog new file mode 100644 index 000000000..6fd3a6db2 --- /dev/null +++ b/app-laptop/linux-phc/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-laptop/linux-phc +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 19 Dec 2006; Ali Polatel (hawking) <polatel@nerdshack.com> + +linux-phc-0.2.8.ebuild, +metadata.xml: + New ebuild for bug 158579 + diff --git a/app-laptop/linux-phc/Manifest b/app-laptop/linux-phc/Manifest new file mode 100644 index 000000000..fc28ad4cc --- /dev/null +++ b/app-laptop/linux-phc/Manifest @@ -0,0 +1,16 @@ +DIST linux-phc-0.2.8.tar.gz 371563 RMD160 abebdbbe11008922281feabe78a54414f597a8d4 SHA1 39450b9b6de50d005fac86d32f11dfd1e478ce2e SHA256 f5ffc59485bc7b4f3fb05c0f0ca84e38dc536de6b3421f237b0384a2706bada9 +EBUILD linux-phc-0.2.8.ebuild 2613 RMD160 8648f45af683f5cdac4af168604d28735ca8bc82 SHA1 e47d4367f9243eba1a7ea3c4f18456ef2b5033ba SHA256 4851db2ccccac3d66d2a2d10d0388144a549fc008414f1a1c475dddc987c080b +MD5 ce40d1ed967245d4255862f992f6195b linux-phc-0.2.8.ebuild 2613 +RMD160 8648f45af683f5cdac4af168604d28735ca8bc82 linux-phc-0.2.8.ebuild 2613 +SHA256 4851db2ccccac3d66d2a2d10d0388144a549fc008414f1a1c475dddc987c080b linux-phc-0.2.8.ebuild 2613 +MISC ChangeLog 253 RMD160 78d6faffd624cae67be5b2df99d5e70e35d4be9b SHA1 be44690414237aaec48f5544c17c1ef57585239b SHA256 46f1d9a419ba7f51489fa360b9b90dc3fca5454cb57934bcf1d02155d37d9b0f +MD5 2a4cce8b5fbb82585aa3a248b4a754c3 ChangeLog 253 +RMD160 78d6faffd624cae67be5b2df99d5e70e35d4be9b ChangeLog 253 +SHA256 46f1d9a419ba7f51489fa360b9b90dc3fca5454cb57934bcf1d02155d37d9b0f ChangeLog 253 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 +MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170 +RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170 +SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata.xml 170 +MD5 52ab0897f7db0e6e2ba39dc3bce2c3cb files/digest-linux-phc-0.2.8 247 +RMD160 a8861b6e332590ab124bf2719134c0bace823d9c files/digest-linux-phc-0.2.8 247 +SHA256 a314c8bfc5c785abc0106fb7c019e6d0041df9d124c767c55664d8ebd676e432 files/digest-linux-phc-0.2.8 247 diff --git a/app-laptop/linux-phc/files/digest-linux-phc-0.2.8 b/app-laptop/linux-phc/files/digest-linux-phc-0.2.8 new file mode 100644 index 000000000..b89d0efb7 --- /dev/null +++ b/app-laptop/linux-phc/files/digest-linux-phc-0.2.8 @@ -0,0 +1,3 @@ +MD5 76b274bdb84e14997c7461100efb0130 linux-phc-0.2.8.tar.gz 371563 +RMD160 abebdbbe11008922281feabe78a54414f597a8d4 linux-phc-0.2.8.tar.gz 371563 +SHA256 f5ffc59485bc7b4f3fb05c0f0ca84e38dc536de6b3421f237b0384a2706bada9 linux-phc-0.2.8.tar.gz 371563 diff --git a/app-laptop/linux-phc/linux-phc-0.2.8.ebuild b/app-laptop/linux-phc/linux-phc-0.2.8.ebuild new file mode 100644 index 000000000..0fef62320 --- /dev/null +++ b/app-laptop/linux-phc/linux-phc-0.2.8.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +WANT_AUTOCONF=2.5 +WANT_AUTOMAKE=1.9 +inherit linux-info eutils autotools + +DESCRIPTION="linux-phc is a kernel patch to change the voltage/frequency pairs of processors from userspace." +HOMEPAGE="https://www.dedigentoo.org/trac/linux-phc/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +which_patch() { + if kernel_is ge 2 6 19 + then + PATCH="kernel-patch/${P}-kernel-vanilla-2.6.19.patch" + elif kernel_is ge 2 6 18 + then + PATCH="kernel-patch/${P}-kernel-vanilla-2.6.18.patch" + elif kernel_is ge 2 6 17 + then + PATCH="kernel-patch/${P}-kernel-vanilla-2.6.17.patch" + elif kernel_is ge 2 6 16 + then + PATCH="kernel-patch/${P}-kernel-vanilla-2.6.16.patch" + elif kernel_is ge 2 6 15 + then + PATCH="kernel-patch/${P}-kernel-vanilla-2.6.15.patch" + else + die "No ${PN} patch for kernel version ${KV_FULL} - sorry not supported" + fi +} + +src_unpack() { + which_patch + + if egrep -q 'linux-phc' \ + ${KV_DIR}/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c + then + ewarn "already installed ${PN} for kernel ${KV_FULL}" + ewarn "If this is an upgrade attempt, reemerge your kernel sources" + ewarn "and try emerging this package again." + die + fi + + unpack ${A} + cd "${S}" + + local mydir="arch/i386/kernel/cpu/cpufreq" + mkdir -p "${S}/${mydir}" + + cp -P "${KV_DIR}/${mydir}/Kconfig" "${S}/${mydir}/" + cp -P "${KV_DIR}/${mydir}/speedstep-centrino.c" "${S}/${mydir}/" + + epatch "${S}/${PATCH}" || die "epatch failed" +} + +src_compile() { + einfo 'Compiling measurefreq' + cd "${S}/utils/measurefreq" + eautoconf + eautomake + econf || die 'econf failed' + emake || die 'emake failed' +} + +src_install() { + insinto "$(/bin/readlink -f ${KV_DIR})" + doins -r arch/* + dodoc README + doinitd gentoo/etc/init.d/undervolt + doconfd gentoo/etc/conf.d/undervolt + cd "${S}/utils/measurefreq" + emake DESTDIR=${D} install || die "emake failed" +} + +pkg_postinst() { + elog "Please read https://www.dedigentoo.org/trac/linux-phc/#Documentation before using linux-phc" + elog "You can use the utility measurefreq to find appropriate voltage values." + ewarn "Edit /etc/conf.d/undervolt before using the initscript" +} + +pkg_preinst() { + if has collision_protect ${FEATURES}; then + ewarn "Collisions are expected as this patches kernel code. Disable" + ewarn "FEATURES=collision-protect before use" + die 'incompatible FEATURES=collision-protect' + fi +} + +pkg_postrm() { + ewarn "Unmerging this ebuild won't revert the patches in your kernel" + ewarn "Reemerge your kernel if you want that." +} diff --git a/app-laptop/linux-phc/metadata.xml b/app-laptop/linux-phc/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/app-laptop/linux-phc/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> |