Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 16358 Details for
Bug 26977
speedfreq-0.5.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The ebuild
speedfreq-0.5.ebuild (text/plain), 3.04 KB, created by
Christian Axelsson
on 2003-08-20 03:51:15 UTC
(
hide
)
Description:
The ebuild
Filename:
MIME Type:
Creator:
Christian Axelsson
Created:
2003-08-20 03:51:15 UTC
Size:
3.04 KB
patch
obsolete
># $Header: $ ># Copyright 2003 Christian Axelsson ># Distributed under the terms of the GNU General Public License v2 ># email: smiler@lanil.mine.nu ># ------ ># Please email me if you have suggestions how to improve this ebuild ># (or scripts) or when you need help to install it. > >DESCRIPTION="CPU speed control daemon." >SRC_URI="http://www.goop.org/~jeremy/speedfreq/speedfreq-${PV}.tar.gz" >HOMEPAGE="http://www.goop.org/~jeremy/speedfreq/" >KEYWORDS="~x86" >LICENSE="GPL-1" >SLOT="0" > >IUSE="acpi" >DEPEND="acpi? ( sys-apps/acpid )" > >check_version_h() { > if [ ! -f "${ROOT}/usr/src/linux/include/linux/version.h" ] > then > eerror "Please verify that your /usr/src/linux symlink is pointing" > eerror "to your current kernel sources, and that you did run:" > eerror > eerror " # make dep" > die "/usr/src/linux symlink not setup!" > fi >} > >get_KV_info() { > check_version_h > > # Get the kernel version of sources in /usr/src/linux ... > export KV_full="$(awk '/UTS_RELEASE/ { gsub("\"", "", $3); print $3 }' \ > "${ROOT}/usr/src/linux/include/linux/version.h")" > export KV_major="$(echo "${KV_full}" | cut -d. -f1)" > export KV_minor="$(echo "${KV_full}" | cut -d. -f2)" > export KV_micro="$(echo "${KV_full}" | cut -d. -f3 | sed -e 's:[^0-9].*::')" >} > >is_2_6_kernel() { > get_KV_info > > if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 6 ] > then > return 0 > else > return 1 > fi >} > > >src_unpack() { > > get_KV_info > > einfo "Linux kernel ${KV_major}.${KV_minor}.${KV_micro}" > if [ ! is_2_6_kernel ] ; then > [ is_2_5_kernel ] && (("${KV_micro}" < "70")) && { > die "You need kernel 2.5.70 or above" > } > fi > > cd ${WORKDIR} > unpack speedfreq-${PV}.tar.gz > cd ${S} > echo "ia ${CFLAGS}" > mv Makefile Makefile.orig > sed -e "s:-Wall -O -ggdb3:${CFLAGS}:g" \ > < Makefile.orig > Makefile > #dosed "s:/usr/local:/usr:g" ${S}/Makefile > #dosed "s:/etc/rc.d/init.d:/etc/init.d:g" ${S}/Makefile > #dosed "s:-Wall -O -ggdb3::" ${S}/Makefile > > echo "${S}/Makefile" >} > >src_compile() { > emake || die "compile of speedfreq failed" >} > >src_install() { > local LIBDIR="/usr/lib" > local INCDIR="/usr/include" > dosbin speedfreqd > dobin speedfreq > doman speedfreq.8 speedfreqd.8 libspeedfreq.3 dolib.so > dolib.so libspeedfreq.so.1 > dosym ${LIBDIR}/libspeedfreq.so.1 ${LIBDIR}/libspeedfreq.so > exeinto /etc/init.d ; newexe ${FILESDIR}/scripts/speedfreq.rc speedfreq > insinto /etc/conf.d ; newins ${FILESDIR}/scripts/speedfreq.conf speedfreq > insinto ${INCDIR} > doins speedfreq.h > dodoc README > if [ `use acpi` ] ; then > exeinto /etc/acpi/ > doexe ${FILESDIR}/scripts/battery.sh > fi >} > >pkg_postinst() { > if [ `use acpi` ] ; then > echo > einfo "A sample script for powercontrol has been placed in /etc/acpi/battery.sh" > einfo "To use it add the following lines to your /etc/acpi/default/events" > einfo " event=battery.*" > einfo " action=/etc/acpi/battery.sh %e" > einfo "Note that this only supports one battery at the time" > echo > einfo "Configuration should be done in /etc/conf.d/speedfreq" > einfo "Make sure that you have sysfs mounted on /sys" > echo > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 26977
: 16358 |
16359
|
16360
|
16361
|
16362