summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJurek Bartuszek <jurek@gentoo.org>2007-09-01 23:49:23 +0000
committerJurek Bartuszek <jurek@gentoo.org>2007-09-01 23:49:23 +0000
commit69ccda27954d6c3c820fdbd1573b975a9744db51 (patch)
tree89ff312a3de130e6b6f27d5ce7e8edfa6379ef82 /sys-power/powersoftplus
parentdev-embedded/powersoftplus-libftdi: initial version (diff)
downloadhistorical-69ccda27954d6c3c820fdbd1573b975a9744db51.tar.gz
historical-69ccda27954d6c3c820fdbd1573b975a9744db51.tar.bz2
historical-69ccda27954d6c3c820fdbd1573b975a9744db51.zip
sys-power/powersoftplus: initial version
Package-Manager: portage-2.1.2.12
Diffstat (limited to 'sys-power/powersoftplus')
-rw-r--r--sys-power/powersoftplus/ChangeLog11
-rw-r--r--sys-power/powersoftplus/Manifest44
-rw-r--r--sys-power/powersoftplus/files/digest-powersoftplus-0.1.83
-rw-r--r--sys-power/powersoftplus/files/powersoftplus15
-rw-r--r--sys-power/powersoftplus/files/powersoftplus-0.1.8-reduceverbosity.patch52
-rw-r--r--sys-power/powersoftplus/metadata.xml9
-rw-r--r--sys-power/powersoftplus/powersoftplus-0.1.8.ebuild53
7 files changed, 187 insertions, 0 deletions
diff --git a/sys-power/powersoftplus/ChangeLog b/sys-power/powersoftplus/ChangeLog
new file mode 100644
index 000000000000..b970e5f4a2ab
--- /dev/null
+++ b/sys-power/powersoftplus/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-power/powersoftplus
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powersoftplus/ChangeLog,v 1.1 2007/09/01 23:49:23 jurek Exp $
+
+*powersoftplus-0.1.8 (01 Sep 2007)
+
+ 01 Sep 2007; Jurek Bartuszek <jurek@gentoo.org>
+ +files/powersoftplus-0.1.8-reduceverbosity.patch, +files/powersoftplus,
+ +metadata.xml, +powersoftplus-0.1.8.ebuild:
+ Initial version
+
diff --git a/sys-power/powersoftplus/Manifest b/sys-power/powersoftplus/Manifest
new file mode 100644
index 000000000000..7c27381fa15d
--- /dev/null
+++ b/sys-power/powersoftplus/Manifest
@@ -0,0 +1,44 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+- -----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX powersoftplus 399 RMD160 3b456a1559fc746e81e3c9d4a60b65b1e51e9507 SHA1 07e5787394efb3771a248bd5b22409e82e25964b SHA256 3e34dc2fd3d8e436cc03c3957e8acca9307a21f5aa7048d7ebbb4f2006c26303
+MD5 1f9cf36093f34bc9f826fd8904916254 files/powersoftplus 399
+RMD160 3b456a1559fc746e81e3c9d4a60b65b1e51e9507 files/powersoftplus 399
+SHA256 3e34dc2fd3d8e436cc03c3957e8acca9307a21f5aa7048d7ebbb4f2006c26303 files/powersoftplus 399
+AUX powersoftplus-0.1.8-reduceverbosity.patch 1102 RMD160 18287fd3ea08ad8a2cd12a764c1d1285ce68b19b SHA1 4d33951ed74356486491712c8aad409683e91873 SHA256 5fbd66185c98a88c5519e86270e23a663540273bc7c9cc5d1ec7df7ef6f98016
+MD5 18ecca99522cbe426644ab20a25d8f14 files/powersoftplus-0.1.8-reduceverbosity.patch 1102
+RMD160 18287fd3ea08ad8a2cd12a764c1d1285ce68b19b files/powersoftplus-0.1.8-reduceverbosity.patch 1102
+SHA256 5fbd66185c98a88c5519e86270e23a663540273bc7c9cc5d1ec7df7ef6f98016 files/powersoftplus-0.1.8-reduceverbosity.patch 1102
+DIST powersoftplus-0.1.8-x86.tar.gz 4746235 RMD160 c8a68cac469d5b8ec71a1e656cd47a6184056b37 SHA1 ec6a3bd4a6f196fd49dd59bc9029cc8667d7b09f SHA256 a22643a320fb8154c38b1483c279535c898381cdc79394fddb09f45aa8a712a2
+EBUILD powersoftplus-0.1.8.ebuild 1317 RMD160 ba829dd9921b88b23adf6da111edb71c1b9b34e8 SHA1 9660ae9051bcc8784ff360ca8db09fdfa5dad3d1 SHA256 cc3ab3383c1ee5e09d6397cf5f69bfedb044d20538648e06203c96d05cfef568
+MD5 7f0955026daa28f628f8d09331a47e3c powersoftplus-0.1.8.ebuild 1317
+RMD160 ba829dd9921b88b23adf6da111edb71c1b9b34e8 powersoftplus-0.1.8.ebuild 1317
+SHA256 cc3ab3383c1ee5e09d6397cf5f69bfedb044d20538648e06203c96d05cfef568 powersoftplus-0.1.8.ebuild 1317
+MISC ChangeLog 443 RMD160 7ac08b0eb4e922e33e00027523b4c03f0df26622 SHA1 66b36e0a484a9e56631ecfc161d45b1c0987452e SHA256 831b4e254c2fd68c8dbe73e0e4e47ea47c3bfff79a69e8ec3033d8a531a8b14b
+MD5 44221b6eb518c0d827df53eaa9514080 ChangeLog 443
+RMD160 7ac08b0eb4e922e33e00027523b4c03f0df26622 ChangeLog 443
+SHA256 831b4e254c2fd68c8dbe73e0e4e47ea47c3bfff79a69e8ec3033d8a531a8b14b ChangeLog 443
+MISC metadata.xml 252 RMD160 5cd1f38c2efdf065fae7c68866353773f92b8ed5 SHA1 284619f278d070e2ab3f2162a6954e0fa24db922 SHA256 2d0cddc15f5f67a41bd3ce36b2c17461e42e2c8a7edf9c510a5facae0d3632c5
+MD5 010139156b09075d0dd4ffbe00ab88bc metadata.xml 252
+RMD160 5cd1f38c2efdf065fae7c68866353773f92b8ed5 metadata.xml 252
+SHA256 2d0cddc15f5f67a41bd3ce36b2c17461e42e2c8a7edf9c510a5facae0d3632c5 metadata.xml 252
+MD5 4df52f6d708b3e10bbf80abb198d26db files/digest-powersoftplus-0.1.8 274
+RMD160 414541f4515238b42aa0bf73bbd1af94fa4db4ef files/digest-powersoftplus-0.1.8 274
+SHA256 d257c91fc9af2bf7d1c94a605ae69c7040bf7bbaba21fdb90b848e39d6d30766 files/digest-powersoftplus-0.1.8 274
+- -----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.7 (GNU/Linux)
+
+iD8DBQFG2fqIyvXkcyXx2ogRAmX9AJ0bcZ8ZFGA9l9Nqnih1o0I1ciNAmwCePoFx
+dZhMTLkNXtqvMhvkQ0HgxA0=
+=IPvS
+- -----END PGP SIGNATURE-----
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.7 (GNU/Linux)
+
+iD8DBQFG2frEyvXkcyXx2ogRAg/0AJ44bZoPl8fsY2P9mwjh9N8TiViTsQCfW8J5
+RxTCSB9kjQlHmL5SdXrm6wU=
+=EUrA
+-----END PGP SIGNATURE-----
diff --git a/sys-power/powersoftplus/files/digest-powersoftplus-0.1.8 b/sys-power/powersoftplus/files/digest-powersoftplus-0.1.8
new file mode 100644
index 000000000000..1249f4b61c49
--- /dev/null
+++ b/sys-power/powersoftplus/files/digest-powersoftplus-0.1.8
@@ -0,0 +1,3 @@
+MD5 e39d39335d7168f1fcf473471a50c35d powersoftplus-0.1.8-x86.tar.gz 4746235
+RMD160 c8a68cac469d5b8ec71a1e656cd47a6184056b37 powersoftplus-0.1.8-x86.tar.gz 4746235
+SHA256 a22643a320fb8154c38b1483c279535c898381cdc79394fddb09f45aa8a712a2 powersoftplus-0.1.8-x86.tar.gz 4746235
diff --git a/sys-power/powersoftplus/files/powersoftplus b/sys-power/powersoftplus/files/powersoftplus
new file mode 100644
index 000000000000..67c08a4b2979
--- /dev/null
+++ b/sys-power/powersoftplus/files/powersoftplus
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+start() {
+ ebegin "Starting Ever UPS daemon"
+ start-stop-daemon --start --quiet --exec /usr/bin/powersoftplus -- -q > /dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Ever UPS daemon"
+ start-stop-daemon --stop --retry 5 --pidfile /var/run/powersoftplus.pid
+ eend $?
+}
diff --git a/sys-power/powersoftplus/files/powersoftplus-0.1.8-reduceverbosity.patch b/sys-power/powersoftplus/files/powersoftplus-0.1.8-reduceverbosity.patch
new file mode 100644
index 000000000000..33d55cb00c0d
--- /dev/null
+++ b/sys-power/powersoftplus/files/powersoftplus-0.1.8-reduceverbosity.patch
@@ -0,0 +1,52 @@
+diff -uar powersoftplus-0.1.8/src/common.cpp powersoftplus-0.1.8-new/src/common.cpp
+--- powersoftplus-0.1.8/src/common.cpp 2006-10-10 10:13:14.000000000 +0200
++++ powersoftplus-0.1.8-new/src/common.cpp 2007-09-02 00:40:51.000000000 +0200
+@@ -55,7 +55,7 @@
+ va_list ap;
+ va_start(ap, format);
+ //fprintf(stderr, TXT_WARNING_REP, VERSION_STRING);
+- vfprintf(stderr, format, ap);
++ vfprintf(stdout, format, ap);
+ va_end(ap);
+ }
+
+@@ -182,7 +182,7 @@
+
+ int wall_msg(const char *msg)
+ {
+- FILE *wpf;
++ /*FILE *wpf;
+ wpf=popen("wall", "w");
+ if (wpf) {
+ fprintf(wpf, "%s\n%s\n\n", VERSION_STRING, msg);
+@@ -190,12 +190,16 @@
+ return 1; // success
+ } else {
+ return 0; // failure
+- }
++ }*/
++
++ fprintf(stderr, "%s\n%s\n\n", VERSION_STRING, msg);
++
++ return 1;
+ }
+
+ int wall_msg_cust(const char *msg, const char *welcome)
+ {
+- FILE *wpf;
++ /*FILE *wpf;
+ wpf=popen("wall", "w");
+ if (wpf) {
+ fprintf(wpf, "%s\n%s\n\n", welcome, msg);
+@@ -203,6 +207,10 @@
+ return 1; // success
+ } else {
+ return 0; // failure
+- }
++ }*/
++
++ fprintf(stderr, "%s\n%s\n\n", welcome, msg);
++
++ return 1;
+ }
+
diff --git a/sys-power/powersoftplus/metadata.xml b/sys-power/powersoftplus/metadata.xml
new file mode 100644
index 000000000000..9cf09a6be010
--- /dev/null
+++ b/sys-power/powersoftplus/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>jurek@gentoo.org</email>
+ <name>Jurek Bartuszek</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-power/powersoftplus/powersoftplus-0.1.8.ebuild b/sys-power/powersoftplus/powersoftplus-0.1.8.ebuild
new file mode 100644
index 000000000000..3d4894856443
--- /dev/null
+++ b/sys-power/powersoftplus/powersoftplus-0.1.8.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powersoftplus/powersoftplus-0.1.8.ebuild,v 1.1 2007/09/01 23:49:23 jurek Exp $
+
+inherit autotools
+
+DESCRIPTION="Ever UPS daemon"
+HOMEPAGE="http://www.ever.com.pl"
+SRC_URI="http://www.ever.com.pl/pl/pliki/${P}-x86.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="=dev-embedded/powersoftplus-libftdi-${PV}*"
+RDEPEND="${DEPEND}"
+
+MAKEOPTS="${MAKEOPTS} -j1"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Remove libftdi because we build this in powersoftplus-libftdi
+ # Remove scripts because we provide our own startup scripts
+ sed -i -e 's#^SUBDIRS = libftdi \(.*\) scripts#SUBDIRS = \1#' \
+ Makefile.am \
+ || die "sed failed"
+
+ # Fix access violations
+ sed -i -e \
+ 's#^CONFPATH = @CONFIG_PATH@$#CONFPATH = ${DESTDIR}/@CONFIG_PATH@#' \
+ conf/Makefile.in \
+ || die "sed failed"
+
+ # Fix access violations
+ sed -i -e \
+ 's#^PIXPATH = @PIX_PATH@$#PIXPATH = ${DESTDIR}/@PIX_PATH@#' \
+ pix/Makefile.in \
+ || die "sed failed"
+
+ eautoreconf
+
+ epatch ${FILESDIR}/${P}-reduceverbosity.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+
+ doinitd ${FILESDIR}/powersoftplus
+ dodoc AUTHORS COPYING INSTALL README TODO Pomoc.pdf
+}