Makefile 1.5 KB

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