2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 1 2012-01-12 03:50:18Z Olipro $
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.issihosts.com/$(PKG_NAME)
17 PKG_MD5SUM:=c1f34be00c3f438ec83862e90e192e4b
19 #ensure this is consistent with the dir in the tarball!!!
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
24 include $(INCLUDE_DIR)/package.mk
26 define Package/haveged
29 TITLE:=Feeds the kernel entropy pool by timing CPU loops.
30 DEPENDS:=+librt +libpthread
31 URL:=http://www.issihosts.com/haveged/
34 define Package/haveged/install
35 $(INSTALL_DIR) $(1)/etc/init.d
36 $(INSTALL_BIN) ./files/haveged.init $(1)/etc/init.d/haveged
37 $(INSTALL_DIR) $(1)/sbin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haveged $(1)/sbin/
41 $(eval $(call BuildPackage,haveged))