source: packages/utils/rdiff-backup/Makefile @ 21972

Last change on this file since 21972 was 21972, checked in by cshore, 6 years ago

packages/rdiff-backup: Requires libraries only on full python, hence changed dependency to full python install

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
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 
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=rdiff-backup
11PKG_VERSION:=1.2.8
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://savannah.nongnu.org/download/rdiff-backup/
16PKG_MD5SUM:=1a94dc537fcf74d6a3a80bd27808e77b
17
18PKG_BUILD_DEPENDS:=python
19
20include $(INCLUDE_DIR)/package.mk
21$(call include_mk, python-package.mk)
22
23define Package/rdiff-backup
24  SUBMENU:=backup
25  SECTION:=utils
26  CATEGORY:=Utilities
27  TITLE:=Incremental backup utility
28  URL:=http://www.nongnu.org/rdiff-backup
29  DEPENDS:=+python +librsync +libpopt +openssl-util
30endef
31
32define 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.
39endef
40
41define PyPackage/rdiff-backup/filespec
42+|/usr/bin/rdiff-backup
43+|$(PYTHON_PKG_DIR)/rdiff_backup
44endef
45
46define 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        )
54endef
55
56$(eval $(call PyPackage,rdiff-backup))
57$(eval $(call BuildPackage,rdiff-backup))
Note: See TracBrowser for help on using the repository browser.