Modify

Opened 6 years ago

Closed 3 years ago

#10541 closed enhancement (wontfix)

Backport r28332 (rng-tools package) to Backfire

Reported by: hnyman <hannu.nyman@…> Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Backfire 10.03.1 RC6
Keywords: rng-tools entropy Cc:

Description

Please backport the package rng-tools to Backfire (packages_10.03.1).

The package was added to trunk with r28332 and works nicely with Backfire.

More info: https://lists.openwrt.org/pipermail/openwrt-devel/2011-September/012342.html

Index: /Openwrt/backfire/feeds/packages/utils/rng-tools/files/rngd.init
===================================================================
--- /Openwrt/backfire/feeds/packages/utils/rng-tools/files/rngd.init	(revision 0)
+++ /Openwrt/backfire/feeds/packages/utils/rng-tools/files/rngd.init	(revision 0)
@@ -0,0 +1,14 @@
+#!/bin/sh /etc/rc.common
+START=98
+
+RNGD_INTERVAL=30
+RNGD_AMOUNT=4000
+RNGD_DEVICE=/dev/urandom
+
+start() {
+	rngd -r $RNGD_DEVICE -W $RNGD_AMOUNT -t $RNGD_INTERVAL
+}
+
+stop() {
+	killall rngd
+}
Index: /Openwrt/backfire/feeds/packages/utils/rng-tools/Makefile
===================================================================
--- /Openwrt/backfire/feeds/packages/utils/rng-tools/Makefile	(revision 0)
+++ /Openwrt/backfire/feeds/packages/utils/rng-tools/Makefile	(revision 0)
@@ -0,0 +1,37 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=rng-tools
+PKG_VERSION:=3
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/gkernel/rng-tools/3/
+PKG_MD5SUM:=fa305916ec101c85c0065aeceb81a38d
+
+PKG_FIXUP:=libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/rng-tools
+  SECTION:=utils
+  CATEGORY:=Utilities
+  DEPENDS:=+USE_UCLIBC:argp-standalone
+  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))

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

comment:2 Changed 3 years ago by jogo

  • Resolution set to wontfix
  • Status changed from new to closed

Backfire is obsolete and will not receive any further fixes.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.