mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
4e429139a0
Includes additional changes on top of submitters patch to improve port PR: 253844 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D31765
22 lines
782 B
Plaintext
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
|
|
|
|
|