summaryrefslogtreecommitdiff
path: root/sys-power/sispmctl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-power/sispmctl
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-power/sispmctl')
-rw-r--r--sys-power/sispmctl/Manifest7
-rw-r--r--sys-power/sispmctl/metadata.xml21
-rw-r--r--sys-power/sispmctl/sispmctl-3.1.ebuild44
-rw-r--r--sys-power/sispmctl/sispmctl-4.0.ebuild54
4 files changed, 126 insertions, 0 deletions
diff --git a/sys-power/sispmctl/Manifest b/sys-power/sispmctl/Manifest
new file mode 100644
index 000000000000..925d34378d41
--- /dev/null
+++ b/sys-power/sispmctl/Manifest
@@ -0,0 +1,7 @@
+DIST sispmctl-3.1.tar.gz 251896 SHA256 e9a99cc81ef0a93f3484e5093efd14d93cc967221fcd22c151f0bea32eb91da7 SHA512 2942c8f1c9e4d259667d384b9dca72569fac8c3c775e68f88599eb6f339b63d92c8226a406f998830af24ea9144ed75291bcc652293a870123925fe235c31d03 WHIRLPOOL 8f7ad31eb917456dacd0e09feb94fa04e8e1cdceb25626a0ce36004d117750146d50abd458913d0770cf2b3ef133cda8162a64809592015ae5080957d12aeced
+DIST sispmctl-4.0.tar.gz 517985 SHA256 442d9bb9774da7214c222144035ac68ad5d25171040ce2731cfdf49b3365cfd5 SHA512 0fc643b627ccfa10f085b37702933fe9b7c2ef448bcbb32c22cacda57f7f710437c413bd02f510a3acb085f99a513a891e815981ee4ffbe7fed691492a335e96 WHIRLPOOL 40c443dd36aca5d7299ef2fe5478dc26535b3c4f0e325b2f36c49f528b82cbf73ed156fff12eeb1b03d53d6a40f817c513c502c030286c0428a36f05fafa6934
+EBUILD sispmctl-3.1.ebuild 1079 SHA256 75236913f08967149231cb00842f86cbffbd21744c8781011297312ef51bba05 SHA512 a906db46d18589019e909945a53de77e3dffe0afc33e757b60fcfd47f7cb0d036e5dcb239b308d88852bebcf709838b853af3eea1380414f7e6d406a64339dc9 WHIRLPOOL fa963de154520eb8d8a533c6c88e9441b14fa5014e8caa32551890f476b9e51e366089cc24c542b2b734ed1c0b9e43d61cd8f6472f121c2b005f3cdd9dbc1811
+EBUILD sispmctl-4.0.ebuild 1337 SHA256 b67227e9146fd12991117aea1165aa12b7dec34bffa9e292d76e5e1846722ac1 SHA512 076f5117a0063d6d8a982974587d88b9a905153886f31c92f97af206a10ee3e791372d80ccf3bb863684854bc6748f579df83846217c76f4db226dc5a6859e26 WHIRLPOOL 200bcc658415460cc2844a0c624dc5135d53cf5ab2840f642cabc56f96cdcda4c551171fa8531b0791c8d1e9113ffaef1c05e11bccc3aeb0111ea8189396c2b4
+MISC ChangeLog 2608 SHA256 fe4930c1eeca96e0d7d16f3972cc876c897fbf9f347205650ea33048f99565a2 SHA512 32948330acd9dc6e1d419cc1a09fe4e5837efc73d015102d682ce18232e1a85c6c9499e33bd5bcc71f55847da54703bbc88e8f476b80c6582f30e2eda142ad38 WHIRLPOOL f1ade74c8ee8db6cdc67e5a7f674635a32f63a420542b0379f5231b8a03bf95dd14307fd28641e5f5997228d73a0b57fdff112a51a3d344688885abe41448e8f
+MISC ChangeLog-2015 1605 SHA256 5a276f66a16064c0125727a343687d127e01bbcded60244bfb5a7e44a524c429 SHA512 3554c30f6cbd1c254f032f0b47313a43bc1bba2c1f035efffb072a7fa5a486cd15ce44808e2532dd946121f576bbe88627eda9197cd6534526f08e1554ae8224 WHIRLPOOL 866c1a2c899915035050197f52cf24d3e3f10e2eb196f15f910af32ae6498e2b8fd4cb2c271f16048e3a4f7019052abe8a7496814ae45c8a59bf9a27f4b194ce
+MISC metadata.xml 721 SHA256 050149ca6f590d3153160a821bf619a831771f888c7b55f9df3b1c20ff9ee346 SHA512 d8bb98bb4658dea2454d959b2ead9c15a5efe782d85858f1d0c897b2f9e3d5abe67d3dd427516d03f26fe7cb0041e6e1b9809827ce2e0f44d48e1949d2615f7d WHIRLPOOL 08965d1db4ba891045f8251349e450734d3433850f5c9d35e55e099ffe7f115d94f64ab3f1bae5f5ada6c8a1c5ac9a71cd6ed79d9f99111295b3a80cfb212504
diff --git a/sys-power/sispmctl/metadata.xml b/sys-power/sispmctl/metadata.xml
new file mode 100644
index 000000000000..e3dc21f68830
--- /dev/null
+++ b/sys-power/sispmctl/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>Primary maintainer</description>
+ </maintainer>
+ <use>
+ <flag name="gemplug">Install gemplug (management script)</flag>
+ </use>
+ <longdescription>
+sispmctl is an application enabling the use of the GEMBIRD
+SilverShield PowerManager (SiS-PM) device under Linux.
+The SiS-PM is an intelligent advanced surge protector with
+4 of 6 sockets being manageable from the PC via USB.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">sispmctl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-power/sispmctl/sispmctl-3.1.ebuild b/sys-power/sispmctl/sispmctl-3.1.ebuild
new file mode 100644
index 000000000000..f15038bfedab
--- /dev/null
+++ b/sys-power/sispmctl/sispmctl-3.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit bash-completion-r1 eutils
+
+DESCRIPTION="GEMBIRD SiS-PM control utility"
+HOMEPAGE="http://sispmctl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sispmctl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gemplug"
+
+RDEPEND="virtual/libusb:0
+ gemplug? ( sys-process/at )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf --enable-webless
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README ChangeLog NEWS
+
+ ## gemplug
+ if use gemplug; then
+ sed -i "s|/usr/local/bin/sispmctl|${ROOT:-/}usr/bin/sispmctl|g" extras/gemplug/gemplug
+ dobin extras/gemplug/gemplug
+ doman extras/gemplug/gemplug.1
+
+ insinto /lib/udev/rules.d
+ doins extras/gemplug/74-sispmctl.rules
+
+ newbashcomp extras/gemplug/gemplug-completion.sh gemplug
+
+ einfo "To be able to use the locking mechanism of gemplug(1),"
+ einfo "add the users who are designated to run gemplug to the"
+ einfo "group 'uucp' which has write permissions to /var/lock."
+ fi
+}
diff --git a/sys-power/sispmctl/sispmctl-4.0.ebuild b/sys-power/sispmctl/sispmctl-4.0.ebuild
new file mode 100644
index 000000000000..9d301d8acaaf
--- /dev/null
+++ b/sys-power/sispmctl/sispmctl-4.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit bash-completion-r1 eutils user
+
+DESCRIPTION="GEMBIRD SiS-PM control utility"
+HOMEPAGE="http://sispmctl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sispmctl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gemplug"
+
+RDEPEND="virtual/libusb:0
+ gemplug? ( sys-process/at )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ enewgroup sispmctl
+}
+
+src_configure() {
+ econf --enable-webless
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README README.md ChangeLog NEWS
+
+ ## install udev rules which make the device files writable
+ ## by the members of the group sispmctl
+ insinto /lib/udev/rules.d
+ doins examples/60-sispmctl.rules
+
+ ## gemplug
+ if use gemplug; then
+ sed -i "s|/usr/local/bin/sispmctl|${ROOT:-/}usr/bin/sispmctl|g" extras/gemplug/gemplug
+ dobin extras/gemplug/gemplug
+ doman extras/gemplug/gemplug.1
+
+ newbashcomp extras/gemplug/gemplug-completion.sh gemplug
+
+ dodir /var/lock/gemplug
+ fperms 2775 /var/lock/gemplug
+ fowners root:sispmctl /var/lock/gemplug
+
+ einfo "To be able to use the locking mechanism of gemplug(1),"
+ einfo "add the users who are designated to run gemplug to the"
+ einfo "group 'sispmctl' which has write permissions to /var/lock/gemplug."
+ fi
+}