* [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python
@ 2012-08-13 14:19 Avishay Orpaz
2012-08-13 14:19 ` [Buildroot] [PATCH 2/2] rdiff-backup: new package Avishay Orpaz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Avishay Orpaz @ 2012-08-13 14:19 UTC (permalink / raw)
To: buildroot
---
package/python/Config.in | 6 ++++++
package/python/python.mk | 4 ++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/package/python/Config.in b/package/python/Config.in
index 11aa267..65aac23 100644
--- a/package/python/Config.in
+++ b/package/python/Config.in
@@ -93,6 +93,12 @@ config BR2_PACKAGE_PYTHON_ZLIB
help
zlib support in Python
+config BR2_PACKAGE_PYTHON_HASHLIB
+ bool "hashlib module"
+ select BR2_PACKAGE_OPENSSL
+ help
+ hashlib support in Python
+
endmenu
endif
diff --git a/package/python/python.mk b/package/python/python.mk
index fae4e5c..0584a5a 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -110,6 +110,10 @@ else
PYTHON_CONF_OPT += --disable-zlib
endif
+ifeq ($(BR2_PACKAGE_PYTHON_HASHLIB),y)
+PYTHON_DEPENDENCIES += openssl
+endif
+
PYTHON_CONF_ENV += \
PYTHON_FOR_BUILD=$(HOST_PYTHON_DIR)/python \
PGEN_FOR_BUILD=$(HOST_PYTHON_DIR)/Parser/pgen \
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 2/2] rdiff-backup: new package
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
2013-03-24 12:30 ` [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python Gustavo Zacarias
2013-05-03 12:38 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Avishay Orpaz @ 2012-08-13 14:19 UTC (permalink / raw)
To: buildroot
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python
2012-08-13 14:19 [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python Avishay Orpaz
2012-08-13 14:19 ` [Buildroot] [PATCH 2/2] rdiff-backup: new package Avishay Orpaz
@ 2013-03-24 12:30 ` Gustavo Zacarias
2013-05-03 12:38 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2013-03-24 12:30 UTC (permalink / raw)
To: buildroot
On 08/13/2012 11:19 AM, Avishay Orpaz wrote:
> ---
> package/python/Config.in | 6 ++++++
> package/python/python.mk | 4 ++++
> 2 files changed, 10 insertions(+), 0 deletions(-)
Acked-By: Gustavo Zacarias <gustavo@zacarias.com.ar>
Can you resend it with a proper SoB line please?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python
2012-08-13 14:19 [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python Avishay Orpaz
2012-08-13 14:19 ` [Buildroot] [PATCH 2/2] rdiff-backup: new package Avishay Orpaz
2013-03-24 12:30 ` [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python Gustavo Zacarias
@ 2013-05-03 12:38 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2013-05-03 12:38 UTC (permalink / raw)
To: buildroot
>>>>> "Avishay" == Avishay Orpaz <avishorp@gmail.com> writes:
Avishay> ---
Avishay> package/python/Config.in | 6 ++++++
Avishay> package/python/python.mk | 4 ++++
Avishay> 2 files changed, 10 insertions(+), 0 deletions(-)
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-03 12:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 14:19 [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python Avishay Orpaz
2012-08-13 14:19 ` [Buildroot] [PATCH 2/2] rdiff-backup: new package Avishay Orpaz
2013-03-24 12:30 ` [Buildroot] [PATCH 1/2] Added support for hashlib in the target Python Gustavo Zacarias
2013-05-03 12:38 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox