2013-11-19 13:10:32 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# haveged
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-12-27 00:07:33 +01:00
|
|
|
HAVEGED_VERSION = 1.9.18
|
2019-09-10 21:07:10 +02:00
|
|
|
HAVEGED_SITE = $(call github,jirka-h,haveged,v$(HAVEGED_VERSION))
|
2017-03-30 15:43:33 +02:00
|
|
|
HAVEGED_LICENSE = GPL-3.0+
|
2013-11-19 13:10:32 +01:00
|
|
|
HAVEGED_LICENSE_FILES = COPYING
|
2020-12-28 17:11:33 +01:00
|
|
|
HAVEGED_SELINUX_MODULES = entropyd
|
2021-03-31 20:50:01 +02:00
|
|
|
|
|
|
|
# '--disable-init' as buildroot ships its own sysv/systemd init files
|
|
|
|
HAVEGED_CONF_OPTS = \
|
|
|
|
--enable-daemon \
|
|
|
|
--disable-diagnostic \
|
|
|
|
--disable-init \
|
|
|
|
--disable-nistest \
|
|
|
|
--disable-enttest \
|
|
|
|
--disable-olt \
|
|
|
|
--enable-tune
|
2013-11-19 13:10:32 +01:00
|
|
|
|
2015-08-09 11:25:26 +02:00
|
|
|
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
2021-03-31 20:50:01 +02:00
|
|
|
HAVEGED_CONF_OPTS += --enable-clock_gettime
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
|
|
HAVEGED_CONF_OPTS += --enable-threads
|
|
|
|
else
|
|
|
|
HAVEGED_CONF_OPTS += --disable-threads
|
2015-08-09 11:25:26 +02:00
|
|
|
endif
|
|
|
|
|
2013-11-19 13:10:32 +01:00
|
|
|
define HAVEGED_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 755 -D package/haveged/S21haveged \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S21haveged
|
|
|
|
endef
|
|
|
|
|
2015-03-19 22:02:02 +01:00
|
|
|
define HAVEGED_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/haveged/haveged.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/haveged.service
|
|
|
|
endef
|
|
|
|
|
2013-11-19 13:10:32 +01:00
|
|
|
$(eval $(autotools-package))
|