4172ade554698ba02765ef7f6cb2e99ffbdbb0e1
[openwrt/svn-archive/archive.git] / utils / rdiff-backup / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=rdiff-backup
12 PKG_VERSION:=1.0.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/rdiff-backup/
17 PKG_MD5SUM:=fa2a165fa07a94be52c52e3545bc7758
18
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
23 ifneq ($(MAKECMDGOALS),download)
24 $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.))
25 endif
26
27 define Package/rdiff-backup
28 SUBMENU:=Python
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=Incremental backup utility
32 URL:=http://www.nongnu.org/rdiff-backup
33 DEPENDS:=python-core +librsync +libpopt
34 endef
35
36 define Package/rdiff-backup/description
37 rdiff-backup backs up one directory to another, possibly over a
38 network. The target directory ends up a copy of the source directory,
39 but extra reverse diffs are stored in a special subdirectory of that
40 target directory, so you can still recover files lost some time ago.
41 The idea is to combine the best features of a mirror and an incremental
42 backup.
43 endef
44
45 define PyPackage/rdiff-backup/filespec
46 +|/usr/bin/rdiff-backup
47 +|$(PYTHON_PKG_DIR)/rdiff_backup
48 endef
49
50 define Build/Compile
51 $(call Build/Compile/PyMod,., \
52 build --librsync-dir="$(STAGING_DIR)/usr" , \
53 )
54 $(call Build/Compile/PyMod,., \
55 install --prefix="$(PKG_INSTALL_DIR)/usr", \
56 )
57 endef
58
59 $(eval $(call PyPackage,rdiff-backup))
60 $(eval $(call BuildPackage,rdiff-backup))