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.

68 lines
1.7 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:=http://www.issihosts.com/$(PKG_NAME) \
  13. http://pkgs.fedoraproject.org/repo/pkgs/haveged/haveged-1.9.1.tar.gz/015ff58cd10607db0e0de60aeca2f5f8/
  14. PKG_MD5SUM:=015ff58cd10607db0e0de60aeca2f5f8
  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/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. --enable-olt=no
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_BUILD_DIR)/src/havege.h $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_BUILD_DIR)/src/.libs/libhavege.{a,so*} $(1)/usr/lib/
  42. endef
  43. define Package/haveged/install
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_BIN) ./files/haveged.init $(1)/etc/init.d/haveged
  46. $(INSTALL_DIR) $(1)/usr/sbin
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/haveged $(1)/usr/sbin/
  48. endef
  49. define Package/libhavege/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_BUILD_DIR)/src/.libs/libhavege.so* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,haveged))
  54. $(eval $(call BuildPackage,libhavege))