Branch oldpackages for 14.07
[14.07/packages.git] / utils / rsnapshot / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rsnapshot
11 PKG_VERSION:=1.3.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.rsnapshot.org/downloads/
16 PKG_MD5SUM:=588f92995dcf60a6ea6df8d94a017e7e
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/rsnapshot
24   SUBMENU:=backup
25   SECTION:=utils
26   CATEGORY:=Utilities
27   TITLE:=rsnapshot Backup
28   URL:=http://www.rsnapshot.org/
29   DEPENDS:=+rsync +perl \
30                 +perlbase-autoloader \
31                 +perlbase-class \
32                 +perlbase-cwd \
33                 +perlbase-dirhandle \
34                 +perlbase-essential \
35                 +perlbase-fcntl \
36                 +perlbase-file \
37                 +perlbase-getopt \
38                 +perlbase-io \
39                 +perlbase-posix \
40                 +perlbase-selectsaver \
41                 +perlbase-symbol \
42                 +perlbase-tie \
43                 +perlbase-xsloader
44 endef
45
46 define Package/rsnapshot/description
47   rsnapshot is a filesystem snapshot utility for making backups of local and
48   remote systems.
49
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.
53 endef
54
55 CONFIGURE_ARGS += --with-cp=/bin/cp \
56                   --with-rsync=/usr/bin/rsync \
57                   --with-rm=/bin/rm \
58                   --with-ssh=/usr/bin/ssh \
59                   --with-logger=/usr/bin/logger \
60                   --with-du=/usr/bin/du
61
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
67 endef
68
69 define Package/rsnapshot/conffiles
70 /etc/$(PKG_NAME).conf
71 endef
72
73 $(eval $(call BuildPackage,rsnapshot))