summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johanson <latexer@gentoo.org>2004-03-08 05:30:10 +0000
committerPeter Johanson <latexer@gentoo.org>2004-03-08 05:30:10 +0000
commit4a6f245bf4306e37d7adc071b369d211b0131111 (patch)
tree673ebaf113ea344e5355a454aa7893ca0b817110 /app-laptop
parentMoved i8kutils to app-laptop (diff)
downloadgentoo-2-4a6f245bf4306e37d7adc071b369d211b0131111.tar.gz
gentoo-2-4a6f245bf4306e37d7adc071b369d211b0131111.tar.bz2
gentoo-2-4a6f245bf4306e37d7adc071b369d211b0131111.zip
Moved to app-laptop
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/i8kutils/ChangeLog23
-rw-r--r--app-laptop/i8kutils/files/digest-i8kutils-1.171
-rw-r--r--app-laptop/i8kutils/files/digest-i8kutils-1.17-r11
-rw-r--r--app-laptop/i8kutils/files/i8k.conf31
-rw-r--r--app-laptop/i8kutils/files/i8k.init47
-rw-r--r--app-laptop/i8kutils/i8kutils-1.17-r1.ebuild41
-rw-r--r--app-laptop/i8kutils/i8kutils-1.17.ebuild35
-rw-r--r--app-laptop/i8kutils/metadata.xml5
8 files changed, 184 insertions, 0 deletions
diff --git a/app-laptop/i8kutils/ChangeLog b/app-laptop/i8kutils/ChangeLog
new file mode 100644
index 000000000000..ef8c236b9fe6
--- /dev/null
+++ b/app-laptop/i8kutils/ChangeLog
@@ -0,0 +1,23 @@
+# ChangeLog for sys-apps/i8kutils
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/i8kutils/ChangeLog,v 1.1 2004/03/08 05:28:47 latexer Exp $
+
+*i8kutils-1.17 (08 Mar 2004)
+
+ 08 Mar 2004; Peter Johanson <latexer@gentoo.org> i8kutils-1.17-r1.ebuild,
+ i8kutils-1.17.ebuild, metadata.xml, files/i8k.conf, files/i8k.init:
+ Moved to app-laptop from sys-apps
+
+*i8kutils-1.17-r1 (04 Dec 2003)
+
+ 04 Dec 2003; Hanno Boeck <hanno@gentoo.org> i8kutils-1.17-r1.ebuild,
+ files/i8k.conf, files/i8k.init:
+ init-script added (thanks to Frank Szczerba in bug #17022).
+
+*i8kutils-1.17 (08 Nov 2002)
+
+ 24 Feb 2003; Nicholas Wourms <dragon@gentoo.org> i8kutils-1.17.ebuild :
+ This is definitely not for mips.
+
+ 08 Nov 2002; Hanno Boeck <hanno@gentoo.org> i8kutils-1.17.ebuild :
+ Added i8kutils-ebuild. Resolves bug #4628.
diff --git a/app-laptop/i8kutils/files/digest-i8kutils-1.17 b/app-laptop/i8kutils/files/digest-i8kutils-1.17
new file mode 100644
index 000000000000..9fbe24332c88
--- /dev/null
+++ b/app-laptop/i8kutils/files/digest-i8kutils-1.17
@@ -0,0 +1 @@
+MD5 c76e42d645f359eb898495a5e72dd1ac i8kutils-1.17.tar.bz2 37782
diff --git a/app-laptop/i8kutils/files/digest-i8kutils-1.17-r1 b/app-laptop/i8kutils/files/digest-i8kutils-1.17-r1
new file mode 100644
index 000000000000..9fbe24332c88
--- /dev/null
+++ b/app-laptop/i8kutils/files/digest-i8kutils-1.17-r1
@@ -0,0 +1 @@
+MD5 c76e42d645f359eb898495a5e72dd1ac i8kutils-1.17.tar.bz2 37782
diff --git a/app-laptop/i8kutils/files/i8k.conf b/app-laptop/i8kutils/files/i8k.conf
new file mode 100644
index 000000000000..c5bd389b294a
--- /dev/null
+++ b/app-laptop/i8kutils/files/i8k.conf
@@ -0,0 +1,31 @@
+# Config file for /etc/init.d/i8k
+
+# Parameters:
+#
+# i8kbuttons Parameters
+# =====================
+# VOLUME_UP : command for i8kbuttons to run on volume up key
+# VOLUME_DOWN : command for i8kbuttons to run on volume down key
+# VOLUME_MUTE : command for i8kbuttons to run on mute key
+# BUTTON_REPEAT : repeat rate, in milliseconds, for i8kbuttons keypresses
+#
+# If VOLUME_* commands are not defined, i8kbuttons will not be started
+#
+# i8kmon Parameters
+# =================
+# NOMON : if set, i8kmon will not be started
+# NOAUTO : if set, i8kmon will not control the fans
+# TIMEOUT : timeout, in seconds, at which i8kmon will check/update status
+# (default is 2)
+
+# for ALSA
+MIXER="/usr/bin/amixer -q set Master"
+VOLUME_UP="$MIXER 1+"
+VOLUME_DOWN="$MIXER 1-"
+VOLUME_MUTE="$MIXER toggle"
+
+# for aumix (no mute support)
+#VOLUME_UP="aumix -v +4"
+#VOLUME_DOWN="aumix -v -4"
+
+BUTTON_REPEAT=100
diff --git a/app-laptop/i8kutils/files/i8k.init b/app-laptop/i8kutils/files/i8k.init
new file mode 100644
index 000000000000..92b2d991589b
--- /dev/null
+++ b/app-laptop/i8kutils/files/i8k.init
@@ -0,0 +1,47 @@
+#!/sbin/runscript
+
+depend() {
+ after alsasound
+ after modules
+}
+
+checkconfig() {
+ if [ ! -e /proc/i8k ] ; then
+ eerror "The i8k driver is not installed"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ if [ -n "$VOLUME_UP$VOLUME_DOWN$VOLUME_MUTE" ] ; then
+ ebegin "Starting i8kbuttons"
+ start-stop-daemon --start --quiet --pidfile /var/run/i8kbuttons.pid \
+ --make-pidfile --exec /usr/bin/i8kbuttons --background \
+ -- ${VOLUME_UP:+-u "${VOLUME_UP}"} \
+ ${VOLUME_DOWN:+-d "$VOLUME_DOWN"} \
+ ${VOLUME_MUTE:+-m "$VOLUME_MUTE"} \
+ ${BUTTON_REPEAT:+-r "$BUTTON_REPEAT"}
+ eend $?
+ fi
+ if [ ! -n "$NOMON" ]; then
+ ebegin "Starting i8kmon"
+ start-stop-daemon --start --quiet --pidfile /var/run/i8kmon.pid \
+ --make-pidfile --exec /usr/bin/i8kmon --background \
+ -- -d ${NOAUTO:+-na} ${TIMEOUT:+-t $TIMEOUT}
+ eend $?
+ fi
+}
+
+stop() {
+ if [ -n "$VOLUME_UP$VOLUME_DOWN$VOLUME_MUTE" ] ; then
+ ebegin "Stopping i8kbuttons"
+ start-stop-daemon --stop --quiet --pidfile /var/run/i8kbuttons.pid
+ eend $?
+ fi
+ if [ ! -n "$NOMON" ]; then
+ ebegin "Stopping i8kmon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/i8kmon.pid
+ eend $?
+ fi
+}
diff --git a/app-laptop/i8kutils/i8kutils-1.17-r1.ebuild b/app-laptop/i8kutils/i8kutils-1.17-r1.ebuild
new file mode 100644
index 000000000000..e9ef5b985756
--- /dev/null
+++ b/app-laptop/i8kutils/i8kutils-1.17-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/i8kutils/i8kutils-1.17-r1.ebuild,v 1.1 2004/03/08 05:28:47 latexer Exp $
+
+S=${WORKDIR}/${P}/
+DESCRIPTION="Dell Inspiron and Latitude utilities"
+SRC_URI="http://people.debian.org/~dz/i8k/${P}.tar.bz2"
+HOMEPAGE="http://people.debian.org/~dz/i8k/"
+DEPEND="virtual/glibc
+ virtual/x11
+ >=dev-lang/tk-8.3.3"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="tcltk"
+KEYWORDS="~x86 ~amd64 -mips"
+
+
+src_compile() {
+ local target="all"
+ make ${target} || die
+}
+
+src_install() {
+ dobin i8kbuttons i8kctl i8kfan i8kmon
+ use tcltk && dobin i8kmon
+ doman i8kbuttons.1 i8kctl.1
+ use tcltk && doman i8kmon.1
+ use tcltk && dosym /usr/bin/i8kctl /usr/bin/i8kfan
+ dodoc README.i8kutils
+ dodoc COPYING
+ dodoc i8kmon.conf
+ dodoc Configure.help.i8k
+ docinto examples/
+ dodoc examples/*
+
+ insinto /etc/init.d
+ newins ${FILESDIR}/i8k.init i8k
+ fperms 755 /etc/init.d/i8k
+ insinto /etc/conf.d
+ newins ${FILESDIR}/i8k.conf i8k
+}
diff --git a/app-laptop/i8kutils/i8kutils-1.17.ebuild b/app-laptop/i8kutils/i8kutils-1.17.ebuild
new file mode 100644
index 000000000000..b6e5f8835f32
--- /dev/null
+++ b/app-laptop/i8kutils/i8kutils-1.17.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/i8kutils/i8kutils-1.17.ebuild,v 1.1 2004/03/08 05:28:47 latexer Exp $
+
+S=${WORKDIR}/${P}/
+DESCRIPTION="Dell Inspiron and Latitude utilities"
+SRC_URI="http://people.debian.org/~dz/i8k/${P}.tar.bz2"
+HOMEPAGE="http://people.debian.org/~dz/i8k/"
+DEPEND="virtual/glibc
+ virtual/x11
+ >=dev-lang/tk-8.3.3"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="tcltk"
+KEYWORDS="x86 amd64 -mips"
+
+
+src_compile() {
+ local target="all"
+ make ${target} || die
+}
+
+src_install() {
+ dobin i8kbuttons i8kctl i8kfan i8kmon
+ use tcltk && dobin i8kmon
+ doman i8kbuttons.1 i8kctl.1
+ use tcltk && doman i8kmon.1
+ use tcltk && dosym /usr/bin/i8kctl /usr/bin/i8kfan
+ dodoc README.i8kutils
+ dodoc COPYING
+ dodoc i8kmon.conf
+ dodoc Configure.help.i8k
+ docinto examples/
+ dodoc examples/*
+}
diff --git a/app-laptop/i8kutils/metadata.xml b/app-laptop/i8kutils/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/app-laptop/i8kutils/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>