2006-11-02 19:54:51 +00:00
|
|
|
#
|
2009-08-20 17:09:33 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-11-02 19:54:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rdiff-backup
|
2009-08-20 17:09:33 +00:00
|
|
|
PKG_VERSION:=1.2.8
|
2006-11-02 19:54:51 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://savannah.nongnu.org/download/rdiff-backup/
|
2009-08-20 17:09:33 +00:00
|
|
|
PKG_MD5SUM:=1a94dc537fcf74d6a3a80bd27808e77b
|
2006-11-02 19:54:51 +00:00
|
|
|
|
2008-04-14 01:07:39 +00:00
|
|
|
PKG_BUILD_DEPENDS:=python
|
|
|
|
|
2006-11-02 19:54:51 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2007-10-24 15:58:19 +00:00
|
|
|
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
|
2006-11-02 19:54:51 +00:00
|
|
|
|
2008-04-14 01:07:39 +00:00
|
|
|
define Package/rdiff-backup
|
|
|
|
SUBMENU:=Python
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2006-11-02 19:54:51 +00:00
|
|
|
TITLE:=Incremental backup utility
|
|
|
|
URL:=http://www.nongnu.org/rdiff-backup
|
2009-08-20 17:09:33 +00:00
|
|
|
DEPENDS:=+python-mini +librsync +libpopt +openssl-util
|
2006-11-02 19:54:51 +00:00
|
|
|
endef
|
|
|
|
|
2008-07-05 10:48:55 +00:00
|
|
|
define Package/rdiff-backup/description
|
|
|
|
rdiff-backup backs up one directory to another, possibly over a
|
|
|
|
network. The target directory ends up a copy of the source directory,
|
|
|
|
but extra reverse diffs are stored in a special subdirectory of that
|
|
|
|
target directory, so you can still recover files lost some time ago.
|
|
|
|
The idea is to combine the best features of a mirror and an incremental
|
|
|
|
backup.
|
|
|
|
endef
|
|
|
|
|
2007-09-06 03:47:43 +00:00
|
|
|
define PyPackage/rdiff-backup/filespec
|
|
|
|
+|/usr/bin/rdiff-backup
|
|
|
|
+|$(PYTHON_PKG_DIR)/rdiff_backup
|
2006-11-02 19:54:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2008-08-17 16:21:41 +00:00
|
|
|
$(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
|
2007-09-06 03:47:43 +00:00
|
|
|
$(call Build/Compile/PyMod,., \
|
|
|
|
build --librsync-dir="$(STAGING_DIR)/usr" , \
|
|
|
|
)
|
|
|
|
$(call Build/Compile/PyMod,., \
|
|
|
|
install --prefix="$(PKG_INSTALL_DIR)/usr", \
|
|
|
|
)
|
2006-11-02 19:54:51 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-06 03:47:43 +00:00
|
|
|
$(eval $(call PyPackage,rdiff-backup))
|
2008-04-14 01:07:39 +00:00
|
|
|
$(eval $(call BuildPackage,rdiff-backup))
|