mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #119 from hnyman/rng-tools
rng-tools: import from oldpackages
This commit is contained in:
@@ -0,0 +1,46 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2011-2014 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=rng-tools
|
||||||
|
PKG_VERSION:=5
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=@SF/gkernel/rng-tools/$(PKG_VERSION)/
|
||||||
|
PKG_MD5SUM:=6726cdc6fae1f5122463f24ae980dd68
|
||||||
|
PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
|
||||||
|
|
||||||
|
PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
|
PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/rng-tools
|
||||||
|
SECTION:=utils
|
||||||
|
CATEGORY:=Utilities
|
||||||
|
TITLE:=Daemon for adding entropy to kernel entropy pool
|
||||||
|
URL:=http://sourceforge.net/projects/gkernel/
|
||||||
|
endef
|
||||||
|
|
||||||
|
ifdef CONFIG_USE_UCLIBC
|
||||||
|
CONFIGURE_VARS += \
|
||||||
|
LIBS="-largp"
|
||||||
|
endif
|
||||||
|
|
||||||
|
define Package/rng-tools/install
|
||||||
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
|
$(INSTALL_BIN) ./files/rngd.init $(1)/etc/init.d/rngd
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/rngtest $(1)/usr/bin/
|
||||||
|
$(INSTALL_DIR) $(1)/sbin
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/rngd $(1)/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,rng-tools))
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh /etc/rc.common
|
||||||
|
# Copyright (C) 2011-2014 OpenWrt.org
|
||||||
|
|
||||||
|
START=98
|
||||||
|
|
||||||
|
RNGD_INTERVAL=30
|
||||||
|
RNGD_AMOUNT=4000
|
||||||
|
RNGD_DEVICE="/dev/urandom"
|
||||||
|
|
||||||
|
start() {
|
||||||
|
service_start /sbin/rngd -r $RNGD_DEVICE -W $RNGD_AMOUNT
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
service_stop /sbin/rngd
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user