From: Avishay Orpaz <avishorp@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] rdiff-backup: new package
Date: Mon, 13 Aug 2012 17:19:38 +0300 [thread overview]
Message-ID: <1344867578-12784-2-git-send-email-avishorp@gmail.com> (raw)
In-Reply-To: <1344867578-12784-1-git-send-email-avishorp@gmail.com>
---
package/rdiff-backup/Config.in | 10 ++++++++++
package/rdiff-backup/rdiff-backup.mk | 29 +++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 0 deletions(-)
create mode 100644 package/rdiff-backup/Config.in
create mode 100644 package/rdiff-backup/rdiff-backup.mk
diff --git a/package/rdiff-backup/Config.in b/package/rdiff-backup/Config.in
new file mode 100644
index 0000000..1e8bc27
--- /dev/null
+++ b/package/rdiff-backup/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_RDIFF_BACKUP
+ bool "rdiff-backup"
+ depends on BR2_PACKAGE_PYTHON
+ select BR2_PACKAGE_PYTHON_HASHLIB
+ select BR2_PACKAGE_PYTHON_ZLIB
+ help
+ Tool for incremental, network efficient backup
+
+ http://nongnu.org/rdiff-backup
+
diff --git a/package/rdiff-backup/rdiff-backup.mk b/package/rdiff-backup/rdiff-backup.mk
new file mode 100644
index 0000000..bb0c3ca
--- /dev/null
+++ b/package/rdiff-backup/rdiff-backup.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# rdiff-backup
+#
+#############################################################
+
+RDIFF_BACKUP_VERSION = 1.2.8
+RDIFF_BACKUP_SOURCE = rdiff-backup-$(RDIFF_BACKUP_VERSION).tar.gz
+RDIFF_BACKUP_SITE = http://savannah.nongnu.org/download/rdiff-backup
+RDIFF_BACKUP_LICENSE = GPLv2
+
+RDIFF_BACKUP_DEPENDENCIES = python librsync
+
+define RDIFF_BACKUP_BUILD_CMDS
+ (cd $(@D); \
+ CC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDSHARED="$(TARGET_CC) -shared" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ $(HOST_DIR)/usr/bin/python setup.py build_ext \
+ --include-dirs=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR))
+ (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build -e /usr/bin/python )
+endef
+
+define RDIFF_BACKUP_INSTALL_TARGET_CMDS
+ (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
+endef
+
+$(eval $(generic-package))
--
1.7.1
next prev parent reply other threads:[~2012-08-13 14:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 14:19 [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python Avishay Orpaz
2012-08-13 14:19 ` Avishay Orpaz [this message]
2013-03-24 12:30 ` Gustavo Zacarias
2013-05-03 12:38 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344867578-12784-2-git-send-email-avishorp@gmail.com \
--to=avishorp@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox