diff options
author | Joshua Charles Campbell <warpzero@gentoo.org> | 2004-03-16 04:52:22 +0000 |
---|---|---|
committer | Joshua Charles Campbell <warpzero@gentoo.org> | 2004-03-16 04:52:22 +0000 |
commit | 5d4a397ab6101e7b39b4cb4bebce07dc2ae28eee (patch) | |
tree | a50cd494ac2934bc45368d23ef6daaf34137efc1 | |
parent | Added ~mips keyword. (diff) | |
download | historical-5d4a397ab6101e7b39b4cb4bebce07dc2ae28eee.tar.gz historical-5d4a397ab6101e7b39b4cb4bebce07dc2ae28eee.tar.bz2 historical-5d4a397ab6101e7b39b4cb4bebce07dc2ae28eee.zip |
app-laptop moves for ppc
53 files changed, 1452 insertions, 0 deletions
diff --git a/app-laptop/gkrellm-pmu/ChangeLog b/app-laptop/gkrellm-pmu/ChangeLog new file mode 100644 index 000000000000..ba61501d6b71 --- /dev/null +++ b/app-laptop/gkrellm-pmu/ChangeLog @@ -0,0 +1,15 @@ +# ChangeLog for x11-plugins/gkrellm-pmu +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/gkrellm-pmu/ChangeLog,v 1.1 2004/03/16 04:47:38 warpzero Exp $ + + 19 Dec 2003; Luca Barbato <lu_zero@gentoo.org> gkrellm-pmu-2.0.ebuild: + sandboxing fix + +*gkrellm-pmu-2.0 (05 Dec 2003) + + 05 Dec 2003; Lars Weiler <pylon@gentoo.org> gkrellm-pmu-2.0.ebuild: + Initial import. + + This GKrellm2-plugin is currently only for Apple-laptop users. This allows + you to control your battery without apm-emulation enabled. + diff --git a/app-laptop/gkrellm-pmu/Manifest b/app-laptop/gkrellm-pmu/Manifest new file mode 100644 index 000000000000..437195d36f9c --- /dev/null +++ b/app-laptop/gkrellm-pmu/Manifest @@ -0,0 +1,4 @@ +MD5 4706d16a1306e1bb5ad9abeac17b63e4 ChangeLog 582 +MD5 8b5ec49c8e67dd0ea6a88066b667e631 gkrellm-pmu-2.0.ebuild 766 +MD5 4b51fbb7e1263dbedfab200b1f34275d metadata.xml 284 +MD5 c70ee0987431b03d783dd7add124c71a files/digest-gkrellm-pmu-2.0 66 diff --git a/app-laptop/gkrellm-pmu/files/digest-gkrellm-pmu-2.0 b/app-laptop/gkrellm-pmu/files/digest-gkrellm-pmu-2.0 new file mode 100644 index 000000000000..8cead30bf002 --- /dev/null +++ b/app-laptop/gkrellm-pmu/files/digest-gkrellm-pmu-2.0 @@ -0,0 +1 @@ +MD5 9a1f815b3ac175ac3cf05744d5c9747e gkrellm-pmu-2.0.tar.gz 84878 diff --git a/app-laptop/gkrellm-pmu/gkrellm-pmu-2.0.ebuild b/app-laptop/gkrellm-pmu/gkrellm-pmu-2.0.ebuild new file mode 100644 index 000000000000..36ddb4b1ea2e --- /dev/null +++ b/app-laptop/gkrellm-pmu/gkrellm-pmu-2.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/gkrellm-pmu/gkrellm-pmu-2.0.ebuild,v 1.1 2004/03/16 04:47:38 warpzero Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="GKrellM2 plugin for battery display on Apple machines" +SRC_URI="http://www.cymes.de/members/joker/projects/gkrellm-pmu/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/gkrellm-pmu/gkrellm-pmu.html" + +DEPEND="=app-admin/gkrellm-2*" + +SLOT="2" +LICENSE="GPL-2" +KEYWORDS="~ppc" + +src_compile() { + econf || die + emake || die +} + +src_install() { + dodir /usr/lib/gkrellm2/plugins + einstall PLUGIN_INSTALL="${D}/usr/lib/gkrellm2/plugins" \ + || die + + dodoc COPYING ChangeLog INSTALL README +} diff --git a/app-laptop/gkrellm-pmu/metadata.xml b/app-laptop/gkrellm-pmu/metadata.xml new file mode 100644 index 000000000000..7278ea19c600 --- /dev/null +++ b/app-laptop/gkrellm-pmu/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ppc</herd> +<maintainer> + <email>pylon@gentoo.org</email> + <name>Lars Weiler</name> + <description>ppc tester</description> +</maintainer> +</pkgmetadata> diff --git a/app-laptop/pbbuttonsd/ChangeLog b/app-laptop/pbbuttonsd/ChangeLog new file mode 100644 index 000000000000..126b893bb5bb --- /dev/null +++ b/app-laptop/pbbuttonsd/ChangeLog @@ -0,0 +1,127 @@ +# ChangeLog for sys-apps/pbbuttonsd +# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/ChangeLog,v 1.1 2004/03/16 04:43:28 warpzero Exp $ + + 15 Mar 2004; Luca Barbato <lu_zero@gentoo.org> pbbuttonsd-0.5.9-r1.ebuild: + Typo in the CONFIG_PROTECT mask fixed + +*pbbuttonsd-0.5.9-r1 (14 Mar 2004) + + 14 Mar 2004; Luca Barbato <lu_zero@gentoo.org> pbbuttonsd-0.5.9-r1.ebuild, + files/pbbuttonsd-compat.patch: + Made sure the library includes are compatible with kmilo + +*pbbuttonsd-0.5.9 (07 Mar 2004) + + 07 Mar 2004; Lars Weiler <pylon@gentoo.org> pbbuttonsd-0.5.9.ebuild: + Version bump. + +*pbbuttonsd-0.5.8 (07 Feb 2004) + + 10 Feb 2004; Mike Frysinger <vapier@gentoo.org> pbbuttonsd.rc6 : + Clean up init.d script. Using start-stop-daemon is a kludge when + the app itself supports daemonizing. + + 07 Feb 2004; Lars Weiler <pylon@gentoo.org> pbbuttonsd-0.5.8.ebuild: + Version bump. + +*pbbuttonsd-0.5.7 (10 Jan 2004) + + 10 Jan 2004; Luca Barbato <lu_zero@gentoo.org> pbbuttonsd-0.5.7.ebuild: + New version, should fix bug #37729 + +*pbbuttonsd-0.5.6-r1 (12 Dec 2003) + + 12 Dec 2003; Luca Barbato <lu_zero@gentoo.org> pbbuttonsd-0.5.6-r1.ebuild, + files/pbbuttonsd.rc5: + Minor changes + + 30 Nov 2003; Luca Barbato <lu_zero@gentoo.org> pbbuttonsd-0.5.6.ebuild: + minor fix + +*pbbuttonsd-0.5.6 (26 Nov 2003) + + 26 Nov 2003; Luca Barbato <lu_zero@gentoo.org> pbbuttonsd-0.5.6.ebuild: + New version + +*pbbuttonsd-0.5.3a (08 May 2003) + + 08 May 2003; Todd Heim <heim@gentoo.org> pbbuttonsd-0.5.3a.ebuild: + version bumped, removed keywords for !ppc archs + +*pbbuttonsd-0.5.2-r1 (17 Dec 2002) + + 24 Feb 2003; Nicholas Wourms <dragon@gentoo.org> pbbuttonsd-0.5.2-r1.ebuild : + This is definitely not for mips. Fixed changelog to work with echangelog. + + 17 Dec 2002; Jon Nall <nall@gentoo.org> pbbuttonsd-0.5.2-r1.ebuild, + files/pbbuttons-0.5.2-replace_pmud.patch : + patched to actually use the pmud replacement code. + +*pbbuttonsd-0.5.2 (17 0ct 2002) + + 14 Mar 2003; Mark Guertin <gerk@gentoo.org> pbbuttonsd-0.5.2-r1.ebuild, + pbbuttonsd-0.5.2.ebuild: + set ppc in keywords + + 24 Feb 2003; Nicholas Wourms <dragon@gentoo.org> pbbuttonsd-0.5.2.ebuild : + This is definitely not for mips. + + 17 Oct 2002; Kain <kain@kain.org> pbbuttonsd-0.5.2.ebuild : + + New ebuild for upstream enhancements and fixes. Pbbuttonsd is no longer + PowerMac only, but I haven't tested this on non-ppc yet. + This is an important update to pbbuttonsd, as its functionality is enhanced + on PPC platforms, and is made more predictable. + +*pbbuttonsd-0.4.10a (28 Jul 2002) + + 24 Feb 2003; Nicholas Wourms <dragon@gentoo.org> pbbuttonsd-0.4.10a.ebuild : + This is definitely not for mips. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + + 28 Jul 2002; Calum Selkirk <cselkirk@gentoo.org> pbbuttonsd-0.4.10a.ebuild : + + New ebuild due to bugfixes upstream. + +*pbbuttonsd-0.4.9-r2 (14 July 2002) + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> pbbuttonsd-0.4.9-r2.ebuild : + Added KEYWORDS. + +*pbbuttonsd-0.4.9-r1 (14 July 2002) + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> pbbuttonsd-0.4.9-r1.ebuild : + Added LICENSE, KEYWORDS, SLOT. + +*pbbuttonsd-0.4.10 (14 July 2002) + + 24 Feb 2003; Nicholas Wourms <dragon@gentoo.org> pbbuttonsd-0.4.10.ebuild : + This is definitely not for mips. + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> pbbuttonsd-0.4.10.ebuild : + Added KEYWORDS. + +*pbbuttons-0.4.10 (Sat Jun 8 11:38:34 EST 2002); gerk <gerk@gentoo.org>: + +June 21 2002 Gerk (gerk@gentoo.org): + + added ARCH checks, no revision bump + +Sat Jun 8 11:38:34 EST 2002; gerk <gerk@gentoo.org>: + Upated for new release + +*pbbuttons-0.4.9-r2 (Mon Jun 3 21:39:42 EST 2002); gerk <gerk@gentoo.org>: + +Mon Jun 3 21:39:42 EST 2002; gerk <gerk@gentoo.org>: + Added init scripts to add to runlevel and set SLOT, LICENSE and + RDEPEND in ebuild. + +*pbbuttons-0.4.9-r1 (Wed May 8 23:28:00 2002 EST); daybird <daybird@gentoo.org>: + +Wed May 8 23:28:00 2002 EST; daybird <daybird@gentoo.org>: + + OK, so this is the second ebuild (forgot the changelog the first time). + It now installs sandbox-safe, and config file goes into /etc, not + /usr/etc (so it willbe protected by config_protect). diff --git a/app-laptop/pbbuttonsd/Manifest b/app-laptop/pbbuttonsd/Manifest new file mode 100644 index 000000000000..b1a80e0a1c51 --- /dev/null +++ b/app-laptop/pbbuttonsd/Manifest @@ -0,0 +1,16 @@ +MD5 18cc8be009eb478b2e9ba0ae4a47b920 pbbuttonsd-0.4.10a.ebuild 1098 +MD5 825949f2a0c96f88f873dd3b065ba120 ChangeLog 4237 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 26307dcbb45dee77a19abdf118251c70 pbbuttonsd-0.5.2-r1.ebuild 1416 +MD5 51172d528f194e1a5122954a8c2bb0aa pbbuttonsd-0.5.9.ebuild 1549 +MD5 401f33be04468f38c28460c64aaf2c92 pbbuttonsd-0.5.8.ebuild 1550 +MD5 92847ffddc4a889aa1721136b7767087 pbbuttonsd-0.5.9-r1.ebuild 1643 +MD5 888adb1c866daaa6c22e23d07c2367b0 files/digest-pbbuttonsd-0.5.9-r1 68 +MD5 56622898666491660d75995555e987fa files/pbbuttons-0.5.2-replace_pmud.patch 715 +MD5 888adb1c866daaa6c22e23d07c2367b0 files/digest-pbbuttonsd-0.5.9 68 +MD5 68d74820f8f82d459c92e4d79eb21e65 files/digest-pbbuttonsd-0.5.8 68 +MD5 7caad5c674bdcca49ab7f2b2dc28a5d7 files/pbbuttonsd.rc6 448 +MD5 459c829a59fb5afde8ec96244abbcd68 files/digest-pbbuttonsd-0.5.2-r1 68 +MD5 831fe80c3eeb273f204b8a41f7ac2810 files/pbbuttonsd-compat.patch 1070 +MD5 41eb0b6f43d411c7cd1572ea07b471b2 files/pbbuttonsd.rc5 507 +MD5 c6901eb0354ffab93115cf7eb49935c8 files/digest-pbbuttonsd-0.4.10a 70 diff --git a/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.4.10a b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.4.10a new file mode 100644 index 000000000000..cd4700362d4b --- /dev/null +++ b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.4.10a @@ -0,0 +1 @@ +MD5 97c5d5888346fcfd865fe517e065f3e7 pbbuttonsd-0.4.10a.tar.gz 178197 diff --git a/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.2-r1 b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.2-r1 new file mode 100644 index 000000000000..d9607b0e05a1 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.2-r1 @@ -0,0 +1 @@ +MD5 b7b5bd0ad2a6ba51f1b8d02ea3d23883 pbbuttonsd-0.5.2.tar.gz 192245 diff --git a/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.8 b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.8 new file mode 100644 index 000000000000..1b6f88e1fc75 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.8 @@ -0,0 +1 @@ +MD5 21d6345a25f09d2b4fe971b8e37e3d8c pbbuttonsd-0.5.8.tar.gz 325214 diff --git a/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.9 b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.9 new file mode 100644 index 000000000000..ad9b715c26f4 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.9 @@ -0,0 +1 @@ +MD5 86bef472e7130012cbde8efdcfb4204e pbbuttonsd-0.5.9.tar.gz 338464 diff --git a/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.9-r1 b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.9-r1 new file mode 100644 index 000000000000..ad9b715c26f4 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/digest-pbbuttonsd-0.5.9-r1 @@ -0,0 +1 @@ +MD5 86bef472e7130012cbde8efdcfb4204e pbbuttonsd-0.5.9.tar.gz 338464 diff --git a/app-laptop/pbbuttonsd/files/pbbuttons-0.5.2-replace_pmud.patch b/app-laptop/pbbuttonsd/files/pbbuttons-0.5.2-replace_pmud.patch new file mode 100644 index 000000000000..ec3f92919851 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/pbbuttons-0.5.2-replace_pmud.patch @@ -0,0 +1,12 @@ +--- src/configfile.c.orig 2002-12-17 21:07:53.000000000 -0600 ++++ src/configfile.c 2002-12-17 21:07:56.000000000 -0600 +@@ -93,7 +93,8 @@ + { "TPModeUpKey", TAG_TPMODEUPKEY, TAG_TPMODEUPMOD, cft_read_key }, + { "TPModeDownKey", TAG_TPMODEDOWNKEY, TAG_TPMODEDOWNMOD, cft_read_key }, + { "TPMode", TAG_TPMODE, 0, cft_read_tpmode }, +- { "KBDMode", TAG_KBDMODE, 0, cft_read_kbdmode }}; ++ { "KBDMode", TAG_KBDMODE, 0, cft_read_kbdmode }, ++ { "replace_pmud", TAG_REPLACEPMUD, 0, cft_read_bool}}; + + if ((stat(configfile, &stat_buf)) == -1) { + print_error (_("WARNING: Couldn't read configfile [%s, %s], using defaults.\n"), configfile, strerror(errno)); diff --git a/app-laptop/pbbuttonsd/files/pbbuttonsd-compat.patch b/app-laptop/pbbuttonsd/files/pbbuttonsd-compat.patch new file mode 100644 index 000000000000..bdb30420a8cb --- /dev/null +++ b/app-laptop/pbbuttonsd/files/pbbuttonsd-compat.patch @@ -0,0 +1,24 @@ +diff -ruN pbbuttonsd-0.5.9.orig/libpbbipc/pbbtags.h pbbuttonsd-0.5.9/libpbbipc/pbbtags.h +--- pbbuttonsd-0.5.9.orig/libpbbipc/pbbtags.h 2004-03-14 01:24:23.000000000 +0100 ++++ pbbuttonsd-0.5.9/libpbbipc/pbbtags.h 2004-03-14 02:55:42.533286776 +0100 +@@ -92,6 +92,20 @@ + #define TAG_BLANKFRAMEBUFFER MOD_DISPLAY | 9 + #define TAG_DIMFULLYDARK MOD_DISPLAY | 11 + ++/* Compatibility tags, needed by kmilo and possibly other programs */ ++#define TAG_BRIGHTNESSUPKEY MOD_DISPLAY | 1 ++#define TAG_BRIGHTNESSUPMOD MOD_DISPLAY | 2 ++#define TAG_BRIGHTNESSDOWNKEY MOD_DISPLAY | 3 ++#define TAG_BRIGHTNESSDOWNMOD MOD_DISPLAY | 4 ++#define TAG_BRIGHTNESS MOD_DISPLAY | 5 ++#define TAG_BRIGHTNESSOP MOD_DISPLAY | FLG_PRIVATE | 6 ++#define TAG_BRIGHTNESSMAX MOD_DISPLAY | 7 ++#define TAG_FRAMEBUFFERDEVICE MOD_DISPLAY | FLG_STRING | 8 ++#define TAG_BLANKFRAMEBUFFER MOD_DISPLAY | 9 ++#define TAG_FADINGSPEED MOD_DISPLAY | 10 ++#define TAG_DIMFULLYDARK MOD_DISPLAY | 11 ++ ++ + #define MOD_MIXER 5 << 16 + #define TAG_MIXERDEVICE MOD_MIXER | FLG_STRING | 1 + #define TAG_VOLUMEUPKEY MOD_MIXER | 2 diff --git a/app-laptop/pbbuttonsd/files/pbbuttonsd.rc5 b/app-laptop/pbbuttonsd/files/pbbuttonsd.rc5 new file mode 100644 index 000000000000..eeb7d981e8a9 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/pbbuttonsd.rc5 @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/files/pbbuttonsd.rc5,v 1.1 2004/03/16 04:43:28 warpzero Exp $ + +start() { + ebegin "Starting pbbuttonsd" + start-stop-daemon --start --quiet --exec /usr/bin/pbbuttonsd -- -d \ + /var/run/pbbuttonsd.pid + eend $? +} + +stop() { + ebegin "Stopping pbbuttonsd" + start-stop-daemon --stop --quiet --exec /usr/bin/pbbuttonsd + eend $? +} diff --git a/app-laptop/pbbuttonsd/files/pbbuttonsd.rc6 b/app-laptop/pbbuttonsd/files/pbbuttonsd.rc6 new file mode 100644 index 000000000000..0223ad8482c6 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/pbbuttonsd.rc6 @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/files/pbbuttonsd.rc6,v 1.1 2004/03/16 04:43:29 warpzero Exp $ + +start() { + ebegin "Starting pbbuttonsd" + /usr/bin/pbbuttonsd -d > /dev/null + eend $? +} + +stop() { + ebegin "Stopping pbbuttonsd" + start-stop-daemon --stop --quiet --exec /usr/bin/pbbuttonsd + eend $? +} diff --git a/app-laptop/pbbuttonsd/metadata.xml b/app-laptop/pbbuttonsd/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/app-laptop/pbbuttonsd/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.4.10a.ebuild b/app-laptop/pbbuttonsd/pbbuttonsd-0.4.10a.ebuild new file mode 100644 index 000000000000..ecf4b9c7693f --- /dev/null +++ b/app-laptop/pbbuttonsd/pbbuttonsd-0.4.10a.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.4.10a.ebuild,v 1.1 2004/03/16 04:43:28 warpzero Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="PBButtons is a PPC-only program to map special Powerbook/iBook keys in Linux" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +KEYWORDS="ppc -x86 -amd64 -alpha -hppa -mips -sparc" +DEPEND="virtual/glibc" +RDEPEND="" +SLOT=0 +LICENSE="GPL-2" + +pkg_setup() { + if [ ${ARCH} != "ppc" ] ; then + eerror "Sorry, this is a PPC only package." + die "Sorry, this as a PPC only pacakge." + fi +} + +src_compile() { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc || die "sorry, ppc-only package" + make || die "sorry, failed to compile pbbuttons" +} + +src_install() { + + make sysconfdir=${D}/etc DESTDIR=${D} install || die "failed to install" + exeinto /etc/init.d ; newexe ${FILESDIR}/pbbuttonsd.rc5 pbbuttonsd + dodoc README COPYING + +} diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild b/app-laptop/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild new file mode 100644 index 000000000000..f29f60896e2a --- /dev/null +++ b/app-laptop/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild,v 1.1 2004/03/16 04:43:28 warpzero Exp $ + +inherit eutils + +S=${WORKDIR}/${P} +DESCRIPTION="PBButtons is a program to map special Powerbook/iBook keys in Linux" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +KEYWORDS="ppc" +DEPEND="virtual/glibc" +RDEPEND="" +SLOT=0 +LICENSE="GPL-2" + +src_unpack() { + unpack ${A} + cd ${S} + + einfo "Patching in fix to enable replace_pmud support" + epatch ${FILESDIR}/pbbuttons-0.5.2-replace_pmud.patch + +} + +src_compile() { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc || die "sorry, pbbuttons configure failed" + make || die "sorry, failed to compile pbbuttons" +} + +src_install() { + + dodir /etc/power + make sysconfdir=${D}/etc DESTDIR=${D} install || die "failed to install" + exeinto /etc/init.d ; newexe ${FILESDIR}/pbbuttonsd.rc5 pbbuttonsd + dodoc README COPYING + +} + +src_postinstall(){ + einfo "This version of pbbuttonsd can replace PMUD functionality." + einfo "If you want PMUD installed and running, you should set" + einfo "replace_pmud=no in /etc/pbbuttonsd.conf. Otherwise you can" + einfo "try setting replace_pmud=yes in /etc/pbbuttonsd.conf and" + einfo "disabling PMUD" +} diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.5.8.ebuild b/app-laptop/pbbuttonsd/pbbuttonsd-0.5.8.ebuild new file mode 100644 index 000000000000..feb62385ecb1 --- /dev/null +++ b/app-laptop/pbbuttonsd/pbbuttonsd-0.5.8.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.5.8.ebuild,v 1.1 2004/03/16 04:43:28 warpzero Exp $ + +DESCRIPTION="program to map special Powerbook/iBook keys in Linux" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~ppc" + +DEPEND="virtual/glibc + >=sys-apps/baselayout-1.8.6.12-r1" +RDEPEND="" + +src_compile() { + econf || die + make || die "compile failed" +} + +src_install() { + local mydir=/var/lib + dodir /etc/power + make \ + sysconfdir=${D}/etc \ + localstatedir=${D}/${mydir} \ + DESTDIR=${D} \ + install \ + || die "failed to install" + exeinto /etc/init.d + newexe ${FILESDIR}/pbbuttonsd.rc6 pbbuttonsd + dodoc README COPYING + #fix the symlink + rm ${D}/etc/pbbuttonsd.conf +# mv ${D}/var/lib/pbbuttons/pbbuttonsd.conf ${D}/etc/pbbuttonsd.conf +# dosym /etc/pbbuttonsd.conf /var/lib/pbbuttons/pbbuttonsd.conf + dosym ${mydir}/pbbuttons/pbbuttonsd.conf /etc/pbbuttonsd.conf + dodir /etc/env.d + echo "CONFIG_PROTECT=${mydir}/pbbuttons" > ${D}/etc/env.d/10pbbuttonsd +} + +pkg_postinst(){ + einfo "This version of pbbuttonsd can replace PMUD functionality." + einfo "If you want PMUD installed and running, you should set" + einfo "replace_pmud=no in /etc/pbbuttonsd.conf. Otherwise you can" + einfo "try setting replace_pmud=yes in /etc/pbbuttonsd.conf and" + einfo "disabling PMUD" +} diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.5.9-r1.ebuild b/app-laptop/pbbuttonsd/pbbuttonsd-0.5.9-r1.ebuild new file mode 100644 index 000000000000..cf484f74e49c --- /dev/null +++ b/app-laptop/pbbuttonsd/pbbuttonsd-0.5.9-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.5.9-r1.ebuild,v 1.1 2004/03/16 04:43:28 warpzero Exp $ + +inherit eutils +DESCRIPTION="program to map special Powerbook/iBook keys in Linux" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~ppc" + +DEPEND="virtual/glibc + >=sys-apps/baselayout-1.8.6.12-r1" +RDEPEND="" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/pbbuttonsd-compat.patch +} + +src_compile() { + econf || die + make || die "compile failed" +} + +src_install() { + local mydir=/var/lib + dodir /etc/power + make \ + sysconfdir=${D}/etc \ + localstatedir=${D}/${mydir} \ + DESTDIR=${D} \ + install \ + || die "failed to install" + exeinto /etc/init.d + newexe ${FILESDIR}/pbbuttonsd.rc6 pbbuttonsd + dodoc README COPYING + #fix the symlink + rm ${D}/etc/pbbuttonsd.conf +# mv ${D}/var/lib/pbbuttons/pbbuttonsd.conf ${D}/etc/pbbuttonsd.conf +# dosym /etc/pbbuttonsd.conf /var/lib/pbbuttons/pbbuttonsd.conf + dosym ${mydir}/pbbuttons/pbbuttonsd.conf /etc/pbbuttonsd.conf + dodir /etc/env.d + echo "CONFIG_PROTECT=${mydir}/pbbuttons" > ${D}/etc/env.d/10pbbuttonsd +} + +pkg_postinst(){ + einfo "This version of pbbuttonsd can replace PMUD functionality." + einfo "If you want PMUD installed and running, you should set" + einfo "replace_pmud=no in /etc/pbbuttonsd.conf. Otherwise you can" + einfo "try setting replace_pmud=yes in /etc/pbbuttonsd.conf and" + einfo "disabling PMUD" +} diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.5.9.ebuild b/app-laptop/pbbuttonsd/pbbuttonsd-0.5.9.ebuild new file mode 100644 index 000000000000..4e87d9970d95 --- /dev/null +++ b/app-laptop/pbbuttonsd/pbbuttonsd-0.5.9.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.5.9.ebuild,v 1.1 2004/03/16 04:43:28 warpzero Exp $ + +DESCRIPTION="program to map special Powerbook/iBook keys in Linux" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~ppc" + +DEPEND="virtual/glibc + >=sys-apps/baselayout-1.8.6.12-r1" +RDEPEND="" + +src_compile() { + econf || die + make || die "compile failed" +} + +src_install() { + local mydir=/var/lib + dodir /etc/power + make \ + sysconfdir=${D}/etc \ + localstatedir=${D}/${mydir} \ + DESTDIR=${D} \ + install \ + || die "failed to install" + exeinto /etc/init.d + newexe ${FILESDIR}/pbbuttonsd.rc6 pbbuttonsd + dodoc README COPYING + #fix the symlink + rm ${D}/etc/pbbuttonsd.conf +# mv ${D}/var/lib/pbbuttons/pbbuttonsd.conf ${D}/etc/pbbuttonsd.conf +# dosym /etc/pbbuttonsd.conf /var/lib/pbbuttons/pbbuttonsd.conf + dosym ${mydir}/pbbuttons/pbbuttonsd.conf /etc/pbbuttonsd.conf + dodir /etc/env.d + echo "CONFIG_PROTECT=${mydir}/pbbuttonsd" > ${D}/etc/env.d/10pbbuttonsd +} + +pkg_postinst(){ + einfo "This version of pbbuttonsd can replace PMUD functionality." + einfo "If you want PMUD installed and running, you should set" + einfo "replace_pmud=no in /etc/pbbuttonsd.conf. Otherwise you can" + einfo "try setting replace_pmud=yes in /etc/pbbuttonsd.conf and" + einfo "disabling PMUD" +} diff --git a/app-laptop/pmud/ChangeLog b/app-laptop/pmud/ChangeLog new file mode 100644 index 000000000000..6d339ee64c8a --- /dev/null +++ b/app-laptop/pmud/ChangeLog @@ -0,0 +1,54 @@ +# ChangeLog for sys-apps/pmud +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Id: ChangeLog,v 1.1 2004/03/16 04:50:41 warpzero Exp $ + +*pmud-0.10.1-r3 (04 Mar 2004) + + 04 Mar 2004; Mike Frysinger <vapier@gentoo.org> : + Add a debian patch #39132 by Colin Leroy. + +*pmud-0.10.1-r2 (14 July 2002) + + 24 Feb 2003; Nicholas Wourms <dragon@gentoo.org> pmud-0.10.1-r1.ebuild pmud-0.10.1-r2.ebuild : + This is definitely not for mips. + + 1 Aug 2002; Calum Selkirk <cselkirk@gentoo.org> 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 <cselkirk@gentoo.org> files/pmud.start + Also redirected stder & stdout to /dev/null on stop(). + + 19 Jul 2002; Mark Guertin <gerk@gentoo.org> 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 <gerk@gentoo.org> : + 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 <phoenix@gentoo.org> pmud-0.10.1-r2.ebuild : + Added LICENSE, KEYWORDS, SLOT. + +*pmud-0.10-r2 <kain@kain.org> ChangeLog: + + Mon Apr 29 10:12 2002 CST; kain <kain@kain.org> + Fixed the format of the X dependency line in pmud-0.10.1-r1.ebuild + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> pmud-0.10.1-r1.ebuild : + Added LICENSE, KEYWORDS, SLOT. + +*pmud-0.10-r1 <pvdabeel@gentoo.org> ChangeLog: + + Mon Apr 29 23:15:43 2002 CEST; pvdabeel <pvdabeel@gentoo.org> + Bug #2238: added pmud-makefile-x-gentoo.diff, new version + +*pmud-0.10.1 <kain@kain.org> ChangeLog: + + Sat, 13 Apr 2002 23:04:14 -0500; kain <kain@kain.org> 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 new file mode 100644 index 000000000000..3e58215eca57 --- /dev/null +++ b/app-laptop/pmud/Manifest @@ -0,0 +1,12 @@ +MD5 00230635eb2ed101ec474ced7d82f7ed pmud-0.10.1-r2.ebuild 1164 +MD5 eea4c8a7b838135a6639cfbb5897d1cd pmud-0.10.1-r1.ebuild 1145 +MD5 c58ca5eef49b59b77a9261f50bf65465 ChangeLog 1981 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 f056db07040f37f07402f93828875cf8 files/pmud-makefile-x-gentoo.diff 699 +MD5 0b3d50c84748990675bd8da75fefa048 files/power.conf 1611 +MD5 a57669b9dcce4c8408ff2843ae91d7b6 files/digest-pmud-0.10.1-r1 62 +MD5 a57669b9dcce4c8408ff2843ae91d7b6 files/digest-pmud-0.10.1-r2 62 +MD5 1ab85cee19ba581fa19d0f5129c9f3f6 files/pmud-file-locations.patch 373 +MD5 6b2d50c8a8e8a8ce7faf9e40e143b58d files/pwrctl 8346 +MD5 662a7c81417a4dbf37f22a9a33953ec4 files/pwrctl-local 2658 +MD5 76106f4bd3c4aafd34d38b5b17757d20 files/pmud.start 582 diff --git a/app-laptop/pmud/files/0.10.1-deb-fcntl.patch b/app-laptop/pmud/files/0.10.1-deb-fcntl.patch new file mode 100644 index 000000000000..21e5f0d1ab06 --- /dev/null +++ b/app-laptop/pmud/files/0.10.1-deb-fcntl.patch @@ -0,0 +1,28 @@ +--- 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 new file mode 100644 index 000000000000..777c71bda40a --- /dev/null +++ b/app-laptop/pmud/files/digest-pmud-0.10.1-r2 @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000000..777c71bda40a --- /dev/null +++ b/app-laptop/pmud/files/digest-pmud-0.10.1-r3 @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000000..748deae69919 --- /dev/null +++ b/app-laptop/pmud/files/pmud-file-locations.patch @@ -0,0 +1,13 @@ +--- 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 new file mode 100644 index 000000000000..5015bf4a37cd --- /dev/null +++ b/app-laptop/pmud/files/pmud-makefile-x-gentoo.diff @@ -0,0 +1,21 @@ +--- 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 new file mode 100644 index 000000000000..dfc3a8c01420 --- /dev/null +++ b/app-laptop/pmud/files/pmud.start @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pmud/files/pmud.start,v 1.1 2004/03/16 04:50:41 warpzero 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 new file mode 100644 index 000000000000..51ca6f7b9742 --- /dev/null +++ b/app-laptop/pmud/files/power.conf @@ -0,0 +1,31 @@ +# ----------------------------------------------------------------------------- +# 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 <facility>: use <facility> for syslogd(8) messages. +# -h : this text. +# -k : do not detect lid close +# -K : do not detect lid close when on AC\n" +# -l <seconds> : the numbers of <seconds> power left which +# is considered to be a critical low level. +# -m <seconds> : the number of <seconds> 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 <port> : listen on <port> 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 new file mode 100644 index 000000000000..d3f73ab5de57 --- /dev/null +++ b/app-laptop/pmud/files/pwrctl @@ -0,0 +1,297 @@ +#!/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 new file mode 100644 index 000000000000..895bfde7a489 --- /dev/null +++ b/app-laptop/pmud/files/pwrctl-local @@ -0,0 +1,88 @@ +#!/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 new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/app-laptop/pmud/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/app-laptop/pmud/pmud-0.10.1-r2.ebuild b/app-laptop/pmud/pmud-0.10.1-r2.ebuild new file mode 100644 index 000000000000..39ca877d80e5 --- /dev/null +++ b/app-laptop/pmud/pmud-0.10.1-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# 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.1 2004/03/16 04:50:41 warpzero Exp $ + +IUSE="X" + +S=${WORKDIR}/${P} + +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="sys-kernel/linux-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 new file mode 100644 index 000000000000..439fcafd6c35 --- /dev/null +++ b/app-laptop/pmud/pmud-0.10.1-r3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# 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.1 2004/03/16 04:50:41 warpzero 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="sys-kernel/linux-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 +} diff --git a/app-laptop/powerprefs/ChangeLog b/app-laptop/powerprefs/ChangeLog new file mode 100644 index 000000000000..7e8d5044f270 --- /dev/null +++ b/app-laptop/powerprefs/ChangeLog @@ -0,0 +1,43 @@ +# ChangeLog for sys-apps/powerprefs +# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/powerprefs/ChangeLog,v 1.1 2004/03/16 04:52:22 warpzero Exp $ + +*powerprefs-0.4.3 (07 Feb 2004) + + 07 Feb 2004; Lars Weiler <pylon@gentoo.org> powerprefs-0.4.3.ebuild: + Version bump + + 15 Dec 2003; Luca Barbato <lu_zero@gentoo.org> powerprefs-0.3.1.ebuild: + dep fixed + +*powerprefs-0.4.2 (26 Nov 2003) + + 26 Nov 2003; Luca Barbato <lu_zero@gentoo.org> powerprefs-0.4.2.ebuild: + New version + + 22 Jun 2003; <rac@gentoo.org> powerprefs-0.2.1.ebuild, + powerprefs-0.2.ebuild, powerprefs-0.3.1.ebuild: + emergency keyword fix + + 30 Apr 2003; Graham Forest <vladimir@gentoo.org> powerprefs-0.3.1.ebuild: + Set stable on ppc to match pbbuttonsd version + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + +*powerprefs-0.3.1 (17 Oct 2002) + + 17 Oct 2002; Kain <kain@kain.org> powerprefs-0.3.1.ebuild : + + This is a powerprefs update to bring us up-to-date with pbbuttonsd-0.5+. + +*powerprefs-0.2.1 - June 21 2002 Gerk (gerk@gentoo.org) + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> powerprefs-0.2.ebuild : + Added LICENSE, KEYWORDS, SLOT. + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> powerprefs-0.2.1.ebuild : + Added KEYWORDS. + added ARCH check, no revision bump + +*powerprefs-0.2.1 (08 Jun 2002) + Updated build for new vendor release - Gerk diff --git a/app-laptop/powerprefs/Manifest b/app-laptop/powerprefs/Manifest new file mode 100644 index 000000000000..0251f60914f9 --- /dev/null +++ b/app-laptop/powerprefs/Manifest @@ -0,0 +1,12 @@ +MD5 25e236a681d9692cfd91dcad43414116 ChangeLog 1422 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 32bea1dab68df261f46cd489c5ef0d9a powerprefs-0.2.1.ebuild 1064 +MD5 2ab2eaa979eb8455f17f9f29b51476c9 powerprefs-0.2.ebuild 908 +MD5 b227eb780edd46b65d4e789d81a27e77 powerprefs-0.3.1.ebuild 933 +MD5 1fa7a85fb2f4568655f960725d49eda0 powerprefs-0.4.2.ebuild 933 +MD5 08c9a4b792aeebb1fa82e72dfdaa4563 powerprefs-0.4.3.ebuild 931 +MD5 f2caefb8a6164c82f500def610cd7a2b files/digest-powerprefs-0.2 66 +MD5 4d7efecc2d3edef1639991bd93ad56b5 files/digest-powerprefs-0.2.1 68 +MD5 a1d22a3aeefca73d294744b4f77a87fa files/digest-powerprefs-0.3.1 68 +MD5 f70e6e6e96fe225537b346a47c7447ba files/digest-powerprefs-0.4.2 68 +MD5 04159fdc3ffffdf2f61147c5826889dc files/digest-powerprefs-0.4.3 68 diff --git a/app-laptop/powerprefs/files/digest-powerprefs-0.2 b/app-laptop/powerprefs/files/digest-powerprefs-0.2 new file mode 100644 index 000000000000..d875bfb605ef --- /dev/null +++ b/app-laptop/powerprefs/files/digest-powerprefs-0.2 @@ -0,0 +1 @@ +MD5 2280ca06aec34256aa33d2798019517f powerprefs-0.2.tar.gz 171785 diff --git a/app-laptop/powerprefs/files/digest-powerprefs-0.2.1 b/app-laptop/powerprefs/files/digest-powerprefs-0.2.1 new file mode 100644 index 000000000000..643106530d8f --- /dev/null +++ b/app-laptop/powerprefs/files/digest-powerprefs-0.2.1 @@ -0,0 +1 @@ +MD5 83683bd17aa02f789c5c5671f5712462 powerprefs-0.2.1.tar.gz 172135 diff --git a/app-laptop/powerprefs/files/digest-powerprefs-0.3.1 b/app-laptop/powerprefs/files/digest-powerprefs-0.3.1 new file mode 100644 index 000000000000..62119ddfd0a4 --- /dev/null +++ b/app-laptop/powerprefs/files/digest-powerprefs-0.3.1 @@ -0,0 +1 @@ +MD5 e86e17195e25ec1b22c121e5c9fd8a90 powerprefs-0.3.1.tar.gz 171658 diff --git a/app-laptop/powerprefs/files/digest-powerprefs-0.4.2 b/app-laptop/powerprefs/files/digest-powerprefs-0.4.2 new file mode 100644 index 000000000000..9c8d277efe16 --- /dev/null +++ b/app-laptop/powerprefs/files/digest-powerprefs-0.4.2 @@ -0,0 +1 @@ +MD5 f57c9c00ba4417877e1a1504521ef37d powerprefs-0.4.2.tar.gz 162865 diff --git a/app-laptop/powerprefs/files/digest-powerprefs-0.4.3 b/app-laptop/powerprefs/files/digest-powerprefs-0.4.3 new file mode 100644 index 000000000000..0a3f28afd46c --- /dev/null +++ b/app-laptop/powerprefs/files/digest-powerprefs-0.4.3 @@ -0,0 +1 @@ +MD5 0141b5bd8863d8046c1bf61879cbb4cf powerprefs-0.4.3.tar.gz 173075 diff --git a/app-laptop/powerprefs/metadata.xml b/app-laptop/powerprefs/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/app-laptop/powerprefs/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/app-laptop/powerprefs/powerprefs-0.2.1.ebuild b/app-laptop/powerprefs/powerprefs-0.2.1.ebuild new file mode 100644 index 000000000000..23a75ed347db --- /dev/null +++ b/app-laptop/powerprefs/powerprefs-0.2.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/powerprefs/powerprefs-0.2.1.ebuild,v 1.1 2004/03/16 04:52:22 warpzero Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="powerprefs is a PPC-only program to interface with special Powerbook/iBook keys in Linux" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +KEYWORDS="ppc" +SLOT="0" +LICENSE="GPL-2" +DEPEND="x11-libs/gtk+" +RDEPEND="app-laptop/pbbuttonsd" + +pkg_setup() { + if [ ${ARCH} != "ppc" ] ; then + eerror "Sorry, this is a PPC only package." + die "Sorry, this as a PPC only pacakge." + fi +} + +src_compile() { + + ./configure --prefix=/usr || die "sorry, ppc-only package" + make || die "sorry, powerprefs compile failed" +} + +src_install() { + + make \ + prefix=${D}/usr \ + mandir={D}/usr/share/man \ + infodir={D}/usr/share/info \ + install || die "sorry, failed to install powerprefs" + + dodoc README COPYING + +} diff --git a/app-laptop/powerprefs/powerprefs-0.2.ebuild b/app-laptop/powerprefs/powerprefs-0.2.ebuild new file mode 100644 index 000000000000..0658b7f84777 --- /dev/null +++ b/app-laptop/powerprefs/powerprefs-0.2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/powerprefs/powerprefs-0.2.ebuild,v 1.1 2004/03/16 04:52:22 warpzero Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="powerprefs is a PPC-only program to interface with special Powerbook/iBook keys in Linux" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +KEYWORDS="ppc" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="x11-libs/gtk+ app-laptop/pbbuttonsd" + +src_compile() { + ./configure --prefix=/usr || die "sorry, ppc-only package" + make || die "sorry, powerprefs compile failed" +} + +src_install() { + make \ + prefix=${D}/usr \ + mandir={D}/usr/share/man \ + infodir={D}/usr/share/info \ + install || die "sorry, failed to install powerprefs" + + dodoc README COPYING +} diff --git a/app-laptop/powerprefs/powerprefs-0.3.1.ebuild b/app-laptop/powerprefs/powerprefs-0.3.1.ebuild new file mode 100644 index 000000000000..fb28054e49e1 --- /dev/null +++ b/app-laptop/powerprefs/powerprefs-0.3.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/powerprefs/powerprefs-0.3.1.ebuild,v 1.1 2004/03/16 04:52:22 warpzero Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="powerprefs is a program to interface with pbbuttonsd (Powerbook/iBook) keys in Linux" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +KEYWORDS="ppc" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="=x11-libs/gtk+-1.2* + >=app-laptop/pbbuttonsd-0.5" + +src_compile() { + ./configure --prefix=/usr || die "sorry, powerprefs configure failed" + make || die "sorry, powerprefs compile failed" +} + +src_install() { + make \ + prefix=${D}/usr \ + mandir={D}/usr/share/man \ + infodir={D}/usr/share/info \ + install || die "sorry, failed to install powerprefs" + + dodoc README COPYING +} diff --git a/app-laptop/powerprefs/powerprefs-0.4.2.ebuild b/app-laptop/powerprefs/powerprefs-0.4.2.ebuild new file mode 100644 index 000000000000..ca4f912be7f4 --- /dev/null +++ b/app-laptop/powerprefs/powerprefs-0.4.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/powerprefs/powerprefs-0.4.2.ebuild,v 1.1 2004/03/16 04:52:22 warpzero Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="powerprefs is a program to interface with pbbuttonsd (Powerbook/iBook) keys in Linux" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +KEYWORDS="~ppc" +SLOT="0" +LICENSE="GPL-2" + +DEPEND=">=x11-libs/gtk+-2.0 + >=app-laptop/pbbuttonsd-0.5" + +src_compile() { + ./configure --prefix=/usr || die "sorry, powerprefs configure failed" + make || die "sorry, powerprefs compile failed" +} + +src_install() { + make \ + prefix=${D}/usr \ + mandir={D}/usr/share/man \ + infodir={D}/usr/share/info \ + install || die "sorry, failed to install powerprefs" + + dodoc README COPYING +} diff --git a/app-laptop/powerprefs/powerprefs-0.4.3.ebuild b/app-laptop/powerprefs/powerprefs-0.4.3.ebuild new file mode 100644 index 000000000000..44c3a6e3c7d9 --- /dev/null +++ b/app-laptop/powerprefs/powerprefs-0.4.3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/powerprefs/powerprefs-0.4.3.ebuild,v 1.1 2004/03/16 04:52:22 warpzero Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="powerprefs is a program to interface with pbbuttonsd (Powerbook/iBook) keys in Linux" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +KEYWORDS="~ppc" +SLOT="0" +LICENSE="GPL-2" + +DEPEND=">=x11-libs/gtk+-2.0 + >=app-laptop/pbbuttonsd-0.5" + +src_compile() { + ./configure --prefix=/usr || die "sorry, powerprefs configure failed" + make || die "sorry, powerprefs compile failed" +} + +src_install() { + make \ + prefix=${D}/usr \ + mandir={D}/usr/share/man \ + infodir={D}/usr/share/info \ + install || die "sorry, failed to install powerprefs" + + dodoc README COPYING +} diff --git a/app-laptop/wmbatppc/ChangeLog b/app-laptop/wmbatppc/ChangeLog new file mode 100644 index 000000000000..1c566832e43d --- /dev/null +++ b/app-laptop/wmbatppc/ChangeLog @@ -0,0 +1,17 @@ +# ChangeLog for x11-plugins/wmbatppc +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/wmbatppc/ChangeLog,v 1.1 2004/03/16 04:45:54 warpzero Exp $ + + 04 Jan 2004; Daniel Ahlberg <aliz@gentoo.org> wmbatppc-1.0-r1.ebuild: + This seems to be ppc only, not for amd64 + +*wmbatppc-1.0-r1 (04 Jun 2002) + + 29 Aug 2002; Seemant Kulleen <seemant@gentoo.org> * : + + Relocated to x11-plugins + + 04 Jun 2002; Olivier Reisch <doctomoe@gentoo.org> wmbatppc-1.0-r1.ebuild: + + Initial release of the wmbatppc ebuild. Thanks to theim@umd.umich.edu + (Todd Heim) who contributed this ebuild. diff --git a/app-laptop/wmbatppc/Manifest b/app-laptop/wmbatppc/Manifest new file mode 100644 index 000000000000..6f93fbb614b6 --- /dev/null +++ b/app-laptop/wmbatppc/Manifest @@ -0,0 +1,3 @@ +MD5 728008018b30c05af58fb107acf883dd wmbatppc-1.0-r1.ebuild 644 +MD5 43a37c2717e582b9dbc8c4c2d252df41 ChangeLog 645 +MD5 1c36fba32a1054874bc4086e7445478e files/digest-wmbatppc-1.0-r1 63 diff --git a/app-laptop/wmbatppc/files/digest-wmbatppc-1.0-r1 b/app-laptop/wmbatppc/files/digest-wmbatppc-1.0-r1 new file mode 100644 index 000000000000..6195afc82742 --- /dev/null +++ b/app-laptop/wmbatppc/files/digest-wmbatppc-1.0-r1 @@ -0,0 +1 @@ +MD5 2c0bdeed382993fc1d6f66814dc322ba wmbatppc-1.0.tar.gz 32645 diff --git a/app-laptop/wmbatppc/wmbatppc-1.0-r1.ebuild b/app-laptop/wmbatppc/wmbatppc-1.0-r1.ebuild new file mode 100644 index 000000000000..8ce051ffacee --- /dev/null +++ b/app-laptop/wmbatppc/wmbatppc-1.0-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/wmbatppc/wmbatppc-1.0-r1.ebuild,v 1.1 2004/03/16 04:45:54 warpzero Exp $ + +S=${WORKDIR}/wmbatppc +DESCRIPTION="wmbatppc is a small battery-monitoring dockapp. It works on G3/G4 Powerbooks and iBooks." +SRC_URI="http://titelou.free.fr/wmbatppc/${P}.tar.gz" +HOMEPAGE="http://titelou.free.fr/wmbatppc/" + +DEPEND="virtual/x11 + app-laptop/pmud" + +SLOT="1" +LICENSE="GPL-2" +KEYWORDS="ppc -amd64" + +src_compile() { + make || die +} + +src_install () { + dodir /usr/bin/ + dobin wmbatppc + doman wmbatppc.1 +} |