Skip to content

Commit

Permalink
update rsnapshot
Browse files Browse the repository at this point in the history
- update rsnapshot to v1.4.4
- add logs for installation steps
- update icon
  • Loading branch information
hgy59 committed Dec 23, 2021
1 parent c230143 commit a997045
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 24 deletions.
15 changes: 6 additions & 9 deletions cross/rsnapshot/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME = rsnapshot
PKG_VERS = 1.4.3
PKG_VERS = 1.4.4
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://rsnapshot.org/downloads
Expand All @@ -8,17 +8,14 @@ PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
DEPENDS =

HOMEPAGE = https://rsnapshot.org/
COMMENT = Rsnapshot is a filesystem snapshot utility. It can take incremental snapshots of local and remote filesystems.
COMMENT = A tool for backing up your data using rsync.
LICENSE = GPL

GNU_CONFIGURE = 1

CONFIGURE_ARGS = ac_cv_path_RSYNC=/bin/rsync ac_cv_path_PERL=/bin/perl ac_cv_path_SSH=/bin/ssh

INSTALL_TARGET = rsnapshot_install
# use tools provided by DSM to keep this a pure perl package.
CONFIGURE_ARGS = ac_cv_path_RSYNC=/bin/rsync
CONFIGURE_ARGS += ac_cv_path_PERL=/bin/perl
CONFIGURE_ARGS += ac_cv_path_SSH=/bin/ssh

include ../../mk/spksrc.cross-cc.mk

.PHONY: rsnapshot_install
rsnapshot_install:
@$(RUN) $(MAKE) install DESTDIR=$(INSTALL_DIR)
6 changes: 3 additions & 3 deletions cross/rsnapshot/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rsnapshot-1.4.3.tar.gz SHA1 0596d14bd852114db99f4e441040058b3ebf166f
rsnapshot-1.4.3.tar.gz SHA256 2b0c7aad3e14e0260513331425a605d73c3bdd7936d66d418d7714a76bc55bd1
rsnapshot-1.4.3.tar.gz MD5 3d6e6f3b666ae18ed4d3bf36432fff4a
rsnapshot-1.4.4.tar.gz SHA1 622b48e668b334b69a378aec9316b872aeabe19f
rsnapshot-1.4.4.tar.gz SHA256 c1cb7cb748c5a9656c386362bdf6c267959737724abb505fbf9e940a9d988579
rsnapshot-1.4.4.tar.gz MD5 86717b9f39c7a7a5dd9e0eba556f829e
10 changes: 5 additions & 5 deletions spk/rsnapshot/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
SPK_NAME = rsnapshot
SPK_VERS = 1.4.3
SPK_REV = 3
SPK_VERS = 1.4.4
SPK_REV = 4
SPK_ICON = src/rsnapshot.png

DEPENDS = cross/$(SPK_NAME)
DEPENDS = cross/rsnapshot
SPK_DEPENDS = "Perl"

MAINTAINER = ymartin59
DESCRIPTION = Rsnapshot is a filesystem snapshot utility. It can take incremental snapshots of local and remote filesystems.
DESCRIPTION = rsnapshot is a filesystem snapshot utility based on rsync. rsnapshot makes it easy to make periodic snapshots of local machines, and remote machines over ssh. The code makes extensive use of hard links whenever possible, to greatly reduce the disk space required.
STARTABLE = no
DISPLAY_NAME = rsnapshot
CHANGELOG = "Update rsnapshot to v1.4.3 released on 17 Nov 2019"
CHANGELOG = "Update rsnapshot to v1.4.4 released on 12 Jun 2021."

HOMEPAGE = https://rsnapshot.org
LICENSE = GPLv2
Expand Down
Binary file modified spk/rsnapshot/src/rsnapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions spk/rsnapshot/src/service-setup.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@

service_postinst ()
{
# Copy default config file
if [ ! -e ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf ]; then
cp ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf.default ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf
echo "Create rsnapshot.conf from rsnapshot.conf.default"
cp ${SYNOPKG_PKGVAR}/rsnapshot.conf.default ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf
fi
}

service_save ()
{
# Save configuration
$CP ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf "${TMP_DIR}"/rsnapshot.conf
echo "Save rsnapshot.conf to ${TMP_DIR}"
$CP ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf "${TMP_DIR}/rsnapshot.conf"
}

service_restore ()
{
# Restore configuration
$MV "${TMP_DIR}"/rsnapshot.conf ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf
echo "Restore rsnapshot.conf from ${TMP_DIR}"
$MV "${TMP_DIR}/rsnapshot.conf" ${SYNOPKG_PKGDEST}/etc/rsnapshot.conf
}

service_postupgrade ()
{
# Upgrade configuration file if needed
echo "Provide configuration file upgrade"
${SYNOPKG_PKGDEST}/bin/rsnapshot upgrade-config-file
}

0 comments on commit a997045

Please sign in to comment.