From cdb9d3955263e93bec5a99072fb52918ab9712e2 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 28 Oct 2015 15:05:16 -0400 Subject: [PATCH 01/57] Remove a pointless mkdir from %install --- apcupsd.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 1fca5dd..10c6299 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -100,7 +100,6 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT%{_initrddir} mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/www/apcupsd make DESTDIR=$RPM_BUILD_ROOT install From 0210417761a5778e0b0981b804c321b76f4d7928 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Mon, 23 Nov 2015 14:16:59 +0100 Subject: [PATCH 02/57] fix apcaccess crash if apcupsd is not running (#1236367,#1197383) - enabled modbus-usb (#1195071) - add bigger icon (#1157532) --- apcupsd-3.14.13-netopenfix.patch | 63 ++++++++++++++++++++++++++++++++ apcupsd.spec | 18 +++++++-- apcupsd64x64.png | 0 3 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 apcupsd-3.14.13-netopenfix.patch create mode 100644 apcupsd64x64.png diff --git a/apcupsd-3.14.13-netopenfix.patch b/apcupsd-3.14.13-netopenfix.patch new file mode 100644 index 0000000..face793 --- /dev/null +++ b/apcupsd-3.14.13-netopenfix.patch @@ -0,0 +1,63 @@ +diff -up apcupsd-3.14.13/src/apcaccess.c.netopenfix apcupsd-3.14.13/src/apcaccess.c +--- apcupsd-3.14.13/src/apcaccess.c.netopenfix 2015-11-23 13:03:18.960051659 +0100 ++++ apcupsd-3.14.13/src/apcaccess.c 2015-11-23 13:07:37.225759158 +0100 +@@ -49,7 +49,7 @@ static int do_pthreads_status(const char + char recvline[MAXSTRING + 1]; + char *line; + +- if ((sockfd = net_open(host, NULL, port)) == INVALID_SOCKET) { ++ if ((sockfd = net_open(host, NULL, port)) < 0) { + fprintf(stderr, "Error contacting apcupsd @ %s:%d: %s\n", + host, port, strerror(-sockfd)); + return 1; +diff -up apcupsd-3.14.13/src/cgi/upsfetch.c.netopenfix apcupsd-3.14.13/src/cgi/upsfetch.c +--- apcupsd-3.14.13/src/cgi/upsfetch.c.netopenfix 2015-11-23 13:09:20.108837721 +0100 ++++ apcupsd-3.14.13/src/cgi/upsfetch.c 2015-11-23 13:09:20.153838193 +0100 +@@ -114,7 +114,7 @@ static int fetch_data(const char *host) + *p++ = '\0'; + nis_port = atoi(p); + } +- if ((sockfd = net_open(lhost, NULL, nis_port)) == INVALID_SOCKET) { ++ if ((sockfd = net_open(lhost, NULL, nis_port)) < 0) { + (void) snprintf(errmsg, sizeof (errmsg), + "upsfetch: tcp_open failed for %s port %d", lhost, nis_port); + return 0; +@@ -153,7 +153,7 @@ int fetch_events(const char *host) + *p++ = '\0'; + nis_port = atoi(p); + } +- if ((sockfd = net_open(lhost, NULL, nis_port)) == INVALID_SOCKET) { ++ if ((sockfd = net_open(lhost, NULL, nis_port)) < 0) { + snprintf(errmsg, sizeof(errmsg), + "upsfetch: tcp_open failed for %s port %d", lhost, nis_port); + fputs(errmsg, stdout); +diff -up apcupsd-3.14.13/src/drivers/net/net.c.netopenfix apcupsd-3.14.13/src/drivers/net/net.c +--- apcupsd-3.14.13/src/drivers/net/net.c.netopenfix 2015-11-23 13:09:33.997983325 +0100 ++++ apcupsd-3.14.13/src/drivers/net/net.c 2015-11-23 13:09:34.041983787 +0100 +@@ -202,7 +202,7 @@ bool NetUpsDriver::poll_ups() + _statlen = 0; + + Dmsg(20, "Opening connection to %s:%d\n", _hostname, _port); +- if ((_sockfd = net_open(_hostname, NULL, _port)) == INVALID_SOCKET) { ++ if ((_sockfd = net_open(_hostname, NULL, _port)) < 0) { + Dmsg(90, "Exit poll_ups 0 comm lost\n"); + if (!_ups->is_commlost()) { + _ups->set_commlost(); +diff -up apcupsd-3.14.13/src/lib/statmgr.cpp.netopenfix apcupsd-3.14.13/src/lib/statmgr.cpp +--- apcupsd-3.14.13/src/lib/statmgr.cpp.netopenfix 2015-11-23 13:08:48.076501913 +0100 ++++ apcupsd-3.14.13/src/lib/statmgr.cpp 2015-11-23 13:08:48.105502218 +0100 +@@ -199,12 +199,12 @@ bool StatMgr::open() + close(); + + m_socket = net_open(m_host, NULL, m_port); +- return m_socket != INVALID_SOCKET; ++ return m_socket >= 0; + } + + void StatMgr::close() + { +- if (m_socket != INVALID_SOCKET) { ++ if (m_socket != INVALID_SOCKET && m_socket >= 0) { + net_close(m_socket); + m_socket = INVALID_SOCKET; + } diff --git a/apcupsd.spec b/apcupsd.spec index 10c6299..cc571a5 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.13 -Release: 3%{?dist} +Release: 4%{?dist} Summary: APC UPS Power Control Daemon for Linux Group: System Environment/Daemons @@ -9,6 +9,7 @@ URL: http://www.apcupsd.com Source0: http://downloads.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz Source1: apcupsd.logrotate Source2: apcupsd-httpd.conf +Source3: apcupsd64x64.png Patch0: apcupsd-3.14.3-init.patch Patch1: apcupsd-3.14.4-shutdown.patch @@ -17,11 +18,12 @@ Patch3: apcupsd-3.14.8-systemd.patch # fix crash in gui, rhbz#578276 Patch4: apcupsd-3.14.9-fixgui.patch +Patch5: apcupsd-3.14.13-netopenfix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: glibc-devel >= 2.3, gd-devel > 2.0 -BuildRequires: net-snmp-devel, tcp_wrappers-devel +BuildRequires: net-snmp-devel, tcp_wrappers-devel, libusb-devel BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils Requires: /bin/mail Requires(post): systemd-units @@ -65,6 +67,7 @@ A GUI interface to the APC UPS monitoring daemon. %patch1 -p1 -b .shutdown %patch3 -p1 -b .systemd %patch4 -p1 -b .fixgui +%patch5 -p1 -b .netopenfix #we will handle fedora/redhat part ourselfs printf 'install:\n\techo skipped\n' >platforms/redhat/Makefile @@ -85,8 +88,7 @@ export CPPFLAGS="$CPPFLAGS -DNETSNMP_NO_LEGACY_DEFINITIONS" --enable-net-snmp \ --enable-snmp \ --enable-usb \ - --enable-powerflute \ - --enable-nls \ + --enable-modbus-usb \ --enable-gapcmon \ --enable-pcnet \ --with-libwrap=%{_libdir} \ @@ -115,12 +117,14 @@ install -d %{buildroot}%{_sysconfdir}/logrotate.d install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install -d %{buildroot}%{_sysconfdir}/httpd/conf.d install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf +install -D -m0644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/apcupsd64x64.png desktop-file-install \ %if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7) --vendor="fedora" \ %endif --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ + --set-icon=apcupsd64x64 \ --delete-original \ ${RPM_BUILD_ROOT}%{_datadir}/applications/gapcmon.desktop @@ -164,6 +168,7 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/gapcmon %{_datadir}/applications/*gapcmon.desktop %{_datadir}/pixmaps/apcupsd.png +%{_datadir}/pixmaps/apcupsd64x64.png %{_datadir}/pixmaps/charging.png %{_datadir}/pixmaps/gapc_prefs.png %{_datadir}/pixmaps/onbatt.png @@ -182,6 +187,11 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Nov 23 2015 Michal Hlavinka - 3.14.13-4 +- fix apcaccess crash if apcupsd is not running (#1236367,#1197383) +- enabled modbus-usb (#1195071) +- add bigger icon (#1157532) + * Wed Jun 17 2015 Fedora Release Engineering - 3.14.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/apcupsd64x64.png b/apcupsd64x64.png new file mode 100644 index 0000000..e69de29 From 8068c0a883c69bd0abd3a68947365000cd084a42 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 3 Feb 2016 16:21:29 +0000 Subject: [PATCH 03/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index cc571a5..800526f 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.13 -Release: 4%{?dist} +Release: 5%{?dist} Summary: APC UPS Power Control Daemon for Linux Group: System Environment/Daemons @@ -187,6 +187,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Feb 03 2016 Fedora Release Engineering - 3.14.13-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Mon Nov 23 2015 Michal Hlavinka - 3.14.13-4 - fix apcaccess crash if apcupsd is not running (#1236367,#1197383) - enabled modbus-usb (#1195071) From 2cd7508e7c583987af869257a97234f352f15599 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Thu, 2 Jun 2016 13:39:19 +0200 Subject: [PATCH 04/57] updated to 3.14.14 --- .gitignore | 1 + apcupsd-3.14.13-netopenfix.patch | 63 -------------------------------- apcupsd.spec | 13 ++++--- sources | 2 +- 4 files changed, 10 insertions(+), 69 deletions(-) delete mode 100644 apcupsd-3.14.13-netopenfix.patch diff --git a/.gitignore b/.gitignore index 039fa15..830429c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ apcupsd-3.14.8.tar.gz /apcupsd-3.14.11.tar.gz /apcupsd-3.14.12.tar.gz /apcupsd-3.14.13.tar.gz +/apcupsd-3.14.14.tar.gz diff --git a/apcupsd-3.14.13-netopenfix.patch b/apcupsd-3.14.13-netopenfix.patch deleted file mode 100644 index face793..0000000 --- a/apcupsd-3.14.13-netopenfix.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff -up apcupsd-3.14.13/src/apcaccess.c.netopenfix apcupsd-3.14.13/src/apcaccess.c ---- apcupsd-3.14.13/src/apcaccess.c.netopenfix 2015-11-23 13:03:18.960051659 +0100 -+++ apcupsd-3.14.13/src/apcaccess.c 2015-11-23 13:07:37.225759158 +0100 -@@ -49,7 +49,7 @@ static int do_pthreads_status(const char - char recvline[MAXSTRING + 1]; - char *line; - -- if ((sockfd = net_open(host, NULL, port)) == INVALID_SOCKET) { -+ if ((sockfd = net_open(host, NULL, port)) < 0) { - fprintf(stderr, "Error contacting apcupsd @ %s:%d: %s\n", - host, port, strerror(-sockfd)); - return 1; -diff -up apcupsd-3.14.13/src/cgi/upsfetch.c.netopenfix apcupsd-3.14.13/src/cgi/upsfetch.c ---- apcupsd-3.14.13/src/cgi/upsfetch.c.netopenfix 2015-11-23 13:09:20.108837721 +0100 -+++ apcupsd-3.14.13/src/cgi/upsfetch.c 2015-11-23 13:09:20.153838193 +0100 -@@ -114,7 +114,7 @@ static int fetch_data(const char *host) - *p++ = '\0'; - nis_port = atoi(p); - } -- if ((sockfd = net_open(lhost, NULL, nis_port)) == INVALID_SOCKET) { -+ if ((sockfd = net_open(lhost, NULL, nis_port)) < 0) { - (void) snprintf(errmsg, sizeof (errmsg), - "upsfetch: tcp_open failed for %s port %d", lhost, nis_port); - return 0; -@@ -153,7 +153,7 @@ int fetch_events(const char *host) - *p++ = '\0'; - nis_port = atoi(p); - } -- if ((sockfd = net_open(lhost, NULL, nis_port)) == INVALID_SOCKET) { -+ if ((sockfd = net_open(lhost, NULL, nis_port)) < 0) { - snprintf(errmsg, sizeof(errmsg), - "upsfetch: tcp_open failed for %s port %d", lhost, nis_port); - fputs(errmsg, stdout); -diff -up apcupsd-3.14.13/src/drivers/net/net.c.netopenfix apcupsd-3.14.13/src/drivers/net/net.c ---- apcupsd-3.14.13/src/drivers/net/net.c.netopenfix 2015-11-23 13:09:33.997983325 +0100 -+++ apcupsd-3.14.13/src/drivers/net/net.c 2015-11-23 13:09:34.041983787 +0100 -@@ -202,7 +202,7 @@ bool NetUpsDriver::poll_ups() - _statlen = 0; - - Dmsg(20, "Opening connection to %s:%d\n", _hostname, _port); -- if ((_sockfd = net_open(_hostname, NULL, _port)) == INVALID_SOCKET) { -+ if ((_sockfd = net_open(_hostname, NULL, _port)) < 0) { - Dmsg(90, "Exit poll_ups 0 comm lost\n"); - if (!_ups->is_commlost()) { - _ups->set_commlost(); -diff -up apcupsd-3.14.13/src/lib/statmgr.cpp.netopenfix apcupsd-3.14.13/src/lib/statmgr.cpp ---- apcupsd-3.14.13/src/lib/statmgr.cpp.netopenfix 2015-11-23 13:08:48.076501913 +0100 -+++ apcupsd-3.14.13/src/lib/statmgr.cpp 2015-11-23 13:08:48.105502218 +0100 -@@ -199,12 +199,12 @@ bool StatMgr::open() - close(); - - m_socket = net_open(m_host, NULL, m_port); -- return m_socket != INVALID_SOCKET; -+ return m_socket >= 0; - } - - void StatMgr::close() - { -- if (m_socket != INVALID_SOCKET) { -+ if (m_socket != INVALID_SOCKET && m_socket >= 0) { - net_close(m_socket); - m_socket = INVALID_SOCKET; - } diff --git a/apcupsd.spec b/apcupsd.spec index 800526f..91e8ebb 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd -Version: 3.14.13 -Release: 5%{?dist} +Version: 3.14.14 +Release: 1%{?dist} Summary: APC UPS Power Control Daemon for Linux Group: System Environment/Daemons @@ -18,7 +18,6 @@ Patch3: apcupsd-3.14.8-systemd.patch # fix crash in gui, rhbz#578276 Patch4: apcupsd-3.14.9-fixgui.patch -Patch5: apcupsd-3.14.13-netopenfix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -67,7 +66,6 @@ A GUI interface to the APC UPS monitoring daemon. %patch1 -p1 -b .shutdown %patch3 -p1 -b .systemd %patch4 -p1 -b .fixgui -%patch5 -p1 -b .netopenfix #we will handle fedora/redhat part ourselfs printf 'install:\n\techo skipped\n' >platforms/redhat/Makefile @@ -75,7 +73,9 @@ printf 'install:\n\techo skipped\n' >platforms/redhat/Makefile %build %global _hardened_build 1 cp -p /usr/lib/rpm/config.{guess,sub} autoconf/ -export CPPFLAGS="$CPPFLAGS -DNETSNMP_NO_LEGACY_DEFINITIONS" +export CPPFLAGS="$RPM_OPT_FLAGS -DNETSNMP_NO_LEGACY_DEFINITIONS -Wno-format-security -Wno-error=format-security" +export CXXFLAGS="$CPPFLAGS" +export CFLAGS="$CPPFLAGS" %configure \ --sysconfdir="%{_sysconfdir}/apcupsd" \ --with-cgi-bin="%{_localstatedir}/www/apcupsd" \ @@ -187,6 +187,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Jun 02 2016 Michal Hlavinka - 3.14.14-1 +- updated to 3.14.14 + * Wed Feb 03 2016 Fedora Release Engineering - 3.14.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 290d693..4cc7ee2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c291d9d3923b4d9c0e600b755ad4f489 apcupsd-3.14.13.tar.gz +cc8f5ced77f38906a274787acb9bc980 apcupsd-3.14.14.tar.gz From f4021704e97cd242a4c42935d063756fd8aff2d2 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Wed, 22 Jun 2016 15:03:17 -0500 Subject: [PATCH 05/57] Spec cleanup. Add rpmlint.cf. --- apcupsd.spec | 125 ++++++++++++++++++++++----------------------------- rpmlint.cf | 3 ++ 2 files changed, 57 insertions(+), 71 deletions(-) create mode 100644 rpmlint.cf diff --git a/apcupsd.spec b/apcupsd.spec index 91e8ebb..145249d 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,12 +1,11 @@ Name: apcupsd Version: 3.14.14 -Release: 1%{?dist} -Summary: APC UPS Power Control Daemon for Linux +Release: 2%{?dist} +Summary: APC UPS Power Control Daemon -Group: System Environment/Daemons License: GPLv2 URL: http://www.apcupsd.com -Source0: http://downloads.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz +Source0: https://downloads.sourceforge.net/apcupsd/apcupsd-%version.tar.gz Source1: apcupsd.logrotate Source2: apcupsd-httpd.conf Source3: apcupsd64x64.png @@ -19,9 +18,7 @@ Patch3: apcupsd-3.14.8-systemd.patch # fix crash in gui, rhbz#578276 Patch4: apcupsd-3.14.9-fixgui.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: glibc-devel >= 2.3, gd-devel > 2.0 +BuildRequires: glibc-devel, gd-devel BuildRequires: net-snmp-devel, tcp_wrappers-devel, libusb-devel BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils Requires: /bin/mail @@ -44,7 +41,7 @@ Some features depend on what UPS model you have (simple or smart). %package cgi Summary: Web interface for apcupsd Group: Applications/Internet -Requires: %{name} = %{version}-%{release} +Requires: apcupsd = %version-%release Requires: httpd %description cgi @@ -54,20 +51,16 @@ A CGI interface to the APC UPS monitoring daemon. %package gui Summary: GUI interface for apcupsd Group: Applications/System -Requires: %{name} = %{version}-%{release} +Requires: apcupsd = %version-%release %description gui A GUI interface to the APC UPS monitoring daemon. %prep -%setup -q -%patch0 -p1 -b .init -%patch1 -p1 -b .shutdown -%patch3 -p1 -b .systemd -%patch4 -p1 -b .fixgui +%autosetup -p1 -#we will handle fedora/redhat part ourselfs +#we will handle fedora/redhat part ourselves printf 'install:\n\techo skipped\n' >platforms/redhat/Makefile %build @@ -77,8 +70,8 @@ export CPPFLAGS="$RPM_OPT_FLAGS -DNETSNMP_NO_LEGACY_DEFINITIONS -Wno-format-secu export CXXFLAGS="$CPPFLAGS" export CFLAGS="$CPPFLAGS" %configure \ - --sysconfdir="%{_sysconfdir}/apcupsd" \ - --with-cgi-bin="%{_localstatedir}/www/apcupsd" \ + --sysconfdir="/etc/apcupsd" \ + --with-cgi-bin="/var/www/apcupsd" \ --sbindir=/sbin \ --enable-cgi \ --enable-pthreads \ @@ -97,83 +90,70 @@ export CFLAGS="$CPPFLAGS" --with-upscable=usb \ --with-lock-dir=/var/lock \ APCUPSD_MAIL=/bin/mail -make %{?_smp_mflags} +%make_build %install -rm -rf $RPM_BUILD_ROOT - -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/www/apcupsd - -make DESTDIR=$RPM_BUILD_ROOT install - +mkdir -p %buildroot/var/www/apcupsd +make DESTDIR=%buildroot install install -m744 platforms/apccontrol \ - $RPM_BUILD_ROOT%{_sysconfdir}/apcupsd/apccontrol + %buildroot/etc/apcupsd/apccontrol # systemd support -install -p -D -m644 apcupsd.service $RPM_BUILD_ROOT/lib/systemd/system/apcupsd.service -install -p -D -m755 apcupsd_shutdown $RPM_BUILD_ROOT/lib/systemd/system-shutdown/apcupsd_shutdown +install -p -D -m644 apcupsd.service %buildroot/lib/systemd/system/apcupsd.service +install -p -D -m755 apcupsd_shutdown %buildroot/lib/systemd/system-shutdown/apcupsd_shutdown -install -d %{buildroot}%{_sysconfdir}/logrotate.d -install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} -install -d %{buildroot}%{_sysconfdir}/httpd/conf.d -install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf -install -D -m0644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/apcupsd64x64.png +install -d %buildroot/etc/logrotate.d +install -m0644 %SOURCE1 %buildroot/etc/logrotate.d/apcupsd +install -d %buildroot/etc/httpd/conf.d +install -m0644 %SOURCE2 %buildroot/etc/httpd/conf.d/apcupsd.conf +install -D -m0644 %SOURCE3 %buildroot/usr/share/pixmaps/apcupsd64x64.png desktop-file-install \ -%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7) --vendor="fedora" \ -%endif - --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ + --dir=%buildroot/usr/share/applications \ --set-icon=apcupsd64x64 \ --delete-original \ - ${RPM_BUILD_ROOT}%{_datadir}/applications/gapcmon.desktop + %buildroot/usr/share/applications/gapcmon.desktop -# Cleanup for later %doc processing +# Cleanup for later %%doc processing chmod -x examples/*.c rm examples/*.in - -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) -%doc COPYING ChangeLog examples ReleaseNotes -%dir %{_sysconfdir}/apcupsd -/lib/systemd/system/%{name}.service +%license COPYING +%doc ChangeLog examples ReleaseNotes +%dir /etc/apcupsd +/lib/systemd/system/apcupsd.service /lib/systemd/system-shutdown/apcupsd_shutdown -%config(noreplace) %{_sysconfdir}/apcupsd/apcupsd.conf -%attr(0755,root,root) %{_sysconfdir}/apcupsd/apccontrol -%config(noreplace) %{_sysconfdir}/apcupsd/changeme -%config(noreplace) %{_sysconfdir}/apcupsd/commfailure -%config(noreplace) %{_sysconfdir}/apcupsd/commok -%config(noreplace) %{_sysconfdir}/apcupsd/offbattery -%config(noreplace) %{_sysconfdir}/apcupsd/onbattery -%config(noreplace) %{_sysconfdir}/logrotate.d/apcupsd -%{_datadir}/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi +%config(noreplace) /etc/apcupsd/apcupsd.conf +%attr(0755,root,root) /etc/apcupsd/apccontrol +%config(noreplace) /etc/apcupsd/changeme +%config(noreplace) /etc/apcupsd/commfailure +%config(noreplace) /etc/apcupsd/commok +%config(noreplace) /etc/apcupsd/offbattery +%config(noreplace) /etc/apcupsd/onbattery +%config(noreplace) /etc/logrotate.d/apcupsd +/usr/share/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi %attr(0755,root,root) /sbin/* %{_mandir}/*/* %files cgi -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/apcupsd/apcupsd.css -%config(noreplace) %{_sysconfdir}/httpd/conf.d/apcupsd.conf -%config(noreplace) %{_sysconfdir}/apcupsd/hosts.conf -%config(noreplace) %{_sysconfdir}/apcupsd/multimon.conf -%{_localstatedir}/www/apcupsd/ +%config(noreplace) /etc/apcupsd/apcupsd.css +%config(noreplace) /etc/httpd/conf.d/apcupsd.conf +%config(noreplace) /etc/apcupsd/hosts.conf +%config(noreplace) /etc/apcupsd/multimon.conf +/var/www/apcupsd/ %files gui -%defattr(-,root,root,-) -%{_bindir}/gapcmon -%{_datadir}/applications/*gapcmon.desktop -%{_datadir}/pixmaps/apcupsd.png -%{_datadir}/pixmaps/apcupsd64x64.png -%{_datadir}/pixmaps/charging.png -%{_datadir}/pixmaps/gapc_prefs.png -%{_datadir}/pixmaps/onbatt.png -%{_datadir}/pixmaps/online.png -%{_datadir}/pixmaps/unplugged.png +/usr/bin/gapcmon +/usr/share/applications/*gapcmon.desktop +/usr/share/pixmaps/apcupsd.png +/usr/share/pixmaps/apcupsd64x64.png +/usr/share/pixmaps/charging.png +/usr/share/pixmaps/gapc_prefs.png +/usr/share/pixmaps/onbatt.png +/usr/share/pixmaps/online.png +/usr/share/pixmaps/unplugged.png %post @@ -187,6 +167,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Jun 22 2016 Jason L Tibbitts III - 3.14.14-2 +- Clean up the spec a bit. + * Thu Jun 02 2016 Michal Hlavinka - 3.14.14-1 - updated to 3.14.14 diff --git a/rpmlint.cf b/rpmlint.cf new file mode 100644 index 0000000..8f28374 --- /dev/null +++ b/rpmlint.cf @@ -0,0 +1,3 @@ +setOption('NetworkEnabled', False) +addFilter('hardcoded-library-path in %buildroot/lib/systemd') +addFilter('hardcoded-library-path in /lib/systemd') From e647d7917418993aa8b328883e39cd3eee66a6fb Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Wed, 22 Jun 2016 19:14:41 -0500 Subject: [PATCH 06/57] More spec cleanups. --- apcupsd-3.14.4-shutdown.patch | 12 -------- apcupsd-3.14.8-systemd.patch | 28 ------------------ apcupsd.service | 11 +++++++ apcupsd.spec | 56 +++++++++++++++++++---------------- apcupsd_shutdown | 9 ++++++ 5 files changed, 50 insertions(+), 66 deletions(-) delete mode 100644 apcupsd-3.14.4-shutdown.patch delete mode 100644 apcupsd-3.14.8-systemd.patch create mode 100644 apcupsd.service create mode 100644 apcupsd_shutdown diff --git a/apcupsd-3.14.4-shutdown.patch b/apcupsd-3.14.4-shutdown.patch deleted file mode 100644 index 00651b5..0000000 --- a/apcupsd-3.14.4-shutdown.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up apcupsd-3.14.4/platforms/apccontrol.in.shutdown apcupsd-3.14.4/platforms/apccontrol.in ---- apcupsd-3.14.4/platforms/apccontrol.in.shutdown 2008-05-28 09:15:47.000000000 +0200 -+++ apcupsd-3.14.4/platforms/apccontrol.in 2008-05-28 09:16:04.000000000 +0200 -@@ -104,7 +104,7 @@ case "$1" in - ;; - doshutdown) - echo "UPS ${2} initiated Shutdown Sequence" | ${WALL} -- ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown" -+ ${SHUTDOWN} -h -H now "apcupsd UPS ${2} initiated shutdown" - ;; - annoyme) - echo "Power problems with UPS ${2}. Please logoff." | ${WALL} diff --git a/apcupsd-3.14.8-systemd.patch b/apcupsd-3.14.8-systemd.patch deleted file mode 100644 index b0a24cb..0000000 --- a/apcupsd-3.14.8-systemd.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -up apcupsd-3.14.8/apcupsd.service.systemd apcupsd-3.14.8/apcupsd.service ---- apcupsd-3.14.8/apcupsd.service.systemd 2011-06-16 10:33:02.335889489 +0200 -+++ apcupsd-3.14.8/apcupsd.service 2011-06-16 09:59:02.616138047 +0200 -@@ -0,0 +1,11 @@ -+[Unit] -+Description=APC UPS Power Control Daemon for Linux -+After=syslog.target -+After=network.target -+ -+[Service] -+ExecStartPre=-/bin/rm -f /etc/apcupsd/powerfail -+ExecStart=/sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf -+ -+[Install] -+WantedBy=multi-user.target -diff -up apcupsd-3.14.8/apcupsd_shutdown.systemd apcupsd-3.14.8/apcupsd_shutdown ---- apcupsd-3.14.8/apcupsd_shutdown.systemd 2011-06-16 10:33:08.831934420 +0200 -+++ apcupsd-3.14.8/apcupsd_shutdown 2011-06-16 10:10:20.948796784 +0200 -@@ -0,0 +1,9 @@ -+#!/bin/sh -+ -+# See if this is a powerfail situation. -+if [ -f /etc/apcupsd/powerfail ]; then -+ echo -+ echo "APCUPSD will now power off the UPS" -+ echo -+ /etc/apcupsd/apccontrol killpower -+fi diff --git a/apcupsd.service b/apcupsd.service new file mode 100644 index 0000000..fb50d9d --- /dev/null +++ b/apcupsd.service @@ -0,0 +1,11 @@ +[Unit] +Description=APC UPS Power Control Daemon for Linux +After=syslog.target +After=network-online.target + +[Service] +ExecStartPre=-/bin/rm -f /etc/apcupsd/powerfail +ExecStart=/sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf + +[Install] +WantedBy=multi-user.target diff --git a/apcupsd.spec b/apcupsd.spec index 145249d..91cb152 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,22 +1,19 @@ -Name: apcupsd -Version: 3.14.14 -Release: 2%{?dist} -Summary: APC UPS Power Control Daemon +Name: apcupsd +Version: 3.14.14 +Release: 2%{?dist} +Summary: APC UPS Power Control Daemon -License: GPLv2 -URL: http://www.apcupsd.com -Source0: https://downloads.sourceforge.net/apcupsd/apcupsd-%version.tar.gz -Source1: apcupsd.logrotate -Source2: apcupsd-httpd.conf -Source3: apcupsd64x64.png -Patch0: apcupsd-3.14.3-init.patch -Patch1: apcupsd-3.14.4-shutdown.patch - -# systemd support -Patch3: apcupsd-3.14.8-systemd.patch +License: GPLv2 +URL: http://www.apcupsd.com +Source0: https://downloads.sourceforge.net/apcupsd/apcupsd-%version.tar.gz +Source1: apcupsd.service +Source2: apcupsd_shutdown +Source3: apcupsd-httpd.conf +Source4: apcupsd.logrotate +Source5: apcupsd64x64.png # fix crash in gui, rhbz#578276 -Patch4: apcupsd-3.14.9-fixgui.patch +Patch0: apcupsd-3.14.9-fixgui.patch BuildRequires: glibc-devel, gd-devel BuildRequires: net-snmp-devel, tcp_wrappers-devel, libusb-devel @@ -60,8 +57,8 @@ A GUI interface to the APC UPS monitoring daemon. %prep %autosetup -p1 -#we will handle fedora/redhat part ourselves -printf 'install:\n\techo skipped\n' >platforms/redhat/Makefile +# Override the provided platform makefile +printf 'install:\n\techo skipped\n' > platforms/redhat/Makefile %build %global _hardened_build 1 @@ -98,15 +95,16 @@ make DESTDIR=%buildroot install install -m744 platforms/apccontrol \ %buildroot/etc/apcupsd/apccontrol -# systemd support -install -p -D -m644 apcupsd.service %buildroot/lib/systemd/system/apcupsd.service -install -p -D -m755 apcupsd_shutdown %buildroot/lib/systemd/system-shutdown/apcupsd_shutdown +install -p -D -m644 %SOURCE1 %buildroot/lib/systemd/system/apcupsd.service +install -p -D -m755 %SOURCE2 %buildroot/lib/systemd/system-shutdown/apcupsd_shutdown -install -d %buildroot/etc/logrotate.d -install -m0644 %SOURCE1 %buildroot/etc/logrotate.d/apcupsd -install -d %buildroot/etc/httpd/conf.d -install -m0644 %SOURCE2 %buildroot/etc/httpd/conf.d/apcupsd.conf -install -D -m0644 %SOURCE3 %buildroot/usr/share/pixmaps/apcupsd64x64.png +#install -d %buildroot/etc/httpd/conf.d +install -p -D -m0644 %SOURCE3 %buildroot/etc/httpd/conf.d/apcupsd.conf + +#install -d %buildroot/etc/logrotate.d +install -p -D -m0644 %SOURCE4 %buildroot/etc/logrotate.d/apcupsd + +install -p -D -m0644 %SOURCE5 %buildroot/usr/share/pixmaps/apcupsd64x64.png desktop-file-install \ --vendor="fedora" \ @@ -169,6 +167,12 @@ rm examples/*.in %changelog * Wed Jun 22 2016 Jason L Tibbitts III - 3.14.14-2 - Clean up the spec a bit. +- I've no idea why the unit file and shutdown script were added in a patch. + The unit file also used network.target instead of network-online.target. +- Remove apcupsd-3.14.4-shutdown.patch. I have no idea why it was there, as + "shutdown -h now" should be hust fine, while "-h -H now" is both + contradictory and should just leave the machine halted but running, which + doesn't make much sense. * Thu Jun 02 2016 Michal Hlavinka - 3.14.14-1 - updated to 3.14.14 diff --git a/apcupsd_shutdown b/apcupsd_shutdown new file mode 100644 index 0000000..4eff1ed --- /dev/null +++ b/apcupsd_shutdown @@ -0,0 +1,9 @@ +#!/bin/sh + +# See if this is a powerfail situation. +if [ -f /etc/apcupsd/powerfail ]; then + echo + echo "APCUPSD will now power off the UPS" + echo + /etc/apcupsd/apccontrol killpower +fi From a1637ce422a7340151f1e6c533d696bb380779af Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Wed, 22 Jun 2016 20:20:39 -0500 Subject: [PATCH 07/57] Even more spec cleanups. --- apcupsd.spec | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 91cb152..910c44b 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -91,19 +91,14 @@ export CFLAGS="$CPPFLAGS" %install mkdir -p %buildroot/var/www/apcupsd -make DESTDIR=%buildroot install +%make_install install -m744 platforms/apccontrol \ %buildroot/etc/apcupsd/apccontrol -install -p -D -m644 %SOURCE1 %buildroot/lib/systemd/system/apcupsd.service -install -p -D -m755 %SOURCE2 %buildroot/lib/systemd/system-shutdown/apcupsd_shutdown - -#install -d %buildroot/etc/httpd/conf.d +install -p -D -m0644 %SOURCE1 %buildroot/lib/systemd/system/apcupsd.service +install -p -D -m0755 %SOURCE2 %buildroot/lib/systemd/system-shutdown/apcupsd_shutdown install -p -D -m0644 %SOURCE3 %buildroot/etc/httpd/conf.d/apcupsd.conf - -#install -d %buildroot/etc/logrotate.d install -p -D -m0644 %SOURCE4 %buildroot/etc/logrotate.d/apcupsd - install -p -D -m0644 %SOURCE5 %buildroot/usr/share/pixmaps/apcupsd64x64.png desktop-file-install \ @@ -167,12 +162,11 @@ rm examples/*.in %changelog * Wed Jun 22 2016 Jason L Tibbitts III - 3.14.14-2 - Clean up the spec a bit. -- I've no idea why the unit file and shutdown script were added in a patch. - The unit file also used network.target instead of network-online.target. -- Remove apcupsd-3.14.4-shutdown.patch. I have no idea why it was there, as - "shutdown -h now" should be hust fine, while "-h -H now" is both - contradictory and should just leave the machine halted but running, which - doesn't make much sense. +- Stop adding the unit file and shutdown script in a patch and just included + them as sources instead. +- Have the unit go after network-online.target instead of network.target. +- Remove apcupsd-3.14.4-shutdown.patch. Both the old and the new commands to + exactly the same thing for me (halt but not power down) on my test machines. * Thu Jun 02 2016 Michal Hlavinka - 3.14.14-1 - updated to 3.14.14 From fa6182881f95069babf2d80303026a826f733bc9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 06:07:49 +0000 Subject: [PATCH 08/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 910c44b..0c5b6ef 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 2%{?dist} +Release: 3%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -160,6 +160,9 @@ rm examples/*.in %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 3.14.14-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Wed Jun 22 2016 Jason L Tibbitts III - 3.14.14-2 - Clean up the spec a bit. - Stop adding the unit file and shutdown script in a patch and just included From 5c009e81661eac81a47c1e9c6eb8c0253772d35e Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Fri, 24 Mar 2017 14:18:58 -0500 Subject: [PATCH 09/57] Depend on /usr/bin/wall directly. --- apcupsd.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 0c5b6ef..922b16c 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 3%{?dist} +Release: 4%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -18,7 +18,9 @@ Patch0: apcupsd-3.14.9-fixgui.patch BuildRequires: glibc-devel, gd-devel BuildRequires: net-snmp-devel, tcp_wrappers-devel, libusb-devel BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils -Requires: /bin/mail +# This is part of util-linux in Fedora, but on EL7 it's in sysvinit-tools. +BuildRequires: /usr/bin/wall +Requires: /bin/mail /usr/bin/wall Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units @@ -160,6 +162,9 @@ rm examples/*.in %changelog +* Fri Mar 24 2017 Jason L Tibbitts III - 3.14.14-4 +- Depend on /usr/bin/wall to accommodate EL7. + * Fri Feb 10 2017 Fedora Release Engineering - 3.14.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 1416bd9d7f99d99f11b6eb9a9b14a8030a47c9ce Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Mon, 17 Apr 2017 15:38:12 -0500 Subject: [PATCH 10/57] Reinstate shutdown patch. --- apcupsd-3.14.4-shutdown.patch | 19 +++++++++++++++++++ apcupsd.spec | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 apcupsd-3.14.4-shutdown.patch diff --git a/apcupsd-3.14.4-shutdown.patch b/apcupsd-3.14.4-shutdown.patch new file mode 100644 index 0000000..17671f0 --- /dev/null +++ b/apcupsd-3.14.4-shutdown.patch @@ -0,0 +1,19 @@ +This is needed to properly halt the machine without powering it down. + +See: + https://bugzilla.redhat.com/show_bug.cgi?id=348701 + https://bugzilla.redhat.com/show_bug.cgi?id=1442577 + + +diff -up apcupsd-3.14.4/platforms/apccontrol.in.shutdown apcupsd-3.14.4/platforms/apccontrol.in +--- apcupsd-3.14.4/platforms/apccontrol.in.shutdown 2008-05-28 09:15:47.000000000 +0200 ++++ apcupsd-3.14.4/platforms/apccontrol.in 2008-05-28 09:16:04.000000000 +0200 +@@ -104,7 +104,7 @@ case "$1" in + ;; + doshutdown) + echo "UPS ${2} initiated Shutdown Sequence" | ${WALL} +- ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown" ++ ${SHUTDOWN} -h -H now "apcupsd UPS ${2} initiated shutdown" + ;; + annoyme) + echo "Power problems with UPS ${2}. Please logoff." | ${WALL} diff --git a/apcupsd.spec b/apcupsd.spec index 922b16c..b7e48d1 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 4%{?dist} +Release: 5%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -14,6 +14,8 @@ Source5: apcupsd64x64.png # fix crash in gui, rhbz#578276 Patch0: apcupsd-3.14.9-fixgui.patch +# Halt without powering off, rhbz#1442577 +Patch1: apcupsd-3.14.4-shutdown.patch BuildRequires: glibc-devel, gd-devel BuildRequires: net-snmp-devel, tcp_wrappers-devel, libusb-devel @@ -162,6 +164,9 @@ rm examples/*.in %changelog +* Mon Apr 17 2017 Jason L Tibbitts III - 3.14.14-5 +- Reinstate patch to call shutdown with -H to halt instead of powering down. + * Fri Mar 24 2017 Jason L Tibbitts III - 3.14.14-4 - Depend on /usr/bin/wall to accommodate EL7. From e3b9a26c798236e48d9d103d2d50da4456a702f4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 03:04:34 +0000 Subject: [PATCH 11/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index b7e48d1..c9a9574 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 5%{?dist} +Release: 6%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -164,6 +164,9 @@ rm examples/*.in %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 3.14.14-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Mon Apr 17 2017 Jason L Tibbitts III - 3.14.14-5 - Reinstate patch to call shutdown with -H to halt instead of powering down. From 69851f97db723e3f940a58c1b0e0566aebade345 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 2 Aug 2017 17:37:43 +0000 Subject: [PATCH 12/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index c9a9574..87b41ed 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 6%{?dist} +Release: 7%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -164,6 +164,9 @@ rm examples/*.in %changelog +* Wed Aug 02 2017 Fedora Release Engineering - 3.14.14-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 3.14.14-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 520be58fed6b37292e5bd34fde4a0de08daed161 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Thu, 25 Jan 2018 16:37:58 -0600 Subject: [PATCH 13/57] Use proper systemd dependencies. --- apcupsd.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 87b41ed..71a5515 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 7%{?dist} +Release: 8%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -23,9 +23,7 @@ BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils # This is part of util-linux in Fedora, but on EL7 it's in sysvinit-tools. BuildRequires: /usr/bin/wall Requires: /bin/mail /usr/bin/wall -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units +%{?systemd_requires} %description Apcupsd can be used for controlling most APC UPSes. During a @@ -164,6 +162,9 @@ rm examples/*.in %changelog +* Thu Jan 25 2018 Jason L Tibbitts III - 3.14.14-8 +- Use proper systemd dependencies. + * Wed Aug 02 2017 Fedora Release Engineering - 3.14.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From cc86b8520770b742b49cd8eb550b294daa5c9426 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 02:35:42 +0000 Subject: [PATCH 14/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 71a5515..c12912c 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 8%{?dist} +Release: 9%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -162,6 +162,9 @@ rm examples/*.in %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 3.14.14-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Thu Jan 25 2018 Jason L Tibbitts III - 3.14.14-8 - Use proper systemd dependencies. From d7aef11c95169b6b85e00e08669b867fdeef296b Mon Sep 17 00:00:00 2001 From: Till Maas Date: Mon, 26 Mar 2018 22:07:37 +0200 Subject: [PATCH 15/57] rebuilt to drop tcp_wrappers dependency https://bugzilla.redhat.com/show_bug.cgi?id=1518751 --- apcupsd.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index c12912c..c54bafc 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 9%{?dist} +Release: 10%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -162,6 +162,10 @@ rm examples/*.in %changelog +* Mon Mar 26 2018 Till Maas - 3.14.14-10 +- rebuilt to drop tcp_wrappers dependency + https://bugzilla.redhat.com/show_bug.cgi?id=1518751 + * Wed Feb 07 2018 Fedora Release Engineering - 3.14.14-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From b0a2a6ad1b13288d151bc1907015a4d3df8c74b3 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Tue, 27 Mar 2018 00:30:59 +0200 Subject: [PATCH 16/57] Remove tpc_wrappers support --- apcupsd.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index c54bafc..54d7c92 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -18,7 +18,7 @@ Patch0: apcupsd-3.14.9-fixgui.patch Patch1: apcupsd-3.14.4-shutdown.patch BuildRequires: glibc-devel, gd-devel -BuildRequires: net-snmp-devel, tcp_wrappers-devel, libusb-devel +BuildRequires: net-snmp-devel, libusb-devel BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils # This is part of util-linux in Fedora, but on EL7 it's in sysvinit-tools. BuildRequires: /usr/bin/wall @@ -83,7 +83,6 @@ export CFLAGS="$CPPFLAGS" --enable-modbus-usb \ --enable-gapcmon \ --enable-pcnet \ - --with-libwrap=%{_libdir} \ --with-serial-dev= \ --with-upstype=usb \ --with-upscable=usb \ @@ -165,6 +164,7 @@ rm examples/*.in * Mon Mar 26 2018 Till Maas - 3.14.14-10 - rebuilt to drop tcp_wrappers dependency https://bugzilla.redhat.com/show_bug.cgi?id=1518751 +- remove tcp_wrappers support * Wed Feb 07 2018 Fedora Release Engineering - 3.14.14-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 0adf8f9b0cc689233f298b8eb246f0d2257dfa3f Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Thu, 17 May 2018 18:14:48 -0500 Subject: [PATCH 17/57] Add KillMode=process to the systemd unit. --- apcupsd.service | 1 + apcupsd.spec | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apcupsd.service b/apcupsd.service index fb50d9d..614fec2 100644 --- a/apcupsd.service +++ b/apcupsd.service @@ -6,6 +6,7 @@ After=network-online.target [Service] ExecStartPre=-/bin/rm -f /etc/apcupsd/powerfail ExecStart=/sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf +KillMode=process [Install] WantedBy=multi-user.target diff --git a/apcupsd.spec b/apcupsd.spec index 54d7c92..c212681 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 10%{?dist} +Release: 11%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -161,6 +161,9 @@ rm examples/*.in %changelog +* Thu May 17 2018 Jason L Tibbitts III - 3.14.14-11 +- Add KillMode=process to the systemd unit. + * Mon Mar 26 2018 Till Maas - 3.14.14-10 - rebuilt to drop tcp_wrappers dependency https://bugzilla.redhat.com/show_bug.cgi?id=1518751 From aff642fa4aa34cad24a08ae5e5d2fde14aff9c73 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 10 Jul 2018 16:20:50 +0200 Subject: [PATCH 18/57] add BuildRequires: gcc-c++ Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot --- apcupsd.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/apcupsd.spec b/apcupsd.spec index c212681..d7a43be 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -17,6 +17,7 @@ Patch0: apcupsd-3.14.9-fixgui.patch # Halt without powering off, rhbz#1442577 Patch1: apcupsd-3.14.4-shutdown.patch +BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel BuildRequires: net-snmp-devel, libusb-devel BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils From f50b2a99ce393aa7feb1a5730b61201c9b62b8d7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 12 Jul 2018 20:23:23 +0000 Subject: [PATCH 19/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index d7a43be..1dc9323 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 11%{?dist} +Release: 12%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -162,6 +162,9 @@ rm examples/*.in %changelog +* Thu Jul 12 2018 Fedora Release Engineering - 3.14.14-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Thu May 17 2018 Jason L Tibbitts III - 3.14.14-11 - Add KillMode=process to the systemd unit. From c8d8f42edde5052d05cd4edb513e3b31e0cf6733 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Mon, 3 Dec 2018 13:39:19 -0600 Subject: [PATCH 20/57] Fix broken zero-size icon. --- apcupsd.spec | 5 ++++- apcupsd64x64.png | Bin 0 -> 4287 bytes 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 1dc9323..6fe5c2d 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 12%{?dist} +Release: 13%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -162,6 +162,9 @@ rm examples/*.in %changelog +* Mon Dec 03 2018 Jason L Tibbitts III - 3.14.14-13 +- Fix broken zero-size icon. + * Thu Jul 12 2018 Fedora Release Engineering - 3.14.14-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/apcupsd64x64.png b/apcupsd64x64.png index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ed65f35fb27546207ee7d56f61087145619a3c0a 100644 GIT binary patch literal 4287 zcmZ{mXEfW5pQbCNy_866-nraZEC`zq{P2M`dv97Z<#+n>|Kfk{xo_?{pL5^b7dOH{Uz>@6lK}t#CY=WwC;$Ld{~AmS0KgXq z>8@EzyM&w5&#e%0D$e) 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 USNN}A0001VH1#!#)h*xr4`8z*F#rGn literal 0 HcmV?d00001 From efba3a0409b13f46cafa7c7bc63dd63ed9213928 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Thu, 24 Jan 2019 12:37:57 -0600 Subject: [PATCH 21/57] Remove Group: tags. --- apcupsd.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 6fe5c2d..2f28d44 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -40,7 +40,6 @@ Some features depend on what UPS model you have (simple or smart). %package cgi Summary: Web interface for apcupsd -Group: Applications/Internet Requires: apcupsd = %version-%release Requires: httpd @@ -50,7 +49,6 @@ A CGI interface to the APC UPS monitoring daemon. %package gui Summary: GUI interface for apcupsd -Group: Applications/System Requires: apcupsd = %version-%release %description gui From 8d58df5acfde5b065642dbd313746e0d4045ccfe Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 13:34:10 +0000 Subject: [PATCH 22/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 2f28d44..354a9c0 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 13%{?dist} +Release: 14%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -160,6 +160,9 @@ rm examples/*.in %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 3.14.14-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Mon Dec 03 2018 Jason L Tibbitts III - 3.14.14-13 - Fix broken zero-size icon. From 5341db8d9b33438da86bc8c7c02bb841828a90c0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jul 2019 18:11:28 +0000 Subject: [PATCH 23/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 354a9c0..fb1c609 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ Name: apcupsd Version: 3.14.14 -Release: 14%{?dist} +Release: 15%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -160,6 +160,9 @@ rm examples/*.in %changelog +* Wed Jul 24 2019 Fedora Release Engineering - 3.14.14-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Jan 31 2019 Fedora Release Engineering - 3.14.14-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 48c9ebfc911d9261f22df254831eba3f7443af9c Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Wed, 24 Jul 2019 20:28:36 -0500 Subject: [PATCH 24/57] Work around RPM 4.15 change that broke the build --- apcupsd.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index fb1c609..e750c28 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,10 @@ +# A change in RPM 4.15 causes the make_build macro to misbuild this package. +# See https://github.com/rpm-software-management/rpm/issues/798 +%global make_build %{__make} %{?_make_output_sync} %{?_smp_mflags} + Name: apcupsd Version: 3.14.14 -Release: 15%{?dist} +Release: 16%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -17,7 +21,7 @@ Patch0: apcupsd-3.14.9-fixgui.patch # Halt without powering off, rhbz#1442577 Patch1: apcupsd-3.14.4-shutdown.patch -BuildRequires: gcc-c++ +BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel BuildRequires: net-snmp-devel, libusb-devel BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils @@ -160,6 +164,9 @@ rm examples/*.in %changelog +* Wed Jul 24 2019 Jason L Tibbitts III - 3.14.14-16 +- Workaround change in RPM 4.15 which breaks the build. + * Wed Jul 24 2019 Fedora Release Engineering - 3.14.14-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 28128d0891a9cfeb46c74f12646c70dd55abfabe Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 11:49:25 +0000 Subject: [PATCH 25/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index e750c28..73c3cc3 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 16%{?dist} +Release: 17%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -164,6 +164,9 @@ rm examples/*.in %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 3.14.14-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Wed Jul 24 2019 Jason L Tibbitts III - 3.14.14-16 - Workaround change in RPM 4.15 which breaks the build. From ce3cc5f24b39cd6e0e54facba7a6daab726868d9 Mon Sep 17 00:00:00 2001 From: Germano Massullo Date: Mon, 8 Jun 2020 16:39:57 +0200 Subject: [PATCH 26/57] Replaced BuildRequires: gnome-vfs2 with BuildRequires: GConf2-devel --- apcupsd.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 73c3cc3..fc71a12 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 17%{?dist} +Release: 18%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -24,7 +24,7 @@ Patch1: apcupsd-3.14.4-shutdown.patch BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel BuildRequires: net-snmp-devel, libusb-devel -BuildRequires: gtk2-devel, gnome-vfs2-devel, desktop-file-utils +BuildRequires: gtk2-devel, GConf2-devel, desktop-file-utils # This is part of util-linux in Fedora, but on EL7 it's in sysvinit-tools. BuildRequires: /usr/bin/wall Requires: /bin/mail /usr/bin/wall @@ -164,6 +164,9 @@ rm examples/*.in %changelog +* Mon Jun 08 2020 Germano Massullo - 3.14.14-18 +- Replaced BuildRequires: gnome-vfs2 with BuildRequires: GConf2-devel More infos at https://bugzilla.redhat.com/show_bug.cgi?id=1745727#c5 + * Tue Jan 28 2020 Fedora Release Engineering - 3.14.14-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 7e824badda85466e64bcb752fe68dd82a5aa2bdc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 12:13:58 +0000 Subject: [PATCH 27/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index fc71a12..349f5a4 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 18%{?dist} +Release: 19%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -164,6 +164,9 @@ rm examples/*.in %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 3.14.14-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon Jun 08 2020 Germano Massullo - 3.14.14-18 - Replaced BuildRequires: gnome-vfs2 with BuildRequires: GConf2-devel More infos at https://bugzilla.redhat.com/show_bug.cgi?id=1745727#c5 From d31057054d162db3bf7ad8531d92dc1419f18865 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 1 Aug 2020 00:01:39 +0000 Subject: [PATCH 28/57] - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 349f5a4..5fb0df2 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 19%{?dist} +Release: 20%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -164,6 +164,10 @@ rm examples/*.in %changelog +* Sat Aug 01 2020 Fedora Release Engineering - 3.14.14-20 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 3.14.14-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From ebecec4c088583df38fda681b103d23374cd36ce Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 16 Dec 2020 23:31:34 +0000 Subject: [PATCH 29/57] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- apcupsd.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/apcupsd.spec b/apcupsd.spec index 5fb0df2..ac757f8 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -27,6 +27,7 @@ BuildRequires: net-snmp-devel, libusb-devel BuildRequires: gtk2-devel, GConf2-devel, desktop-file-utils # This is part of util-linux in Fedora, but on EL7 it's in sysvinit-tools. BuildRequires: /usr/bin/wall +BuildRequires: make Requires: /bin/mail /usr/bin/wall %{?systemd_requires} From a8a7b6eef1d3816cbe8188a73a77aeb64fb6d644 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 00:17:16 +0000 Subject: [PATCH 30/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index ac757f8..4f601c2 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 20%{?dist} +Release: 21%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -165,6 +165,9 @@ rm examples/*.in %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 3.14.14-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Sat Aug 01 2020 Fedora Release Engineering - 3.14.14-20 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 513fee665fd942627e4e0e118e98427bc8710e24 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Sat, 30 Jan 2021 13:31:24 -0600 Subject: [PATCH 31/57] Fix build on F33+ Previous to F33, the files /usr/lib/rpm/config.{guess,sub} existed, and this package copied them into the autoconf directory. This was added in 2008 with no explanatory comment other than "new upstream version". RPM no longer includes those files, though copies do still exist in /usr/lib/rpm/redhat. The package appears fine without them. --- apcupsd.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 4f601c2..24514ab 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 21%{?dist} +Release: 22%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -68,7 +68,6 @@ printf 'install:\n\techo skipped\n' > platforms/redhat/Makefile %build %global _hardened_build 1 -cp -p /usr/lib/rpm/config.{guess,sub} autoconf/ export CPPFLAGS="$RPM_OPT_FLAGS -DNETSNMP_NO_LEGACY_DEFINITIONS -Wno-format-security -Wno-error=format-security" export CXXFLAGS="$CPPFLAGS" export CFLAGS="$CPPFLAGS" @@ -165,6 +164,9 @@ rm examples/*.in %changelog +* Sat Jan 30 2021 Jason L Tibbitts III - 3.14.14-22 +- Fix build on F33+. + * Tue Jan 26 2021 Fedora Release Engineering - 3.14.14-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From fdc6fd1f938ca122c33cdcf12283c507205f9eae Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Sat, 30 Jan 2021 14:53:51 -0600 Subject: [PATCH 32/57] Use _make_verbose instead of hacks This is the single package which won't build with make V=1. Now that RPM has %_make_verbose to override this, use it instead of redefinining %make_build. --- apcupsd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 24514ab..8889523 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -1,6 +1,6 @@ # A change in RPM 4.15 causes the make_build macro to misbuild this package. # See https://github.com/rpm-software-management/rpm/issues/798 -%global make_build %{__make} %{?_make_output_sync} %{?_smp_mflags} +%global _make_verbose %nil Name: apcupsd Version: 3.14.14 From 3d82f65c42f092e955e6bb9dcd58830de16950fd Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Sat, 30 Jan 2021 14:56:53 -0600 Subject: [PATCH 33/57] Fix format-security error. Add a patch to fix the one line of code which triggered a format-security error instead of disabling format security checks for the entire package. --- apcupsd.spec | 8 ++++---- patch-format-security | 13 +++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 patch-format-security diff --git a/apcupsd.spec b/apcupsd.spec index 8889523..c06ef3e 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -20,6 +20,9 @@ Source5: apcupsd64x64.png Patch0: apcupsd-3.14.9-fixgui.patch # Halt without powering off, rhbz#1442577 Patch1: apcupsd-3.14.4-shutdown.patch +# Fix format-security error so we can enable the checks +Patch2: patch-format-security + BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel @@ -67,10 +70,6 @@ A GUI interface to the APC UPS monitoring daemon. printf 'install:\n\techo skipped\n' > platforms/redhat/Makefile %build -%global _hardened_build 1 -export CPPFLAGS="$RPM_OPT_FLAGS -DNETSNMP_NO_LEGACY_DEFINITIONS -Wno-format-security -Wno-error=format-security" -export CXXFLAGS="$CPPFLAGS" -export CFLAGS="$CPPFLAGS" %configure \ --sysconfdir="/etc/apcupsd" \ --with-cgi-bin="/var/www/apcupsd" \ @@ -166,6 +165,7 @@ rm examples/*.in %changelog * Sat Jan 30 2021 Jason L Tibbitts III - 3.14.14-22 - Fix build on F33+. +- Allow build with format-security checking enabled. * Tue Jan 26 2021 Fedora Release Engineering - 3.14.14-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/patch-format-security b/patch-format-security new file mode 100644 index 0000000..d919a3c --- /dev/null +++ b/patch-format-security @@ -0,0 +1,13 @@ +diff --git a/src/gapcmon/gapcmon.c b/src/gapcmon/gapcmon.c +index 40bf29d..111fe1f 100644 +--- a/src/gapcmon/gapcmon.c ++++ b/src/gapcmon/gapcmon.c +@@ -2938,7 +2938,7 @@ static void gapc_util_log_app_msg(gchar * pch_func, gchar * pch_topic, + + pch = g_strdup_printf("%s(%s) emsg=%s", pch_func, pch_topic, pch_emsg); + +- g_message(pch); ++ g_message("%s", pch); + + g_free(pch); + From 8f5ac909050cda18888509b76cd4bedfe16c6495 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Fri, 5 Feb 2021 16:05:38 -0600 Subject: [PATCH 34/57] Clean up .gitignore. --- .gitignore | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 830429c..b8c81a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,4 @@ -apcupsd-3.14.8.tar.gz -/apcupsd-3.14.9.tar.gz -/apcupsd-3.14.10.tar.gz -/apcupsd-3.14.11.tar.gz -/apcupsd-3.14.12.tar.gz -/apcupsd-3.14.13.tar.gz -/apcupsd-3.14.14.tar.gz +/apcupsd-*.tar.gz +/apcupsd-*.src.rpm +/apcupsd-*/ +/results_*/ From 779e741458c83e98af51e5b28e5a17ef46fbc889 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 12:49:22 +0000 Subject: [PATCH 35/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 1cbb103fdbfa6ad593f233e5534aa8d7923c8c27 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 17:45:25 +0000 Subject: [PATCH 36/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index c06ef3e..f675327 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 22%{?dist} +Release: 23%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -163,6 +163,9 @@ rm examples/*.in %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 3.14.14-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Sat Jan 30 2021 Jason L Tibbitts III - 3.14.14-22 - Fix build on F33+. - Allow build with format-security checking enabled. From d02bbffc60c28072de688a397aa67249c5de41cd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jan 2022 21:27:24 +0000 Subject: [PATCH 37/57] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index f675327..b1a7ddc 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 23%{?dist} +Release: 24%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -163,6 +163,9 @@ rm examples/*.in %changelog +* Wed Jan 19 2022 Fedora Release Engineering - 3.14.14-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Wed Jul 21 2021 Fedora Release Engineering - 3.14.14-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From e9ceaea2607c0c33f5b1094ba3946a6af30104d9 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Tue, 25 Jan 2022 11:55:46 -0600 Subject: [PATCH 38/57] Require systemd at build time systemd used to be in the buildroot but it seems that it no longer is. apcupsd requires /sbin/shutdown to be present at build time, so depend on it manually. need to make sure it's installed. --- apcupsd.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index b1a7ddc..f24fc69 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 24%{?dist} +Release: 25%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -28,6 +28,9 @@ BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel BuildRequires: net-snmp-devel, libusb-devel BuildRequires: gtk2-devel, GConf2-devel, desktop-file-utils +# /sbin/shutdown is required to be present when building +# Somehow in F36 systemd is installed in mock but not in koji +BuildRequires: systemd # This is part of util-linux in Fedora, but on EL7 it's in sysvinit-tools. BuildRequires: /usr/bin/wall BuildRequires: make @@ -163,6 +166,10 @@ rm examples/*.in %changelog +* Tue Jan 25 2022 Jason L Tibbitts III - 3.14.14-25 +- Explicitly require systemd at build time to ensure that /sbin/shutdown is + present. + * Wed Jan 19 2022 Fedora Release Engineering - 3.14.14-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 76adc1d87cb1e363cc848fa13e0790a372ee433a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 20 Jul 2022 21:02:37 +0000 Subject: [PATCH 39/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index f24fc69..f6f9efc 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 25%{?dist} +Release: 26%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -166,6 +166,9 @@ rm examples/*.in %changelog +* Wed Jul 20 2022 Fedora Release Engineering - 3.14.14-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Tue Jan 25 2022 Jason L Tibbitts III - 3.14.14-25 - Explicitly require systemd at build time to ensure that /sbin/shutdown is present. From dd4047ce0a1c479db6faab21ee34c8bb4fb908e8 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Tue, 2 Aug 2022 17:19:53 -0500 Subject: [PATCH 40/57] Depend on libusb-compat-0.1-devel. --- apcupsd.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index f6f9efc..5767004 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 26%{?dist} +Release: 27%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -26,7 +26,7 @@ Patch2: patch-format-security BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel -BuildRequires: net-snmp-devel, libusb-devel +BuildRequires: net-snmp-devel, libusb-compat-0.1-devel BuildRequires: gtk2-devel, GConf2-devel, desktop-file-utils # /sbin/shutdown is required to be present when building # Somehow in F36 systemd is installed in mock but not in koji @@ -166,6 +166,9 @@ rm examples/*.in %changelog +* Tue Aug 02 2022 Jason L Tibbitts III - 3.14.14-27 +- Depend on libusb-compat-0.1-devel to avoid build breakage. + * Wed Jul 20 2022 Fedora Release Engineering - 3.14.14-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 8e55767a3a66ffc145f4b33ee06e003714c6d67c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 18 Jan 2023 21:57:06 +0000 Subject: [PATCH 41/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 5767004..2a2a10c 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 27%{?dist} +Release: 28%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -166,6 +166,9 @@ rm examples/*.in %changelog +* Wed Jan 18 2023 Fedora Release Engineering - 3.14.14-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Tue Aug 02 2022 Jason L Tibbitts III - 3.14.14-27 - Depend on libusb-compat-0.1-devel to avoid build breakage. From e5f84212579025f443e32a650cf9bdd2f5601155 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 13:32:21 +0000 Subject: [PATCH 42/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 2a2a10c..ce677f7 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 28%{?dist} +Release: 29%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -166,6 +166,9 @@ rm examples/*.in %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 3.14.14-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Jan 18 2023 Fedora Release Engineering - 3.14.14-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 5d22797bc118e9a7e18d2a8ee1e2244d1d7f8aa7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 13:19:45 +0000 Subject: [PATCH 43/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index ce677f7..912cc00 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 29%{?dist} +Release: 30%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -166,6 +166,9 @@ rm examples/*.in %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 3.14.14-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 3.14.14-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 325ee1c78cf644ecc630bd7523de6a7718c0a4dd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 23:16:48 +0000 Subject: [PATCH 44/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 912cc00..1c19a81 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 30%{?dist} +Release: 31%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -166,6 +166,9 @@ rm examples/*.in %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 3.14.14-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 3.14.14-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 8aca3335ef24503e6868e8fd82317537f0bded3f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 17:14:30 +0000 Subject: [PATCH 45/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 1c19a81..8936186 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 31%{?dist} +Release: 32%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -166,6 +166,9 @@ rm examples/*.in %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 3.14.14-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 3.14.14-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From c5aa870a6eaf67b8bbea3123fb4faa5ade11f972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 29 Jul 2024 10:11:30 +0200 Subject: [PATCH 46/57] convert GPLv2 license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- apcupsd.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 8936186..41fb2b2 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,10 +4,11 @@ Name: apcupsd Version: 3.14.14 -Release: 32%{?dist} +Release: 33%{?dist} Summary: APC UPS Power Control Daemon -License: GPLv2 +# Automatically converted from old format: GPLv2 - review is highly recommended. +License: GPL-2.0-only URL: http://www.apcupsd.com Source0: https://downloads.sourceforge.net/apcupsd/apcupsd-%version.tar.gz Source1: apcupsd.service @@ -166,6 +167,9 @@ rm examples/*.in %changelog +* Mon Jul 29 2024 Miroslav Suchý - 3.14.14-33 +- convert license to SPDX + * Wed Jul 17 2024 Fedora Release Engineering - 3.14.14-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 42e9efbb5fd488f604675679eb1e779b51126aae Mon Sep 17 00:00:00 2001 From: Germano Massullo Date: Fri, 8 Nov 2024 16:57:51 +0100 Subject: [PATCH 47/57] Adds disable_nologin.patch --- apcupsd.spec | 22 ++++++++-------------- disable_nologin.patch | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+), 14 deletions(-) create mode 100644 disable_nologin.patch diff --git a/apcupsd.spec b/apcupsd.spec index 41fb2b2..932f5c6 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,11 +4,10 @@ Name: apcupsd Version: 3.14.14 -Release: 33%{?dist} +Release: 31%{?dist} Summary: APC UPS Power Control Daemon -# Automatically converted from old format: GPLv2 - review is highly recommended. -License: GPL-2.0-only +License: GPLv2 URL: http://www.apcupsd.com Source0: https://downloads.sourceforge.net/apcupsd/apcupsd-%version.tar.gz Source1: apcupsd.service @@ -20,9 +19,10 @@ Source5: apcupsd64x64.png # fix crash in gui, rhbz#578276 Patch0: apcupsd-3.14.9-fixgui.patch # Halt without powering off, rhbz#1442577 -Patch1: apcupsd-3.14.4-shutdown.patch +#Patch1: apcupsd-3.14.4-shutdown.patch # Fix format-security error so we can enable the checks Patch2: patch-format-security +Patch3: disable_nologin.patch BuildRequires: gcc-c++ @@ -167,17 +167,11 @@ rm examples/*.in %changelog -* Mon Jul 29 2024 Miroslav Suchý - 3.14.14-33 -- convert license to SPDX +* Fri Nov 08 2024 Germano Massullo - 3.14.14-31 +- Adds disable_nologin.patch -* Wed Jul 17 2024 Fedora Release Engineering - 3.14.14-32 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 3.14.14-31 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 3.14.14-30 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild +* Sun Jan 07 2024 Germano Massullo - 3.14.14-30 +- disables apcupsd-3.14.4-shutdown.patch * Wed Jul 19 2023 Fedora Release Engineering - 3.14.14-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/disable_nologin.patch b/disable_nologin.patch new file mode 100644 index 0000000..81fefc7 --- /dev/null +++ b/disable_nologin.patch @@ -0,0 +1,18 @@ +diff -urNr apcupsd-3.14.14-orig/src/action.c apcupsd-3.14.14/src/action.c +--- apcupsd-3.14.14-orig/src/action.c 2015-03-20 04:59:41.000000000 +0100 ++++ apcupsd-3.14.14/src/action.c 2024-11-08 16:48:46.095910557 +0100 +@@ -189,13 +189,7 @@ + + static void prohibit_logins(UPSINFO *ups) + { +- if (ups->nologin_file) +- return; /* already done */ +- +- logonfail(ups, 0); +- ups->nologin_file = true; +- +- log_event(ups, LOG_ALERT, "User logins prohibited"); ++ return; + } + + static void do_shutdown(UPSINFO *ups, int cmdtype) From 063db992f5e7adc0660be8876b129f5bd324de92 Mon Sep 17 00:00:00 2001 From: Germano Massullo Date: Fri, 8 Nov 2024 17:39:36 +0100 Subject: [PATCH 48/57] release bump --- apcupsd.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 932f5c6..1a9e42d 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 31%{?dist} +Release: 33%{?dist} Summary: APC UPS Power Control Daemon License: GPLv2 @@ -19,7 +19,7 @@ Source5: apcupsd64x64.png # fix crash in gui, rhbz#578276 Patch0: apcupsd-3.14.9-fixgui.patch # Halt without powering off, rhbz#1442577 -#Patch1: apcupsd-3.14.4-shutdown.patch +Patch1: apcupsd-3.14.4-shutdown.patch # Fix format-security error so we can enable the checks Patch2: patch-format-security Patch3: disable_nologin.patch @@ -167,6 +167,12 @@ rm examples/*.in %changelog +* Fri Nov 08 2024 Germano Massullo - 3.14.14-33 +- release bump + +* Fri Nov 08 2024 Germano Massullo - 3.14.14-32 +- release bump + * Fri Nov 08 2024 Germano Massullo - 3.14.14-31 - Adds disable_nologin.patch From 289b8ada59cb2b13f8e233d85c9146c9be67cd31 Mon Sep 17 00:00:00 2001 From: Germano Massullo Date: Fri, 8 Nov 2024 19:41:45 +0100 Subject: [PATCH 49/57] Adds distinction between Fedora and EL <= 9 for BuildRequires: libusb --- apcupsd.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index 1a9e42d..b0fd249 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -27,7 +27,13 @@ Patch3: disable_nologin.patch BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel -BuildRequires: net-snmp-devel, libusb-compat-0.1-devel +%if %{defined fedora} +BuildRequires: libusb-compat-0.1-devel +%endif +%if (%{defined rhel} && 0%{?rhel} <= 9) +BuildRequires: libusb-devel +%endif +BuildRequires: net-snmp-devel, BuildRequires: gtk2-devel, GConf2-devel, desktop-file-utils # /sbin/shutdown is required to be present when building # Somehow in F36 systemd is installed in mock but not in koji @@ -168,7 +174,7 @@ rm examples/*.in %changelog * Fri Nov 08 2024 Germano Massullo - 3.14.14-33 -- release bump +- Adds distinction between Fedora and EL <= 9 for BuildRequires: libusb * Fri Nov 08 2024 Germano Massullo - 3.14.14-32 - release bump From cb14d73ce6da55f3ca655ada1688f55f43f2f97a Mon Sep 17 00:00:00 2001 From: Germano Massullo Date: Mon, 11 Nov 2024 12:50:14 +0100 Subject: [PATCH 50/57] fixed license format --- apcupsd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index b0fd249..4156a27 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -7,7 +7,7 @@ Version: 3.14.14 Release: 33%{?dist} Summary: APC UPS Power Control Daemon -License: GPLv2 +License: GPL-2.0-only URL: http://www.apcupsd.com Source0: https://downloads.sourceforge.net/apcupsd/apcupsd-%version.tar.gz Source1: apcupsd.service From cb33d36eae5e35185768b797e63dc31954e4e913 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 11:19:42 +0000 Subject: [PATCH 51/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 4156a27..46448cb 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 33%{?dist} +Release: 34%{?dist} Summary: APC UPS Power Control Daemon License: GPL-2.0-only @@ -173,6 +173,9 @@ rm examples/*.in %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 3.14.14-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Nov 08 2024 Germano Massullo - 3.14.14-33 - Adds distinction between Fedora and EL <= 9 for BuildRequires: libusb From 89ca1eea99b91c1b612e6c5b0df01abaf79dc875 Mon Sep 17 00:00:00 2001 From: Germano Massullo Date: Wed, 9 Apr 2025 12:38:58 +0200 Subject: [PATCH 52/57] Adds 99-apcupsd-xfer-glitch.patch --- 99-apcupsd-xfer-glitch.patch | 61 ++++++++++++++++++++++++++++++++++++ apcupsd.spec | 11 +++++-- 2 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 99-apcupsd-xfer-glitch.patch diff --git a/99-apcupsd-xfer-glitch.patch b/99-apcupsd-xfer-glitch.patch new file mode 100644 index 0000000..2b2898d --- /dev/null +++ b/99-apcupsd-xfer-glitch.patch @@ -0,0 +1,61 @@ +diff -aruN apcupsd-3.14.14.orig/src/drivers/usb/usb.c apcupsd-3.14.14/src/drivers/usb/usb.c +--- apcupsd-3.14.14.orig/src/drivers/usb/usb.c 2024-02-24 20:22:42.007641242 +0100 ++++ apcupsd-3.14.14/src/drivers/usb/usb.c 2024-02-24 20:23:03.824987965 +0100 +@@ -42,7 +42,9 @@ + UpsDriver(ups), + _quirk_old_backups_pro(false), + _prev_time((struct timeval){0}), +- _bpcnt(0) ++ _bpcnt(0), ++ _bacnt(0), ++ _brcnt(0) + { + } + +@@ -410,8 +412,13 @@ + break; + + case CI_NeedReplacement: +- if (uval->iValue) +- _ups->set_replacebatt(uval->iValue); ++ if (uval->iValue) { ++ if (_brcnt++) { ++ _ups->set_replacebatt(uval->iValue); ++ } ++ } else { ++ _brcnt = 0; ++ } + Dmsg(200, "ReplaceBatt=%d\n", uval->iValue); + break; + +@@ -569,11 +576,15 @@ + * delayed. C'est la vie. + */ + if (uval->iValue) { +- if (_bpcnt++) ++ if (_bpcnt++) { ++ _bacnt = 0; + _ups->set_battpresent(); ++ } + } else { +- _bpcnt = 0; +- _ups->clear_battpresent(); ++ if (_bacnt++) { ++ _bpcnt = 0; ++ _ups->clear_battpresent(); ++ } + } + Dmsg(200, "BatteryPresent=%d\n", uval->iValue); + break; +diff -aruN apcupsd-3.14.14.orig/src/drivers/usb/usb.h apcupsd-3.14.14/src/drivers/usb/usb.h +--- apcupsd-3.14.14.orig/src/drivers/usb/usb.h 2024-02-24 20:22:42.007641242 +0100 ++++ apcupsd-3.14.14/src/drivers/usb/usb.h 2024-02-24 20:23:01.754956355 +0100 +@@ -86,6 +86,8 @@ + bool _quirk_old_backups_pro; + struct timeval _prev_time; + int _bpcnt; ++ int _bacnt; ++ int _brcnt; + }; + + /* Max rate to update volatile data */ diff --git a/apcupsd.spec b/apcupsd.spec index 46448cb..ae63fd3 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 34%{?dist} +Release: 35%{?dist} Summary: APC UPS Power Control Daemon License: GPL-2.0-only @@ -23,7 +23,11 @@ Patch1: apcupsd-3.14.4-shutdown.patch # Fix format-security error so we can enable the checks Patch2: patch-format-security Patch3: disable_nologin.patch - +# fixes "increasing NUMXFERS" bug: +# https://sourceforge.net/p/apcupsd/mailman/apcupsd-users/thread/ad9afb27-30f9-443f-a9fb-982c41ad1325%40okazoo.eu/ +# https://www.reddit.com/r/homelab/comments/1c3eo9n/apcupsd_and_proxmox_frequent_battery_disconnected/ +# patch source: https://sourceforge.net/p/apcupsd/mailman/message/58741334/ +Patch4: 99-apcupsd-xfer-glitch.patch BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel @@ -173,6 +177,9 @@ rm examples/*.in %changelog +* Wed Apr 09 2025 Germano Massullo - 3.14.14-35 +- Adds 99-apcupsd-xfer-glitch.patch + * Thu Jan 16 2025 Fedora Release Engineering - 3.14.14-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 8a2cf41162dd6c1dce851b774aaf61aa5c3c0660 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Wed, 23 Apr 2025 14:15:16 -0700 Subject: [PATCH 53/57] Fix libusb conditional to make it build on EPEL 10 --- apcupsd.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index ae63fd3..42ae7cd 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 35%{?dist} +Release: 36%{?dist} Summary: APC UPS Power Control Daemon License: GPL-2.0-only @@ -31,7 +31,7 @@ Patch4: 99-apcupsd-xfer-glitch.patch BuildRequires: gcc-c++ BuildRequires: glibc-devel, gd-devel -%if %{defined fedora} +%if %{defined fedora} || (%{defined rhel} && 0%{?rhel} > 9) BuildRequires: libusb-compat-0.1-devel %endif %if (%{defined rhel} && 0%{?rhel} <= 9) @@ -177,6 +177,10 @@ rm examples/*.in %changelog +* Wed Apr 23 2025 Davide Cavalca - 3.14.14-36 +- Fix libusb conditional to make it build on EPEL 10 + Fixes: RHBZ#2337139 + * Wed Apr 09 2025 Germano Massullo - 3.14.14-35 - Adds 99-apcupsd-xfer-glitch.patch From 583cb0b03b5c595616c18c36e6581e77bf3a680d Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Fri, 9 May 2025 15:00:02 -0500 Subject: [PATCH 54/57] Move binaries to bin --- apcupsd.service | 2 +- apcupsd.spec | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/apcupsd.service b/apcupsd.service index 614fec2..2e199ff 100644 --- a/apcupsd.service +++ b/apcupsd.service @@ -5,7 +5,7 @@ After=network-online.target [Service] ExecStartPre=-/bin/rm -f /etc/apcupsd/powerfail -ExecStart=/sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf +ExecStart=/usr/bin/apcupsd -b -f /etc/apcupsd/apcupsd.conf KillMode=process [Install] diff --git a/apcupsd.spec b/apcupsd.spec index 42ae7cd..a19abc1 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 36%{?dist} +Release: 37%{?dist} Summary: APC UPS Power Control Daemon License: GPL-2.0-only @@ -87,7 +87,7 @@ printf 'install:\n\techo skipped\n' > platforms/redhat/Makefile %configure \ --sysconfdir="/etc/apcupsd" \ --with-cgi-bin="/var/www/apcupsd" \ - --sbindir=/sbin \ + --sbindir=%{_bindir} \ --enable-cgi \ --enable-pthreads \ --enable-net \ @@ -144,7 +144,11 @@ rm examples/*.in %config(noreplace) /etc/apcupsd/onbattery %config(noreplace) /etc/logrotate.d/apcupsd /usr/share/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi -%attr(0755,root,root) /sbin/* +%{_bindir}/apcaccess +%{_bindir}/apctest +%{_bindir}/apcupsd +%{_bindir}/smtp + %{_mandir}/*/* %files cgi @@ -177,6 +181,9 @@ rm examples/*.in %changelog +* Fri May 09 2025 Gwyn Ciesla - 3.14.14-37 +- Move binaries from sbin to bin, 2365293. + * Wed Apr 23 2025 Davide Cavalca - 3.14.14-36 - Fix libusb conditional to make it build on EPEL 10 Fixes: RHBZ#2337139 From c2ac98a5855e73adaf38bded247acf6ffae8b530 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Thu, 22 May 2025 14:25:42 -0500 Subject: [PATCH 55/57] Don't ship /usr/bin/smtp --- apcupsd.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apcupsd.spec b/apcupsd.spec index a19abc1..451ab87 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 37%{?dist} +Release: 38%{?dist} Summary: APC UPS Power Control Daemon License: GPL-2.0-only @@ -147,7 +147,7 @@ rm examples/*.in %{_bindir}/apcaccess %{_bindir}/apctest %{_bindir}/apcupsd -%{_bindir}/smtp +%exclude %{_bindir}/smtp %{_mandir}/*/* @@ -181,6 +181,9 @@ rm examples/*.in %changelog +* Thu May 22 2025 Gwyn Ciesla - 3.14.14-38 +- Don't ship /usr/bin/smtp, not used, conflicts with opensmtpd. + * Fri May 09 2025 Gwyn Ciesla - 3.14.14-37 - Move binaries from sbin to bin, 2365293. From f2445acf011ab003c57fc1fb27dc3854ffaad723 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 17:07:44 +0000 Subject: [PATCH 56/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 451ab87..116113b 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 38%{?dist} +Release: 39%{?dist} Summary: APC UPS Power Control Daemon License: GPL-2.0-only @@ -181,6 +181,9 @@ rm examples/*.in %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 3.14.14-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu May 22 2025 Gwyn Ciesla - 3.14.14-38 - Don't ship /usr/bin/smtp, not used, conflicts with opensmtpd. From d71ed2aa541a78a6e5c525a485c3e34d9169c6cf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 03:48:55 +0000 Subject: [PATCH 57/57] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- apcupsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apcupsd.spec b/apcupsd.spec index 116113b..dde0ac9 100644 --- a/apcupsd.spec +++ b/apcupsd.spec @@ -4,7 +4,7 @@ Name: apcupsd Version: 3.14.14 -Release: 39%{?dist} +Release: 40%{?dist} Summary: APC UPS Power Control Daemon License: GPL-2.0-only @@ -181,6 +181,9 @@ rm examples/*.in %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 3.14.14-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Wed Jul 23 2025 Fedora Release Engineering - 3.14.14-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild