2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.rsnapshot.org/downloads/
16 PKG_MD5SUM:=588f92995dcf60a6ea6df8d94a017e7e
21 include $(INCLUDE_DIR)/package.mk
23 define Package/rsnapshot
27 TITLE:=rsnapshot Backup
28 URL:=http://www.rsnapshot.org/
29 DEPENDS:=+rsync +perl \
30 +perlbase-autoloader \
40 +perlbase-selectsaver \
46 define Package/rsnapshot/description
47 rsnapshot is a filesystem snapshot utility for making backups of local and
50 Using rsync and hard links, it is possible to keep multiple, full backups
51 instantly available. The disk space required is just a little more than the
52 space of one full backup, plus incrementals.
55 CONFIGURE_ARGS += --with-cp=/bin/cp \
56 --with-rsync=/usr/bin/rsync \
58 --with-ssh=/usr/bin/ssh \
59 --with-logger=/usr/bin/logger \
62 define Package/rsnapshot/install
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
65 $(INSTALL_DIR) $(1)/etc
66 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME).conf.default $(1)/etc/$(PKG_NAME).conf
69 define Package/rsnapshot/conffiles
73 $(eval $(call BuildPackage,rsnapshot))