Add rng_82802 0.0.0, RNG driver for the Intel 82802.

This commit is contained in:
Sergey Skvortsov 2003-12-16 14:07:22 +00:00
parent 9f09334a77
commit 3598fff7c6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95953
6 changed files with 75 additions and 0 deletions

View File

@ -333,6 +333,7 @@
SUBDIR += rats
SUBDIR += rc5pipe
SUBDIR += rid
SUBDIR += rng_82802
SUBDIR += ruby-acl
SUBDIR += ruby-aes
SUBDIR += ruby-blowfish

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: rng_82802
# Date created: 15 November 2003
# Whom: Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#
PORTNAME= rng_82802
PORTVERSION= 0.0.0
CATEGORIES= security
MASTER_SITES= http://www.millions.ca/~stacy/
DISTNAME= rng0-0-0
EXTRACT_SUFX= .tgz
MAINTAINER= skv@FreeBSD.org
COMMENT= RNG driver for the Intel 82802
ONLY_FOR_ARCHS= i386
NO_PACKAGE= "Depends on kernel"
PLIST_SUB= KMODDIR=${KMODDIR}
WRKSRC= ${WRKDIR}/rng/modules/rng
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
post-deinstall:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-DEINSTALL
.include <bsd.port.pre.mk>
PKGDEINSTALL= ${PKGINSTALL}
.include <bsd.port.post.mk>

View File

@ -0,0 +1 @@
MD5 (rng0-0-0.tgz) = 2f117ecbf11f53fbd15e0c4b0c1d6544

View File

@ -0,0 +1,16 @@
The IntelR 82802 Firmware Hub (FWH) discrete component is compatible
with several Intel chipset platforms and a variety of applications. The
device operates under the LPC/FWH interface/protocol. The hardware
features of this device include a Random Number Generator (RNG), five
General-Purpose Inputs (GPIs), register-based block locking, and
hardware-based locking.
This port is a driver for the Intel 82802, implemented as kernel
loadable module. The driver currently supports reading directly via
/dev/rng, or indirectly via kern_random (/dev/random).
Author: Stacy L. Millions <stacy@millions.ca>
WWW: http://www.millions.ca/~stacy/82802rng.html
-- Sergey Skvortsov
skv@FreeBSD.org

View File

@ -0,0 +1,21 @@
#!/bin/sh
PATH=/bin:/sbin:/usr/bin
case $2 in
POST-INSTALL)
if [ `id -u` -ne 0 ]; then
echo "You must be root to install this port!";
exit 1
fi
[ -c /dev/rng ] || mknod /dev/rng c 229 0
;;
POST-DEINSTALL)
if kldstat -n rng >/dev/null 2>&1; then
echo "Please, manually unload rng kernel module"
exit 1
# kldunload rng
fi
echo; echo "Please, manually remove /dev/rng"
;;
esac

View File

@ -0,0 +1,2 @@
@cwd /
%%KMODDIR%%/rng.ko