diff options
author | 2007-04-18 13:30:26 +0000 | |
---|---|---|
committer | 2007-04-18 13:30:26 +0000 | |
commit | 544eb85197b63cdfb7a0394073a06b4748bcc105 (patch) | |
tree | c5fd6193866c84d4c150208ebc38b25db3cf41f7 /app-laptop | |
parent | Now in Portage. (diff) | |
download | sunrise-reviewed-544eb85197b63cdfb7a0394073a06b4748bcc105.tar.gz sunrise-reviewed-544eb85197b63cdfb7a0394073a06b4748bcc105.tar.bz2 sunrise-reviewed-544eb85197b63cdfb7a0394073a06b4748bcc105.zip |
app-laptop/linux-phc: Drop old and some cosmetics
svn path=/sunrise/; revision=3466
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/linux-phc/ChangeLog | 4 | ||||
-rw-r--r-- | app-laptop/linux-phc/Manifest | 6 | ||||
-rw-r--r-- | app-laptop/linux-phc/linux-phc-0.2.8.ebuild | 108 | ||||
-rw-r--r-- | app-laptop/linux-phc/linux-phc-0.2.9.ebuild | 22 |
4 files changed, 17 insertions, 123 deletions
diff --git a/app-laptop/linux-phc/ChangeLog b/app-laptop/linux-phc/ChangeLog index d3b5c0728..a311569c0 100644 --- a/app-laptop/linux-phc/ChangeLog +++ b/app-laptop/linux-phc/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 18 Apr 2007; Markus Ullmann <jokey@gentoo.org> -linux-phc-0.2.8.ebuild, + linux-phc-0.2.9.ebuild: + Drop old and some cosmetics + 09 Apr 2007; Jakub Moc <jakub@gentoo.org> linux-phc-0.2.8.ebuild, linux-phc-0.2.9.ebuild: Fix broken collision-protect check diff --git a/app-laptop/linux-phc/Manifest b/app-laptop/linux-phc/Manifest index 0e4dbf935..c42626417 100644 --- a/app-laptop/linux-phc/Manifest +++ b/app-laptop/linux-phc/Manifest @@ -1,7 +1,5 @@ AUX linux-phc-0.2.9-msr_h-fix.patch 582 RMD160 ae6d1c11d6315b338c521e028e98e8be0399d313 SHA1 0409144009027c500e497f1b18e325df462ece20 SHA256 5bd050c990dbc85d8ba4eeee8ca4953d7f6a531b791bdd337fc9e0960d1e16fe -DIST linux-phc-0.2.8.tar.gz 371563 RMD160 abebdbbe11008922281feabe78a54414f597a8d4 SHA1 39450b9b6de50d005fac86d32f11dfd1e478ce2e SHA256 f5ffc59485bc7b4f3fb05c0f0ca84e38dc536de6b3421f237b0384a2706bada9 DIST linux-phc-0.2.9.tar.gz 379295 RMD160 b5cb5648747ed84ea6c0ca7d5979a36cd9e55a99 SHA1 dceef12ecc2583f6280413ce0677c8161d5451d0 SHA256 457347b8c2d71a68c15dcb9bf21871771fa0b222a8997bf91f93920f29e3aacf -EBUILD linux-phc-0.2.8.ebuild 2682 RMD160 f6861759f794bb30c52c0936866a6602c7928bff SHA1 b7d7335dbde2059dc1b484346b1d6a630a9fe2bc SHA256 44706f9a24578cf23d6af8eabf87f531e15c127a3498f54d071c9d9d70b75dfb -EBUILD linux-phc-0.2.9.ebuild 2934 RMD160 d0bcb04048d4ebed7ced5326cbcce18a383760bf SHA1 464f42af0cf6f67796abbe3d990f5623fb717e8f SHA256 cc9c29dbbcb57c24abd5cf9710d8e97d45ef2b236eeffe045c0bcd1b90e6cc01 -MISC ChangeLog 1067 RMD160 3767f39d9054a92f6b9d6711fb75a2fb34061638 SHA1 5366647bec42c98a877a1d459079c6e2fbef69ed SHA256 bfaff479c87bf3a9bf721e9e66bbba6412a26457120a02709646920586c49527 +EBUILD linux-phc-0.2.9.ebuild 2913 RMD160 bee02a58ca923deb93d1d13a11cb9edf14a1c351 SHA1 87f7e56ffb82cbe0dd9b6101bc0eaa0aa63831fc SHA256 d07fa41343a5ca09d1d20f4ebd2ccef5c6dccd67034d7f8c1abacede5dd878f6 +MISC ChangeLog 1198 RMD160 228b3f6b202044270237eac5a6cf82c57d993e19 SHA1 51607405f2495d7b827fd3d4f4750a8368d6b37c SHA256 8fdeae28cf9fce71f6f7772111508f5a6b2d10d4ebc0d717284d2e877ac5e375 MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/app-laptop/linux-phc/linux-phc-0.2.8.ebuild b/app-laptop/linux-phc/linux-phc-0.2.8.ebuild deleted file mode 100644 index 3e66669fa..000000000 --- a/app-laptop/linux-phc/linux-phc-0.2.8.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2007 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="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 2 6 19 - then - PATCH="kernel-patch/${P}-kernel-vanilla-2.6.19.patch" - elif kernel_is 2 6 18 - then - PATCH="kernel-patch/${P}-kernel-vanilla-2.6.18.patch" - elif kernel_is 2 6 17 - then - PATCH="kernel-patch/${P}-kernel-vanilla-2.6.17.patch" - elif kernel_is 2 6 16 - then - PATCH="kernel-patch/${P}-kernel-vanilla-2.6.16.patch" - elif kernel_is 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 -} - -collision_check() { - 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_setup() { - linux-info_pkg_setup - collision_check -} - -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_preinst() { - collision_check -} - -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_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/linux-phc-0.2.9.ebuild b/app-laptop/linux-phc/linux-phc-0.2.9.ebuild index eb30409d0..efc6ed62a 100644 --- a/app-laptop/linux-phc/linux-phc-0.2.9.ebuild +++ b/app-laptop/linux-phc/linux-phc-0.2.9.ebuild @@ -56,7 +56,7 @@ src_unpack() { which_patch if egrep -q 'linux-phc' \ - ${KV_DIR}/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c + "${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" @@ -71,22 +71,22 @@ src_unpack() { epatch "${FILESDIR}"/${P}-msr_h-fix.patch || die "epatch failed" local mydir="arch/i386/kernel/cpu/cpufreq" - mkdir -p "${S}/${mydir}" + mkdir -p "${S}"/${mydir} - cp -P "${KV_DIR}/${mydir}/Kconfig" "${S}/${mydir}/" - cp -P "${KV_DIR}/${mydir}/Makefile" "${S}/${mydir}/" - cp -P "${KV_DIR}/${mydir}/speedstep-centrino.c" "${S}/${mydir}/" + cp -P "${KV_DIR}"/${mydir}/Kconfig "${S}"/${mydir}/ + cp -P "${KV_DIR}"/${mydir}/Makefile "${S}"/${mydir}/ + cp -P "${KV_DIR}"/${mydir}/speedstep-centrino.c "${S}"/${mydir}/ - epatch "${S}/${PATCH}" || die "epatch failed" + epatch "${S}"/${PATCH} } src_compile() { - einfo 'Compiling measurefreq' - cd "${S}/utils/measurefreq" + einfo "Compiling measurefreq" + cd "${S}"/utils/measurefreq eautoconf eautomake - econf || die 'econf failed' - emake || die 'emake failed' + econf || die "econf failed" + emake || die "emake failed" } src_install() { @@ -95,7 +95,7 @@ src_install() { dodoc README doinitd gentoo/etc/init.d/undervolt doconfd gentoo/etc/conf.d/undervolt - cd "${S}/utils/measurefreq" + cd "${S}"/utils/measurefreq emake DESTDIR="${D}" install || die "emake failed" } |