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
:=036760389b1827a2532e248dd3cc46d3
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
/template
29 TITLE
:=Feeds the kernel entropy pool by timing CPU loops.
30 URL
:=http
://www.issihosts.com
/haveged
/
33 define Package
/haveged
34 $(call Package
/haveged
/template
)
38 define Package
/libhavege
39 $(call Package
/haveged
/template
)
40 TITLE
:=Library for haveged
47 define Build
/InstallDev
48 $(INSTALL_DIR
) $(1)/usr
/include
49 $(CP
) $(PKG_BUILD_DIR
)/src
/havege.h
$(1)/usr
/include/
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_BUILD_DIR
)/src
/.libs
/libhavege.
{a
,so
*} $(1)/usr
/lib
/
54 define Package
/haveged
/install
55 $(INSTALL_DIR
) $(1)/etc
/init.d
56 $(INSTALL_BIN
) .
/files
/haveged.init
$(1)/etc
/init.d
/haveged
57 $(INSTALL_DIR
) $(1)/usr
/sbin
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/.libs
/haveged
$(1)/usr
/sbin
/
61 define Package
/libhavege
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_BUILD_DIR
)/src
/.libs
/libhavege.so
* $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,haveged
))
67 $(eval
$(call BuildPackage
,libhavege
))