2014-07-23 20:28:49 +02:00
|
|
|
#
|
2015-06-17 10:33:38 +02:00
|
|
|
# Copyright (C) 2011-2015 OpenWrt.org
|
2014-07-23 20:28:49 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rng-tools
|
2022-02-28 22:10:39 +01:00
|
|
|
PKG_VERSION:=6.15
|
2022-03-02 00:01:55 +01:00
|
|
|
PKG_RELEASE:=2
|
2014-07-23 20:28:49 +02:00
|
|
|
|
2018-11-08 00:41:05 +01:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2019-07-15 00:53:57 +02:00
|
|
|
PKG_SOURCE_URL:=https://github.com/nhorman/rng-tools
|
|
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
2022-02-28 22:10:39 +01:00
|
|
|
PKG_MIRROR_HASH:=745a465062065104e2222ffc1b1bb3e0ce14626d44ee2176cb2a5c3723e3163a
|
2019-07-15 00:53:57 +02:00
|
|
|
|
2016-10-30 23:27:54 +01:00
|
|
|
PKG_MAINTAINER:=Nathaniel Wesley Filardo <nwfilardo@gmail.com>
|
2019-07-15 00:53:57 +02:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2024-02-02 18:37:33 +01:00
|
|
|
PKG_CPE_ID:=cpe:/a:rng-tools_project:rng-tools
|
2014-07-23 20:28:49 +02:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
2019-07-15 00:53:57 +02:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
|
2014-07-23 21:10:52 +02:00
|
|
|
|
2014-07-23 20:28:49 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/rng-tools
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Daemon for adding entropy to kernel entropy pool
|
2018-11-08 00:41:05 +01:00
|
|
|
URL:=https://github.com/nhorman/rng-tools
|
2022-03-02 00:01:55 +01:00
|
|
|
DEPENDS:=+libopenssl
|
2014-07-23 20:28:49 +02:00
|
|
|
endef
|
|
|
|
|
2016-09-22 13:25:34 +02:00
|
|
|
define Package/rng-tools/description
|
2019-07-15 00:53:57 +02:00
|
|
|
Daemon for adding entropy to kernel entropy pool. By default it uses
|
|
|
|
/dev/urandom as the source but the init script can be modified
|
|
|
|
to use a hardware source like /dev/hwrng if present
|
2016-09-22 13:25:34 +02:00
|
|
|
endef
|
|
|
|
|
2014-07-25 15:49:24 +02:00
|
|
|
CONFIGURE_ARGS += \
|
2019-07-15 00:53:57 +02:00
|
|
|
--without-nistbeacon \
|
2020-07-11 16:26:23 +02:00
|
|
|
--without-pkcs11 \
|
|
|
|
--without-rtlsdr
|
2019-07-15 00:53:57 +02:00
|
|
|
|
|
|
|
ifndef CONFIG_USE_GLIBC
|
|
|
|
CONFIGURE_VARS += LIBS="-largp"
|
|
|
|
endif
|
2018-11-08 00:41:05 +01:00
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
|
|
|
(cd $(PKG_BUILD_DIR); ln -s README.md README)
|
|
|
|
endef
|
2014-07-25 15:49:24 +02:00
|
|
|
|
2014-07-23 20:28:49 +02:00
|
|
|
define Package/rng-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd
|
2016-11-09 18:41:13 +01:00
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
|
|
$(INSTALL_BIN) ./files/rngd.uci_defaults $(1)/etc/uci-defaults/rngd
|
2014-07-23 20:28:49 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2019-07-15 00:53:57 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rngtest $(1)/usr/bin/
|
2014-07-23 20:28:49 +02:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2019-07-15 00:53:57 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rngd $(1)/sbin/
|
2014-07-23 20:28:49 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rng-tools))
|