summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-08-07 12:37:26 +0100
committerDave Hibberd <d@vehibberd.com>2023-08-07 12:37:26 +0100
commit7a63b2dc8f8ae88c41d367f257293852857a6800 (patch)
treed9eca78cd4e4ead6c794cb9bf6315f5bb24a2664 /debian/patches
parentf3e7693fe3cf2cc24532aec81b5730427c26d4a4 (diff)
Zlib and netrom MOTD patch
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/netrom-motd.patch38
-rw-r--r--debian/patches/series2
-rw-r--r--debian/patches/zlib-ifdef.patch23
3 files changed, 63 insertions, 0 deletions
diff --git a/debian/patches/netrom-motd.patch b/debian/patches/netrom-motd.patch
new file mode 100644
index 0000000..b4da15c
--- /dev/null
+++ b/debian/patches/netrom-motd.patch
@@ -0,0 +1,38 @@
+Description: Add in motd functionality for Netrom
+Author: Dave Hibberd <d@vehibberd.com>
+Last-Update: 2023-08-07
+
+--- a/node.c
++++ b/node.c
+@@ -301,6 +301,11 @@
+ node_log(LOGLVL_LOGIN, "%s @ %s logged in", User.call, User.ul_name);
+ #ifdef HAVEMOTD
+ if (User.ul_type == AF_NETROM) {
++ node_msg("%s - Welcome to %s", VERSION, NodeId);
++ if ((fp = fopen(HAVEMOTD, "r")) != NULL) {
++ while (fgets(buf, 256, fp) != NULL) axio_puts(buf,NodeIo);
++ axio_puts ("\n",NodeIo);
++ }
+ /* axio_printf(NodeIo, "%s} Welcome.\n", NodeId); */
+ } else
+ if ((User.ul_type == AF_INET) || (User.ul_type == AF_INET6)) {
+@@ -365,6 +370,8 @@
+ axio_printf(NodeIo,"\n");
+ }
+ }
++ } else {
++ node_prompt();
+ }
+ if (check_perms(PERM_ANSI, 0L) != -1) {
+ /* Not needed from what I see so far. */
+--- a/command.c
++++ b/command.c
+@@ -137,7 +137,7 @@
+ }
+ }
+ if (User.ul_type == AF_NETROM) {
+- axio_printf(NodeIo,"");
++ axio_printf(NodeIo,"%s, thank you for connecting to the %s\nURONode netrom shell. Come back soon, 73!\n",User.call, NodeId);
+ }
+ if (User.ul_type == AF_ROSE) {
+ if (check_perms(PERM_ANSI, 0L) != -1) {
diff --git a/debian/patches/series b/debian/patches/series
index 5cb9a02..7d47ffe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,6 @@
+netrom-motd.patch
non-interactive-install.patch
+zlib-ifdef.patch
hardening
folder-update
install-dir-creation
diff --git a/debian/patches/zlib-ifdef.patch b/debian/patches/zlib-ifdef.patch
new file mode 100644
index 0000000..0ccde6d
--- /dev/null
+++ b/debian/patches/zlib-ifdef.patch
@@ -0,0 +1,23 @@
+Description: Fix zlib ifdef to ensure it builds right
+Author: Dave Hibberd <d@vehibberd.com>
+Last-Update: 2023-08-07
+
+--- a/configure
++++ b/configure
+@@ -74,14 +74,14 @@
+ _sleep 1
+ echo -n "Checking for the existence of the Zlib headers... "
+ ZLIB=""
+-HAVEZLIB="#undef HAVE_ZLIB"
++HAVEZLIB="#undef HAVE_ZLIB_H"
+ for zlibdir in /usr/include /usr/local/include
+ do
+ if [ -f $zlibdir/zlib.h ]
+ then
+ echo $zlibdir/zlib.h
+ ZLIB="-lz"
+- HAVEZLIB="#define HAVE_ZLIB 1"
++ HAVEZLIB="#define HAVE_ZLIB_H 1"
+ fi
+ done
+ if [ -z "$ZLIB" ]