b963e4a0b5cb09f39437d0b28a1b1f26df80b2a1
[12.09/packages.git] / utils / haveged / Makefile
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 1 2012-01-12 03:50:18Z Olipro $ 
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=haveged
12 PKG_VERSION:=1.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.issihosts.com/$(PKG_NAME)
17 PKG_MD5SUM:=39a03d4b8a4225706f78dbef3f623b0e
18
19 #ensure this is consistent with the dir in the tarball!!!
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/haveged
27   SECTION:=utils
28   CATEGORY:=Utilities
29   TITLE:=Feeds the kernel entropy pool by timing CPU loops.
30   DEPENDS:=+librt
31   URL:=http://www.issihosts.com/haveged/
32 endef
33
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/
39 endef
40
41 $(eval $(call BuildPackage,haveged))