From 989d20b988b095c9ef6e9521d25f30be4c1c35e5 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Mon, 13 Mar 2017 11:13:56 +1100 Subject: sys-power/cpudyn: remove last rited package --- sys-power/cpudyn/Manifest | 1 - sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild | 48 ---------- sys-power/cpudyn/cpudyn-1.0.1.ebuild | 40 -------- .../files/cpudyn-0.99.0-init_conf_updates.patch | 29 ------ sys-power/cpudyn/files/cpudyn.init | 101 --------------------- sys-power/cpudyn/metadata.xml | 5 - 6 files changed, 224 deletions(-) delete mode 100644 sys-power/cpudyn/Manifest delete mode 100644 sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild delete mode 100644 sys-power/cpudyn/cpudyn-1.0.1.ebuild delete mode 100644 sys-power/cpudyn/files/cpudyn-0.99.0-init_conf_updates.patch delete mode 100644 sys-power/cpudyn/files/cpudyn.init delete mode 100644 sys-power/cpudyn/metadata.xml (limited to 'sys-power') diff --git a/sys-power/cpudyn/Manifest b/sys-power/cpudyn/Manifest deleted file mode 100644 index 3c63de0ac8ef..000000000000 --- a/sys-power/cpudyn/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST cpudyn-1.0.1.tgz 32285 SHA256 bc196ad17c04aa4bb21fdf9f6976e658d1d89cf736405a3faec93fd0e14df227 SHA512 e820cbdd175f264ff28f536e8bf5b9dc16a1453889d22fe3f526b940a0bd1d8ba30a7db91e312294e1c0b548d497f761399b5dd9a6dfe1659ecebdab2be97561 WHIRLPOOL 973a26885615c1b53f7699737326455fa9694c00164a8c9e0760300d0900075261ecd40d792cf820a5754f059ec41894a8d801f6c70b4bf922b88db3feefe962 diff --git a/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild b/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild deleted file mode 100644 index 1515c24d74a1..000000000000 --- a/sys-power/cpudyn/cpudyn-1.0.1-r2.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit flag-o-matic toolchain-funcs - -DESCRIPTION="A daemon to control laptop power consumption via cpufreq and disk standby" -HOMEPAGE="http://freecode.com/projects/cpudyn/" -SRC_URI="http://mnm.uib.es/~gallir/${PN}/download/${P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="" - -S=${WORKDIR}/${PN} - -PATCHES=( - "${FILESDIR}/${PN}-0.99.0-init_conf_updates.patch" -) - -src_prepare() { - # fix #570082 by restoring pre-GCC5 inline semantics - append-cflags -std=gnu89 - - default -} - -src_compile() { - emake LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" cpudynd -} - -src_install() { - dosbin cpudynd - - doman cpudynd.8 - dodoc INSTALL README VERSION changelog - docinto html - dodoc *.html - - newinitd "${FILESDIR}"/cpudyn.init cpudyn - newconfd debian/cpudyn.conf cpudyn -} - -pkg_postinst() { - einfo "Configuration file is /etc/conf.d/cpudyn." -} diff --git a/sys-power/cpudyn/cpudyn-1.0.1.ebuild b/sys-power/cpudyn/cpudyn-1.0.1.ebuild deleted file mode 100644 index 184e2781d57f..000000000000 --- a/sys-power/cpudyn/cpudyn-1.0.1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -inherit eutils - -DESCRIPTION="A daemon to control laptop power consumption via cpufreq and disk standby" -HOMEPAGE="http://mnm.uib.es/~gallir/cpudyn/" -SRC_URI="http://mnm.uib.es/~gallir/${PN}/download/${P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86" -IUSE="" - -S=${WORKDIR}/${PN} - -src_unpack() { - unpack ${A} - cd "${S}"/debian - epatch "${FILESDIR}"/${PN}-0.99.0-init_conf_updates.patch -} - -src_compile() { - emake LDFLAGS="${LDFLAGS}" cpudynd || die "Compilation failed." -} - -src_install() { - dosbin cpudynd || die "dosbin" - - doman cpudynd.8 - dodoc INSTALL README VERSION changelog - dohtml *.html - - newinitd "${FILESDIR}"/cpudyn.init cpudyn - newconfd debian/cpudyn.conf cpudyn -} - -pkg_postinst() { - einfo "Configuration file is /etc/conf.d/cpudyn." -} diff --git a/sys-power/cpudyn/files/cpudyn-0.99.0-init_conf_updates.patch b/sys-power/cpudyn/files/cpudyn-0.99.0-init_conf_updates.patch deleted file mode 100644 index f6aca0b7a9f8..000000000000 --- a/sys-power/cpudyn/files/cpudyn-0.99.0-init_conf_updates.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- cpudyn/debian/cpudyn.conf.orig 2004-01-08 17:20:39.575230665 +0100 -+++ cpudyn/debian/cpudyn.conf 2004-01-08 17:20:37.450290151 +0100 -@@ -32,6 +32,12 @@ - - THROTTLING_LOW=7 - -+# -+# Count also niced process in CPU usage. Default is no. -+# -+ -+#NICE=yes -+ - ################################################ - # DISK OPTIONS - # (disabled by default) -@@ -51,4 +57,14 @@ - # DISKS=/dev/hda,/dev/hdb - - -+################################################ -+# Special Startup Options -+# (you shouldn't need to change these) -+################################################ -+# cpufreq sources for 2.4 kernels -+CPUFREQ_24="/proc/cpufreq" -+# cpufreq sources for 2.5/2.6 kernels -+CPUFREQ_25="/sys/devices/system/cpu/cpu0/cpufreq /sysfs/devices/system/cpu/cpu0/cpufreq" -+# pure acpi cpufreq -+CPUFREQ_ACPI="/proc/acpi/processor/CPU0/throttling" diff --git a/sys-power/cpudyn/files/cpudyn.init b/sys-power/cpudyn/files/cpudyn.init deleted file mode 100644 index c0f3cebc5aaf..000000000000 --- a/sys-power/cpudyn/files/cpudyn.init +++ /dev/null @@ -1,101 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# -# Based on the Debian init script written by Celso Gonzalez , -# and on the cpufreqd Gentoo init script written by Robert Gogolok . -# Heavily modified by Robin H. Johnson to ensure correct -# start only under support conditions -# More preconditions by Karl Trygve Kalleberg -# - -DAEMON=/usr/sbin/cpudynd -PIDFILE=/var/run/cpudynd.pid - -opts="${opts} min max dynamic" - -depend() { - need localmount -} - -checkconfig() { - local CPUFREQ_FILES="${CPUFREQ_24} ${CPUFREQ_25} ${CPUFREQ_ACPI}" - local CPUFREQ_FILE="" - for i in ${CPUFREQ_FILES}; do [ -e ${i} ] && CPUFREQ_FILE="${i}" && break ; done - if [ -z "${CPUFREQ_FILE}" ]; then - eerror "Neither CPUFreq nor ACPI throttling support were found" - return 1 - fi - if [ "${CPUFREQ_FILE}" = "${CPUFREQ_ACPI}" ]; then - # see if the file says we are supported or not - grep 'not supported' ${CPUFREQ_ACPI} 2>&1 >/dev/null - retval="$?" - if [ $retval -eq 0 ]; then - eerror "ACPI throttling support found, but hardware doesn't support it" - return 1 - fi - # now check that we can write to the file - local acpistate=`grep 'active state' ${CPUFREQ_ACPI} | cut -dT -f2-` - echo $acpistate > ${CPUFREQ_ACPI} - retval="$?" - if [ $retval -ne 0 ]; then - eerror "Writing to ACPI throttling file failed" - return 1 - fi - fi - # CPUFREQ_25 has more than one entry, hence the grep -- karltk - if [ ! -z "$(echo ${CPUFREQ_25} | grep ${CPUFREQ_FILE})" ]; then - # Silently try to load the governors; shouldn't hurt if they're already there - modprobe -q cpufreq_performance - modprobe -q cpufreq_powersave - modprobe -q cpufreq_userspace - modprobe -q cpufreq_ondemand - fi - - return 0 -} - - -start() { - local CPUDYN_OPTS="" - if [ -n "$INTERVAL" ]; then CPUDYN_OPTS="$CPUDYN_OPTS -i $INTERVAL"; fi - if [ -n "$CPU_UP" -a -n "$CPU_DOWN" ]; then CPUDYN_OPTS="$CPUDYN_OPTS -p $CPU_UP $CPU_DOWN"; fi - if [ -n "$THROTTLING_LOW" ]; then CPUDYN_OPTS="$CPUDYN_OPTS -l $THROTTLING_LOW"; fi - if [ -n "$TIMEOUT" ]; then CPUDYN_OPTS="$CPUDYN_OPTS -t $TIMEOUT"; fi - if [ -n "$DISKS" ]; then CPUDYN_OPTS="$CPUDYN_OPTS -h $DISKS"; fi - if [ "$NICE" = "yes" ]; then CPUDYN_OPTS="$CPUDYN_OPTS -nice"; fi - - ebegin "Starting cpudynd" - if checkconfig; then - start-stop-daemon --start --quiet --pidfile $PIDFILE \ - --background --make-pidfile --exec $DAEMON -- $CPUDYN_OPTS - eend $? - else - eend 1 - fi -} - -stop() { - ebegin "Stopping cpudynd" - start-stop-daemon --stop --quiet --pidfile $PIDFILE \ - --exec $DAEMON && rm -f $PIDFILE - eend $? -} - -min() { - ebegin "Forcing minimal speed" - kill -USR2 $(cat ${PIDFILE}) - eend $? -} -max() { - ebegin "Forcing maximal speed" - kill -USR1 $(cat ${PIDFILE}) - eend $? -} -dynamic() { - ebegin "Resetting to default dynamic speed" - kill -HUP $(cat ${PIDFILE}) - eend $? -} - -# vim:ts=4 noexpandtab: diff --git a/sys-power/cpudyn/metadata.xml b/sys-power/cpudyn/metadata.xml deleted file mode 100644 index 6f49eba8f496..000000000000 --- a/sys-power/cpudyn/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - -- cgit v1.2.3-65-gdbad