From 4a0756f08185ecdde381dce47e006b4cddb27f20 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 2 Nov 2006 19:54:51 +0000 Subject: [PATCH] Add rdiff-backup (#561) SVN-Revision: 5380 --- utils/rdiff-backup/Makefile | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 utils/rdiff-backup/Makefile diff --git a/utils/rdiff-backup/Makefile b/utils/rdiff-backup/Makefile new file mode 100644 index 000000000..9d8a83ee7 --- /dev/null +++ b/utils/rdiff-backup/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=rdiff-backup +PKG_VERSION:=1.0.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://savannah.nongnu.org/download/rdiff-backup/ +PKG_MD5SUM:=756b38aaf2602d097cafd08996fb7887 +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/rdiff-backup + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Incremental backup utility + URL:=http://www.nongnu.org/rdiff-backup + DEPENDS:=+librsync +python +endef + +define Build/Configure +endef + +define Build/Compile + (cd $(PKG_BUILD_DIR); \ + $(STAGING_DIR)/usr/bin/hostpython ./setup.py build --librsync-dir="$(STAGING_DIR)/usr" --lflags="-L$(STAGING_DIR)/usr/lib"; \ + $(STAGING_DIR)/usr/bin/hostpython ./setup.py install --prefix=$(PKG_INSTALL_DIR)/usr/; \ + ); +endef + +define Package/rdiff-backup/install + mkdir -p $(1)/usr/{bin,lib} + $(CP) $(PKG_INSTALL_DIR)/usr/{bin,lib} $(1)/usr/ +endef + +$(eval $(call BuildPackage,rdiff-backup)) -- 2.30.2