diff options
17 files changed, 14 insertions, 448 deletions
diff --git a/app-laptop/laptop-mode-tools/ChangeLog b/app-laptop/laptop-mode-tools/ChangeLog index 0694a7ede637..560db4d27497 100644 --- a/app-laptop/laptop-mode-tools/ChangeLog +++ b/app-laptop/laptop-mode-tools/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-laptop/laptop-mode-tools # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.13 2005/08/17 13:59:41 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.14 2005/08/26 10:18:20 brix Exp $ + + 26 Aug 2005; Henrik Brix Andersen <brix@gentoo.org> + -files/laptop-mode-tools-1.07-init.d, + -files/laptop-mode-tools-1.08-init.d, + -files/laptop-mode-tools-1.09-init.d, -laptop-mode-tools-1.07.ebuild, + -laptop-mode-tools-1.08.ebuild, -laptop-mode-tools-1.09.ebuild: + Pruned old versions. *laptop-mode-tools-1.10 (17 Aug 2005) diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.07 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.07 deleted file mode 100644 index 791eb3ba7dd6..000000000000 --- a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.07 +++ /dev/null @@ -1 +0,0 @@ -MD5 97f5f07fb42760cf07e86825f3f93258 laptop-mode-tools_1.07.tar.gz 38200 diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.08 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.08 deleted file mode 100644 index c1988898fae6..000000000000 --- a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.08 +++ /dev/null @@ -1 +0,0 @@ -MD5 20b0a19840fb168f15ea70fc3598993c laptop-mode-tools_1.08.tar.gz 38242 diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09 deleted file mode 100644 index b5245843fe8a..000000000000 --- a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09 +++ /dev/null @@ -1 +0,0 @@ -MD5 304ea3ad17402ffdb84d5b79b5f88cdb laptop-mode-tools_1.09.tar.gz 40248 diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.07-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.07-init.d deleted file mode 100644 index 98b7f72a1f09..000000000000 --- a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.07-init.d +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.07-init.d,v 1.1 2005/07/30 12:13:51 brix Exp $ - -checkconfig() { - if [ ! -f /proc/sys/vm/laptop_mode ]; then - eerror "Kernel does not support laptop_mode" - return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting laptop_mode" - touch /var/run/laptop-mode-enabled && /usr/sbin/laptop_mode auto &> /dev/null - eend $? -} - -stop() { - ebegin "Stopping laptop_mode" - /usr/sbin/laptop_mode stop &> /dev/null && rm -f /var/run/laptop-mode-enabled - eend $? -} diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.08-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.08-init.d deleted file mode 100644 index 69150df28247..000000000000 --- a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.08-init.d +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.08-init.d,v 1.1 2005/08/08 17:24:39 brix Exp $ - -checkconfig() { - if [ ! -f /proc/sys/vm/laptop_mode ]; then - eerror "Kernel does not support laptop_mode" - return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting laptop_mode" - touch /var/run/laptop-mode-enabled && /usr/sbin/laptop_mode auto &> /dev/null - eend $? -} - -stop() { - ebegin "Stopping laptop_mode" - /usr/sbin/laptop_mode stop &> /dev/null && rm -f /var/run/laptop-mode-enabled - eend $? -} diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d deleted file mode 100644 index 09cbbdf721a1..000000000000 --- a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d,v 1.1 2005/08/17 10:42:13 brix Exp $ - -checkconfig() { - if [ ! -f /proc/sys/vm/laptop_mode ]; then - eerror "Kernel does not support laptop_mode" - return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting laptop_mode" - touch /var/run/laptop-mode-enabled && /usr/sbin/laptop_mode auto &> /dev/null - eend $? -} - -stop() { - ebegin "Stopping laptop_mode" - /usr/sbin/laptop_mode stop &> /dev/null && rm -f /var/run/laptop-mode-enabled - eend $? -} diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.07.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.07.ebuild deleted file mode 100644 index 4a5d7a998440..000000000000 --- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.07.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.07.ebuild,v 1.1 2005/07/30 12:13:51 brix Exp $ - -inherit linux-info - -MY_P=${PN}_${PV} - -DESCRIPTION="Linux kernel laptop_mode user-space utilities" -HOMEPAGE="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/" -SRC_URI="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/downloads/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" - -IUSE="acpi apm" - -DEPEND="acpi? ( sys-power/acpid ) - apm? ( sys-apps/apmd )" - -pkg_setup() { - linux-info_pkg_setup - - if kernel_is 2 6 && kernel_is lt 2 6 6; then - eerror "${P} requires kernel version 2.6.6 or newer." - die "${P} requires kernel version 2.6.6 or newer" - elif kernel_is 2 4 && kernel_is lt 2 4 23; then - eerror "${P} requires kernel version 2.4.23 or newer." - die "${P} requires kernel version 2.4.23 or newer" - fi -} - -src_install() { - dosbin usr/sbin/laptop_mode - - insinto /etc/laptop-mode - doins etc/laptop-mode/laptop-mode.conf - - newinitd ${FILESDIR}/${P}-init.d laptop_mode - - doman man/* - - dodoc Documentation/laptop-mode.txt README - - if use acpi; then - insinto /etc/acpi/events/ - doins etc/acpi/events/* - - exeinto /etc/acpi/actions/ - doexe etc/acpi/actions/* - fi - - if use apm; then - exeinto /etc/apm/event.d/ - doexe etc/apm/event.d/* - fi -} - -pkg_postinst() { - if ! use acpi && ! use apm; then - ewarn - ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not" - ewarn "automatically disable laptop_mode on low battery." - ewarn - ewarn "This means you can lose up to 10 minutes of work if running" - ewarn "out of battery while laptop_mode is enabled." - ewarn - ewarn "Please see /usr/share/doc/${PF}/laptop-mode.txt.gz for further" - ewarn "information." - ewarn - fi -} diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.08.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.08.ebuild deleted file mode 100644 index fff8a2ab67f2..000000000000 --- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.08.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.08.ebuild,v 1.1 2005/08/08 17:24:39 brix Exp $ - -inherit linux-info - -MY_P=${PN}_${PV} - -DESCRIPTION="Linux kernel laptop_mode user-space utilities" -HOMEPAGE="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/" -SRC_URI="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/downloads/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" - -IUSE="acpi apm" - -DEPEND="acpi? ( sys-power/acpid ) - apm? ( sys-apps/apmd )" - -pkg_setup() { - linux-info_pkg_setup - - if kernel_is 2 6 && kernel_is lt 2 6 6; then - eerror "${P} requires kernel version 2.6.6 or newer." - die "${P} requires kernel version 2.6.6 or newer" - elif kernel_is 2 4 && kernel_is lt 2 4 23; then - eerror "${P} requires kernel version 2.4.23 or newer." - die "${P} requires kernel version 2.4.23 or newer" - fi -} - -src_install() { - dosbin usr/sbin/laptop_mode - - insinto /etc/laptop-mode - doins etc/laptop-mode/laptop-mode.conf - - newinitd ${FILESDIR}/${P}-init.d laptop_mode - - doman man/* - - dodoc Documentation/laptop-mode.txt README - - if use acpi; then - insinto /etc/acpi/events/ - doins etc/acpi/events/* - - exeinto /etc/acpi/actions/ - doexe etc/acpi/actions/* - fi - - if use apm; then - exeinto /etc/apm/event.d/ - doexe etc/apm/event.d/* - fi -} - -pkg_postinst() { - if ! use acpi && ! use apm; then - ewarn - ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not" - ewarn "automatically disable laptop_mode on low battery." - ewarn - ewarn "This means you can lose up to 10 minutes of work if running" - ewarn "out of battery while laptop_mode is enabled." - ewarn - ewarn "Please see /usr/share/doc/${PF}/laptop-mode.txt.gz for further" - ewarn "information." - ewarn - fi -} diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.09.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.09.ebuild deleted file mode 100644 index f938c7e4e04d..000000000000 --- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.09.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.09.ebuild,v 1.1 2005/08/17 10:42:13 brix Exp $ - -inherit linux-info - -MY_P=${PN}_${PV} - -DESCRIPTION="Linux kernel laptop_mode user-space utilities" -HOMEPAGE="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/" -SRC_URI="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/downloads/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" - -IUSE="acpi apm" - -DEPEND="acpi? ( sys-power/acpid ) - apm? ( sys-apps/apmd )" - -pkg_setup() { - linux-info_pkg_setup - - if kernel_is 2 6 && kernel_is lt 2 6 6; then - eerror "${P} requires kernel version 2.6.6 or newer." - die "${P} requires kernel version 2.6.6 or newer" - elif kernel_is 2 4 && kernel_is lt 2 4 23; then - eerror "${P} requires kernel version 2.4.23 or newer." - die "${P} requires kernel version 2.4.23 or newer" - fi -} - -src_install() { - dosbin usr/sbin/laptop_mode - - insinto /etc/laptop-mode - doins etc/laptop-mode/laptop-mode.conf - - newinitd ${FILESDIR}/${P}-init.d laptop_mode - - doman man/* - - dodoc Documentation/laptop-mode.txt README - - if use acpi; then - insinto /etc/acpi/events/ - doins etc/acpi/events/* - - exeinto /etc/acpi/actions/ - doexe etc/acpi/actions/* - fi - - if use apm; then - exeinto /etc/apm/event.d/ - doexe etc/apm/event.d/* - fi -} - -pkg_postinst() { - if ! use acpi && ! use apm; then - ewarn - ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not" - ewarn "automatically disable laptop_mode on low battery." - ewarn - ewarn "This means you can lose up to 10 minutes of work if running" - ewarn "out of battery while laptop_mode is enabled." - ewarn - ewarn "Please see /usr/share/doc/${PF}/laptop-mode.txt.gz for further" - ewarn "information." - ewarn - fi -} diff --git a/sys-power/cpufreqd/ChangeLog b/sys-power/cpufreqd/ChangeLog index 73e6d9cfd000..333fcaf2b023 100644 --- a/sys-power/cpufreqd/ChangeLog +++ b/sys-power/cpufreqd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-power/cpufreqd # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.8 2005/07/01 22:19:27 josejx Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.9 2005/08/26 10:14:06 brix Exp $ + + 26 Aug 2005; Henrik Brix Andersen <brix@gentoo.org> + -files/1.1.2-prefer-sysfs.patch, -files/cpufreqd-1.2.2-memleaks.patch, + -cpufreqd-1.1.2-r1.ebuild, -cpufreqd-1.2.2-r1.ebuild: + Pruned old versions. 01 Jul 2005; Joseph Jezak <josejx@gentoo.org> cpufreqd-1.2.3.ebuild: Marked ppc stable. diff --git a/sys-power/cpufreqd/cpufreqd-1.1.2-r1.ebuild b/sys-power/cpufreqd/cpufreqd-1.1.2-r1.ebuild deleted file mode 100644 index d64144ad9454..000000000000 --- a/sys-power/cpufreqd/cpufreqd-1.1.2-r1.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-1.1.2-r1.ebuild,v 1.1 2005/03/14 22:48:38 ciaranm Exp $ - -inherit eutils flag-o-matic eutils - -DESCRIPTION="Daemon to adjust CPU speed for power saving" -HOMEPAGE="http://sourceforge.net/projects/cpufreqd/" -SRC_URI="mirror://sourceforge/cpufreqd/${P}.tar.gz" -DEPEND=">=sys-apps/sed-4" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86 ppc amd64" -IUSE="" - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PV}-prefer-sysfs.patch -} - -src_compile() { - cd ${S} - - # cpufreqd segfaults when built as PIE - filter-flags "-fpie" "-fPIE" "-Wl,-pie" - - econf || die "econf failed for ${P}" -} - -src_install() { - make DESTDIR=${D} install || die - dodoc README Authors TODO - - exeinto /etc/init.d - newexe ${S}/scripts/gentoo/cpufreqd cpufreqd -} - -pkg_postinst() { - echo - einfo "A default config file has been copied to /etc/cpufreqd.conf" - echo - einfo "CPUFreqd does not support using percentage frequencies on" - einfo "2.6 kernels where sysfs is used instead - please manually" - einfo "edit the config file to use an absolute value instead, if" - einfo "you are using a 2.6 series kernel." - echo -} diff --git a/sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild b/sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild deleted file mode 100644 index 66ca69ccd441..000000000000 --- a/sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild,v 1.2 2005/05/26 12:45:04 brix Exp $ - -inherit flag-o-matic eutils - -DESCRIPTION="Daemon to adjust CPU frequency for power saving" -HOMEPAGE="http://cpufreqd.sourceforge.net" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86 ~ppc ~amd64" - -IUSE="" - -src_unpack() { - unpack ${A} - - cd ${S} - epatch ${FILESDIR}/${P}-memleaks.patch -} - -src_compile() { - # cpufreqd segfaults when built as PIE - filter-flags "-fpie" "-fPIE" "-Wl,-pie" - - econf || die "econf failed" - emake || die "emake failed" -} - -src_install() { - emake DESTDIR=${D} install || die "emake install failed" - - doinitd scripts/gentoo/cpufreqd - - dodoc AUTHORS ChangeLog README TODO -} diff --git a/sys-power/cpufreqd/files/1.1.2-prefer-sysfs.patch b/sys-power/cpufreqd/files/1.1.2-prefer-sysfs.patch deleted file mode 100644 index 0c715b89406b..000000000000 --- a/sys-power/cpufreqd/files/1.1.2-prefer-sysfs.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- cpufreqd-1.1.1/sys_check.c 2004-01-27 12:22:13.000000000 +0100 -+++ sys_check.c 2004-03-02 23:13:13.158613312 +0100 -@@ -40,14 +40,6 @@ - struct stat sb; - int rc; - -- /* try fisrt with the 2.4 series */ -- rc = stat(CPUFREQ_PROC_INTERFACE, &sb); -- if (rc == 0) { -- cp_log(LOG_DEBUG, "find_cpufreq_interface(): found %s interface.\n", CPUFREQ_PROC_INTERFACE); -- configuration->has_sysfs = 0; -- return 0; -- } -- - /* try with the 2.5 series */ - rc = stat(CPUFREQ_SYSFS_INTERFACE, &sb); - if (rc == 0) { -@@ -56,6 +48,14 @@ - return 0; - } - -+ /* try fisrt with the 2.4 series */ -+ rc = stat(CPUFREQ_PROC_INTERFACE, &sb); -+ if (rc == 0) { -+ cp_log(LOG_DEBUG, "find_cpufreq_interface(): found %s interface.\n", CPUFREQ_PROC_INTERFACE); -+ configuration->has_sysfs = 0; -+ return 0; -+ } -+ - cp_log(LOG_ERR, "find_cpufreq_interface(): no cpufreq interface found.\n"); - return -1; - diff --git a/sys-power/cpufreqd/files/cpufreqd-1.2.2-memleaks.patch b/sys-power/cpufreqd/files/cpufreqd-1.2.2-memleaks.patch deleted file mode 100644 index 99ccd9e89a9d..000000000000 --- a/sys-power/cpufreqd/files/cpufreqd-1.2.2-memleaks.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -Nud cpufreqd-1.2.2/main.c nvfreqd/main.c ---- cpufreqd-1.2.2/main.c 2004-10-25 13:04:27.000000000 +0200 -+++ nvfreqd/main.c 2005-05-13 12:12:59.066964000 +0200 -@@ -153,6 +172,7 @@ - - /* free configuration */ - free_config(configuration); -+ free(configuration); - - /* TODO: this call to close log shound not sit here... */ - closelog(); -@@ -423,6 +443,7 @@ - sleep(configuration->poll_interval); - } /* end loop */ - -+ free(_system); - return 0; - } - -@@ -506,7 +527,7 @@ - */ - int set_policy(profile *prof) { - FILE *fp; -- char *path = (char *)malloc(256); -+ char path[256]; - - if (!prof) - return -1; diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-1.1.2-r1 b/sys-power/cpufreqd/files/digest-cpufreqd-1.1.2-r1 deleted file mode 100644 index be0abf1f0108..000000000000 --- a/sys-power/cpufreqd/files/digest-cpufreqd-1.1.2-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 d06dcf3e3b2f8eb25216431ec055aa4b cpufreqd-1.1.2.tar.gz 216245 diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-1.2.2-r1 b/sys-power/cpufreqd/files/digest-cpufreqd-1.2.2-r1 deleted file mode 100644 index 85a6708f9d4b..000000000000 --- a/sys-power/cpufreqd/files/digest-cpufreqd-1.2.2-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 e26bd0a1566aae79398c92be155c0367 cpufreqd-1.2.2.tar.gz 330959 |