diff options
author | Michele Noberasco <s4t4n@gentoo.org> | 2004-07-08 12:33:43 +0000 |
---|---|---|
committer | Michele Noberasco <s4t4n@gentoo.org> | 2004-07-08 12:33:43 +0000 |
commit | 415e8760a426f136bc9c34400425ecc24ef7d869 (patch) | |
tree | d2fc366f966800f9d325483ffc885a2b19487360 /x11-plugins/wmacpimon | |
parent | Version bump; submitted by Josh Glover in bug #54196 (diff) | |
download | historical-415e8760a426f136bc9c34400425ecc24ef7d869.tar.gz historical-415e8760a426f136bc9c34400425ecc24ef7d869.tar.bz2 historical-415e8760a426f136bc9c34400425ecc24ef7d869.zip |
Initial import of x11-plugins/wmacpimon, version 0.2.1
Diffstat (limited to 'x11-plugins/wmacpimon')
-rw-r--r-- | x11-plugins/wmacpimon/ChangeLog | 8 | ||||
-rw-r--r-- | x11-plugins/wmacpimon/Manifest | 6 | ||||
-rw-r--r-- | x11-plugins/wmacpimon/files/digest-wmacpimon-0.2.1 | 1 | ||||
-rw-r--r-- | x11-plugins/wmacpimon/files/wmacpimon.c.patch | 20 | ||||
-rw-r--r-- | x11-plugins/wmacpimon/files/wmacpimon.initscript | 15 | ||||
-rw-r--r-- | x11-plugins/wmacpimon/metadata.xml | 11 | ||||
-rw-r--r-- | x11-plugins/wmacpimon/wmacpimon-0.2.1.ebuild | 50 |
7 files changed, 111 insertions, 0 deletions
diff --git a/x11-plugins/wmacpimon/ChangeLog b/x11-plugins/wmacpimon/ChangeLog new file mode 100644 index 000000000000..ec7cc6b41c8c --- /dev/null +++ b/x11-plugins/wmacpimon/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for x11-plugins/wmacpimon +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmacpimon/ChangeLog,v 1.1 2004/07/08 12:33:43 s4t4n Exp $ + +*wmacpimon-0.2.1 (08 Jul 2004) + + 08 Jul 2004; Michele Noberasco <s4t4n@gentoo.org> wmacpimon-0.2.1.ebuild: + Initial import. diff --git a/x11-plugins/wmacpimon/Manifest b/x11-plugins/wmacpimon/Manifest new file mode 100644 index 000000000000..9194ba8eb42f --- /dev/null +++ b/x11-plugins/wmacpimon/Manifest @@ -0,0 +1,6 @@ +MD5 918f61bfb3484675bf437d1b26ce108b wmacpimon-0.2.1.ebuild 1278 +MD5 43d2618572348890ed65ac66d025101d ChangeLog 340 +MD5 e0610fd0e64292e0ea4a9c297dc47d65 metadata.xml 404 +MD5 b6e42cf0c97a55a676c4b711c24f3779 files/wmacpimon.initscript 406 +MD5 ea6be2a74e2041eff879cc7239852aa3 files/digest-wmacpimon-0.2.1 66 +MD5 b73395cd8e29d43ae9a72cd04c69f17f files/wmacpimon.c.patch 968 diff --git a/x11-plugins/wmacpimon/files/digest-wmacpimon-0.2.1 b/x11-plugins/wmacpimon/files/digest-wmacpimon-0.2.1 new file mode 100644 index 000000000000..a916582606d4 --- /dev/null +++ b/x11-plugins/wmacpimon/files/digest-wmacpimon-0.2.1 @@ -0,0 +1 @@ +MD5 50efb23d6c6e2e692bee4407d52756ca wmacpimon-0.2.1.tar.gz 26498 diff --git a/x11-plugins/wmacpimon/files/wmacpimon.c.patch b/x11-plugins/wmacpimon/files/wmacpimon.c.patch new file mode 100644 index 000000000000..001c1d8c96be --- /dev/null +++ b/x11-plugins/wmacpimon/files/wmacpimon.c.patch @@ -0,0 +1,20 @@ +--- wmacpimon.c 2004-07-08 14:16:22.184359328 +0200 ++++ wmacpimon.c 2004-07-08 14:15:59.677780848 +0200 +@@ -314,7 +314,7 @@ + acpinfo = calloc(1, sizeof(ACPInfo)); + dockapp->blink = OFF; + init_acpinfo(); +- strcpy(prcfile, ".wmacpimon.prc"); ++ strcpy(prcfile, "/var/tmp/wmacpimon.prc"); + + /* parse command-line options */ + while ((ch = getopt(argc, argv, "pd:b:c:s:h")) != EOF) { +@@ -345,7 +345,7 @@ + printf("wmacpimon v%s (c) 2002 Costantino Pistagna (valvoline@vrlteam.org)\n" + "usage: wmacpimon [-d] [-b] [-p] [-c] [-s]\n\n" + "-d display\tdisplay on remote display <display>\n" +- "-b value\tprcfile for wmacpimond comunication (default: ~/.wmacpimon.prc)\n" ++ "-b value\tprcfile for wmacpimond comunication (default: /var/tmp/wmacpimon.prc)\n" + "-p\t\tset powersave mode\n" + "-c value\tset critical level (default to 10)\n" + "-s value\tshutdown pc when battery value (percent) has reached\n" diff --git a/x11-plugins/wmacpimon/files/wmacpimon.initscript b/x11-plugins/wmacpimon/files/wmacpimon.initscript new file mode 100644 index 000000000000..049cac53fb34 --- /dev/null +++ b/x11-plugins/wmacpimon/files/wmacpimon.initscript @@ -0,0 +1,15 @@ +#!/sbin/runscript + +start() { + ebegin "Starting up wmacpimond daemon" + touch /var/tmp/wmacpimon.prc + start-stop-daemon --start --quiet --exec /usr/bin/wmacpimond -- /var/tmp/wmacpimon.prc >/dev/null + eend $? "Failed to start wmacpimond" +} + +stop() { + ebegin "Shutting down wmacpimond daemon" + killall wmacpimonmd &>/dev/null + rm /var/tmp/wmacpimon.prc &>/dev/null + eend $? "Failed to stop wmacpimond" +} diff --git a/x11-plugins/wmacpimon/metadata.xml b/x11-plugins/wmacpimon/metadata.xml new file mode 100644 index 000000000000..63abaff70235 --- /dev/null +++ b/x11-plugins/wmacpimon/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>desktop-dock</herd> +<longdescription> +wmacpimon is a Windowmaker dockapp that monitors +the temperature and Speedstep features in new ACPI-based systems. +It supports batteries, automatic shutdown when the power is low, +and multiple screens. +</longdescription> +</pkgmetadata> diff --git a/x11-plugins/wmacpimon/wmacpimon-0.2.1.ebuild b/x11-plugins/wmacpimon/wmacpimon-0.2.1.ebuild new file mode 100644 index 000000000000..b1806e751955 --- /dev/null +++ b/x11-plugins/wmacpimon/wmacpimon-0.2.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmacpimon/wmacpimon-0.2.1.ebuild,v 1.1 2004/07/08 12:33:43 s4t4n Exp $ + +inherit eutils + +IUSE="" + +DESCRIPTION="WMaker DockApp that monitors the temperature and Speedstep features in new ACPI-based systems." +HOMEPAGE="http://www.vrlteam.org/wmacpimon/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="virtual/x11" + +src_unpack() +{ + unpack ${A} + + # patch wmacpimon.c file to set default path for + # wmacpimon.prc to /var/tmp/ + cd ${S} + epatch ${FILESDIR}/wmacpimon.c.patch +} + +src_compile() +{ + make \ + CFLAGS="${CFLAGS} -DACPI -Wall -I/usr/X11R6/include" \ + LDFLAGS="${CFLAGS} -DACPI -L/usr/X11R6/lib -lX11 -lXpm -lXext" \ + || die "Compilation failed" +} + +src_install() +{ + dobin wmacpimond wmacpimon + dodoc AUTHORS ChangeLog README INSTALL + exeinto /etc/init.d + newexe ${FILESDIR}/wmacpimon.initscript wmacpimon +} + +pkg_postinst() +{ + einfo "Remember to start the wmacpimond daemon" + einfo "(by issuing the \"/etc/init.d/wmacpimon start\" command)" + einfo "before you attempt to run wmacpimon..." +} |