2 # Copyright (C) 2006-2009 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
10 PKG_NAME
:=rdiff-backup
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://savannah.nongnu.org
/download
/rdiff-backup
/
16 PKG_MD5SUM
:=1a94dc537fcf74d6a3a80bd27808e77b
18 PKG_BUILD_DEPENDS
:=python
20 include $(INCLUDE_DIR
)/package.mk
21 $(call include_mk
, python-package.mk
)
23 define Package
/rdiff-backup
27 TITLE
:=Incremental backup utility
28 URL
:=http
://www.nongnu.org
/rdiff-backup
29 DEPENDS
:=+python
+librsync
+libpopt
+openssl-util
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
41 define PyPackage
/rdiff-backup
/filespec
42 +|
/usr
/bin
/rdiff-backup
43 +|
$(PYTHON_PKG_DIR
)/rdiff_backup
47 $(if
$(Build
/Compile
/PyMod
),,@echo Python packaging code not found.
; false
)
48 $(call Build
/Compile
/PyMod
,.
, \
49 build
--librsync-dir
="$(STAGING_DIR)/usr" , \
51 $(call Build
/Compile
/PyMod
,.
, \
52 install --prefix="$(PKG_INSTALL_DIR)/usr", \
56 $(eval
$(call PyPackage
,rdiff-backup
))
57 $(eval
$(call BuildPackage
,rdiff-backup
))