zsync: add recipe

Submitted by Ross Burton on June 7, 2021, 4:08 p.m. | Patch ID: 179878

Details

Message ID 20210607160804.264567-1-ross.burton@arm.com
State Master Next
Commit bb584bd139b7b78e6e5c5eada4225114f27626c7
Headers show

Commit Message

Ross Burton June 7, 2021, 4:08 p.m.
zsync is a tool that is similar to rsync but optimised for transfering
single large files, where you have a previous version of the file locally.

These qualities make it an excellent choice for transfering built images
between hosts.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../zsync/zsync/out-of-tree.patch             | 37 +++++++++++++++++++
 meta-oe/recipes-extended/zsync/zsync_0.6.2.bb | 13 +++++++
 2 files changed, 50 insertions(+)
 create mode 100644 meta-oe/recipes-extended/zsync/zsync/out-of-tree.patch
 create mode 100644 meta-oe/recipes-extended/zsync/zsync_0.6.2.bb

Patch hide | download patch | download mbox

diff --git a/meta-oe/recipes-extended/zsync/zsync/out-of-tree.patch b/meta-oe/recipes-extended/zsync/zsync/out-of-tree.patch
new file mode 100644
index 0000000000..b96777f0c3
--- /dev/null
+++ b/meta-oe/recipes-extended/zsync/zsync/out-of-tree.patch
@@ -0,0 +1,37 @@ 
+Fix out-of-tree builds and rebuilds by passing the right -I to find the common
+header, and disabling maintainer-mode.
+
+Upstream-Status: Pending [upstream is dead]
+Signed-off-by: Ross Burton <ross.burton@arm.com>
+
+diff --git a/configure.ac b/configure.ac
+index 87b0be1..4b7c9a2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -9,7 +9,6 @@ AC_CONFIG_MACRO_DIR([autotools])
+ AC_CANONICAL_HOST
+ 
+ AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip foreign check-news -Woverride -Wobsolete -Wportability -Wsyntax -Wunsupported])
+-AM_MAINTAINER_MODE
+ 
+ dnl --- Check for programs
+ AC_PROG_CC
+diff --git a/librcksum/Makefile.am b/librcksum/Makefile.am
+index f4fce72..47754eb 100644
+--- a/librcksum/Makefile.am
++++ b/librcksum/Makefile.am
+@@ -1,4 +1,4 @@
+-
++AM_CPPFLAGS = "-I$(top_srcdir)"
+ 
+ noinst_LIBRARIES = librcksum.a
+ 
+diff --git a/libzsync/Makefile.am b/libzsync/Makefile.am
+index 0a6ae85..33a5951 100644
+--- a/libzsync/Makefile.am
++++ b/libzsync/Makefile.am
+@@ -1,3 +1,4 @@
++AM_CPPFLAGS = "-I$(top_srcdir)"
+ 
+ noinst_LIBRARIES = libzsync.a
+ 
diff --git a/meta-oe/recipes-extended/zsync/zsync_0.6.2.bb b/meta-oe/recipes-extended/zsync/zsync_0.6.2.bb
new file mode 100644
index 0000000000..c61e26309d
--- /dev/null
+++ b/meta-oe/recipes-extended/zsync/zsync_0.6.2.bb
@@ -0,0 +1,13 @@ 
+SUMMARY = "File transfer tool optimised for large files"
+HOMEPAGE = "http://zsync.moria.org.uk/"
+
+LICENSE = "Artistic-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=71c0ac4d86266533509aa0825b8d323c"
+
+SRC_URI = "http://zsync.moria.org.uk/download/${BP}.tar.bz2 \
+           file://out-of-tree.patch"
+SRC_URI[sha256sum] = "0b9d53433387aa4f04634a6c63a5efa8203070f2298af72a705f9be3dda65af2"
+
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"