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.

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