1################################################################################ 2# 3# rng-tools 4# 5################################################################################ 6 7RNG_TOOLS_VERSION = 6.14 8RNG_TOOLS_SITE = $(call github,nhorman,$(RNG_TOOLS_NAME),v$(RNG_TOOLS_VERSION)) 9RNG_TOOLS_LICENSE = GPL-2.0 10RNG_TOOLS_LICENSE_FILES = COPYING 11RNG_TOOLS_CPE_ID_VENDOR = rng-tools_project 12RNG_TOOLS_SELINUX_MODULES = rngd 13 14RNG_TOOLS_DEPENDENCIES = host-pkgconf openssl 15# From git 16RNG_TOOLS_AUTORECONF = YES 17 18RNG_TOOLS_CONF_OPTS = --without-pkcs11 19 20# Work around for uClibc or musl toolchains which lack argp_*() 21# functions. 22ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y) 23RNG_TOOLS_CONF_ENV += LIBS="-largp" 24RNG_TOOLS_DEPENDENCIES += argp-standalone 25endif 26 27ifeq ($(BR2_PACKAGE_LIBRTLSDR),y) 28RNG_TOOLS_DEPENDENCIES += librtlsdr 29RNG_TOOLS_CONF_OPTS += --with-rtlsdr 30else 31RNG_TOOLS_CONF_OPTS += --without-rtlsdr 32endif 33 34ifeq ($(BR2_PACKAGE_RNG_TOOLS_JITTERENTROPY_LIBRARY),y) 35RNG_TOOLS_DEPENDENCIES += jitterentropy-library 36RNG_TOOLS_CONF_OPTS += --enable-jitterentropy 37else 38RNG_TOOLS_CONF_OPTS += --disable-jitterentropy 39endif 40 41ifeq ($(BR2_PACKAGE_RNG_TOOLS_NISTBEACON),y) 42RNG_TOOLS_DEPENDENCIES += jansson libcurl libxml2 43RNG_TOOLS_CONF_OPTS += --with-nistbeacon 44else 45RNG_TOOLS_CONF_OPTS += --without-nistbeacon 46endif 47 48define RNG_TOOLS_INSTALL_INIT_SYSV 49 $(INSTALL) -D -m 755 package/rng-tools/S21rngd \ 50 $(TARGET_DIR)/etc/init.d/S21rngd 51endef 52 53define RNG_TOOLS_INSTALL_INIT_SYSTEMD 54 $(INSTALL) -D -m 644 package/rng-tools/rngd.service \ 55 $(TARGET_DIR)/usr/lib/systemd/system/rngd.service 56endef 57 58$(eval $(autotools-package)) 59