diff options
author | sobomax <sobomax@FreeBSD.org> | 2007-08-22 02:21:26 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2007-08-22 02:21:26 +0800 |
commit | 97ee222d1d25ded3bd4e7c58ff3f5a6ebf70a767 (patch) | |
tree | bf8997571461d63a7aff367589448022fed9a9cb /mail/exim | |
parent | 7671d02a52d7907624653dc959fd14c7f8992d1e (diff) | |
download | freebsd-ports-graphics-97ee222d1d25ded3bd4e7c58ff3f5a6ebf70a767.tar.gz freebsd-ports-graphics-97ee222d1d25ded3bd4e7c58ff3f5a6ebf70a767.tar.zst freebsd-ports-graphics-97ee222d1d25ded3bd4e7c58ff3f5a6ebf70a767.zip |
Fix building with radiusclient.
PR: 115687
Diffstat (limited to 'mail/exim')
-rw-r--r-- | mail/exim/Makefile | 8 | ||||
-rw-r--r-- | mail/exim/files/patch-src::auths::call_radius.c | 17 |
2 files changed, 21 insertions, 4 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile index fc072b12d76..e81ca455f28 100644 --- a/mail/exim/Makefile +++ b/mail/exim/Makefile @@ -407,10 +407,10 @@ SEDLIST+= -e 's,XX_RADIUS_LIBS_XX,-lradius,' \ -e 's,^\# (RADIUS_CONFIG_FILE=).*,\1/etc/radius.conf,' \ -e 's,^\# (RADIUS_LIB_TYPE=).*,\1RADLIB,' .elif ${WITH_RADIUS_TYPE:L} == radiusclient -LIB_DEPENDS+= radiusclient.0:${PORTSDIR}/net/radiusclient -SEDLIST+= -e 's,XX_RADIUS_LIBS_XX,-L${LOCALBASE}/lib -lradiusclient,' \ - -e 's,^\# (RADIUS_CONFIG_FILE=).*,\1${LOCALBASE}/etc/radiusclient.conf,' \ - -e 's,^\# (RADIUS_LIB_TYPE=).*,\1RADIUSCLIENT,' +LIB_DEPENDS+= radiusclient-ng.2:${PORTSDIR}/net/radiusclient +SEDLIST+= -e 's,XX_RADIUS_LIBS_XX,-L${LOCALBASE}/lib -lradiusclient-ng,' \ + -e 's,^\# (RADIUS_CONFIG_FILE=).*,\1${LOCALBASE}/radiusclient-ng/radiusclient.conf,' \ + -e 's,^\# (RADIUS_LIB_TYPE=).*,\1RADIUSCLIENTNEW,' .else IGNORE= the variable WITH_RADIUS_TYPE must be either RADLIB or RADIUSCLIENT .endif diff --git a/mail/exim/files/patch-src::auths::call_radius.c b/mail/exim/files/patch-src::auths::call_radius.c new file mode 100644 index 00000000000..59c14cc2b72 --- /dev/null +++ b/mail/exim/files/patch-src::auths::call_radius.c @@ -0,0 +1,17 @@ + +$FreeBSD$ + +--- src/auths/call_radius.c ++++ src/auths/call_radius.c +@@ -38,7 +38,11 @@ + #if !defined(RADIUS_LIB_RADIUSCLIENT) && !defined(RADIUS_LIB_RADIUSCLIENTNEW) + #define RADIUS_LIB_RADIUSCLIENT + #endif ++ #if !defined(RADIUS_LIB_RADIUSCLIENTNEW) + #include <radiusclient.h> ++ #else ++ #include <radiusclient-ng.h> ++ #endif + #endif + + |