Commit d2ccd998 authored by Ariadne Conill's avatar Ariadne Conill

testing/rinse: create /dev/{random,urandom,console,null}

parent df942413
......@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=rinse
pkgver=2.0
pkgrel=2
pkgrel=3
pkgdesc="RPM chroot bootstrapping tool"
url="http://www.steve.org.uk/Software/rinse/"
arch="noarch"
......@@ -13,7 +13,8 @@ makedepends="$depends_dev gzip coreutils"
install=""
subpackages="$pkgname-doc"
source="http://www.steve.org.uk/Software/rinse/rinse-$pkgver.tar.gz
rinse-posix-cpio-use.patch"
rinse-posix-cpio-use.patch
rinse-device-nodes.patch"
_builddir="$srcdir"/rinse-$pkgver
prepare() {
......@@ -36,4 +37,5 @@ package() {
}
md5sums="ccae96895b413bb1040a86d17bec4b06 rinse-2.0.tar.gz
6761f834b3f50bded544021ccb90c700 rinse-posix-cpio-use.patch"
6761f834b3f50bded544021ccb90c700 rinse-posix-cpio-use.patch
6a6092323c1973832f5c050d37265d99 rinse-device-nodes.patch"
--- rinse-2.0.orig/scripts.common/20-dev-zero.sh
+++ rinse-2.0/scripts.common/20-dev-zero.sh
@@ -34,4 +34,16 @@
if [ ! -e "${prefix}/dev/zero" ]; then
mknod -m 666 "${prefix}/dev/zero" c 1 5
fi
+if [ ! -e "${prefix}/dev/urandom" ]; then
+ mknod -m 666 "${prefix}/dev/urandom" c 1 9
+fi
+if [ ! -e "${prefix}/dev/random" ]; then
+ mknod -m 666 "${prefix}/dev/random" c 1 8
+fi
+if [ ! -e "${prefix}/dev/null" ]; then
+ mknod -m 666 "${prefix}/dev/null" c 1 3
+fi
+if [ ! -e "${prefix}/dev/console" ]; then
+ mknod -m 666 "${prefix}/dev/console" c 5 1
+fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment