pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/bulk PR pkg/45799
details: https://anonhg.NetBSD.org/pkgsrc/rev/f82c501b1b93
branches: trunk
changeset: 598043:f82c501b1b93
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Sun Jan 15 13:34:28 2012 +0000
description:
PR pkg/45799
* Use "mount -t nullfs" on FreeBSD, instead of "mount -t null".
* On Linux, for creating /dev/*, use "mount --bind".
Tested on FreeBSD/i386 9.0-RC3 and 9.0-RELEASE, CentOS/i386 6.2, 5.4,
and Gentoo Linux/i386 (Linux kernel 3).
O.K.ed by wiz@
diffstat:
mk/bulk/mksandbox | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r fb8983a73e9c -r f82c501b1b93 mk/bulk/mksandbox
--- a/mk/bulk/mksandbox Sun Jan 15 13:19:29 2012 +0000
+++ b/mk/bulk/mksandbox Sun Jan 15 13:34:28 2012 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: mksandbox,v 1.52 2009/09/20 10:24:00 wiz Exp $
+# $NetBSD: mksandbox,v 1.53 2012/01/15 13:34:28 ryoon Exp $
#
#
# Copyright (c) 2002 Alistair G. Crooks. All rights reserved.
@@ -80,6 +80,19 @@
paxprog=/bin/pax
sedprog=/usr/bin/sed
;;
+FreeBSD)
+ bmakeprog=bmake
+ chmodprog=/bin/chmod
+ chownprog=/usr/sbin/chown
+ cpprog=/bin/cp
+ gtarprog=/usr/bin/tar
+ idprog=/usr/bin/id
+ mkdirprog="/bin/mkdir -p"
+ mountflags="-t nullfs"
+ mountprog=/sbin/mount
+ paxprog=/bin/pax
+ sedprog=/usr/bin/sed
+ ;;
Interix)
echo >&2 "This script cannot be used on Interix; a different procedure is required."
echo >&2 "(To be documented.)"
@@ -235,8 +248,7 @@
fi
;;
Linux)
- $cpprog /dev/MAKEDEV* $sandbox/dev
- (cd $sandbox/dev; ./MAKEDEV generic random)
+ $mountprog $mountflags /dev $sandbox/dev
;;
FreeBSD)
$mountprog -t devfs devfs $sandbox/dev
Home |
Main Index |
Thread Index |
Old Index