2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-11-02 20:35:35 +01:00
|
|
|
#
|
|
|
|
# rng-tools
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-11-02 20:35:35 +01:00
|
|
|
|
2014-11-26 20:01:18 +01:00
|
|
|
RNG_TOOLS_VERSION = 5
|
2012-08-26 01:52:48 +02:00
|
|
|
RNG_TOOLS_SITE = http://downloads.sourceforge.net/project/gkernel/rng-tools/$(RNG_TOOLS_VERSION)
|
2012-12-27 06:39:09 +01:00
|
|
|
RNG_TOOLS_LICENSE = GPLv2
|
|
|
|
RNG_TOOLS_LICENSE_FILES = COPYING
|
2010-11-02 20:35:35 +01:00
|
|
|
|
2015-08-08 00:47:13 +02:00
|
|
|
# Work around for uClibc or musl toolchains which lack argp_*()
|
|
|
|
# functions.
|
|
|
|
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
2014-11-26 20:01:18 +01:00
|
|
|
RNG_TOOLS_CONF_ENV += LIBS="-largp"
|
|
|
|
RNG_TOOLS_DEPENDENCIES += argp-standalone
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
RNG_TOOLS_DEPENDENCIES += libgcrypt
|
|
|
|
else
|
|
|
|
RNG_TOOLS_CONF_OPTS += --without-libgcrypt
|
|
|
|
endif
|
|
|
|
|
2015-01-19 17:14:16 +01:00
|
|
|
define RNG_TOOLS_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/rng-tools/rngd.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/rngd.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -fs ../../../../usr/lib/systemd/system/rngd.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rngd.service
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|