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.

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