2014-07-24 02:28:49 +08:00
|
|
|
#
|
2015-06-17 16:33:38 +08:00
|
|
|
# Copyright (C) 2011-2015 OpenWrt.org
|
2014-07-24 02:28:49 +08: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-03-01 05:10:39 +08:00
|
|
|
PKG_VERSION:=6.15
|
2022-03-02 07:01:55 +08:00
|
|
|
PKG_RELEASE:=2
|
2014-07-24 02:28:49 +08:00
|
|
|
|
2018-11-08 07:41:05 +08:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2019-07-15 06:53:57 +08:00
|
|
|
PKG_SOURCE_URL:=https://github.com/nhorman/rng-tools
|
|
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
2024-04-06 18:47:54 +08:00
|
|
|
PKG_MIRROR_HASH:=ed3b07062ab6d89ffd145a4df495534b9d529bebb64bc2c2e4dc266acdde181b
|
2019-07-15 06:53:57 +08:00
|
|
|
|
2016-10-31 06:27:54 +08:00
|
|
|
PKG_MAINTAINER:=Nathaniel Wesley Filardo <nwfilardo@gmail.com>
|
2019-07-15 06:53:57 +08:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2024-02-03 01:37:33 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:rng-tools_project:rng-tools
|
2014-07-24 02:28:49 +08:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
2019-07-15 06:53:57 +08:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
|
2014-07-24 03:10:52 +08:00
|
|
|
|
2014-07-24 02:28:49 +08: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 07:41:05 +08:00
|
|
|
URL:=https://github.com/nhorman/rng-tools
|
2022-03-02 07:01:55 +08:00
|
|
|
DEPENDS:=+libopenssl
|
2014-07-24 02:28:49 +08:00
|
|
|
endef
|
|
|
|
|
2016-09-22 19:25:34 +08:00
|
|
|
define Package/rng-tools/description
|
2019-07-15 06:53:57 +08: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 19:25:34 +08:00
|
|
|
endef
|
|
|
|
|
2014-07-25 21:49:24 +08:00
|
|
|
CONFIGURE_ARGS += \
|
2019-07-15 06:53:57 +08:00
|
|
|
--without-nistbeacon \
|
2020-07-11 22:26:23 +08:00
|
|
|
--without-pkcs11 \
|
|
|
|
--without-rtlsdr
|
2019-07-15 06:53:57 +08:00
|
|
|
|
|
|
|
ifndef CONFIG_USE_GLIBC
|
|
|
|
CONFIGURE_VARS += LIBS="-largp"
|
|
|
|
endif
|
2018-11-08 07:41:05 +08:00
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
|
|
|
(cd $(PKG_BUILD_DIR); ln -s README.md README)
|
|
|
|
endef
|
2014-07-25 21:49:24 +08:00
|
|
|
|
2014-07-24 02:28:49 +08:00
|
|
|
define Package/rng-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd
|
2016-11-10 01:41:13 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
|
|
$(INSTALL_BIN) ./files/rngd.uci_defaults $(1)/etc/uci-defaults/rngd
|
2014-07-24 02:28:49 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2019-07-15 06:53:57 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rngtest $(1)/usr/bin/
|
2014-07-24 02:28:49 +08:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2019-07-15 06:53:57 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rngd $(1)/sbin/
|
2014-07-24 02:28:49 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rng-tools))
|