summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2017-02-07 17:48:35 +0100
committerDavid Seifert <soap@gentoo.org>2017-02-09 23:37:14 +0100
commit26f8ebb05c1a162637961e02affc5ae2b5dfb9c0 (patch)
tree6359b4bd4788bbedd93b5c305036bd83074e63bf /sys-power
parentsys-cluster/swift: remove unused patch (diff)
downloadgentoo-26f8ebb05c1a162637961e02affc5ae2b5dfb9c0.tar.gz
gentoo-26f8ebb05c1a162637961e02affc5ae2b5dfb9c0.tar.bz2
gentoo-26f8ebb05c1a162637961e02affc5ae2b5dfb9c0.zip
sys-power/nut: remove unused patch/files
Closes: https://github.com/gentoo/gentoo/pull/3870
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/nut/files/nut-2.2.2-init.d-upsd38
-rw-r--r--sys-power/nut/files/nut-2.2.2-init.d-upsmon30
-rw-r--r--sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch21
3 files changed, 0 insertions, 89 deletions
diff --git a/sys-power/nut/files/nut-2.2.2-init.d-upsd b/sys-power/nut/files/nut-2.2.2-init.d-upsd
deleted file mode 100644
index 56f524a2c77..00000000000
--- a/sys-power/nut/files/nut-2.2.2-init.d-upsd
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-extra_started_commands="reload"
-
-pidfile=/var/lib/nut/upsd.pid
-bin=/usr/sbin/upsd
-
-depend() {
- need net
- before upsmon
- after upsdrv
-}
-
-start() {
- ebegin "Starting upsd"
- # clean up first
- pkill -u root,nut -x ${bin}
- sleep 1
- rm -f ${pidfile}
- # now start up
- start-stop-daemon --start --quiet --exec ${bin}
- eend $?
-}
-
-stop() {
- ebegin "Stopping upsd"
- start-stop-daemon --stop --quiet --pidfile ${pidfile}
- eend $?
-}
-
-reload() {
- ebegin "Reloading upsd"
- start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile ${pidfile}
- eend $?
-}
diff --git a/sys-power/nut/files/nut-2.2.2-init.d-upsmon b/sys-power/nut/files/nut-2.2.2-init.d-upsmon
deleted file mode 100644
index 079255dca64..00000000000
--- a/sys-power/nut/files/nut-2.2.2-init.d-upsmon
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-extra_started_commands="reload"
-
-pidfile=/var/run/upsmon.pid
-bin=/usr/sbin/upsmon
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting upsmon"
- start-stop-daemon --start --quiet --exec ${bin}
- eend $?
-}
-
-stop() {
- ebegin "Stopping upsmon"
- start-stop-daemon --stop --quiet --pidfile ${pidfile}
- eend $?
-}
-reload() {
- ebegin "Reloading upsd"
- start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile ${pidfile}
- eend $?
-}
diff --git a/sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch b/sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch
deleted file mode 100644
index e9a4da8fab2..00000000000
--- a/sys-power/nut/files/nut-2.4.3-lowspeed-buffer-size.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-http://bugs.gentoo.org/show_bug.cgi?id=318937
-http://boxster.ghz.cc/projects/nut/changeset/2407
-
-Index: /trunk/drivers/libhid.c
-===================================================================
---- /trunk/drivers/libhid.c (revision 2336)
-+++ /trunk/drivers/libhid.c (revision 2407)
-@@ -142,5 +142,5 @@
- int id = pData->ReportID;
- int r;
-- unsigned char buf[SMALLBUF];
-+ unsigned char buf[8]; /* Maximum size for low-speed USB devices */
-
- if (rbuf->ts[id] + age > time(NULL)) {
-@@ -470,5 +470,5 @@
- int HIDGetEvents(hid_dev_handle_t udev, HIDData_t **event, int eventsize)
- {
-- unsigned char buf[SMALLBUF];
-+ unsigned char buf[8]; /* Maximum size for low-speed USB devices */
- int itemCount = 0;
- int buflen, r, i;