diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-plugins/wmacpimon |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-plugins/wmacpimon')
-rw-r--r-- | x11-plugins/wmacpimon/Manifest | 8 | ||||
-rw-r--r-- | x11-plugins/wmacpimon/files/Makefile.patch | 24 | ||||
-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 | 17 | ||||
-rw-r--r-- | x11-plugins/wmacpimon/wmacpimon-0.2.1.ebuild | 43 |
6 files changed, 127 insertions, 0 deletions
diff --git a/x11-plugins/wmacpimon/Manifest b/x11-plugins/wmacpimon/Manifest new file mode 100644 index 000000000000..4851b605dad8 --- /dev/null +++ b/x11-plugins/wmacpimon/Manifest @@ -0,0 +1,8 @@ +AUX Makefile.patch 650 SHA256 d54efe95ec83e625f43869f7625cf90c127869a77b23a89b408af10a07431dfd SHA512 a6446fdfcd4d670f12dff0d35bfc0e94e663442b1cfabec29446b0d0a2652bcb8140263e30ac135b536262b657c836fab8c25599e5fc6c575e826d2535018d2a WHIRLPOOL 4a14bd05f8f6c9493a05fde8f1c92211a6b96f5212b24520b041f5938ad0b59da49da7edb69b6364fd06b27325987aace979c85c08314193c093cea34213f8a6 +AUX wmacpimon.c.patch 968 SHA256 8a34b4ea0e5f9a2d663741345c2831875342ac1ce7f92c3afcc5a4f8365ad3ed SHA512 ac719283af137e794430760919b300036e4bc9eb88011edf601fbfb5d4dcebfb5cad4115db26d1497e1a935b77ca0fd55df1077f12c5cc16e9996591967210f7 WHIRLPOOL 8b2e8054cfaf57a41063c6d6a0e41013527ae7d64fe00fc607f9c83f1d9cb386e269816d160833fee1cdeaa98afbea4207db16a744e5d00d41debc9ab654955b +AUX wmacpimon.initscript 407 SHA256 c5824a992d8bd3769f053bd1d444c7b30935cb8548345cd06f7badb875603653 SHA512 cecadb137bc6acf2ef4c85afa75dd186c9217435c07384c8190a81e727509aa3715bf3b0e5c9851f0a54c6bb9d70c08339275aee30d110bd0cd3f37a9410f866 WHIRLPOOL 607d8921dea6b1447ec3833d6a8cdbbe2d80bbb475efc1f9e85b3d0fbc3229dbbb0ab20c3a4c526cb2557f3a667ee57bbdad78a421337e7de15c96aa183153bc +DIST wmacpimon-0.2.1.tar.gz 26498 SHA256 73754555bb313a06ff1956d721aad5efa34ead013cfe10f58cddad3f04d5ed3f SHA512 2b2d1da7608272969f0a2c98fae6398ebaa663a847acb79c795870cad85ca8d1317f5dfde6443634419c0c59b7457356bb8c195c1e7936f3cd8f3b251406084b WHIRLPOOL 7ba5a501ff65196a2281f3487b9192dfb633dd84f61b1ed4fc8a08b457ad1d6d14385bba96aca1ffb06d3550048314b30f4d6ffd7aa8b739638e77ae4579ae04 +EBUILD wmacpimon-0.2.1.ebuild 1107 SHA256 b6c2545de90e3827214ad51c439e1a92c706bf2853f4a31d45a84ea4afa7dabd SHA512 51e63a82662cda39781ae1cf3c9cff1eed84345e6528d207a71c026b3c9e08feffae0fb91e935a91c0fded61441fb9d52020be74f568b2fb7a3db4b8539e252a WHIRLPOOL d0a8d46b43ae29794d5e5e99e6eaba570c15ca89a7a9c41a881516da99ede7f62c429432573d648cc951de618fa440926a5b2d6a1e14e2516f105421ad60f4a6 +MISC ChangeLog 3113 SHA256 46aa1177657248ca0ba7eb2431f2d1c9b56ee1b47a0759eeb5a12b27f3fc09e7 SHA512 aad6f92ad471b712e95eab85fcbf68fb93d438807f61d910499434a77fa2e503bb8132c6d21544d2568cb52dbf5f3068957473e64437404cabd6f573fb15cd89 WHIRLPOOL 62e8a4e8ad23a1b9cd30028bfdd269a4fe7c3571984c70d2915d138ca993ada171229d77edbb7715e6df118edc5d15b0b38077fd81373bad025e3f8468af66a4 +MISC ChangeLog-2015 1433 SHA256 76c9cd19f1139643d9ad5704fd58f0d80ea80abca695e4ee836d3322fade1afd SHA512 d8dbd2843d691a99a312bfd845afbcb4e1cdda3570f3b7d93f408326476633ada57522df490fd9b8be3bf2ea31a61b464c622d5dd426b69c3d553fbd7977e055 WHIRLPOOL 52234bbc7d91be1eed52a69ad6a5374df9b3a7bff31a66262df46af4cd0b424a699e73ed76ddf8cc153f3df563842065756206c1ae8f148fed01326a62e704eb +MISC metadata.xml 571 SHA256 c4facff77b88fb13583e8fa0bed911a1edbe8b74fac6a20d1d67621682928650 SHA512 a749cc0ff0e2ac2aed7f2e06e5d389e7a98142468c971940343ee704eae69b9e9d440056cae76b33d69d330096fd1c216504ac0509b0c4a2bc1a4e98e4111959 WHIRLPOOL d0ba66576d2a6b0cef0f79916241f9505807fedfa0d368a77fb157ff5ad83f0126475185b691ae88e95cda79019e23dbcb137d2301947d5814f948f856040c20 diff --git a/x11-plugins/wmacpimon/files/Makefile.patch b/x11-plugins/wmacpimon/files/Makefile.patch new file mode 100644 index 000000000000..aab28fc89392 --- /dev/null +++ b/x11-plugins/wmacpimon/files/Makefile.patch @@ -0,0 +1,24 @@ +--- Makefile 2010-09-06 11:33:16.000000000 +0200 ++++ Makefile.new 2010-09-06 11:36:28.000000000 +0200 +@@ -1,8 +1,5 @@ +-OPT = -O3 -DACPI +- +-CC = gcc +-CFLAGS = $(OPT) -Wall -I/usr/X11R6/include +-LDFLAGS = $(OPT) -L/usr/X11R6/lib -lX11 -lXpm -lXext ++CFLAGS += -DACPI -Wall -I/usr/X11R6/include ++LIBS = -DACPI -L/usr/X11R6/lib -lX11 -lXpm -lXext + + SRCS = wmacpimon.c libacpi.c + OBJS = wmacpimon.o libacpi.o +@@ -11,8 +8,10 @@ + all: wmacpimon wmacpimond + + wmacpimon: $(OBJS) ++ $(CC) $(LDFLAGS) -o wmacpimon $^ $(LIBS) + + wmacpimond: $(OBJZ) ++ $(CC) $(LDFLAGS) -o wmacpimond $^ $(LIBS) + + clean: + rm -f *.o *~ wmacpimon wmacpimond trace *.out *.bb *.bbg 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..b7972565d00d --- /dev/null +++ b/x11-plugins/wmacpimon/files/wmacpimon.initscript @@ -0,0 +1,15 @@ +#!/sbin/openrc-run + +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..3e3a94d3b24c --- /dev/null +++ b/x11-plugins/wmacpimon/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>voyageur@gentoo.org</email> + <name>Bernard Cafarelli</name> + </maintainer> + <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> + <upstream> + <remote-id type="sourceforge">wmacpimon</remote-id> + </upstream> +</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..30262c7d8128 --- /dev/null +++ b/x11-plugins/wmacpimon/wmacpimon-0.2.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 +inherit eutils + +DESCRIPTION="DockApp monitors the temperature and Speedstep features in ACPI-based systems" +HOMEPAGE="http://www.vrlteam.org/wmacpimon/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${RDEPEND} + x11-proto/xproto + x11-proto/xextproto" + +src_prepare() { + # patch wmacpimon.c file to set default path for + # wmacpimon.prc to /var/tmp/ + epatch "${FILESDIR}"/wmacpimon.c.patch + + # fix LDFLAGS ordering. See bug #248618. + # fix LDFLAGS ordering again and other stuff. See bug #336091. + epatch "${FILESDIR}"/Makefile.patch +} + +src_install() { + dobin wmacpimond wmacpimon || die "dobin failed." + dodoc AUTHORS ChangeLog README + newinitd "${FILESDIR}"/wmacpimon.initscript wmacpimon +} + +pkg_postinst() { + elog "Remember to start the wmacpimond daemon" + elog "(by issuing the \"/etc/init.d/wmacpimon start\" command)" + elog "before you attempt to run wmacpimon..." +} |