2 # Copyright (C) 2011-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/gkernel
/rng-tools
/$(PKG_VERSION
)/
16 PKG_MD5SUM
:=6726cdc6fae1f5122463f24ae980dd68
18 PKG_MAINTAINER
:=Nathaniel Wesley Filardo
<nwfilardo@gmail.com
>
22 PKG_BUILD_DEPENDS
:=USE_UCLIBC
:argp-standalone USE_MUSL
:argp-standalone
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/rng-tools
29 TITLE
:=Daemon for adding entropy to kernel entropy pool
30 URL
:=http
://sourceforge.net
/projects
/gkernel
/
33 define Package
/rng-tools
/description
34 Daemon for adding entropy to kernel entropy pool. By default it uses
35 /dev
/urandom
as the source but the init script can be modified
36 to use a hardware source like
/dev
/hwrng if present
39 ifdef CONFIG_USE_UCLIBC
52 define Package
/rng-tools
/install
53 $(INSTALL_DIR
) $(1)/etc
/init.d
54 $(INSTALL_BIN
) .
/files
/rngd.init
$(1)/etc
/init.d
/rngd
55 $(INSTALL_DIR
) $(1)/etc
/uci_defaults
56 $(INSTALL_BIN
) .
/files
/rngd.uci_defaults
$(1)/etc
/uci_defaults
/rngd
57 $(INSTALL_DIR
) $(1)/usr
/bin
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rngtest
$(1)/usr
/bin
/
59 $(INSTALL_DIR
) $(1)/sbin
60 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rngd
$(1)/sbin
/
63 $(eval
$(call BuildPackage
,rng-tools
))