aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Kanzenbach <kurt@kmk-computers.de>2022-06-04 13:54:58 +0200
committerKurt Kanzenbach <kurt@kmk-computers.de>2022-06-04 13:54:58 +0200
commita60fa20e795c8a131a5e23eb6681399610038c55 (patch)
tree29475c0995401b4ebf5a84f47a0083d8bf87315d /dev-embedded
parentnet-dialup/tio: drop 1.37 (diff)
downloadguru-a60fa20e795c8a131a5e23eb6681399610038c55.tar.gz
guru-a60fa20e795c8a131a5e23eb6681399610038c55.tar.bz2
guru-a60fa20e795c8a131a5e23eb6681399610038c55.zip
dev-embedded/rauc: add 1.7
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/rauc/Manifest1
-rw-r--r--dev-embedded/rauc/files/rauc-1.7-tests.patch65
-rw-r--r--dev-embedded/rauc/rauc-1.7.ebuild65
3 files changed, 131 insertions, 0 deletions
diff --git a/dev-embedded/rauc/Manifest b/dev-embedded/rauc/Manifest
index 5a4f3ade0..12a0ff302 100644
--- a/dev-embedded/rauc/Manifest
+++ b/dev-embedded/rauc/Manifest
@@ -1 +1,2 @@
DIST rauc-1.6.tar.xz 878684 BLAKE2B 0fa4686db47793fefb675d3f3b873741a46a7f7ae4bdf931d66dfcba480963504b9d140edf65c4f88aff9753e61658f56e39189603a51d52583a90b50b1b810c SHA512 265646e3abb97c47344a8c9a62c022824b5cae12264915a06987ba4f9d63f25ee56b7e7df5aa59489bdb3f34cad72b6ec1c4b58d041e6203dab529b517ec0388
+DIST rauc-1.7.tar.xz 1049072 BLAKE2B 51e29e66cbb649b2fb7b1b0b93725f69bb1079e879a74e5431cf562b050ea43911dd52c1e2853e8223174710a8d040bd0349583ad104bba65dc7e191fbb24287 SHA512 16bcba35806a746b118546aa64bea65bda7f91e9295c3599959ea77ab48daade87d866a68c5cb438cb0c666e535d71fbf4854fa956785002e912ca02c4ed15e6
diff --git a/dev-embedded/rauc/files/rauc-1.7-tests.patch b/dev-embedded/rauc/files/rauc-1.7-tests.patch
new file mode 100644
index 000000000..594054d66
--- /dev/null
+++ b/dev-embedded/rauc/files/rauc-1.7-tests.patch
@@ -0,0 +1,65 @@
+From cfeab43e8c1ebbe952bca9b71fb8400a9947d229 Mon Sep 17 00:00:00 2001
+From: Kurt Kanzenbach <kurt@kmk-computers.de>
+Date: Sat, 15 Aug 2020 08:45:21 +0200
+Subject: [PATCH] tests: Disable failed tests
+
+The network and squashfs tests won't work within portage. Disable them.
+
+Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
+---
+ Makefile.am | 7 -------
+ test/rauc.t | 20 ++++++++++----------
+ 2 files changed, 10 insertions(+), 17 deletions(-)
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -162,10 +162,6 @@ check_PROGRAMS = \
+ test/progress.test \
+ test/slot.test
+
+-if WANT_NETWORK
+-check_PROGRAMS += test/network.test
+-endif
+-
+ if ENABLE_STREAMING
+ check_PROGRAMS += test/nbd.test
+ endif
+@@ -260,9 +256,6 @@ test_utils_test_LDADD = librauctest.la
+ test_install_test_SOURCES = test/install.c
+ test_install_test_LDADD = librauctest.la
+
+-test_network_test_SOURCES = test/network.c
+-test_network_test_LDADD = librauctest.la
+-
+ test_progress_test_SOURCES = test/progress.c
+ test_progress_test_LDADD = librauctest.la
+
+--- a/test/rauc.t
++++ b/test/rauc.t
+@@ -325,16 +325,16 @@ test_expect_success "rauc bundle" "
+ test -f ${TEST_TMPDIR}/out.raucb
+ "
+
+-test_expect_success "rauc bundle mksquashfs extra args" "
+- rm -f ${TEST_TMPDIR}/out.raucb &&
+- rauc \
+- --cert $SHARNESS_TEST_DIRECTORY/openssl-ca/dev/autobuilder-1.cert.pem \
+- --key $SHARNESS_TEST_DIRECTORY/openssl-ca/dev/private/autobuilder-1.pem \
+- bundle \
+- --mksquashfs-args=\"-comp xz -info -progress\" \
+- $SHARNESS_TEST_DIRECTORY/install-content ${TEST_TMPDIR}/out.raucb &&
+- rauc -c $SHARNESS_TEST_DIRECTORY/test.conf info ${TEST_TMPDIR}/out.raucb
+-"
++# test_expect_success "rauc bundle mksquashfs extra args" "
++# rm -f ${TEST_TMPDIR}/out.raucb &&
++# rauc \
++# --cert $SHARNESS_TEST_DIRECTORY/openssl-ca/dev/autobuilder-1.cert.pem \
++# --key $SHARNESS_TEST_DIRECTORY/openssl-ca/dev/private/autobuilder-1.pem \
++# bundle \
++# --mksquashfs-args=\"-comp xz -info -progress\" \
++# $SHARNESS_TEST_DIRECTORY/install-content ${TEST_TMPDIR}/out.raucb &&
++# rauc -c $SHARNESS_TEST_DIRECTORY/test.conf info ${TEST_TMPDIR}/out.raucb
++# "
+
+ test_expect_success PKCS11 "rauc bundle with PKCS11 (key 1)" "
+ rm -f ${TEST_TMPDIR}/out.raucb &&
diff --git a/dev-embedded/rauc/rauc-1.7.ebuild b/dev-embedded/rauc/rauc-1.7.ebuild
new file mode 100644
index 000000000..3e4f7ced6
--- /dev/null
+++ b/dev-embedded/rauc/rauc-1.7.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DOCS_BUILDER="sphinx"
+DOCS_DIR="${S}/docs"
+
+inherit autotools python-any-r1 docs
+
+DESCRIPTION="Lightweight update client that runs on your Embedded Linux device"
+HOMEPAGE="https://rauc.io/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64"
+IUSE="gpt json network service test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ dev-util/gdbus-codegen
+ virtual/pkgconfig
+ test? (
+ dev-libs/opensc
+ net-misc/casync
+ sys-fs/mtd-utils
+ sys-fs/squashfs-tools
+ sys-libs/libfaketime
+ )
+"
+RDEPEND="
+ dev-libs/glib:2
+ dev-libs/openssl:0=
+ json? ( dev-libs/json-glib )
+ network? ( net-misc/curl )
+ service? ( sys-apps/dbus )
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+PATCHES=( "${FILESDIR}/${P}-tests.patch" )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ $(use_enable gpt)
+ $(use_enable json)
+ $(use_enable network)
+ $(use_enable service)
+ )
+ econf "${myconf[@]}"
+}
+
+src_compile() {
+ default
+ docs_compile
+}