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.

66 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.17
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/jirka-h/haveged/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=02d9b7c801fbcf16bed43c27bf6ece570b79f4d94561f3eb30883fb5f89c526d
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/haveged-$(PKG_VERSION)
  15. PKG_LICENSE:=GPLv3
  16. PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_USE_MIPS16:=0
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/haveged
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. DEPENDS:=+libhavege
  24. TITLE:=Feeds the kernel entropy pool by timing CPU loops.
  25. URL:=http://www.issihosts.com/haveged/
  26. endef
  27. define Package/libhavege
  28. CATEGORY:=Libraries
  29. TITLE:=Library for haveged
  30. URL:=http://www.issihosts.com/haveged/
  31. endef
  32. CONFIGURE_ARGS+= \
  33. --enable-daemon=yes \
  34. --enable-threads=no \
  35. --enable-olt=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))