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.

65 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006-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:=haveged
  9. PKG_VERSION:=1.9.1
  10. PKG_RELEASE:=5
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/haveged \
  13. http://www.issihosts.com/$(PKG_NAME)
  14. PKG_MD5SUM:=9c2363ed9542a6784ff08e247182137e71f2ddb79e8e6c1ac4ad50d21ced3715
  15. PKG_LICENSE:=GPLv3
  16. PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/haveged
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. DEPENDS:=+libhavege
  23. TITLE:=Feeds the kernel entropy pool by timing CPU loops.
  24. URL:=http://www.issihosts.com/haveged/
  25. endef
  26. define Package/libhavege
  27. CATEGORY:=Libraries
  28. TITLE:=Library for haveged
  29. URL:=http://www.issihosts.com/haveged/
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --enable-daemon=yes \
  33. --enable-threads=no \
  34. --enable-olt=no
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_BUILD_DIR)/src/havege.h $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_BUILD_DIR)/src/.libs/libhavege.{a,so*} $(1)/usr/lib/
  40. endef
  41. define Package/haveged/install
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/haveged.init $(1)/etc/init.d/haveged
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/haveged $(1)/usr/sbin/
  46. endef
  47. define Package/libhavege/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_BUILD_DIR)/src/.libs/libhavege.so* $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,haveged))
  52. $(eval $(call BuildPackage,libhavege))