Move all to deprecated folder.
This commit is contained in:
22
deprecated/firmware/buildroot/package/dcron/Config.in
Normal file
22
deprecated/firmware/buildroot/package/dcron/Config.in
Normal file
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_DCRON
|
||||
bool "dcron"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
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
deprecated/firmware/buildroot/package/dcron/S90dcron
Normal file
22
deprecated/firmware/buildroot/package/dcron/S90dcron
Normal 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
|
||||
2
deprecated/firmware/buildroot/package/dcron/dcron.hash
Normal file
2
deprecated/firmware/buildroot/package/dcron/dcron.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824 dcron-4.5.tar.gz
|
||||
44
deprecated/firmware/buildroot/package/dcron/dcron.mk
Normal file
44
deprecated/firmware/buildroot/package/dcron/dcron.mk
Normal file
@@ -0,0 +1,44 @@
|
||||
################################################################################
|
||||
#
|
||||
# dcron
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DCRON_VERSION = 4.5
|
||||
DCRON_SITE = http://www.jimpryor.net/linux/releases
|
||||
# The source code does not specify the version of the GPL that is used.
|
||||
DCRON_LICENSE = GPL
|
||||
|
||||
# Overwrite cron-related Busybox commands if available
|
||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||
DCRON_DEPENDENCIES = busybox
|
||||
endif
|
||||
|
||||
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
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -sf ../../../../usr/lib/systemd/system/dcron.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/dcron.service
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
10
deprecated/firmware/buildroot/package/dcron/dcron.service
Normal file
10
deprecated/firmware/buildroot/package/dcron/dcron.service
Normal 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
|
||||
Reference in New Issue
Block a user