1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/net/opensips31/files/patch-modules_aaa__radius_Makefile
Andriy 4e429139a0 net/opensips31: New port: Open SIP Server
Includes additional changes on top of submitters patch to improve port

PR:		253844
Approved by:	arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D31765
2021-09-05 20:42:00 +02:00

22 lines
782 B
Plaintext

--- modules/aaa_radius/Makefile.orig 2020-07-22 09:42:09 UTC
+++ modules/aaa_radius/Makefile
@@ -12,10 +12,15 @@ ETC_DIR?=../../etc/
# Find the radius library we shall use
#
+ifeq ($(OS), freebsd)
+ LDCONFIG=ldconfig -r
+else
+ LDCONFIG=ldconfig -p
+endif
ifeq ($(RADIUSCLIENT),)
-RADIUSCLIENT=$(shell if [ -n "`ldconfig -p | grep radcli`" ]; then echo "RADCLI"; \
- elif [ -n "`ldconfig -p | grep freeradius`" ]; then echo "FREERADIUS"; \
- elif [ -n "`ldconfig -p | grep radiusclient-ng`" ];then echo "RADIUSCLIENT"; fi)
+RADIUSCLIENT=$(shell if [ -n "`${LDCONFIG} | grep radcli`" ]; then echo "RADCLI"; \
+ elif [ -n "`${LDCONFIG} | grep freeradius`" ]; then echo "FREERADIUS"; \
+ elif [ -n "`${LDCONFIG} | grep radiusclient-ng`" ];then echo "RADIUSCLIENT"; fi)
endif