package/casync: new package
PATCH v3 1/1 package/casync: new package
Content-Addressable Data Synchronization Tool
--- DEVELOPERS | 1 + package/Config.in | 1 + .../0001-Insert-lzma-into-if-directive.patch | 30 ++++++++++ package/casync/Config.in | 13 ++++ package/casync/casync.hash | 3 + package/casync/casync.mk | 60 +++++++++++++++++++ 6 files changed, 108 insertions(+) create mode 100644 package/casync/0001-Insert-lzma-into-if-directive.patch create mode 100644 package/casync/Config.in create mode 100644 package/casync/casync.hash create mode 100644 package/casync/casync.mk
DEVELOPERS +1 -0
@@ -2716,6 +2716,7 @@ F: package/fwup/ N: Yair Ben Avraham <[email protected]> F: package/gloox/ +F: package/casync/ N: Yann CARDAILLAC <[email protected]> F: package/open62541/
package/Config.in +1 -0
@@ -2072,6 +2072,7 @@ menu "Networking applications" source "package/c-icap-modules/Config.in" source "package/can-utils/Config.in" source "package/cannelloni/Config.in" + source "package/casync/Config.in" source "package/chrony/Config.in" source "package/civetweb/Config.in" source "package/connman/Config.in"
package/casync/0001-Insert-lzma-into-if-directive.patch new file +30 -0
@@ -0,0 +1,30 @@ +From d72e66f87f31f288f5445c3540520a8c82f6ff89 Mon Sep 17 00:00:00 2001 +From: Yair Ben-Avraham <[email protected]> +Date: Sun, 10 Jan 2021 06:34:58 +0100 +Subject: [PATCH] Insert lzma into if directive + +lzma is a feature option in meson_options.txt + +Signed-off-by: Yair Ben-Avraham <[email protected]> +--- + src/castore.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/castore.c b/src/castore.c +index c290dfd..73cbf8d 100644 +--- a/src/castore.c ++++ b/src/castore.c +@@ -2,7 +2,9 @@ + + #include <dirent.h> + #include <fcntl.h> +-#include <lzma.h> ++#if HAVE_LIBLZMA ++# include <lzma.h> ++#endif + #include <sys/stat.h> + #include <unistd.h> + +-- +2.20.1 +
package/casync/Config.in new file +13 -0
@@ -0,0 +1,13 @@ +config BR2_PACKAGE_CASYNC + bool "casync" + depends on BR2_TOOLCHAIN_USES_GLIBC # scandirat() is not implemented by musl and uclibc-ng + select BR2_PACKAGE_ACL + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_OPENSSL + help + Content-Addressable Data Synchronization Tool + + https://github.com/systemd/casync + +comment "casync needs a glibc toolchain" + depends on !BR2_TOOLCHAIN_USES_GLIBC
package/casync/casync.hash new file +3 -0
@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 d07f43e70e3c466152033da4c55c065f815d3025234a046c2bce1cfe4ac7d273 casync-4ad9bcb94bc83ff36cfc65515107ea06a88c2dfc.tar.gz +sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSE.LGPL2.1
package/casync/casync.mk new file +60 -0
60 lines not on this page · raw message
--
2.20.1
Yann E. MORIN
AppliedPATCH v3 1/1 package/casync: new package
Yair, All,
On 2021-01-10 08:35 +0000, Yair Ben-Avraham via buildroot spake thusly:
Quoted 3 lines
Content-Addressable Data Synchronization Tool
Signed-off-by Yair Ben-Avraham <[email protected]>
Applied to master, with the following changes:
- correctly fix build without lzma in an upstreamable fashion
- actually fix the build without udev
- depend on udev, not libudev (which does not exist)
- don't use += for the first variable assignment to _CONF_OPTS
- explicitly disable unsupported fuzz options
- add explicit optiopnal support for bash-completion
- drop useless comments about "features" and "booleans"
- fix alphabetical order in DEVELOPERS
Please do not forget to push the two pathes upstream, so we can eventually drop them when we later bump the version.
Regards,
Yann E. MORIN.
Quoted 173 lines
--- DEVELOPERS | 1 + package/Config.in | 1 + .../0001-Insert-lzma-into-if-directive.patch | 30 ++++++++++ package/casync/Config.in | 13 ++++ package/casync/casync.hash | 3 + package/casync/casync.mk | 60 +++++++++++++++++++ 6 files changed, 108 insertions(+) create mode 100644 package/casync/0001-Insert-lzma-into-if-directive.patch create mode 100644 package/casync/Config.in create mode 100644 package/casync/casync.hash create mode 100644 package/casync/casync.mkDEVELOPERS +1
-0@@ -2716,6 +2716,7 @@ F: package/fwup/ N: Yair Ben Avraham <[email protected]> F: package/gloox/ +F: package/casync/ N: Yann CARDAILLAC <[email protected]> F: package/open62541/package/Config.in +1
-0@@ -2072,6 +2072,7 @@ menu "Networking applications" source "package/c-icap-modules/Config.in" source "package/can-utils/Config.in" source "package/cannelloni/Config.in" + source "package/casync/Config.in" source "package/chrony/Config.in" source "package/civetweb/Config.in" source "package/connman/Config.in"package/casync/0001-Insert-lzma-into-if-directive.patch new file +30
-0@@ -0,0 +1,30 @@ +From d72e66f87f31f288f5445c3540520a8c82f6ff89 Mon Sep 17 00:00:00 2001 +From: Yair Ben-Avraham <[email protected]> +Date: Sun, 10 Jan 2021 06:34:58 +0100 +Subject: [PATCH] Insert lzma into if directive + +lzma is a feature option in meson_options.txt + +Signed-off-by: Yair Ben-Avraham <[email protected]> +--- + src/castore.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/castore.c b/src/castore.c +index c290dfd..73cbf8d 100644 +--- a/src/castore.c ++++ b/src/castore.c +@@ -2,7 +2,9 @@ + + #include <dirent.h> + #include <fcntl.h> +-#include <lzma.h> ++#if HAVE_LIBLZMA ++# include <lzma.h> ++#endif + #include <sys/stat.h> + #include <unistd.h> + +-- +2.20.1 +package/casync/Config.in new file +13
-0@@ -0,0 +1,13 @@ +config BR2_PACKAGE_CASYNC + bool "casync" + depends on BR2_TOOLCHAIN_USES_GLIBC # scandirat() is not implemented by musl and uclibc-ng + select BR2_PACKAGE_ACL + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_OPENSSL + help + Content-Addressable Data Synchronization Tool + + https://github.com/systemd/casync + +comment "casync needs a glibc toolchain" + depends on !BR2_TOOLCHAIN_USES_GLIBCpackage/casync/casync.hash new file +3
-0@@ -0,0 +1,3 @@ +# sha256 locally computed +sha256 d07f43e70e3c466152033da4c55c065f815d3025234a046c2bce1cfe4ac7d273 casync-4ad9bcb94bc83ff36cfc65515107ea06a88c2dfc.tar.gz +sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSE.LGPL2.1package/casync/casync.mk new file +60
-1@@ -0,0 +1,60 @@ +################################################################################ +# +# casync +# +################################################################################ + +CASYNC_VERSION = 4ad9bcb94bc83ff36cfc65515107ea06a88c2dfc +CASYNC_SITE = $(call github,systemd,casync,$(CASYNC_VERSION)) +CASYNC_LICENSE = LGPL-2.1+ +CASYNC_LICENSE_FILES = LICENSE.LGPL2.1 +CASYNC_DEPENDENCIES = acl libcurl openssl +CASYNC_CONF_OPTS += -Dman=false + +# meson booleans +ifeq ($(BR2_PACKAGE_LIBFUSE),y) +CASYNC_DEPENDENCIES += libfuse +CASYNC_CONF_OPTS += -Dfuse=true +else +CASYNC_CONF_OPTS += -Dfuse=false +endif + +ifeq ($(BR2_PACKAGE_LIBSELINUX),y) +CASYNC_DEPENDENCIES += libselinux +CASYNC_CONF_OPTS += -Dselinux=true +else +CASYNC_CONF_OPTS += -Dselinux=false +endif + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) +CASYNC_DEPENDENCIES += libudev +CASYNC_CONF_OPTS += -Dudev=true +else +CASYNC_CONF_OPTS += -Dudev=false +# Due to a bug in ./meson.build, 'udevrulesdir' must not be empty +CASYNC_CONF_OPTS += -Dudevrulesdir=this_is_a_bug +endif + +# meson features +ifeq ($(BR2_PACKAGE_LIBZSTD),y) +CASYNC_DEPENDENCIES += libzstd +CASYNC_CONF_OPTS += -Dlibzstd=enabled +else +CASYNC_CONF_OPTS += -Dlibzstd=disabled +endif + +ifeq ($(BR2_PACKAGE_XZ),y) +CASYNC_DEPENDENCIES += xz +CASYNC_CONF_OPTS += -Dliblzma=enabled +else +CASYNC_CONF_OPTS += -Dliblzma=disabled +endif + +ifeq ($(BR2_PACKAGE_ZLIB),y) +CASYNC_DEPENDENCIES += zlib +CASYNC_CONF_OPTS += -Dlibz=enabled +else +CASYNC_CONF_OPTS += -Dlibz=disabled +endif + +$(eval $(meson-package)) --2.20.1
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'