mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
rng-tools: uci-fy, default to doing nothing
Enabling the default configuration will pipe /dev/urandom back into /dev/random ala the current package behavior. Because this amounts to disabling the in-kernel entropy estimation, default disabled. While here, uci-paramaterize the high watermark. While here, add a pre-command hook for real RNGs that need 'stty raw' or other such hooks. (e.g. the TrueRNG devices) As offered in github openwrt/packages#3422, take over maintainership. See github openwrt/packages#3142. Signed-off-by: Nathaniel Wesley Filardo <nwfilardo@gmail.com>
This commit is contained in:
@@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rng-tools
|
||||
PKG_VERSION:=5
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/gkernel/rng-tools/$(PKG_VERSION)/
|
||||
PKG_MD5SUM:=6726cdc6fae1f5122463f24ae980dd68
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
|
||||
PKG_MAINTAINER:=Nathaniel Wesley Filardo <nwfilardo@gmail.com>
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
@@ -52,6 +52,8 @@ CONFIGURE_ARGS += \
|
||||
define Package/rng-tools/install
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd
|
||||
$(INSTALL_DIR) $(1)/etc/uci_defaults
|
||||
$(INSTALL_BIN) ./files/rngd.uci_defaults $(1)/etc/uci_defaults/rngd
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/rngtest $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/sbin
|
||||
|
||||
Reference in New Issue
Block a user