aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2003-12-16 22:07:22 +0800
committerskv <skv@FreeBSD.org>2003-12-16 22:07:22 +0800
commite76f827d06d67316792ab7a72fec4d5dc8fd7ee3 (patch)
tree339cc2a0f1483afdd39f0b43f4dd6bba3c54d8d3 /security
parentf8a7f48c4ebf3bab0d2620d121f3881ed82ef228 (diff)
downloadfreebsd-ports-gnome-e76f827d06d67316792ab7a72fec4d5dc8fd7ee3.tar.gz
freebsd-ports-gnome-e76f827d06d67316792ab7a72fec4d5dc8fd7ee3.tar.zst
freebsd-ports-gnome-e76f827d06d67316792ab7a72fec4d5dc8fd7ee3.zip
Add rng_82802 0.0.0, RNG driver for the Intel 82802.
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/rng_82802/Makefile34
-rw-r--r--security/rng_82802/distinfo1
-rw-r--r--security/rng_82802/pkg-descr16
-rw-r--r--security/rng_82802/pkg-install21
-rw-r--r--security/rng_82802/pkg-plist2
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