Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
From 5f9e616b29fe272fffbb31e4b7ea8ff61f781601 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Wed, 29 May 2024 19:42:27 +0200
Subject: [PATCH] fix "snooze -n" format string
Fixes #22.
Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
Upstream: https://github.com/leahneukirchen/snooze/commit/5f9e616b29fe272fffbb31e4b7ea8ff61f781601
---
snooze.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/snooze.c b/snooze.c
index 06f0d07..e47ad11 100644
--- a/snooze.c
+++ b/snooze.c
@@ -329,13 +329,13 @@ main(int argc, char *argv[])
char weekstr[4];
struct tm *tm = localtime(&t);
strftime(weekstr, sizeof weekstr, "%a", tm);
- printf("%s %s %2ldd%3ldh%3ldm%3lds ",
+ printf("%s %s %2dd%3dh%3dm%3ds ",
isotime(tm),
weekstr,
- ((t - now) / (60*60*24)),
- ((t - now) / (60*60)) % 24,
- ((t - now) / 60) % 60,
- (t - now) % 60);
+ ((int)(t - now) / (60*60*24)),
+ ((int)(t - now) / (60*60)) % 24,
+ ((int)(t - now) / 60) % 60,
+ (int)(t - now) % 60);
if(jitter) {
printf("(plus up to %ds for jitter)\n", jitter);
} else {
--
2.43.0

View File

@@ -0,0 +1,36 @@
From 2eebd33c10d5a0f1a9831e3e49215857ab41ec03 Mon Sep 17 00:00:00 2001
From: Thomas Perale <perale.thomas@gmail.com>
Date: Sat, 2 Aug 2025 23:09:31 +0200
Subject: [PATCH] snooze: remove unused include
The `#include <sys/auxv.h>` was orinally included in the initial commit
(see [1]) to use the `getauxval` function declaration.
This function usage has since been removed in commit [2].
This commit removes the include that is no longer needed.
[1] https://github.com/leahneukirchen/snooze/commit/56480881978a4cb5813746232de9950d46cb3369
[2] https://github.com/leahneukirchen/snooze/commit/610e6b35ec614764770d47b5974b30fd90dce6fe
Upstream: https://github.com/leahneukirchen/snooze/pull/24
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
---
snooze.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/snooze.c b/snooze.c
index e47ad11..11925ca 100644
--- a/snooze.c
+++ b/snooze.c
@@ -18,10 +18,6 @@
#include <time.h>
#include <unistd.h>
-#ifdef __linux__
-#include <sys/auxv.h>
-#endif
-
static long slack = 60;
#define SLEEP_PHASE 300
static int nflag, vflag;

8
package/snooze/Config.in Normal file
View File

@@ -0,0 +1,8 @@
config BR2_PACKAGE_SNOOZE
bool "snooze"
help
snooze is a tool for waiting until a particular time and then
running a command. Together with a service supervision system
such as runit, this can be used to replace cron(8).
https://github.com/leahneukirchen/snooze

View File

@@ -0,0 +1,3 @@
# Locally computed:
sha256 d63fde85d9333188bed5996baabd833eaa00842ce117443ffbf8719c094be414 snooze-0.5.tar.gz
sha256 2cea433f84afcfd9d55515908d3ea69ed1df00ffbf90cc48cd68d72a2b464544 README.md

28
package/snooze/snooze.mk Normal file
View File

@@ -0,0 +1,28 @@
################################################################################
#
# snooze
#
################################################################################
SNOOZE_VERSION = 0.5
SNOOZE_SITE = $(call github,leahneukirchen,snooze,v$(SNOOZE_VERSION))
SNOOZE_LICENSE = CC0-1.0
# Unfortunately, snooze doesn't have a dedicated file for the license, but it
# is mentioned in the README and in the manpage.
SNOOZE_LICENSE_FILES = README.md
SNOOZE_MAKE_OPTS = \
PREFIX=/usr \
CC=$(TARGET_CC) \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_LDFLAGS)"
define SNOOZE_BUILD_CMDS
$(MAKE) -C $(@D)/ $(SNOOZE_MAKE_OPTS)
endef
define SNOOZE_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D)/ $(SNOOZE_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
endef
$(eval $(generic-package))