b701f8b3111730023ab2120b836408da62336f4d
[openwrt/svn-archive/archive.git] / utils / rdiff-backup / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=rdiff-backup
11 PKG_VERSION:=1.2.8
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/rdiff-backup/
16 PKG_MD5SUM:=1a94dc537fcf74d6a3a80bd27808e77b
17
18 PKG_BUILD_DEPENDS:=python
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 define Package/rdiff-backup
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=Incremental backup utility
28 URL:=http://www.nongnu.org/rdiff-backup
29 DEPENDS:=+python-mini +librsync +libpopt +openssl-util
30 endef
31
32 define Package/rdiff-backup/description
33 rdiff-backup backs up one directory to another, possibly over a
34 network. The target directory ends up a copy of the source directory,
35 but extra reverse diffs are stored in a special subdirectory of that
36 target directory, so you can still recover files lost some time ago.
37 The idea is to combine the best features of a mirror and an incremental
38 backup.
39 endef
40
41 define PyPackage/rdiff-backup/filespec
42 +|/usr/bin/rdiff-backup
43 +|$(PYTHON_PKG_DIR)/rdiff_backup
44 endef
45
46 define Build/Compile
47 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
48 $(call Build/Compile/PyMod,., \
49 build --librsync-dir="$(STAGING_DIR)/usr" , \
50 )
51 $(call Build/Compile/PyMod,., \
52 install --prefix="$(PKG_INSTALL_DIR)/usr", \
53 )
54 endef
55
56 $(eval $(call PyPackage,rdiff-backup))
57 $(eval $(call BuildPackage,rdiff-backup))