build,travis: fix gpg verification warning
[feed/packages.git] / utils / rng-tools / Makefile
1 #
2 # Copyright (C) 2011-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rng-tools
11 PKG_VERSION:=5
12 PKG_RELEASE:=6
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/gkernel/rng-tools/$(PKG_VERSION)/
16 PKG_HASH:=60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e
17 PKG_LICENSE:=GPLv2
18 PKG_MAINTAINER:=Nathaniel Wesley Filardo <nwfilardo@gmail.com>
19
20 PKG_FIXUP:=autoreconf
21
22 PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/rng-tools
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=Daemon for adding entropy to kernel entropy pool
30 URL:=http://sourceforge.net/projects/gkernel/
31 endef
32
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
37 endef
38
39 ifdef CONFIG_USE_UCLIBC
40 CONFIGURE_VARS += \
41 LIBS="-largp"
42 endif
43
44 ifdef CONFIG_USE_MUSL
45 CONFIGURE_VARS += \
46 LIBS="-largp"
47 endif
48
49 CONFIGURE_ARGS += \
50 --without-libgcrypt
51
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/
61 endef
62
63 $(eval $(call BuildPackage,rng-tools))