packages/fanctrolled: use new service functions
[openwrt/svn-archive/archive.git] / utils / rng-tools / Makefile
1 #
2 # Copyright (C) 2011 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:=3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/gkernel/rng-tools/3/
16 PKG_MD5SUM:=fa305916ec101c85c0065aeceb81a38d
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/rng-tools
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+USE_UCLIBC:argp-standalone
26 TITLE:=Daemon for adding entropy to kernel entropy pool
27 URL:=http://sourceforge.net/projects/gkernel/
28 endef
29
30 ifdef CONFIG_USE_UCLIBC
31 CONFIGURE_VARS += \
32 LIBS="-largp"
33 endif
34
35 define Package/rng-tools/install
36 $(INSTALL_DIR) $(1)/etc/init.d
37 $(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rngtest $(1)/usr/bin/
40 $(INSTALL_DIR) $(1)/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rngd $(1)/sbin/
42 endef
43
44 $(eval $(call BuildPackage,rng-tools))