You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2011-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=rng-tools
  9. PKG_VERSION:=5
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/gkernel/rng-tools/$(PKG_VERSION)/
  13. PKG_MD5SUM:=6726cdc6fae1f5122463f24ae980dd68
  14. PKG_LICENSE:=GPLv2
  15. PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/rng-tools
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Daemon for adding entropy to kernel entropy pool
  23. URL:=http://sourceforge.net/projects/gkernel/
  24. endef
  25. ifdef CONFIG_USE_UCLIBC
  26. CONFIGURE_VARS += \
  27. LIBS="-largp"
  28. endif
  29. ifdef CONFIG_USE_MUSL
  30. CONFIGURE_VARS += \
  31. LIBS="-largp"
  32. endif
  33. CONFIGURE_ARGS += \
  34. --without-libgcrypt
  35. define Package/rng-tools/install
  36. $(INSTALL_DIR) $(1)/etc/init.d
  37. $(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rngtest $(1)/usr/bin/
  40. $(INSTALL_DIR) $(1)/sbin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rngd $(1)/sbin/
  42. endef
  43. $(eval $(call BuildPackage,rng-tools))