From: Alan T. DeKok Date: Thu, 30 Mar 2023 01:05:27 +0000 (+0900) Subject: copy from v4 X-Git-Tag: release_3_2_3~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9066a3a7ceb4298f9838d71ee418f77774babc1;p=thirdparty%2Ffreeradius-server.git copy from v4 --- diff --git a/scripts/bin/README.md b/scripts/bin/README.md new file mode 100644 index 0000000000..b7f4b5d4d0 --- /dev/null +++ b/scripts/bin/README.md @@ -0,0 +1,9 @@ +# Wrapper scripts for binaries + +The build process creates "local" versions of the binaries. These +binaries can be run out of the source / build tree, and do not need to +be installed in order to work. + +However, the "local" binaries require manual mangling of environment +variables in order to work. As such, it's easier to just have shell +script wrappers so people have to remember fewer things. diff --git a/scripts/bin/gdb b/scripts/bin/gdb new file mode 100755 index 0000000000..469557534c --- /dev/null +++ b/scripts/bin/gdb @@ -0,0 +1,5 @@ +#!/bin/sh +export PANIC_ACTION= +export DEBUGGER_ATTACHED=yes + +exec ./build//make/jlibtool --mode=execute gdb --args ./build/bin/local/radiusd -sf -xx -l stdout -d ./raddb -D share/dictionary $@ diff --git a/scripts/bin/lldb b/scripts/bin/lldb new file mode 100755 index 0000000000..6a4ed9236e --- /dev/null +++ b/scripts/bin/lldb @@ -0,0 +1,5 @@ +#!/bin/sh +export PANIC_ACTION= +export DEBUGGER_ATTACHED=yes + +exec ./build//make/jlibtool --mode=execute lldb -- ./build/bin/local/radiusd -sf -xx -l stdout -d ./raddb -D share/dictionary $@ diff --git a/scripts/bin/radclient b/scripts/bin/radclient new file mode 120000 index 0000000000..f3a1360afc --- /dev/null +++ b/scripts/bin/radclient @@ -0,0 +1 @@ +radiusd \ No newline at end of file diff --git a/scripts/bin/radict b/scripts/bin/radict new file mode 100755 index 0000000000..c6e0a1ee4d --- /dev/null +++ b/scripts/bin/radict @@ -0,0 +1,5 @@ +#!/bin/sh +DIR=$(dirname $0)/../.. +PROGRAM=$(basename $0) + +exec $DIR/build/make/jlibtool --mode=execute $FR_DEBUGGER $DIR/build/bin/local/$PROGRAM -D $DIR/share/dictionary $@ diff --git a/scripts/bin/radiusd b/scripts/bin/radiusd new file mode 100755 index 0000000000..cde5f91044 --- /dev/null +++ b/scripts/bin/radiusd @@ -0,0 +1,5 @@ +#!/bin/sh +DIR=$(dirname $0)/../.. +PROGRAM=$(basename $0) + +exec $DIR/build/make/jlibtool --mode=execute $FR_DEBUGGER $DIR/build/bin/local/$PROGRAM -d $DIR/raddb -D $DIR/share/dictionary $@ diff --git a/scripts/bin/radmin b/scripts/bin/radmin new file mode 120000 index 0000000000..f3a1360afc --- /dev/null +++ b/scripts/bin/radmin @@ -0,0 +1 @@ +radiusd \ No newline at end of file diff --git a/scripts/bin/radsniff b/scripts/bin/radsniff new file mode 120000 index 0000000000..f3a1360afc --- /dev/null +++ b/scripts/bin/radsniff @@ -0,0 +1 @@ +radiusd \ No newline at end of file diff --git a/scripts/bin/unit_test_module b/scripts/bin/unit_test_module new file mode 120000 index 0000000000..f3a1360afc --- /dev/null +++ b/scripts/bin/unit_test_module @@ -0,0 +1 @@ +radiusd \ No newline at end of file