From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2 v2] casync: new package
Date: Fri, 1 Nov 2019 10:19:07 +0100 [thread overview]
Message-ID: <20191101091907.GC22947@lenoch> (raw)
In-Reply-To: <20191101091744.GA22947@lenoch>
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
CHANGES:
-v2: None
rules/casync.in | 36 ++++++++++++++++++++
rules/casync.make | 76 ++++++++++++++++++++++++++++++++++++++++++
rules/host-casync.in | 11 ++++++
rules/host-casync.make | 33 ++++++++++++++++++
4 files changed, 156 insertions(+)
create mode 100644 rules/casync.in
create mode 100644 rules/casync.make
create mode 100644 rules/host-casync.in
create mode 100644 rules/host-casync.make
diff --git a/rules/casync.in b/rules/casync.in
new file mode 100644
index 000000000..20e3d87a7
--- /dev/null
+++ b/rules/casync.in
@@ -0,0 +1,36 @@
+## SECTION=applications
+
+menuconfig CASYNC
+ tristate
+ prompt "Casync Tool "
+ select HOST_CASYNC
+ select HOST_MESON
+ select ACL
+ select LIBC_RT
+ select LIBCURL
+ select LIBC_M
+ select FUSE if CASYNC_FUSE
+ select FUSE_LIB if CASYNC_FUSE
+ select OPENSSL
+ select UDEV if CASYNC_UDEV
+ select UDEV_LIBUDEV if CASYNC_UDEV
+ select XZ if CASYNC_LZMA
+ select ZLIB if CASYNC_ZLIB
+ help
+ casync — Content Addressable Data Synchronizer.
+
+if CASYNC
+
+config CASYNC_FUSE
+ bool "FUSE integration"
+
+config CASYNC_UDEV
+ bool "UDEV integration"
+
+config CASYNC_LZMA
+ bool "support XZ compression"
+
+config CASYNC_ZLIB
+ bool "support ZLIB compression"
+
+endif
diff --git a/rules/casync.make b/rules/casync.make
new file mode 100644
index 000000000..63e6085da
--- /dev/null
+++ b/rules/casync.make
@@ -0,0 +1,76 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Ladislav Michl <ladis@linux-mips.org>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_CASYNC) += casync
+
+#
+# Paths and names
+#
+CASYNC_VERSION := a8f6c841ccfe59ca8c68aad64df170b64042dce8
+CASYNC_MD5 := 38cf3c9e1be9ac60243031538024aa01
+CASYNC := casync-$(CASYNC_VERSION)
+CASYNC_SUFFIX := tar.gz
+CASYNC_URL := https://github.com/systemd/casync/archive/$(CASYNC_VERSION).$(CASYNC_SUFFIX)
+CASYNC_SOURCE := $(SRCDIR)/$(CASYNC).$(CASYNC_SUFFIX)
+CASYNC_DIR := $(BUILDDIR)/$(CASYNC)
+CASYNC_LICENSE := LGPL-2.1+
+CASYNC_LICENSE_FILES := \
+ file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+CASYNC_CONF_TOOL := meson
+CASYNC_CONF_OPT := \
+ $(CROSS_MESON_USR) \
+ -Dfuse=$(call ptx/truefalse,PTXCONF_CASYNC_FUSE) \
+ -Dselinux=$(call ptx/truefalse,PTXCONF_GLOBAL_SELINUX) \
+ -Dudev=$(call ptx/truefalse,PTXCONF_CASYNC_UDEV) \
+ -Dudevrulesdir=/usr/lib/udev/rules.d \
+ -Dman=false \
+ -Dlibzstd=disabled \
+ -Dliblzma=$(call ptx/endis,PTXCONF_CASYNC_LZMA)d \
+ -Dlibz=$(call ptx/endis,PTXCONF_CASYNC_ZLIB)d \
+ -Doss-fuzz=false \
+ -Dllvm-fuzz=false \
+ -Dbashcompletiondir=no
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/casync.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, casync)
+ @$(call install_fixup, casync, PRIORITY, optional)
+ @$(call install_fixup, casync, SECTION, base)
+ @$(call install_fixup, casync, AUTHOR, "Ladislav Michl <ladis@linux-mips.org>")
+ @$(call install_fixup, casync, DESCRIPTION, \
+ "Content Addressable Data Synchronizer")
+
+ @$(call install_copy, casync, 0, 0, 0755, -, /usr/bin/casync)
+ @$(call install_copy, casync, 0, 0, 0755, -, /usr/lib/casync/protocols/casync-http)
+ @$(call install_link, casync, casync-http, /usr/lib/casync/protocols/casync-https)
+ @$(call install_link, casync, casync-http, /usr/lib/casync/protocols/casync-ftp)
+ @$(call install_link, casync, casync-http, /usr/lib/casync/protocols/casync-sftp)
+
+ifdef PTXCONF_CASYNC_UDEV
+ @$(call install_alternative, casync, 0, 0, 0644, \
+ /usr/lib/udev/rules.d/75-casync.rules)
+endif
+
+ @$(call install_finish, casync)
+
+ @$(call touch)
+
+# vim: syntax=make
diff --git a/rules/host-casync.in b/rules/host-casync.in
new file mode 100644
index 000000000..66e2192e9
--- /dev/null
+++ b/rules/host-casync.in
@@ -0,0 +1,11 @@
+## SECTION=hosttools_noprompt
+
+config HOST_CASYNC
+ tristate
+ select HOST_ACL
+ select HOST_LIBCURL
+ select HOST_MESON
+ select HOST_OPENSSL
+ select HOST_XZ
+ select HOST_ZLIB
+ default y if ALLYES
diff --git a/rules/host-casync.make b/rules/host-casync.make
new file mode 100644
index 000000000..6bcf0361a
--- /dev/null
+++ b/rules/host-casync.make
@@ -0,0 +1,33 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Ladislav Michl <ladis@linux-mips.org>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_CASYNC) += host-casync
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_CASYNC_CONF_TOOL := meson
+HOST_CASYNC_CONF_OPT := \
+ $(HOST_MESON_OPT) \
+ -Dfuse=false \
+ -Dselinux=false \
+ -Dudev=false \
+ -Dudevrulesdir=no \
+ -Dman=false \
+ -Dlibzstd=disabled \
+ -Dliblzma=enabled \
+ -Dlibz=enabled \
+ -Doss-fuzz=false \
+ -Dllvm-fuzz=false \
+ -Dbashcompletiondir=no
+
+# vim: syntax=make
--
2.24.0.rc2
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2019-11-01 9:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-01 9:17 [ptxdist] [PATCH 0/2 v2] add image-rauc-casync Ladislav Michl
2019-11-01 9:18 ` [ptxdist] [PATCH 1/2 v2] host-xz: build shared libs again Ladislav Michl
2019-11-01 9:19 ` Ladislav Michl [this message]
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=20191101091907.GC22947@lenoch \
--to=ladis@linux-mips.org \
--cc=ptxdist@pengutronix.de \
/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