Browse Source

Merge pull request #13300 from odmdas/odmdas-freeradius3-radtest

freeradius3: enable radtest utility and adapt it to OpenWrt
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
d4da0c1631
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions
  1. +2
    -2
      net/freeradius3/Makefile
  2. +12
    -0
      net/freeradius3/patches/004-get-hostname-from-proc-in-radtest.patch

+ 2
- 2
net/freeradius3/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=freeradius3
PKG_VERSION:=release_3_0_21
PKG_RELEASE:=4
PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/FreeRADIUS/freeradius-server/archive
@ -732,7 +732,7 @@ endef
define Package/freeradius3-utils/install
$(INSTALL_DIR) $(1)/usr/bin
for f in radclient radeapclient radwho; do \
for f in radclient radeapclient radtest radwho; do \
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$$$${f} $(1)/usr/bin/ ; \
done
endef


+ 12
- 0
net/freeradius3/patches/004-get-hostname-from-proc-in-radtest.patch View File

@ -0,0 +1,12 @@
--- a/src/main/radtest.in
+++ b/src/main/radtest.in
@@ -112,7 +112,7 @@ if [ "$7" ]
then
nas=$7
else
- nas=`hostname`
+ nas=$(cat /proc/sys/kernel/hostname)
fi
(

Loading…
Cancel
Save