Signed-off-by: Ladislav Michl <[email protected]> --- 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 <[email protected]> +# +# 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 <[email protected]>") + @$(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 <[email protected]> +# +# 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 [email protected]
