mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
app-backup/casync: Drop dead package
Gentoo has net-misc/casync now if we ever need this.
This commit is contained in:
parent
b23b3ccc9c
commit
4c4ccf1ff8
@ -1 +0,0 @@
|
|||||||
DIST v2.tar.gz 1250776 SHA256 a5f79ee3ccae2df42cce662c36edc7047aebacd3a9c029ee9a859adfa7a68d00 SHA512 d3f27a8af75c07030cbd465bc716f74b1389234ff03c4043f76e898a2c2633ca6352618c89330aca6b83ff8d09082ff7d7a3d835035665c4f9eab9dc643fd3cf WHIRLPOOL 19ecfeac16c2f519a8e2abf4aed65d4331b57e7fbf58386ea0fd0441f58a1306d67103885dd662e5f1e8320add995625687830f4cbdb6535a917979e682b6121
|
|
@ -1,33 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
DESCRIPTION="casync - Content-Addressable Data Synchronization Tool - is a tool similar to rsync for backing up and updating directory trees"
|
|
||||||
HOMEPAGE="https://github.com/systemd/casync"
|
|
||||||
SRC_URI="https://github.com/systemd/casync/archive/v${PV}.tar.gz"
|
|
||||||
|
|
||||||
inherit meson eutils
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
IUSE="fuse selinux doc"
|
|
||||||
|
|
||||||
DEPEND="app-arch/zstd
|
|
||||||
fuse? ( sys-fs/fuse )
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/fix-selinux-build.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local emesonargs=(
|
|
||||||
-Dfuse=$(usex fuse true false)
|
|
||||||
-Dselinux=$(usex selinux true false)
|
|
||||||
-Dman=$(usex doc true false)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
@ -1,126 +0,0 @@
|
|||||||
From ab7ef83b5aef07af6e8628eeab353a3fb043fadd Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
||||||
Date: Wed, 26 Jul 2017 09:52:40 -0400
|
|
||||||
Subject: [PATCH 1/2] Fix build without selinux and refuse --with=selinux when
|
|
||||||
compiled without
|
|
||||||
|
|
||||||
Fixes #73.
|
|
||||||
|
|
||||||
The output is pretty crappy:
|
|
||||||
|
|
||||||
$ build/casync --with=selinux make ...
|
|
||||||
Failed to run synchronizer: Operation not supported
|
|
||||||
|
|
||||||
but that's being tracked as #44.
|
|
||||||
---
|
|
||||||
src/cadecoder.c | 2 +-
|
|
||||||
src/caencoder.c | 13 ++++++++++---
|
|
||||||
2 files changed, 11 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/cadecoder.c b/src/cadecoder.c
|
|
||||||
index 5deca52..aad8e31 100644
|
|
||||||
--- a/src/cadecoder.c
|
|
||||||
+++ b/src/cadecoder.c
|
|
||||||
@@ -13,7 +13,7 @@
|
|
||||||
#include <linux/msdos_fs.h>
|
|
||||||
|
|
||||||
#if HAVE_SELINUX
|
|
||||||
-#include <selinux/selinux.h>
|
|
||||||
+# include <selinux/selinux.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "cadecoder.h"
|
|
||||||
diff --git a/src/caencoder.c b/src/caencoder.c
|
|
||||||
index eb58bbb..63fd4e2 100644
|
|
||||||
--- a/src/caencoder.c
|
|
||||||
+++ b/src/caencoder.c
|
|
||||||
@@ -21,7 +21,7 @@
|
|
||||||
#include <linux/msdos_fs.h>
|
|
||||||
|
|
||||||
#if HAVE_SELINUX
|
|
||||||
-#include <selinux/selinux.h>
|
|
||||||
+# include <selinux/selinux.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "caencoder.h"
|
|
||||||
@@ -264,10 +264,12 @@ static void ca_encoder_node_free(CaEncoderNode *n) {
|
|
||||||
|
|
||||||
n->fcaps = mfree(n->fcaps);
|
|
||||||
|
|
||||||
+#if HAVE_SELINUX
|
|
||||||
if (n->selinux_label) {
|
|
||||||
freecon(n->selinux_label);
|
|
||||||
n->selinux_label = NULL;
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
n->device_size = UINT64_MAX;
|
|
||||||
|
|
||||||
@@ -658,18 +660,20 @@ static int ca_encoder_node_read_selinux_label(
|
|
||||||
CaEncoder *e,
|
|
||||||
CaEncoderNode *n) {
|
|
||||||
|
|
||||||
+#if HAVE_SELINUX
|
|
||||||
char *label;
|
|
||||||
int r;
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
assert(e);
|
|
||||||
assert(n);
|
|
||||||
|
|
||||||
if ((e->feature_flags & CA_FORMAT_WITH_SELINUX) == 0)
|
|
||||||
return 0;
|
|
||||||
+#if HAVE_SELINUX
|
|
||||||
if (n->selinux_label_valid)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
-#if HAVE_SELINUX
|
|
||||||
if (n->fd >= 0)
|
|
||||||
r = fgetfilecon(n->fd, &label) < 0 ? -errno : 0;
|
|
||||||
else {
|
|
||||||
@@ -706,10 +710,13 @@ static int ca_encoder_node_read_selinux_label(
|
|
||||||
|
|
||||||
n->selinux_label = label;
|
|
||||||
}
|
|
||||||
-#endif
|
|
||||||
|
|
||||||
n->selinux_label_valid = true;
|
|
||||||
return 0;
|
|
||||||
+
|
|
||||||
+#else
|
|
||||||
+ return -EOPNOTSUPP;
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
static int compare_xattr(const void *a, const void *b) {
|
|
||||||
|
|
||||||
From 42b8c68addc8aed0a829b7678ef0ceefd47dc113 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
||||||
Date: Wed, 26 Jul 2017 10:34:03 -0400
|
|
||||||
Subject: [PATCH 2/2] Fix segv in ca_remote_forget_chunk
|
|
||||||
|
|
||||||
With gcc-7.1.1-6.fc27:
|
|
||||||
|
|
||||||
In file included from ../src/caformat-util.h:7:0,
|
|
||||||
from ../src/caremote.c:8:
|
|
||||||
../src/caremote.c: In function 'ca_remote_forget_chunk':
|
|
||||||
../src/util.h:471:13: error: argument 1 null where non-null expected [-Werror=nonnull]
|
|
||||||
if (strncmp(s, prefix, l) == 0)
|
|
||||||
^~~~~~~~~~~~~~~~~~~~~
|
|
||||||
---
|
|
||||||
src/caremote.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/caremote.c b/src/caremote.c
|
|
||||||
index 7d49923..755c3a6 100644
|
|
||||||
--- a/src/caremote.c
|
|
||||||
+++ b/src/caremote.c
|
|
||||||
@@ -2729,7 +2729,7 @@ int ca_remote_forget_chunk(CaRemote *rr, const CaChunkID *id) {
|
|
||||||
|
|
||||||
p = startswith(qpos, "low-priority/");
|
|
||||||
if (!p) {
|
|
||||||
- p = startswith(p, "high-priority/");
|
|
||||||
+ p = startswith(qpos, "high-priority/");
|
|
||||||
if (!p) {
|
|
||||||
r = -EBADMSG;
|
|
||||||
goto finish;
|
|
@ -1,13 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install test
|
|
||||||
DEPEND=app-arch/zstd fuse? ( sys-fs/fuse ) >=dev-util/meson-0.45.1 >=dev-util/ninja-1.7.2
|
|
||||||
DESCRIPTION=casync - Content-Addressable Data Synchronization Tool - is a tool similar to rsync for backing up and updating directory trees
|
|
||||||
EAPI=6
|
|
||||||
HOMEPAGE=https://github.com/systemd/casync
|
|
||||||
IUSE=fuse selinux doc
|
|
||||||
KEYWORDS=amd64
|
|
||||||
LICENSE=LGPL-2.1
|
|
||||||
RDEPEND=app-arch/zstd fuse? ( sys-fs/fuse )
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=https://github.com/systemd/casync/archive/v2.tar.gz
|
|
||||||
_eclasses_=desktop b1d22ac8bdd4679ab79c71aca235009d epatch a1bf4756dba418a7238f3be0cb010c54 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 6e6c2737b59a4b982de6fb3ecefd87f8 ltprune 08f9e1d9ee0af8f5d9a7854efbcd8c0e meson 29ef682942c6ff558de2f797a61790c2 multilib b2f01ad412baf81650c23fcf0975fa33 multiprocessing cac3169468f893670dac3e7cb940e045 ninja-utils 132cbb376048d079b5a012f5467c4e7f preserve-libs ef207dc62baddfddfd39a164d9797648 python-utils-r1 12114a2a9aab35b93efc037a196b3234 toolchain-funcs f164325a2cdb5b3ea39311d483988861 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf
|
|
||||||
_md5_=71060a8c0a9bc9200b5eb72bc90f1d98
|
|
Loading…
x
Reference in New Issue
Block a user