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/files | |
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/files')
-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 |
3 files changed, 36 insertions, 0 deletions
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" +} |