procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / package / system / urngd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=urngd
4 PKG_RELEASE:=1
5
6 PKG_SOURCE_PROTO:=git
7 PKG_SOURCE_URL=$(PROJECT_GIT)/project/urngd.git
8 PKG_SOURCE_DATE:=2023-11-01
9 PKG_SOURCE_VERSION:=44365eb1e1165f2a44cb31f404b04cf85031718e
10 PKG_MIRROR_HASH:=743bdfacf1f1e779047a55fe8f388aaf31f6e55e8a4d0a00fcabffb68af2202e
11
12 PKG_LICENSE:=GPL-2.0 BSD-3-Clause
13 PKG_LICENSE_FILES:=
14
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/cmake.mk
17
18 define Package/urngd
19 SECTION:=utils
20 CATEGORY:=Base system
21 TITLE:=OpenWrt non-physical true random number generator based on timing jitter
22 DEPENDS:=+libubox
23 endef
24
25 define Package/urngd/description
26 urngd is OpenWrt's micro non-physical true random number generator based on
27 timing jitter.
28
29 Using the Jitter RNG core, the rngd provides an entropy source that feeds into
30 the Linux /dev/random device if its entropy runs low. It updates the
31 /dev/random entropy estimator such that the newly provided entropy unblocks
32 /dev/random.
33
34 The seeding of /dev/random also ensures that /dev/urandom benefits from
35 entropy. Especially during boot time, when the entropy of Linux is low, the
36 Jitter RNGd provides a source of sufficient entropy.
37 endef
38
39 define Package/urngd/install
40 $(INSTALL_DIR) $(1)/etc/init.d
41 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
42 $(INSTALL_DIR) $(1)/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/$(PKG_NAME)
44 endef
45
46 $(eval $(call BuildPackage,urngd))