pkgsrc-Changes archive

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

CVS commit: pkgsrc/pkgtools/mksandbox/files



Module Name:    pkgsrc
Committed By:   sevan
Date:           Sat Apr 21 19:40:50 UTC 2018

Modified Files:
        pkgsrc/pkgtools/mksandbox/files: mksandbox

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/pkgtools/mksandbox/files/mksandbox

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/mksandbox/files/mksandbox
diff -u pkgsrc/pkgtools/mksandbox/files/mksandbox:1.11 pkgsrc/pkgtools/mksandbox/files/mksandbox:1.12
--- pkgsrc/pkgtools/mksandbox/files/mksandbox:1.11      Thu Apr 12 02:08:47 2018
+++ pkgsrc/pkgtools/mksandbox/files/mksandbox   Sat Apr 21 19:40:50 2018
@@ -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 @@ Darwin)
        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 @@ echo "Make and populate $sandbox/dev"
 $mkdirprog $sandbox/dev
 
 case "$opsys" in
-Darwin|FreeBSD)
+Darwin|DragonFly|FreeBSD)
        $mountprog -t devfs devfs $sandbox/dev
        ;;
 SunOS)
@@ -414,7 +427,7 @@ xmount)
                esac
        done
        case \$opsys in
-       Darwin|FreeBSD)
+       Darwin|DragonFly|FreeBSD)
                $mountprog -t devfs devfs \$sandbox/dev
                ;;
        Linux)
@@ -436,7 +449,7 @@ xumount)
                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