74d2c9800c84709275b1c397ee8673ab0fca9798
[openwrt/svn-archive/archive.git] / utils / rdiff-backup / Makefile
1 #
2 # Copyright (C) 2006 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.4
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:=756b38aaf2602d097cafd08996fb7887
18
19 include $(INCLUDE_DIR)/package.mk
20 -include $(TOPDIR)/package/python/python-package.mk
21
22 define PyPackage/rdiff-backup
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=Incremental backup utility
26 URL:=http://www.nongnu.org/rdiff-backup
27 DEPENDS+= +librsync
28 endef
29
30 define PyPackage/rdiff-backup/filespec
31 +|/usr/bin/rdiff-backup
32 +|$(PYTHON_PKG_DIR)/rdiff_backup
33 endef
34
35 define Build/Compile
36 $(call Build/Compile/PyMod,., \
37 build --librsync-dir="$(STAGING_DIR)/usr" , \
38 )
39 $(call Build/Compile/PyMod,., \
40 install --prefix="$(PKG_INSTALL_DIR)/usr", \
41 )
42 endef
43
44 $(eval $(call PyPackage,rdiff-backup))