mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 18:05:15 +00:00
d62726b1e4
Fix compilation with glibc 44365eb Deactivate _FORTIFY_SOURCE in jitterentropy-base.c Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=urngd
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/urngd.git
|
|
PKG_SOURCE_DATE:=2023-11-01
|
|
PKG_SOURCE_VERSION:=44365eb1e1165f2a44cb31f404b04cf85031718e
|
|
PKG_MIRROR_HASH:=743bdfacf1f1e779047a55fe8f388aaf31f6e55e8a4d0a00fcabffb68af2202e
|
|
|
|
PKG_LICENSE:=GPL-2.0 BSD-3-Clause
|
|
PKG_LICENSE_FILES:=
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/urngd
|
|
SECTION:=utils
|
|
CATEGORY:=Base system
|
|
TITLE:=OpenWrt non-physical true random number generator based on timing jitter
|
|
DEPENDS:=+libubox
|
|
endef
|
|
|
|
define Package/urngd/description
|
|
urngd is OpenWrt's micro non-physical true random number generator based on
|
|
timing jitter.
|
|
|
|
Using the Jitter RNG core, the rngd provides an entropy source that feeds into
|
|
the Linux /dev/random device if its entropy runs low. It updates the
|
|
/dev/random entropy estimator such that the newly provided entropy unblocks
|
|
/dev/random.
|
|
|
|
The seeding of /dev/random also ensures that /dev/urandom benefits from
|
|
entropy. Especially during boot time, when the entropy of Linux is low, the
|
|
Jitter RNGd provides a source of sufficient entropy.
|
|
endef
|
|
|
|
define Package/urngd/install
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/$(PKG_NAME)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,urngd))
|