pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/mksandbox/files Add support for ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b3eb0f971527
branches:  trunk
changeset: 306602:b3eb0f971527
user:      sevan <sevan%pkgsrc.org@localhost>
date:      Sat Apr 21 19:40:50 2018 +0000
description:
Add support for DragonFly BSD.
OS is essentially the same as FreeBSD from our configuration point of view, with
the exception of the name of utiliy for nullfs mounts.
Tested on DragonFly 5.3-DEVELOPMENT.

diffstat:

 pkgtools/mksandbox/files/mksandbox |  21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diffs (58 lines):

diff -r a78de93d48f5 -r b3eb0f971527 pkgtools/mksandbox/files/mksandbox
--- a/pkgtools/mksandbox/files/mksandbox        Sat Apr 21 17:28:33 2018 +0000
+++ b/pkgtools/mksandbox/files/mksandbox        Sat Apr 21 19:40:50 2018 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: mksandbox,v 1.11 2018/04/12 02:08:47 simonb Exp $
+# $NetBSD: mksandbox,v 1.12 2018/04/21 19:40:50 sevan Exp $
 
 # Copyright (c) 2002,2012 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -87,6 +87,19 @@
        sandboxMountDirs="$sandboxMountDirs /usr/llvm-gcc-4.2 /usr/X11 /System/Library /Library"
        sandboxWriteDirs="$sandboxWriteDirs /Library/Server/Mail/Data"
        ;;
+DragonFly)
+       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 null"
+       mountprog=/sbin/mount
+       paxprog=/bin/pax
+       sedprog=/usr/bin/sed
+       ;;
 FreeBSD)
        bmakeprog=bmake
        chmodprog=/bin/chmod
@@ -265,7 +278,7 @@
 $mkdirprog $sandbox/dev
 
 case "$opsys" in
-Darwin|FreeBSD)
+Darwin|DragonFly|FreeBSD)
        $mountprog -t devfs devfs $sandbox/dev
        ;;
 SunOS)
@@ -414,7 +427,7 @@
                esac
        done
        case \$opsys in
-       Darwin|FreeBSD)
+       Darwin|DragonFly|FreeBSD)
                $mountprog -t devfs devfs \$sandbox/dev
                ;;
        Linux)
@@ -436,7 +449,7 @@
                umount \$sandbox/\$mntpoint
        done
        case \$opsys in
-       Darwin|FreeBSD|Linux)
+       Darwin|DragonFly|FreeBSD|Linux)
                umount \$sandbox/dev
                ;;
        SunOS)



Home | Main Index | Thread Index | Old Index