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.

49 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2011-2014 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:=1
  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_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
  15. PKG_FIXUP:=autoreconf
  16. PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/rng-tools
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=Daemon for adding entropy to kernel entropy pool
  22. URL:=http://sourceforge.net/projects/gkernel/
  23. endef
  24. ifdef CONFIG_USE_UCLIBC
  25. CONFIGURE_VARS += \
  26. LIBS="-largp"
  27. endif
  28. CONFIGURE_ARGS += \
  29. --without-libgcrypt
  30. define Package/rng-tools/install
  31. $(INSTALL_DIR) $(1)/etc/init.d
  32. $(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rngtest $(1)/usr/bin/
  35. $(INSTALL_DIR) $(1)/sbin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rngd $(1)/sbin/
  37. endef
  38. $(eval $(call BuildPackage,rng-tools))