rng-tools: update to version 6.17

* update to version 6.17
* change source to codeload.github.com
* added curl as dependency
* added jansson as dependency
* added libcap as dependency
* added test.sh file for ci testing
* drop maintainer https://github.com/openwrt/packages/issues/14492 and comment https://github.com/openwrt/packages/pull/12788#issuecomment-664031645

Signed-off-by: Nikolay Manev <just.ops@proton.me>
This commit is contained in:
Nikolay Manev
2025-05-23 19:05:23 +03:00
committed by Robert Marko
parent 83737ed9ea
commit 6f4db16a93
2 changed files with 24 additions and 9 deletions

View File

@@ -8,15 +8,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rng-tools
PKG_VERSION:=6.15
PKG_RELEASE:=2
PKG_VERSION:=6.17
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/nhorman/rng-tools
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_MIRROR_HASH:=ed3b07062ab6d89ffd145a4df495534b9d529bebb64bc2c2e4dc266acdde181b
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/nhorman/rng-tools/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=4aa50994232da74499b60b3ebf79118e30a1943be375b7d931dcf18df5442fd3
PKG_MAINTAINER:=Nathaniel Wesley Filardo <nwfilardo@gmail.com>
PKG_MAINTAINER:=
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:rng-tools_project:rng-tools
@@ -33,7 +32,7 @@ define Package/rng-tools
CATEGORY:=Utilities
TITLE:=Daemon for adding entropy to kernel entropy pool
URL:=https://github.com/nhorman/rng-tools
DEPENDS:=+libopenssl
DEPENDS:=+libopenssl +libcap +libcurl +jansson
endef
define Package/rng-tools/description
@@ -42,10 +41,15 @@ define Package/rng-tools/description
to use a hardware source like /dev/hwrng if present
endef
TARGET_CFLAGS += -fno-stack-protector -fomit-frame-pointer
TARGET_LDFLAGS += -Wl,-z,norelro
CONFIGURE_ARGS += \
--without-nistbeacon \
--without-pkcs11 \
--without-rtlsdr
--without-rtlsdr \
--disable-werror \
--disable-debug
ifndef CONFIG_USE_GLIBC
CONFIGURE_VARS += LIBS="-largp"
@@ -56,6 +60,14 @@ define Build/Prepare
(cd $(PKG_BUILD_DIR); ln -s README.md README)
endef
define Build/Compile
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
MALLOC_CHECK_=0
endef
define Package/rng-tools/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd

3
utils/rng-tools/test.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
rngd -v 2>&1 | grep "$PKG_VERSION"