initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -0,0 +1,27 @@
From 2710bc67cd920323da9b23a3d60193577bd43d71 Mon Sep 17 00:00:00 2001
From: Carlos Santos <unixmania@gmail.com>
Date: Sat, 20 Jul 2019 00:27:31 -0300
Subject: [PATCH] main.c: add newline to logfile openning error message
Signed-off-by: Carlos Santos <unixmania@gmail.com>
[Upstream status: https://github.com/dubiousjim/dcron/pull/22]
---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 0eba280..2606db8 100644
--- a/main.c
+++ b/main.c
@@ -261,7 +261,7 @@ main(int ac, char **av)
dup2(fd, 2);
} else {
int n = errno;
- fdprintf(2, "failed to open logfile '%s', reason: %s", LogFile, strerror(n));
+ fdprintf(2, "failed to open logfile '%s', reason: %s\n", LogFile, strerror(n));
exit(n);
}
}
--
2.18.1
+23
View File
@@ -0,0 +1,23 @@
config BR2_PACKAGE_DCRON
bool "dcron"
depends on BR2_USE_MMU # fork()
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
help
dcron is a time-based job scheduler with anacron-like
features. It works as a background daemon that parses
individual crontab files and executes commands on behalf of
the users in question.
Upon installation, this package will enable a system level
cron daemon with hourly, daily, weekly and monthly crontabs.
However, it doesn't allow non root users to create their own
crontab file. This is because /var/spool/cron/crontabs is
non user writable.
Typically, a crontab group is created on the system and
users allowed to create crontab entries are added into this
group, while crontab executable is owned by root:crontab
with sgid bit enabled.
http://www.jimpryor.net/linux/dcron.html
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
case "$1" in
start)
printf "Starting cron ... "
start-stop-daemon -S -q -m -b -p /var/run/dcron.pid --exec /usr/sbin/crond -- -f
echo "done."
;;
stop)
printf "Stopping cron ..."
start-stop-daemon -K -q -p /var/run/dcron.pid
echo "done."
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac
+3
View File
@@ -0,0 +1,3 @@
# Locally calculated
sha256 5a53930ba27b57c06c3b03635788cf569990283bde8ea9c1ee820e13f988288d dcron-1ba33c3325df48de46263276a43ed76cf9d81518.tar.gz
sha256 640d90f6ee401241ff62834d0d1b33f83049e99b8bfdfa04ed1b0a1635dde3e7 COPYING
+36
View File
@@ -0,0 +1,36 @@
################################################################################
#
# dcron
#
################################################################################
DCRON_VERSION = 1ba33c3325df48de46263276a43ed76cf9d81518
DCRON_SITE = $(call github,dubiousjim,dcron,$(DCRON_VERSION))
DCRON_LICENSE = GPL-2.0+
DCRON_LICENSE_FILES = COPYING
define DCRON_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef
define DCRON_INSTALL_TARGET_CMDS
$(INSTALL) -D -m0700 $(@D)/crond $(TARGET_DIR)/usr/sbin/crond
$(INSTALL) -D -m4755 $(@D)/crontab $(TARGET_DIR)/usr/bin/crontab
$(INSTALL) -D -m0644 $(@D)/extra/root.crontab $(TARGET_DIR)/etc/cron.d/system
# Busybox provides run-parts, so there is no need to use nor install provided run-cron
$(SED) 's#/usr/sbin/run-cron#/bin/run-parts#g' $(TARGET_DIR)/etc/cron.d/system
$(INSTALL) -d -m0755 $(TARGET_DIR)/var/spool/cron/crontabs \
$(TARGET_DIR)/etc/cron.daily $(TARGET_DIR)/etc/cron.hourly \
$(TARGET_DIR)/etc/cron.monthly $(TARGET_DIR)/etc/cron.weekly
endef
define DCRON_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/dcron/S90dcron $(TARGET_DIR)/etc/init.d/S90dcron
endef
define DCRON_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 package/dcron/dcron.service \
$(TARGET_DIR)/usr/lib/systemd/system/dcron.service
endef
$(eval $(generic-package))
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=Task scheduler daemon
After=syslog.target
[Service]
ExecStart=/usr/sbin/crond -S
Type=forking
[Install]
WantedBy=multi-user.target