Skip to content

Instantly share code, notes, and snippets.

View dreamcat4's full-sized avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
diff -cr qjail-3.2/usr/local/bin/qjail qjail-3.2-auto-nic-patch/usr/local/bin/qjail
*** qjail-3.2/usr/local/bin/qjail 2014-03-10 10:55:29.000000000 +0000
--- qjail-3.2-auto-nic-patch/usr/local/bin/qjail 2014-06-06 21:23:37.000000000 +0100
***************
*** 50,56 ****
delete|restore|config|update|logmsg|help] {parameters}"
syntax_install="Syntax: qjail install [-z zone] [-h ftp host] [-f file location] [-l]"
! syntax_create="Syntax: qjail create [-z zone] [-n value] [-a archive] [-f flavor] [-c]\n\
[-i size] [-d duplicate#] [-4 IPv4...] [-6 IPv6...]\n\
freenas ps3netsrv--/ root^> rm ./ps3netsrv++
freenas ps3netsrv--/ root^> gmake CXX=/usr/local/bin/g++49 clean
rm *.o
freenas ps3netsrv--/ root^> gmake CXX=/usr/local/bin/g++49
/usr/local/bin/g++49 -c -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors -fpermissive -static ps3netsrv.cpp -o ps3netsrv.o
/usr/local/bin/g++49 -c -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors -fpermissive -static utils/src/fileoperations.cpp -o fileoperations.o
In file included from utils/src/fileoperations.cpp:18:0:
./utils/inc/utils/stringoperations.h: In function 'void utils::stringops::printLine(const Ts& ...)':
./utils/inc/utils/stringoperations.h:173:20: warning: there are no arguments to 'printf' that depend on a template parameter, so a declaration of 'printf' must be available [-fpermissive]
printf("\n");
freenas ps3netsrv--/ root^> gdb762 ./ps3netsrv++ 44054
GNU gdb (GDB) 7.6.2 [GDB v7.6.2 for FreeBSD]
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd9.1".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
freenas virtualbox-ose/ root^> cd /usr/ports/emulators/virtualbox-ose && make "BATCH=yes" "WITH=GUESTADDITIONS VDE VPX VIMAGE" "WITHOUT=NLS QT4 X11" install clean
===> Building for virtualbox-ose-4.3.10
cd /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.10 && /bin/sh env.sh && VBOX_LIBPATH_X11=/usr/local VBOX_FREEBSD_SRC=/usr/src/sys /usr/local/bin/kmk -j1
/usr/local/share/kBuild/footer-pass2-installs.kmk:67: warning: overriding recipe for target `/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.10/out/freebsd.amd64/release/bin/src/vboxdrv/include/iprt/crc.h'
/usr/local/share/kBuild/footer-pass2-installs.kmk:67: warning: ignoring old recipe for target `/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.10/out/freebsd.amd64/release/bin/src/vboxdrv/include/iprt/crc.h'
/usr/local/share/kBuild/footer-pass2-installs.kmk:67: warning: overriding recipe for target `/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.10/out/freebsd.amd64/release/dist/bin/src/vboxdrv/include/iprt/crc.h'
/usr/l
@dreamcat4
dreamcat4 / qjail-3.2.sh
Created April 1, 2014 18:48
Various Qjail patches. Based on qjail v3.2 file.
#!/bin/sh
#
# qjail is a fork of ezjail version 3.1 that has this license.
#
# -------------------------------------------------------------
# "THE BEER-WARE LICENSE":
# <erdgeist@erdgeist.org> wrote ezjail. As long as you retain
# this notice you can do whatever you want with this stuff.
# If we meet some day, and you think this stuff is worth it,
# you can buy me a beer in return Dirk Engling.
@dreamcat4
dreamcat4 / qjail.diff
Last active August 29, 2015 13:57
Various Qjail patches. Based on qjail v3.2 file.
53c53
< syntax_create="Syntax: qjail create [-z zone] [-n value] [-a archive] [-f flavor] [-c]\n\
---
> syntax_create="Syntax: qjail create [-z zone] [-m] [-n value] [-a archive] [-f flavor] [-c]\n\
118a119,120
> # Strip any embedded leading / trailing "<if_device>|" and "/<netmask>" components
> entered_ip="${entered_ip#*|}"; entered_ip="${entered_ip%/*}"
134a137,138
> # Strip any embedded leading / trailing "<if_device>|" and "/<netmask>" components
> used_ip="${used_ip#*|}"; used_ip="${used_ip%/*}"
diff -cr qjail-3.3/usr/local/bin/qjail qjail-3.3-freebsd-9.2-patch/usr/local/bin/qjail
*** qjail-3.3/usr/local/bin/qjail 2014-05-25 19:36:39.000000000 +0100
--- qjail-3.3-freebsd-9.2-patch/usr/local/bin/qjail 2014-05-25 19:35:37.000000000 +0100
***************
*** 1800,1806 ****
number=`echo "${release_number}" | awk '{print $1}'`
number=${number}`echo "${release_number}" | awk '{print $2}'`
! if [ ${number} -ge 100 ]; then
installarch=`uname -p`
diff -cr qjail-3.3/usr/local/bin/qjail qjail-3.3-freebsd-9.2+sysvipc+devfs_ruleset-patch/usr/local/bin/qjail
*** qjail-3.3/usr/local/bin/qjail 2014-04-29 21:53:14.000000000 +0100
--- qjail-3.3-freebsd-9.2+sysvipc+devfs_ruleset-patch/usr/local/bin/qjail 2014-06-15 12:48:07.000000000 +0100
***************
*** 338,346 ****
--- 338,348 ----
echo "securelevel=\"${securelevel}\""
echo "cpuset=\"${cpuset_id}\""
echo "fib=\"${exec_fib}\""
+ echo "devfs_ruleset=\"${devfs_ruleset}\""
@dreamcat4
dreamcat4 / qjail-3.3-v2.patch
Created June 18, 2014 15:19
qjail-3.3 + devfs_ruleset (-b -B) + sysvipc (-y -Y) + man page update (for Upstream)
diff -rupN qjail-3.3/qjail qjail-3.3-patches-with-man.qjail.8/qjail
--- qjail-3.3/qjail 2014-05-09 15:13:46.000000000 +0100
+++ qjail-3.3-patches-with-man.qjail.8/qjail 2014-06-18 12:57:31.000000000 +0100
@@ -59,7 +59,7 @@ syntax_archive="Syntax: qjail archive [-
syntax_delete="Syntax: qjail delete [-z zone] [-A] [jailname...]"
syntax_restore="Syntax: qjail restore [-z zone] [-s] [jailname...]"
syntax_config="Syntax: qjail config [-z zone] [-c newnic] [-f value]\n\
- [-A -d -h -k -K -l -L -m -M -q -Q -r -R -v -V -x -X]\n\
+ [-A -d -h -k -K -b -B -y -Y -l -L -m -M -q -Q -r -R -v -V -x -X]\n\
[-n newname] [-p value] [-s value] [-w value]\n\
@dreamcat4
dreamcat4 / qjail-3.3-92-sysvipc-devfs_ruleset.patch
Last active August 29, 2015 14:02
qjail-3.3.patch: 9.2 + sysvipc + devfs_ruleset (For Finch)
diff -rupN qjail-3.3/usr/local/bin/qjail qjail-3.3-92-sysvipc-devfs_ruleset/usr/local/bin/qjail
--- qjail-3.3/usr/local/bin/qjail 2014-05-09 15:13:46.000000000 +0100
+++ qjail-3.3-92-sysvipc-devfs_ruleset/usr/local/bin/qjail 2014-06-21 14:53:43.000000000 +0100
@@ -59,7 +59,7 @@ syntax_archive="Syntax: qjail archive [-
syntax_delete="Syntax: qjail delete [-z zone] [-A] [jailname...]"
syntax_restore="Syntax: qjail restore [-z zone] [-s] [jailname...]"
syntax_config="Syntax: qjail config [-z zone] [-c newnic] [-f value]\n\
- [-A -d -h -k -K -l -L -m -M -q -Q -r -R -v -V -x -X]\n\
+ [-A -d -h -k -K -b -B -y -Y -l -L -m -M -q -Q -r -R -v -V -x -X]\n\
[-n newname] [-p value] [-s value] [-w value]\n\