Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/apcupsd/
Date: Thu, 01 Apr 2021 22:23:59
Message-Id: 1617315832.277c84ca18d5b157cef1ce61977132086131400c.whissi@gentoo
1 commit: 277c84ca18d5b157cef1ce61977132086131400c
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 1 22:23:19 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 1 22:23:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=277c84ca
7
8 sys-power/apcupsd: drop old
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-power/apcupsd/Manifest | 1 -
14 sys-power/apcupsd/apcupsd-3.14.13.ebuild | 137 -------------------------------
15 2 files changed, 138 deletions(-)
16
17 diff --git a/sys-power/apcupsd/Manifest b/sys-power/apcupsd/Manifest
18 index 147bf832e9b..7f3bbbf7365 100644
19 --- a/sys-power/apcupsd/Manifest
20 +++ b/sys-power/apcupsd/Manifest
21 @@ -1,2 +1 @@
22 -DIST apcupsd-3.14.13.tar.gz 1935043 BLAKE2B 56d8fb9c6a055b20c2d99867e43b6a2d6ebe1d55c724d8a6701d9baa569a14f600cb03c6176380c6c42c46ac610f43136a4b52c47c8b86bc41966d4091481e95 SHA512 74f7763de268626e24f9dd99090b01d5bff35c2fde769039104105ec27941673d1613c41fcac11e3d97d2fe5c364bcc0459847fcba5d2f7f1aac85795d6d8570
23 DIST apcupsd-3.14.14.tar.gz 1843409 BLAKE2B 48a3b249780064d699d86b658584aa222ce9f3b46a81209110b4684bf737cca7492b87b063154864ce76478f29f73cda83ab96b47f4a7aa7aa91e29a8abbf4a8 SHA512 c953bbf3e08f809748a7978a3952604176390d1cd276f187fe096d9bc3c8993b52127e8350c0363387da41318e24b4d1e00ea58df71f3bb8f50c9a5a64cd2d7f
24
25 diff --git a/sys-power/apcupsd/apcupsd-3.14.13.ebuild b/sys-power/apcupsd/apcupsd-3.14.13.ebuild
26 deleted file mode 100644
27 index b3489084c86..00000000000
28 --- a/sys-power/apcupsd/apcupsd-3.14.13.ebuild
29 +++ /dev/null
30 @@ -1,137 +0,0 @@
31 -# Copyright 1999-2021 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=5
35 -
36 -inherit eutils linux-info flag-o-matic systemd udev tmpfiles
37 -
38 -DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown"
39 -HOMEPAGE="http://www.apcupsd.org/"
40 -SRC_URI="mirror://sourceforge/apcupsd/${P}.tar.gz"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0"
44 -KEYWORDS="amd64 ~arm ppc x86"
45 -IUSE="snmp +usb cgi nls gnome kernel_linux"
46 -
47 -DEPEND="
48 - >=sys-apps/util-linux-2.23[tty-helpers(-)]
49 - cgi? ( >=media-libs/gd-1.8.4 )
50 - nls? ( sys-devel/gettext )
51 - snmp? ( >=net-analyzer/net-snmp-5.7.2 )
52 - gnome? ( >=x11-libs/gtk+-2.4.0:2
53 - dev-libs/glib:2
54 - >=gnome-base/gconf-2.0 )"
55 -RDEPEND="${DEPEND}
56 - sys-apps/openrc
57 - virtual/mailx"
58 -
59 -CONFIG_CHECK="~USB_HIDDEV ~HIDRAW"
60 -ERROR_USB_HIDDEV="CONFIG_USB_HIDDEV: needed to access USB-attached UPSes"
61 -ERROR_HIDRAW="CONFIG_HIDRAW: needed to access USB-attached UPSes"
62 -
63 -pkg_setup() {
64 - if use kernel_linux && use usb && linux_config_exists; then
65 - check_extra_config
66 - fi
67 -}
68 -
69 -src_prepare() {
70 - epatch "${FILESDIR}/${PN}-3.14.9-aliasing.patch"
71 -}
72 -
73 -src_configure() {
74 - local myconf
75 - use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=/usr/libexec/${PN}/cgi-bin"
76 - if use usb; then
77 - myconf="${myconf} --with-upstype=usb --with-upscable=usb --enable-usb --with-dev= "
78 - else
79 - myconf="${myconf} --with-upstype=apcsmart --with-upscable=smart --disable-usb"
80 - fi
81 -
82 - # We force the DISTNAME to gentoo so it will use gentoo's layout also
83 - # when installed on non-linux systems.
84 - econf \
85 - --sbindir=/sbin \
86 - --sysconfdir=/etc/apcupsd \
87 - --with-pwrfail-dir=/etc/apcupsd \
88 - --with-lock-dir=/run/apcupsd \
89 - --with-pid-dir=/run/apcupsd \
90 - --with-log-dir=/var/log \
91 - --with-nis-port=3551 \
92 - --enable-net --enable-pcnet \
93 - --with-distname=gentoo \
94 - $(use_enable snmp net-snmp) \
95 - $(use_enable gnome gapcmon) \
96 - ${myconf} \
97 - APCUPSD_MAIL=/bin/mail
98 -}
99 -
100 -src_compile() {
101 - # Workaround for bug #280674; upstream should really just provide
102 - # the text files in the distribution, but I wouldn't count on them
103 - # doing that anytime soon.
104 - MANPAGER=$(type -p cat) \
105 - emake
106 -}
107 -
108 -src_install() {
109 - emake DESTDIR="${D}" install
110 - rm -f "${D}"/etc/init.d/halt
111 -
112 - insinto /etc/apcupsd
113 - newins examples/safe.apccontrol safe.apccontrol
114 - doins "${FILESDIR}"/apcupsd.conf
115 -
116 - dodoc ChangeLog* ReleaseNotes
117 - doman doc/*.8 doc/*.5
118 -
119 - dohtml -r doc/manual/*
120 -
121 - rm "${D}"/etc/init.d/apcupsd
122 - newinitd "${FILESDIR}/${PN}.init.4" "${PN}"
123 - newinitd "${FILESDIR}/${PN}.powerfail.init" "${PN}".powerfail
124 -
125 - systemd_dounit "${FILESDIR}"/${PN}.service
126 - dotmpfiles "${FILESDIR}"/${PN}-tmpfiles.conf
127 -
128 - # remove hal settings, we don't really want to have it around still.
129 - rm -r "${D}"/usr/share/hal
130 -
131 - # replace it with our udev rules if we're in Linux
132 - if use kernel_linux; then
133 - udev_newrules "${FILESDIR}"/apcupsd-udev.rules 60-${PN}.rules
134 - fi
135 -
136 -}
137 -
138 -pkg_postinst() {
139 - tmpfiles_process ${PN}-tmpfiles.conf
140 -
141 - if use cgi; then
142 - elog "The cgi-bin directory for ${PN} is /usr/libexec/${PN}/cgi-bin."
143 - elog "Set up your ScriptAlias or symbolic links accordingly."
144 - fi
145 -
146 - elog ""
147 - elog "Since version 3.14.0 you can use multiple apcupsd instances to"
148 - elog "control more than one UPS in a single box with openRC."
149 - elog "To do this, create a link between /etc/init.d/apcupsd to a new"
150 - elog "/etc/init.d/apcupsd.something, and it will then load the"
151 - elog "configuration file at /etc/apcupsd/something.conf."
152 - elog ""
153 -
154 - elog 'If you want apcupsd to power off your UPS when it'
155 - elog 'shuts down your system in a power failure, you must'
156 - elog 'add apcupsd.powerfail to your shutdown runlevel:'
157 - elog ''
158 - elog ' \e[01m rc-update add apcupsd.powerfail shutdown \e[0m'
159 - elog ''
160 -
161 - if use kernel_linux; then
162 - elog "Starting from version 3.14.9-r1, ${PN} installs udev rules"
163 - elog "for persistent device naming. If you have multiple UPS"
164 - elog "connected to the machine, you can point them to the devices"
165 - elog "in /dev/apcups/by-id directory."
166 - fi
167 -}