From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] apcupsd: addition of backup/includes definition Date: Mon, 23 Nov 2020 13:08:48 +0100 Message-ID: <20201123120848.3687398-1-ahb.ipfire@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3533787482075244644==" List-Id: --===============3533787482075244644== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 --- 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/ap= cupsd 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 =3D $(URL_IPFIRE) DIR_APP =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) PROG =3D apcupsd -PAK_VER =3D 6 +PAK_VER =3D 7 =20 DEPS =3D =20 @@ -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) --=20 2.29.2 --===============3533787482075244644==--