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.

70 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:=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. #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. --enable-olt=no
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) $(PKG_BUILD_DIR)/src/havege.h $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_BUILD_DIR)/src/.libs/libhavege.{a,so*} $(1)/usr/lib/
  44. endef
  45. define Package/haveged/install
  46. $(INSTALL_DIR) $(1)/etc/init.d
  47. $(INSTALL_BIN) ./files/haveged.init $(1)/etc/init.d/haveged
  48. $(INSTALL_DIR) $(1)/usr/sbin
  49. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/haveged $(1)/usr/sbin/
  50. endef
  51. define Package/libhavege/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_BUILD_DIR)/src/.libs/libhavege.so* $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,haveged))
  56. $(eval $(call BuildPackage,libhavege))