include $(TOPDIR)/rules.mk
PKG_NAME:=radsecproxy
-PKG_VERSION:=1.9.1
+PKG_VERSION:=1.11.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/radsecproxy/radsecproxy/releases/download/$(PKG_VERSION)/
-PKG_HASH:=e08e4e04d188deafd0b55b2f66b1e7fff9bdb553fb170846590317d02c9dc5db
+PKG_HASH:=1fe3f25a392b74db1fe62868e19e883acd1dc0e1f318715299920fcc5e166f97
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=BSD-3-CLAUSE
--- a/radsecproxy.c
+++ b/radsecproxy.c
-@@ -3075,15 +3075,13 @@ int radsecproxy_main(int argc, char **ar
- options.loglevel = loglevel;
+@@ -3637,16 +3637,13 @@ int radsecproxy_main(int argc, char **ar
+ options.loglevel = loglevel;
else if (options.loglevel)
- debug_set_level(options.loglevel);
+ debug_set_level(options.loglevel);
- if (!foreground) {
-- debug_set_destination(options.logdestination
-- ? options.logdestination
-- : "x-syslog:///", LOG_TYPE_DEBUG);
-- if (options.ftickssyslogfacility) {
+- debug_set_destination(options.logdestination
+- ? options.logdestination
+- : "x-syslog:///",
+- LOG_TYPE_DEBUG);
+- if (options.ftickssyslogfacility) {
- debug_set_destination(options.ftickssyslogfacility,
- LOG_TYPE_FTICKS);
- free(options.ftickssyslogfacility);
-- }
+- }
+ debug_set_destination(options.logdestination
+ ? options.logdestination
+ : "x-syslog:///", LOG_TYPE_DEBUG);
--- a/gconfig.c
+++ b/gconfig.c
-@@ -119,7 +119,7 @@ FILE *pushgconfpaths(struct gconffile **
+@@ -120,7 +120,7 @@ FILE *pushgconfpaths(struct gconffile **
int i;
FILE *f = NULL;
glob_t globbuf;
--- /dev/null
+#!/bin/sh
+
+[ "$1" = "radsecproxy" ] || exit 0
+
+# Write a minimal config with a client so radsecproxy starts up
+cat > /tmp/radsecproxy-test.conf << 'EOF'
+LogLevel 3
+LogDestination file:///tmp/radsecproxy-test.log
+ListenUDP localhost:11812
+
+client localhost {
+ type udp
+ secret testing123
+}
+EOF
+
+rm -f /tmp/radsecproxy-test.log
+timeout 2 radsecproxy -f -c /tmp/radsecproxy-test.conf 2>/dev/null || true
+
+# Verify radsecproxy wrote to the log (proves it started and parsed the config)
+[ -s /tmp/radsecproxy-test.log ] || {
+ echo "radsecproxy did not write to log file"
+ false
+}
+echo "radsecproxy started and logged OK"