26 Commits

Author SHA1 Message Date
Adolf Belka
9a4946cfa9 apcupsd: Make apcupsd link in services page access its apcupsd WUI menu.
- In the services WUI page any addon that has a WUI menu page defined, such as Samba,
   Guardian etc, has the addon name shown in underlined red which is a link to the addon
   cgi page. This works for the other addons as the addon cgi name is the same as the
   addon name. I have identified that this is not the case for apcupsd, because the cgi
   page is called upsstats.cgi
- This patch adjusts the cgi name to allow apcupsd to also be shown in underlined red.
- The lfs file copies the upsstats.cgi file to one named apcupsd.cgi
- The apcupsd menu file has the cgi name changed from upsstats.cgi to apcupsd.cgi
- The rootfile is updated to also include the apcupsd.cgi file with the others.
- Tested in my vm testbed by making the above changes in the code and the apcupsd addon
   was then shown in underlined red, which acted as a link to the apcupsd status WUI page.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-09-05 15:15:53 +00:00
Adolf Belka
ebc1242f4b apcupsd: Ship due to sobump from json-c update
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-01-05 10:40:58 +00:00
Michael Tremer
c183124f58 Bump PAK_VER for all packages that use SERVICES
Since we have extended services.cgi that it reads the Services field
from the Pakfire metadata, we will need to make sure that that metadata
is going to be on those systems.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-09-15 10:43:54 +00:00
Adolf Belka
69a72eb439 apcupsd: Force update to get new libgd library
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-05-02 20:14:58 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Peter Müller
66c3619872 Early spring clean: Remove trailing whitespaces, and correct licence headers
Bumping across one of our scripts with very long trailing whitespaces, I
thought it might be a good idea to clean these up. Doing so, some
missing or inconsistent licence headers were fixed.

There is no need in shipping all these files en bloc, as their
functionality won't change.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 23:54:57 +00:00
Robin Roevens
f15707c78c buildprocess: Add extra metadata to pak lfs files
* Add a Summary and Services field to all pak lfs files
* Replace occurances of INSTALL_INITSCRIPT with new INSTALL_INITSCRIPTS
  macro in all pak lfs files.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-11 15:13:15 +00:00
Michael Tremer
1b2e99346f apcupsd: Update automake
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-03-06 11:14:51 +00:00
Adolf Belka
d0d63bbbee apcupsd: addition of backup/includes definition
Added a backup/includes file for apcupsd to backup the
/etc/apcupsd/ directory where all the configuration files
are stored. Currently there is no backup available to
save the state of any changes carried out to the configuration
or action files.
Signed-off-by: Adolf Belka <ahb.ipfire@gmail.com>

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-23 15:12:54 +00:00
Michael Tremer
2dc2a27803 lfs: Drop quotes in DEPS variable
Not sure why this has ever been there. This simply makes it
nicer to read and edit because we can have line-breaks now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-24 08:57:27 +00:00
Peter Müller
eee037b890 update disclaimer in LFS files
Most of these files still used old dates and/or domain names for contact
mail addresses. This is now replaced by an up-to-date copyright line.

Just some housekeeping... :-)

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-10 19:20:36 +01:00
Marcel Lorenz
373c0c7bed apcupsd: update to 3.14.14
Signed-off-by: Marcel Lorenz <marcel.lorenz@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-03-12 16:05:33 +00:00
Jonatan Schlag
f79869bf42 apcupsd: move initscript to src/initscripts/packages and use new macro
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
2017-02-24 15:58:01 +01:00
Arne Fitzenreiter
c7f9e0e99c Merge remote-tracking branch 'origin/next' into thirteen
Conflicts:
	lfs/php
	make.sh
2012-09-06 21:55:49 +02:00
Michael Tremer
b651586493 apcupsd: Bump package release number. 2012-08-24 16:14:16 +02:00
Przemek Zdroik
6bea011ac9 apcupsd: updated to version 3.14.10 (directly from sf.net) 2012-08-24 16:11:33 +02:00
Michael Tremer
fa21f636f6 apcupsd: Fix build with GCC 4.4. 2012-08-19 16:05:24 -04:00
Arne Fitzenreiter
2b97bfefde Prevent deletion of language files at acpupsd uninstall.
Remove the language files from the pak.
2009-11-07 09:31:20 +01:00
Arne Fitzenreiter
8fa7216999 Updated apcupsd lfs & rootfile 2009-10-21 20:48:30 +02:00
Jan Paul Tuecking
a9c9a2dbba Corrected apcupsd
Fixes bug #0000477
2009-10-19 21:23:36 +02:00
Peter Pfeiffer
836f873377 change apcupsd-pakversion to Version 3 2009-09-07 12:00:06 +02:00
Peter Pfeiffer
879e6bb240 add WEB-IF for addon apcupsd 2009-09-06 18:01:57 +02:00
Peter Pfeiffer
92a0762c33 initfile for apcupsd to add apcupsd to WEB-IF 2009-09-06 11:18:57 +02:00
maniacikarus
560bcd9300 Added usb flag to apcupds 2009-01-19 22:29:58 +01:00
Arne Fitzenreiter
792defeb99 Fix apcupsd source download 2008-09-09 00:45:06 +02:00
Michael Tremer
4e464f98f0 Added apcupsd. 2008-09-08 19:38:39 +00:00