public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] apcupsd: addition of backup/includes definition
@ 2020-11-23 12:08 Adolf Belka
  2020-11-23 14:57 ` Michael Tremer
  0 siblings, 1 reply; 2+ messages in thread
From: Adolf Belka @ 2020-11-23 12:08 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]

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(a)gmail.com>
---
 config/backup/includes/apcupsd    | 1 +
 config/rootfiles/packages/apcupsd | 1 +
 lfs/apcupsd                       | 4 +++-
 3 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 config/backup/includes/apcupsd

diff --git a/config/backup/includes/apcupsd b/config/backup/includes/apcupsd
new file mode 100644
index 000000000..82dcd84ed
--- /dev/null
+++ b/config/backup/includes/apcupsd
@@ -0,0 +1 @@
+/etc/apcupsd/
diff --git a/config/rootfiles/packages/apcupsd b/config/rootfiles/packages/apcupsd
index b58ed2b47..a28c961eb 100644
--- a/config/rootfiles/packages/apcupsd
+++ b/config/rootfiles/packages/apcupsd
@@ -33,3 +33,4 @@ srv/web/ipfire/cgi-bin/upsstats.cgi
 #usr/share/man/man8/apcupsd.8
 etc/rc.d/init.d/apcupsd
 var/ipfire/menu.d/EX-apcupsd.menu
+var/ipfire/backup/addons/includes/apcupsd
diff --git a/lfs/apcupsd b/lfs/apcupsd
index 22818eda5..6240015d1 100644
--- a/lfs/apcupsd
+++ b/lfs/apcupsd
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = apcupsd
-PAK_VER    = 6
+PAK_VER    = 7
 
 DEPS       =
 
@@ -88,5 +88,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	ln -sf ../init.d/apcupsd /etc/rc.d/rc3.d/S65apcupsd
 	ln -sf ../init.d/apcupsd /etc/rc.d/rc0.d/K35apcupsd
 	ln -sf ../init.d/apcupsd /etc/rc.d/rc6.d/K35apcupsd
+	install -v -m 644 ${DIR_SRC}/config/backup/includes/apcupsd \
+			/var/ipfire/backup/addons/includes/apcupsd
 	@rm -rf $(DIR_APP)
 	@$(POSTBUILD)
-- 
2.29.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-23 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23 12:08 [PATCH] apcupsd: addition of backup/includes definition Adolf Belka
2020-11-23 14:57 ` Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox