]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
copy from v4
authorAlan T. DeKok <aland@freeradius.org>
Thu, 30 Mar 2023 01:05:27 +0000 (10:05 +0900)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 30 Mar 2023 01:05:27 +0000 (10:05 +0900)
scripts/bin/README.md [new file with mode: 0644]
scripts/bin/gdb [new file with mode: 0755]
scripts/bin/lldb [new file with mode: 0755]
scripts/bin/radclient [new symlink]
scripts/bin/radict [new file with mode: 0755]
scripts/bin/radiusd [new file with mode: 0755]
scripts/bin/radmin [new symlink]
scripts/bin/radsniff [new symlink]
scripts/bin/unit_test_module [new symlink]

diff --git a/scripts/bin/README.md b/scripts/bin/README.md
new file mode 100644 (file)
index 0000000..b7f4b5d
--- /dev/null
@@ -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 (executable)
index 0000000..4695575
--- /dev/null
@@ -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 (executable)
index 0000000..6a4ed92
--- /dev/null
@@ -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 (symlink)
index 0000000..f3a1360
--- /dev/null
@@ -0,0 +1 @@
+radiusd
\ No newline at end of file
diff --git a/scripts/bin/radict b/scripts/bin/radict
new file mode 100755 (executable)
index 0000000..c6e0a1e
--- /dev/null
@@ -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 (executable)
index 0000000..cde5f91
--- /dev/null
@@ -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 (symlink)
index 0000000..f3a1360
--- /dev/null
@@ -0,0 +1 @@
+radiusd
\ No newline at end of file
diff --git a/scripts/bin/radsniff b/scripts/bin/radsniff
new file mode 120000 (symlink)
index 0000000..f3a1360
--- /dev/null
@@ -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 (symlink)
index 0000000..f3a1360
--- /dev/null
@@ -0,0 +1 @@
+radiusd
\ No newline at end of file