diff options
author | Sergey Skvortsov <skv@FreeBSD.org> | 2003-12-16 14:07:22 +0000 |
---|---|---|
committer | Sergey Skvortsov <skv@FreeBSD.org> | 2003-12-16 14:07:22 +0000 |
commit | 3598fff7c6b37d7e5c08069a2e697c570ec60396 (patch) | |
tree | 9a7c9f33cde9eaa2b60e1302b57356153e11a480 /security | |
parent | 9f09334a77b7f661356663bb249b61bd34c9e784 (diff) | |
download | ports-3598fff7c6b37d7e5c08069a2e697c570ec60396.tar.gz ports-3598fff7c6b37d7e5c08069a2e697c570ec60396.zip |
Add rng_82802 0.0.0, RNG driver for the Intel 82802.
Notes
Notes:
svn path=/head/; revision=95953
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/rng_82802/Makefile | 34 | ||||
-rw-r--r-- | security/rng_82802/distinfo | 1 | ||||
-rw-r--r-- | security/rng_82802/pkg-descr | 16 | ||||
-rw-r--r-- | security/rng_82802/pkg-install | 21 | ||||
-rw-r--r-- | security/rng_82802/pkg-plist | 2 |
6 files changed, 75 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index e0cb164b76c1..289a6666b116 100644 --- a/security/Makefile +++ b/security/Makefile @@ -333,6 +333,7 @@ SUBDIR += rats SUBDIR += rc5pipe SUBDIR += rid + SUBDIR += rng_82802 SUBDIR += ruby-acl SUBDIR += ruby-aes SUBDIR += ruby-blowfish diff --git a/security/rng_82802/Makefile b/security/rng_82802/Makefile new file mode 100644 index 000000000000..a5d597cdec49 --- /dev/null +++ b/security/rng_82802/Makefile @@ -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> diff --git a/security/rng_82802/distinfo b/security/rng_82802/distinfo new file mode 100644 index 000000000000..f7dc1d6d000a --- /dev/null +++ b/security/rng_82802/distinfo @@ -0,0 +1 @@ +MD5 (rng0-0-0.tgz) = 2f117ecbf11f53fbd15e0c4b0c1d6544 diff --git a/security/rng_82802/pkg-descr b/security/rng_82802/pkg-descr new file mode 100644 index 000000000000..fb797b1b73c2 --- /dev/null +++ b/security/rng_82802/pkg-descr @@ -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 diff --git a/security/rng_82802/pkg-install b/security/rng_82802/pkg-install new file mode 100644 index 000000000000..284eddfb2866 --- /dev/null +++ b/security/rng_82802/pkg-install @@ -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 diff --git a/security/rng_82802/pkg-plist b/security/rng_82802/pkg-plist new file mode 100644 index 000000000000..7d5a38663bbb --- /dev/null +++ b/security/rng_82802/pkg-plist @@ -0,0 +1,2 @@ +@cwd / +%%KMODDIR%%/rng.ko |