From: Adolf Belka Date: Mon, 23 Nov 2020 12:08:48 +0000 (+0100) Subject: apcupsd: addition of backup/includes definition X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=d0d63bbbee087e8865be40739aec6395e065b9f4 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 Signed-off-by: Michael Tremer --- diff --git a/config/backup/includes/apcupsd b/config/backup/includes/apcupsd new file mode 100644 index 0000000000..82dcd84ed6 --- /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 b58ed2b478..a28c961eb5 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 22818eda5a..6240015d15 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)