1 ################################################################################
5 ################################################################################
8 RNG_TOOLS_SITE = http://downloads.sourceforge.net/project/gkernel/rng-tools/$(RNG_TOOLS_VERSION)
9 RNG_TOOLS_LICENSE = GPLv2
10 RNG_TOOLS_LICENSE_FILES = COPYING
12 # Work around for uClibc's lack of argp_*() functions
13 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
14 RNG_TOOLS_CONF_ENV += LIBS="-largp"
15 RNG_TOOLS_DEPENDENCIES += argp-standalone
18 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
19 RNG_TOOLS_DEPENDENCIES += libgcrypt
21 RNG_TOOLS_CONF_OPTS += --without-libgcrypt
24 define RNG_TOOLS_INSTALL_INIT_SYSTEMD
25 $(INSTALL) -D -m 644 package/rng-tools/rngd.service \
26 $(TARGET_DIR)/usr/lib/systemd/system/rngd.service
27 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
28 ln -fs ../../../../usr/lib/systemd/system/rngd.service \
29 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rngd.service
32 $(eval $(autotools-package))