From 3dec0f429eca3c7fb2ac20a599962ad45c8dec4f Mon Sep 17 00:00:00 2001 From: Joseph Jezak Date: Mon, 8 Jan 2007 21:53:33 +0000 Subject: [PATCH] Removed pmud for bug #153197. --- app-laptop/pmud/ChangeLog | 61 ---- app-laptop/pmud/Manifest | 61 ---- app-laptop/pmud/files/0.10.1-deb-fcntl.patch | 28 -- app-laptop/pmud/files/digest-pmud-0.10.1-r2 | 1 - app-laptop/pmud/files/digest-pmud-0.10.1-r3 | 1 - .../pmud/files/pmud-file-locations.patch | 13 - .../pmud/files/pmud-makefile-x-gentoo.diff | 21 -- app-laptop/pmud/files/pmud.start | 23 -- app-laptop/pmud/files/power.conf | 31 -- app-laptop/pmud/files/pwrctl | 297 ------------------ app-laptop/pmud/files/pwrctl-local | 88 ------ app-laptop/pmud/metadata.xml | 5 - app-laptop/pmud/pmud-0.10.1-r2.ebuild | 47 --- app-laptop/pmud/pmud-0.10.1-r3.ebuild | 51 --- 14 files changed, 728 deletions(-) delete mode 100644 app-laptop/pmud/ChangeLog delete mode 100644 app-laptop/pmud/Manifest delete mode 100644 app-laptop/pmud/files/0.10.1-deb-fcntl.patch delete mode 100644 app-laptop/pmud/files/digest-pmud-0.10.1-r2 delete mode 100644 app-laptop/pmud/files/digest-pmud-0.10.1-r3 delete mode 100644 app-laptop/pmud/files/pmud-file-locations.patch delete mode 100644 app-laptop/pmud/files/pmud-makefile-x-gentoo.diff delete mode 100644 app-laptop/pmud/files/pmud.start delete mode 100644 app-laptop/pmud/files/power.conf delete mode 100644 app-laptop/pmud/files/pwrctl delete mode 100644 app-laptop/pmud/files/pwrctl-local delete mode 100644 app-laptop/pmud/metadata.xml delete mode 100644 app-laptop/pmud/pmud-0.10.1-r2.ebuild delete mode 100644 app-laptop/pmud/pmud-0.10.1-r3.ebuild diff --git a/app-laptop/pmud/ChangeLog b/app-laptop/pmud/ChangeLog deleted file mode 100644 index bb90f451d465..000000000000 --- a/app-laptop/pmud/ChangeLog +++ /dev/null @@ -1,61 +0,0 @@ -# ChangeLog for app-laptop/pmud -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/pmud/ChangeLog,v 1.7 2005/01/01 14:47:46 eradicator Exp $ - - 05 Sep 2004; Sven Wegener : - Fixed ChangeLog header. - - 09 Jul 2004; Travis Tilley pmud-0.10.1-r2.ebuild, - pmud-0.10.1-r3.ebuild: - switch linux-headers dependency to virtual/os-headers - -*pmud-0.10.1-r3 (04 Mar 2004) - - 04 Mar 2004; Mike Frysinger : - Add a debian patch #39132 by Colin Leroy. - -*pmud-0.10.1-r2 (14 July 2002) - - 24 Feb 2003; Nicholas Wourms pmud-0.10.1-r1.ebuild pmud-0.10.1-r2.ebuild : - This is definitely not for mips. - - 1 Aug 2002; Calum Selkirk pmud-0.10.1-r2.ebuild : - - Changed src_install to only install X related apps and manpages if we - have USE="X" - - 23 Jul 2002; Calum Selkirk files/pmud.start - Also redirected stder & stdout to /dev/null on stop(). - - 19 Jul 2002; Mark Guertin files/pmud.start - Added >/dev/null 2>&1 to surpress extra output of pmud at system startup - fixing bug #5218 - - 17 Jul 2002; Mark Guertin : - Fixed keywords (please be sure you know what programs are before you set - keywords, this will _not_ run on x86). Fixed typo in makefile-x.diff - (was CLAGS now is CFLAGS) - - 14 Jul 2002; phoen][x pmud-0.10.1-r2.ebuild : - Added LICENSE, KEYWORDS, SLOT. - -*pmud-0.10-r2 ChangeLog: - - Mon Apr 29 10:12 2002 CST; kain - Fixed the format of the X dependency line in pmud-0.10.1-r1.ebuild - - 14 Jul 2002; phoen][x pmud-0.10.1-r1.ebuild : - Added LICENSE, KEYWORDS, SLOT. - -*pmud-0.10-r1 ChangeLog: - - Mon Apr 29 23:15:43 2002 CEST; pvdabeel - Bug #2238: added pmud-makefile-x-gentoo.diff, new version - -*pmud-0.10.1 ChangeLog: - - Sat, 13 Apr 2002 23:04:14 -0500; kain pmud/*: - Import of PMUD to gentoo. This works (kindof) on my Mac. - On my TiBook, X is screwed if you are using the radeonfb driver and - not a fbdev setup if you use this. :( Could someone try this with a - normal XFree 4.2.0/TiBook G4 and tell me what they get? diff --git a/app-laptop/pmud/Manifest b/app-laptop/pmud/Manifest deleted file mode 100644 index 0cc5603e4abf..000000000000 --- a/app-laptop/pmud/Manifest +++ /dev/null @@ -1,61 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -AUX 0.10.1-deb-fcntl.patch 855 RMD160 38153a4b3c8fdd510b3fd5ba7d1c475b12392f7b SHA1 53996aee6c0735f7e01527640bf1a73601df0c3f SHA256 d88f27e993ff72c005477ef999a58a932aeddde3e3a2be61efb04c2a84b2cde8 -MD5 48fb4abe41c2ce763a6de3b0f51621bc files/0.10.1-deb-fcntl.patch 855 -RMD160 38153a4b3c8fdd510b3fd5ba7d1c475b12392f7b files/0.10.1-deb-fcntl.patch 855 -SHA256 d88f27e993ff72c005477ef999a58a932aeddde3e3a2be61efb04c2a84b2cde8 files/0.10.1-deb-fcntl.patch 855 -AUX pmud-file-locations.patch 373 RMD160 5a2a0a6f82fc184166c17800cae3f132838eb47a SHA1 4bd557bf33dac82bc7378472db2a51374a57b5f6 SHA256 d2ac26c0425ab5563b8e3302323c3c6b7eccc0e8a07074ddc01335d4a12e9d3a -MD5 1ab85cee19ba581fa19d0f5129c9f3f6 files/pmud-file-locations.patch 373 -RMD160 5a2a0a6f82fc184166c17800cae3f132838eb47a files/pmud-file-locations.patch 373 -SHA256 d2ac26c0425ab5563b8e3302323c3c6b7eccc0e8a07074ddc01335d4a12e9d3a files/pmud-file-locations.patch 373 -AUX pmud-makefile-x-gentoo.diff 699 RMD160 04d46c9c06dbac717495656505864a07f27e85bf SHA1 d503b5151dd174f5489c78e1621747317aeb5614 SHA256 b7840a927aefd6fbf51e1afd3e760d1cbf18da5cd4c2ff70ec0d0f53d3305b30 -MD5 f056db07040f37f07402f93828875cf8 files/pmud-makefile-x-gentoo.diff 699 -RMD160 04d46c9c06dbac717495656505864a07f27e85bf files/pmud-makefile-x-gentoo.diff 699 -SHA256 b7840a927aefd6fbf51e1afd3e760d1cbf18da5cd4c2ff70ec0d0f53d3305b30 files/pmud-makefile-x-gentoo.diff 699 -AUX pmud.start 567 RMD160 79455f7a26242467a606c220650fdde45810bd3e SHA1 58ba1e68ae404fc763129cc105522330bcf78410 SHA256 055eb7be4bb50234cb02b82138ae8250b5cba208f0a59af52943db4ad4ff4bd9 -MD5 a2e9444ece62d46547d95b5eb6631cfd files/pmud.start 567 -RMD160 79455f7a26242467a606c220650fdde45810bd3e files/pmud.start 567 -SHA256 055eb7be4bb50234cb02b82138ae8250b5cba208f0a59af52943db4ad4ff4bd9 files/pmud.start 567 -AUX power.conf 1611 RMD160 23f8cfd4055b7c5150d2475d079091ec753dfb6a SHA1 36188ff16f117b0d9145612462f9a6c10b8efa60 SHA256 bd235ee2baebe079c549739f4c14601237e54c8a92d1174fa7d20d8daa6e9491 -MD5 0b3d50c84748990675bd8da75fefa048 files/power.conf 1611 -RMD160 23f8cfd4055b7c5150d2475d079091ec753dfb6a files/power.conf 1611 -SHA256 bd235ee2baebe079c549739f4c14601237e54c8a92d1174fa7d20d8daa6e9491 files/power.conf 1611 -AUX pwrctl 8421 RMD160 fc612a9777bf66442d4516d69c8725953921c059 SHA1 3b5e08b3d4beae461f45da82b12627fe18e9a6ec SHA256 210ead4005016d647b0898c7b4e6f549f1f9756b8e047c82a91d8a1e98119594 -MD5 e0fbd0593a8efc1b7ac0c9f542528a09 files/pwrctl 8421 -RMD160 fc612a9777bf66442d4516d69c8725953921c059 files/pwrctl 8421 -SHA256 210ead4005016d647b0898c7b4e6f549f1f9756b8e047c82a91d8a1e98119594 files/pwrctl 8421 -AUX pwrctl-local 2733 RMD160 3a5bd4fe293545e35d1cafb0b3551e7e6bc197d6 SHA1 ef8ea4d9d75c644ab2b7e0e33cf72f823c3d6acb SHA256 a7fdfb4752a944027177363297495b88410444835aecb019c44835553f97bc7b -MD5 24099ac729124ead2fc05c6f280299d0 files/pwrctl-local 2733 -RMD160 3a5bd4fe293545e35d1cafb0b3551e7e6bc197d6 files/pwrctl-local 2733 -SHA256 a7fdfb4752a944027177363297495b88410444835aecb019c44835553f97bc7b files/pwrctl-local 2733 -DIST pmud-0.10.1.tar.gz 68417 -EBUILD pmud-0.10.1-r2.ebuild 1134 RMD160 b6f235416118723da7f29a918ca9a4a620e7d339 SHA1 4c3656007e0e75742f311d3bf537dd412c3a393b SHA256 db21aecbf5049ffdc1dcd3c5246450cad9fa3c79cff660f1a1f0a98338f62341 -MD5 6b3df3f114695ba9a40bf64bf5552c78 pmud-0.10.1-r2.ebuild 1134 -RMD160 b6f235416118723da7f29a918ca9a4a620e7d339 pmud-0.10.1-r2.ebuild 1134 -SHA256 db21aecbf5049ffdc1dcd3c5246450cad9fa3c79cff660f1a1f0a98338f62341 pmud-0.10.1-r2.ebuild 1134 -EBUILD pmud-0.10.1-r3.ebuild 1199 RMD160 9763a60c786911283d760b382798b96f732b8fee SHA1 2f5f32dd9a985a8abbeb36af4ea228f0e73b4c47 SHA256 5d05e1077359da035aacc3e4acb977b9a71986c7ceca9f1d9e6caa06483a5b5d -MD5 5fb762201efb8fdbc37dd5e8471a4939 pmud-0.10.1-r3.ebuild 1199 -RMD160 9763a60c786911283d760b382798b96f732b8fee pmud-0.10.1-r3.ebuild 1199 -SHA256 5d05e1077359da035aacc3e4acb977b9a71986c7ceca9f1d9e6caa06483a5b5d pmud-0.10.1-r3.ebuild 1199 -MISC ChangeLog 2299 RMD160 78831fcf493726d6c41ac73eadcfd62d7ba5606b SHA1 339570d9d1f84ea025fa6b545c55141464eb03d6 SHA256 ccfa77ae5a5d0a3db78916f8df6c55d8f8127a3b9034da7a3e12bbecaa6cfe87 -MD5 39bf16a3ad2b7ab26882c7e9cf1812e2 ChangeLog 2299 -RMD160 78831fcf493726d6c41ac73eadcfd62d7ba5606b ChangeLog 2299 -SHA256 ccfa77ae5a5d0a3db78916f8df6c55d8f8127a3b9034da7a3e12bbecaa6cfe87 ChangeLog 2299 -MISC metadata.xml 156 RMD160 a57e9e3e71bd04aa138850dc8cce8dbe9e1cd5a2 SHA1 30b3e2b32ee2b52b68ad1d77f04f2c75980bf7d4 SHA256 d57f79be439079b5c78578b17eb3ee7d20883353b1c40a716d3f1ab06af34851 -MD5 52f9d8e98c8931645c57a3de1c36727d metadata.xml 156 -RMD160 a57e9e3e71bd04aa138850dc8cce8dbe9e1cd5a2 metadata.xml 156 -SHA256 d57f79be439079b5c78578b17eb3ee7d20883353b1c40a716d3f1ab06af34851 metadata.xml 156 -MD5 a57669b9dcce4c8408ff2843ae91d7b6 files/digest-pmud-0.10.1-r2 62 -RMD160 79c69508b4ae07934c08c59f872b5950de1f7c14 files/digest-pmud-0.10.1-r2 62 -SHA256 de4f9ce3237d527f3456ea6071ccf7ae9ecc9bfdd63579aa747fe13f156317e6 files/digest-pmud-0.10.1-r2 62 -MD5 a57669b9dcce4c8408ff2843ae91d7b6 files/digest-pmud-0.10.1-r3 62 -RMD160 79c69508b4ae07934c08c59f872b5950de1f7c14 files/digest-pmud-0.10.1-r3 62 -SHA256 de4f9ce3237d527f3456ea6071ccf7ae9ecc9bfdd63579aa747fe13f156317e6 files/digest-pmud-0.10.1-r3 62 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.5 (GNU/Linux) - -iD4DBQFFRCKdamhnQswr0vIRAqbFAJdi0ZK3/vI6WXd0V8QSUOEPV7JcAJsHSF5A -SlxmTfhLMlt5x/1JCVTWPw== -=TGLu ------END PGP SIGNATURE----- diff --git a/app-laptop/pmud/files/0.10.1-deb-fcntl.patch b/app-laptop/pmud/files/0.10.1-deb-fcntl.patch deleted file mode 100644 index 21e5f0d1ab06..000000000000 --- a/app-laptop/pmud/files/0.10.1-deb-fcntl.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- pmud.orig 2004-01-22 21:49:48.351629584 +0100 -+++ pmud.c 2004-01-22 21:53:45.464582936 +0100 -@@ -360,10 +360,10 @@ - - chk(pmu_fd < 0, "Couldn't open " PMU_FILE " or " PMU_DEVFS_FILE); - -- chk(fcntl(pmu_fd, F_GETFL, &fl) < 0, "fcntl(F_GETFL)"); -+ chk( (fl = fcntl(pmu_fd, F_GETFL)) < 0, "fcntl(F_GETFL)"); - - fl |= O_NONBLOCK; -- chk(fcntl(pmu_fd, F_SETFL, &fl) < 0, "fcntl(F_SETFL)"); -+ chk(fcntl(pmu_fd, F_SETFL, fl) < 0, "fcntl(F_SETFL)"); - - add_fd(pmu_fd, POLLIN, pmu_intr, NULL); - -@@ -1194,10 +1194,10 @@ - struct sockstate *ss; - - fe = accept(fd, NULL, 0); -- chk(fcntl(fe, F_GETFL, &fl) < 0, "fcntl(F_GETFL)"); -+ chk((fl =fcntl(fe, F_GETFL)) < 0, "fcntl(F_GETFL)"); - - fl |= O_NONBLOCK; -- chk(fcntl(fe, F_SETFL, &fl) < 0, "fcntl(F_SETFL)"); -+ chk(fcntl(fe, F_SETFL, fl) < 0, "fcntl(F_SETFL)"); - - ss = malloc(sizeof(*ss)); - if (ss == 0) diff --git a/app-laptop/pmud/files/digest-pmud-0.10.1-r2 b/app-laptop/pmud/files/digest-pmud-0.10.1-r2 deleted file mode 100644 index 777c71bda40a..000000000000 --- a/app-laptop/pmud/files/digest-pmud-0.10.1-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 1bdc546199cd7e745c2cf7f560a52198 pmud-0.10.1.tar.gz 68417 diff --git a/app-laptop/pmud/files/digest-pmud-0.10.1-r3 b/app-laptop/pmud/files/digest-pmud-0.10.1-r3 deleted file mode 100644 index 777c71bda40a..000000000000 --- a/app-laptop/pmud/files/digest-pmud-0.10.1-r3 +++ /dev/null @@ -1 +0,0 @@ -MD5 1bdc546199cd7e745c2cf7f560a52198 pmud-0.10.1.tar.gz 68417 diff --git a/app-laptop/pmud/files/pmud-file-locations.patch b/app-laptop/pmud/files/pmud-file-locations.patch deleted file mode 100644 index 748deae69919..000000000000 --- a/app-laptop/pmud/files/pmud-file-locations.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- pmud-0.10.1/pmud.8~ 2001-12-15 16:52:40.000000000 -0600 -+++ pmud-0.10.1/pmud.8 2002-04-13 19:26:00.000000000 -0500 -@@ -160,8 +160,8 @@ - /etc/power/pwrctl-local - /etc/power/levels - /etc/powerstatus --/etc/rc.d/init.d/pmud --/etc/sysconfig/power -+/etc/init.d/pmud -+/etc/power.conf - .fi - .Sh AUTHORS - initial pmud package by Paul Mackerras and initial manual and changes to diff --git a/app-laptop/pmud/files/pmud-makefile-x-gentoo.diff b/app-laptop/pmud/files/pmud-makefile-x-gentoo.diff deleted file mode 100644 index 5015bf4a37cd..000000000000 --- a/app-laptop/pmud/files/pmud-makefile-x-gentoo.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- pmud-0.10.1/Makefile~ Mon Apr 29 12:31:01 2002 -+++ pmud-0.10.1/Makefile Mon Apr 29 12:56:04 2002 -@@ -39,7 +39,8 @@ - $(CC) $(CFLAGS) -o fblevel fblevel.c - - xmouse: xmouse.c -- $(CC) $(CLAGS) -o xmouse xmouse.c -L/usr/X11R6/lib -lX11 -+ (test -e /usr/X11R6/include/X11/Xlib.hh && \ -+ $(CC) $(CFLAGS) -o xmouse xmouse.c -L/usr/X11R6/lib -lX11; true) - - tcp.o: tcp.c tcp.h - $(CC) $(CFLAGS) -c tcp.c -@@ -49,7 +50,7 @@ - install -c snooze /sbin - install -c wakebay /sbin - install -c fblevel /sbin -- install -c xmouse /usr/X11R6/bin -+ (test -e xmouse && install -c xmouse /usr/X11R6/bin; true) - install -c Batmon /usr/bin - install -c -D pwrctl /etc/power/pwrctl - cp pmud.rc /etc/rc.d/init.d/pmud diff --git a/app-laptop/pmud/files/pmud.start b/app-laptop/pmud/files/pmud.start deleted file mode 100644 index 1460d49ca969..000000000000 --- a/app-laptop/pmud/files/pmud.start +++ /dev/null @@ -1,23 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/pmud/files/pmud.start,v 1.2 2004/07/14 21:30:51 agriffis Exp $ - -depend() { - need bootmisc - need net.lo -} - -[ -f /etc/power.conf ] && . /etc/power.conf - -start() { - ebegin "Starting PMUD" - start-stop-daemon --start --quiet --exec /sbin/pmud -- $PMUD_FLAGS >/dev/null 2>&1 - eend $? -} - -stop() { - ebegin "Stopping PMUD" - start-stop-daemon --stop --quiet --exec /sbin/pmud -- >/dev/null 2>&1 - eend $? -} diff --git a/app-laptop/pmud/files/power.conf b/app-laptop/pmud/files/power.conf deleted file mode 100644 index 51ca6f7b9742..000000000000 --- a/app-laptop/pmud/files/power.conf +++ /dev/null @@ -1,31 +0,0 @@ -# ----------------------------------------------------------------------------- -# Specify the pmud start flags here, you can use the following flags: -# ----------------------------------------------------------------------------- -# -a : enable apmd compatibility mode (fifo /etc/power/apm) -# -d : enable debugging text; this flag implicitly -# sets the -n flag to prevent backgrounding. -# -f : use for syslogd(8) messages. -# -h : this text. -# -k : do not detect lid close -# -K : do not detect lid close when on AC\n" -# -l : the numbers of power left which -# is considered to be a critical low level. -# -m : the number of a critical low (see -# the -l flag) power level has to endure in -# order to enable sleeping|shutdown. -# -n : do not detach. With this option the daemon -# will not become a background process. -# -p : listen on for requestes. -# -s : send SIGPWR to init(8) on low power level; -# this does not put the machine to sleep as -# another SIGPWR needs to be send to init(8) -# when power is restored. -# -S : same as -s, but also send SIGPWR on every -# sleep request or closing of the lid -# -u : communicate through a AF_UNIX socket. -# -v : print the version string of pmud. -# -# see also pmud(8) -# ----------------------------------------------------------------------------- - -PMUD_FLAGS=-a diff --git a/app-laptop/pmud/files/pwrctl b/app-laptop/pmud/files/pwrctl deleted file mode 100644 index d3f73ab5de57..000000000000 --- a/app-laptop/pmud/files/pwrctl +++ /dev/null @@ -1,297 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# $Id: pwrctl,v 1.1 2004/03/16 04:50:41 warpzero Exp $ -# -# This script is invoked by pmud to configure the system for a -# given power level. The desired level is indicated by the first -# argument and can take the following values: -# -# minimum = minimum power -# medium = medium power -# maximum = full power -# sleep = prepare for sleep -# wakeup = system woke up after a sleep -# warning = low battery condition detected, issue a warning to users -# -# the second argument gives the current power source, and can take the -# following values: -# -# ac -# battery -# -# This script is invoked when the AC power is connected or disconnected, -# and also immediately after sleep. If the script /etc/power/pwrctl-local -# is present and executable, it will be called by this script before the -# main body of this script is executed. If pwrctl-local returns 1, then -# the main body of this script is NOT executed, in all other cases the -# main body of this script will be executed. -# -# Note that if you leave pwrctl-local writable by others than root (which -# should be the owner) you have created a serious security hole! -# -# You can edit this file, but it's better to edit /etc/power/pwrctl-local -# as that file will not be overwritten on upgrades. -# ----------------------------------------------------------------------------- -# Debian add-on: support (sort of) for Core99 machines (Pismo,...). The -# Pismo can't sleep right now so it will wake again immediately. We spin -# down the disk on sleep, turn off backlight power and ignore the wakeup. -# -# While things are stabilizing, these commands could be used to put the system -# into absolute minimum power mode. You can use commands of this sort in -# /etc/init.d/powerfail if needs be (sample powerfail script is in -# /usr/share/doc/sysvinit/examples/). -# fblevel 0 -# [ "`cat /proc/ide/hde/model`" != "(none)" ] && hdparm -f -S 1 -Y /dev/hde -# hdparm -f -S 1 -Y /dev/hda -# Use this to switch the display back on if the powerfail status is called -# off: -# fblevel 12 -# -# 01/09/13: Recent 2.4 kernel versions support sleep properly, by all -# accounts. So shut down only if kernel version is insufficient. -# Sample code to deal with broken airport drivers moved to pwrctl-local -# (courtesy Tom Rini). -# -# $Log: not supported by cvs2svn $ -# Revision 1.1 2002/04/27 10:34:28 pvdabeel -# PPC sys-apps merge -# -# Revision 1.1 2002/04/14 03:41:30 kain -# Initial import of PMUD for gentoo-ppc -# -# Revision 1.1.1.1 2001/12/07 11:31:53 sleemburg -# Initial CVS import of the unreleased pmud-0.8 to apmud (new project name -# because of a name clash at sourceforge.net). -# -# Revision 1.6 2000/12/12 08:56:57 stephan -# support for iBook and Pismo (same as other G3's) -# -# Revision 1.5 2000/10/09 14:33:40 stephan -# wakebay added -# -# Revision 1.4 2000/05/11 14:54:45 stephan -# pmud 0.6 changes -# -# Revision 1.3 2000/03/25 21:26:32 stephan -# pmud-0.5 changes -# -# Revision 1.2 2000/03/09 13:01:50 stephan -# formatting and call to pwrctl-local -# -# Revision 1.1 2000/01/06 13:48:19 stephan -# Initial revision -# ----------------------------------------------------------------------------- -logger=/usr/bin/logger -localfun=/etc/power/pwrctl-local - -function do_warn() -{ - local msg="Low battery, system will go down..." - - ( - /usr/X11R6/bin/xmessage -center -timeout 15 "$msg" || \ - echo "$msg" | /usr/bin/wall - ) & -} - -function pwrctl_G3() -{ - case "$1" in - minimum) - # min power, set disk to spin down after 1 minute - [ -f /sbin/hdparm ] && hdparm -p -S 12 /dev/hda - ;; - medium) - # medium power, set disk to spin down after 2.5 minutes - [ -f /sbin/hdparm ] && hdparm -p -S 30 /dev/hda - ;; - maximum) - case "$2" in - ac) - # on mains, do not spin down - [ -f /sbin/hdparm ] && hdparm -p -S 0 /dev/hda - ;; - *) - # on battery, set disk to spin down after 5 minutes - [ -f /sbin/hdparm ] && hdparm -p -S 60 /dev/hda - ;; - esac - ;; - warning) - do_warn - ;; - lid-closed) - ;; - lid-opened) - ;; - sleep) - ;; - wakeup) - [ -f /proc/sys/dev/cdrom/info ] && { - device=$(cat /proc/sys/dev/cdrom/info | ( - IFS=":" - while read var val - do - [ "$var" = "drive name" ] && { - echo $val - break - } - done - )) - [ ! -z "$device" ] && { - /sbin/wakebay /dev/${device} - } - } - ;; - *) - $logger -p daemon.error -t pwrctl "$0: invalid arg $1" - ;; - esac -} - -#------------------------------------------------------------------------------ -# This is largely a no-op on iBook or Pismo, as we don't know how to handle -# the sleep functions yet. Instead, we shut down on the spot. -#------------------------------------------------------------------------------ - -function pwrctl_Core99() -{ - case "$1" in - minimum) - # min power, set disk to spin down after 1 minute - [ -f /sbin/hdparm ] && hdparm -p -S 12 /dev/hda - ;; - medium) - # medium power, set disk to spin down after 2.5 minutes - [ -f /sbin/hdparm ] && hdparm -p -S 30 /dev/hda - ;; - maximum) - case "$2" in - ac) - # on mains, do not spin down - [ -f /sbin/hdparm ] && hdparm -p -S 0 /dev/hda - ;; - *) - # on battery, set disk to spin down after 5 minutes - [ -f /sbin/hdparm ] && hdparm -p -S 60 /dev/hda - ;; - esac - ;; - warning) - do_warn - ;; - lid-closed) - ;; - lid-opened) - ;; - sleep) - # We may end up here if someone closed the lid ... - # SIGPWR can be sent to init anyway with -s option, do the only - # safe thing for now: shut the hell down on 2.2 kernels, or anything - # below a known safe 2.4 version. - KVER=`uname -r` - case "$KVER" in - 2.2.*|2.3.*|2.4.[1-7]|2.4.[1-7]-*) - $logger -p daemon.error -t pwrctl "$0: insufficient kernel verison - sleep function not implemented, shutting down!" - echo "Kernel does not support sleep, shutting down!" | /usr/bin/wall - /sbin/shutdown -h now - ;; - *) - ;; - esac - ;; - wakeup) - # maybe force wakeup of media bay devices? - ;; - *) - $logger -p daemon.error -t pwrctl "$0: invalid arg $1" - ;; - esac -} - -# ----------------------------------------------------------------------------- -# On the 3400, for minimum power, we put the CPU into nap mode -# (rather than doze mode) when it is idle. This reduces power -# consumption but means that DMA is no longer cache coherent. -# Therefore we have to disable DMA, including the ethernet. -# We also turn the ethernet off during sleep. -# ----------------------------------------------------------------------------- - -function pwrctl_3400() -{ - case "$1" in - minimum) - ifconfig eth0 down - [ -f /sbin/hdparm ] && hdparm -d0 -S 12 /dev/hda - [ "`cat /proc/ide/hdc/model`" != "(none)" ] && [ -f /sbin/hdparm ] && hdparm -d0 /dev/hdc - echo 1 >/proc/sys/kernel/powersave-nap - ;; - medium) - echo 0 >/proc/sys/kernel/powersave-nap - [ -f /sbin/hdparm ] && hdparm -d1 -p -S 30 /dev/hda - [ "`cat /proc/ide/hdc/model`" != "(none)" ] && [ -f /sbin/hdparm ] && hdparm -d1 /dev/hdc - ifconfig eth0 up - ;; - maximum) - echo 0 >/proc/sys/kernel/powersave-nap - case "$2" in - ac) - # on mains, do not spin down - [ -f /sbin/hdparm ] && hdparm -d1 -p -S 0 /dev/hda - ;; - *) - # on battery, set disk to spin down after 5 minutes - [ -f /sbin/hdparm ] && hdparm -d1 -p -S 60 /dev/hda - ;; - esac - [ "`cat /proc/ide/hdc/model`" != "(none)" ] && [ -f /sbin/hdparm ] && hdparm -d1 /dev/hdc - ifconfig eth0 up - ;; - warning) - do_warn - ;; - sleep) - ifconfig eth0 down - ;; - wakeup) - ifconfig eth0 up - ;; - *) - $logger -p daemon.error -t pwrctl "$0: invalid arg $1" - ;; - esac -} - -# ----------------------------------------------------------------------------- -# main -# ----------------------------------------------------------------------------- - -[ -x $localfun ] && { - $logger -p daemon.info -t pwrctl "calling $localfun $*" - - $localfun $* - - case $? in - 0) - $logger -p daemon.debug -t pwrctl "continuing with main" - ;; - 1) - $logger -p daemon.debug -t pwrctl "skipping main" - exit 0 - ;; - *) - $logger -p daemon.error -t pwrctl "error in $localfun" - ;; - esac -} - -case "$PMUVERSION" in -9) pwrctl_3400 $1 $2 ;; -10|11) pwrctl_G3 $1 $2 ;; -12) pwrctl_Core99 $1 $2 ;; -*) - $logger -p daemon.error -t pwrctl "no function for PMU $PMUVERSION" -;; -esac >>/var/log/pwrctls 2>&1 - -exit 0 diff --git a/app-laptop/pmud/files/pwrctl-local b/app-laptop/pmud/files/pwrctl-local deleted file mode 100644 index 895bfde7a489..000000000000 --- a/app-laptop/pmud/files/pwrctl-local +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# $Id: pwrctl-local,v 1.1 2004/03/16 04:50:41 warpzero Exp $ -# -# This script is invoked by pwrctl to configure the system for a -# given power level. The desired level is indicated by the first -# argument, which can have the following values: -# -# minimum = minimum power -# medium = medium power -# maximum = full power -# sleep = prepare for sleep -# wakeup = system woke up after a sleep -# warning = low battery condition detected, issue a warning to users -# -# the second argument gives the current power source, and can take the -# following values: -# -# ac -# battery -# -# -# This script can be invoked by pwrctl when it is named /etc/power/pwrctl-local -# and is executable. Pwrctl is called by pmud on a power event. If this -# script returns the value 1, then pwrctl will skip it's main body -# -# Example usage: use ifdown -a on sleep (and ifup -a on wakeup) to -# automagically renew DHCP leases. Similar use of iwconfig down/up might be -# required for Wavelan users with older versions of the kernel. -# -# ----------------------------------------------------------------------------- -# $Log: not supported by cvs2svn $ -# Revision 1.1 2002/04/27 10:34:28 pvdabeel -# PPC sys-apps merge -# -# Revision 1.1 2002/04/14 03:41:31 kain -# Initial import of PMUD for gentoo-ppc -# -# Revision 1.1.1.1 2001/12/07 11:31:48 sleemburg -# Initial CVS import of the unreleased pmud-0.8 to apmud (new project name -# because of a name clash at sourceforge.net). -# -# Revision 1.2 2000/03/25 21:26:37 stephan -# pmud-0.5 changes -# -# Revision 1.1 2000/03/09 13:02:18 stephan -# Initial revision -# -# ----------------------------------------------------------------------------- -logger=/usr/bin/logger - -# ----------------------------------------------------------------------------- -# main -# ----------------------------------------------------------------------------- -case "$1" in -minimum) - $logger -p daemon.info -t pwrctl-local "minimum power $2" -;; -medium) - $logger -p daemon.info -t pwrctl-local "medium power $2" -;; -maximum) - $logger -p daemon.info -t pwrctl-local "maximum power $2" - $logger -p daemon.info -t pwrctl-local "skipping pwrctl-main" - exit 1 -;; -warning) - /usr/bin/wall "Low battery, system going down any minute now" -;; -lid-closed) - $logger -p daemon.info -t pwrctl-local "lid-closed $2" -;; -lid-opened) - $logger -p daemon.info -t pwrctl-local "lid-opened $2" -;; -sleep) - $logger -p daemon.info -t pwrctl-local "sleep $2" -;; -wakeup) - $logger -p daemon.info -t pwrctl-local "sleep $2" -;; -*) - $logger -p daemon.error -t pwrctl-local "invalid arg $1 $2" - exit 2 -;; -esac - -exit 0 diff --git a/app-laptop/pmud/metadata.xml b/app-laptop/pmud/metadata.xml deleted file mode 100644 index 034c09eb248a..000000000000 --- a/app-laptop/pmud/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - -ppc - diff --git a/app-laptop/pmud/pmud-0.10.1-r2.ebuild b/app-laptop/pmud/pmud-0.10.1-r2.ebuild deleted file mode 100644 index 2d834119c57e..000000000000 --- a/app-laptop/pmud/pmud-0.10.1-r2.ebuild +++ /dev/null @@ -1,47 +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/pmud/pmud-0.10.1-r2.ebuild,v 1.5 2005/01/01 14:47:46 eradicator Exp $ - -IUSE="X" - - -DESCRIPTION="PowerMac power management utilities" -SRC_URI="http://linuxppc.jvc.nl/${P}.tar.gz" -HOMEPAGE="http://penguinppc.org/" -KEYWORDS="ppc -x86 -amd64 -alpha -hppa -mips -sparc" -SLOT="0" -LICENSE="GPL-2" -DEPEND="virtual/os-headers - X? ( virtual/x11 )" -RDEPEND="sys-apps/util-linux" - -src_unpack() { - cd ${WORKDIR} - unpack ${P}.tar.gz - mv pmud-0.10 ${P} - cd ${S} - patch -p1 < ${FILESDIR}/pmud-file-locations.patch - use X || patch -p1 <${FILESDIR}/pmud-makefile-x-gentoo.diff -} - -src_compile() { - emake CFLAGS="${CFLAGS}" || die -} - -src_install() { - doman pmud.8 snooze.8 fblevel.8 - exeinto /sbin - doexe pmud wakebay snooze fblevel - exeinto /etc/power - doexe ${FILESDIR}/pwrctl{,-local} - exeinto /etc/init.d - newexe ${FILESDIR}/pmud.start pmud - insinto /etc - doins ${FILESDIR}/power.conf - use X && ( \ - doman batmon.8 xmouse.8 - exeinto /usr/bin - doexe Batmon - exeinto /usr/X11R6/bin - doexe xmouse ) -} diff --git a/app-laptop/pmud/pmud-0.10.1-r3.ebuild b/app-laptop/pmud/pmud-0.10.1-r3.ebuild deleted file mode 100644 index f87b6b5ba89a..000000000000 --- a/app-laptop/pmud/pmud-0.10.1-r3.ebuild +++ /dev/null @@ -1,51 +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/pmud/pmud-0.10.1-r3.ebuild,v 1.4 2005/01/01 14:47:46 eradicator Exp $ - -inherit eutils - -DESCRIPTION="PowerMac power management utilities" -HOMEPAGE="http://penguinppc.org/" -SRC_URI="http://linuxppc.jvc.nl/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="-* ~ppc" -IUSE="X" - -DEPEND="virtual/os-headers - X? ( virtual/x11 )" -RDEPEND="sys-apps/util-linux" - -S=${WORKDIR}/${PN}-0.10 - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PV}-deb-fcntl.patch - epatch ${FILESDIR}/pmud-file-locations.patch - use X || epatch ${FILESDIR}/pmud-makefile-x-gentoo.diff -} - -src_compile() { - emake CFLAGS="${CFLAGS}" || die -} - -src_install() { - doman pmud.8 snooze.8 fblevel.8 - into / - dosbin pmud wakebay snooze fblevel || die "dosbin failed" - exeinto /etc/power - doexe ${FILESDIR}/pwrctl{,-local} - exeinto /etc/init.d - newexe ${FILESDIR}/pmud.start pmud - insinto /etc - doins ${FILESDIR}/power.conf - if use X ; then - doman batmon.8 xmouse.8 - into /usr - dobin Batmon || die "Batmon failed" - exeinto /usr/X11R6/bin - doexe xmouse || die "xmouse failed" - fi -} -- 2.26.2