2014-07-08 12:21:32 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# dcron
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
DCRON_VERSION = 4.5
|
2014-07-31 10:46:58 +02:00
|
|
|
DCRON_SITE = http://www.jimpryor.net/linux/releases
|
2014-07-08 12:21:32 +02:00
|
|
|
# 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 \
|
2016-03-09 22:30:31 +01:00
|
|
|
$(TARGET_DIR)/etc/cron.daily $(TARGET_DIR)/etc/cron.hourly \
|
|
|
|
$(TARGET_DIR)/etc/cron.monthly $(TARGET_DIR)/etc/cron.weekly
|
2014-07-08 12:21:32 +02:00
|
|
|
endef
|
|
|
|
|
2014-07-17 11:34:08 +02:00
|
|
|
define DCRON_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/dcron/S90dcron $(TARGET_DIR)/etc/init.d/S90dcron
|
|
|
|
endef
|
|
|
|
|
2015-05-23 12:02:32 +02:00
|
|
|
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
|
2015-07-13 21:06:30 +02:00
|
|
|
ln -sf ../../../../usr/lib/systemd/system/dcron.service \
|
2015-05-23 12:02:32 +02:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/dcron.service
|
|
|
|
endef
|
|
|
|
|
2014-07-08 12:21:32 +02:00
|
|
|
$(eval $(generic-package))
|