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.

50 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_LICENSE:=GPLv2
  15. PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_DEPENDS:=USE_UCLIBC: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. CONFIGURE_ARGS += \
  30. --without-libgcrypt
  31. define Package/rng-tools/install
  32. $(INSTALL_DIR) $(1)/etc/init.d
  33. $(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rngtest $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/sbin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rngd $(1)/sbin/
  38. endef
  39. $(eval $(call BuildPackage,rng-tools))