diff --git a/net/pecl-radius/Makefile b/net/pecl-radius/Makefile index f31abe723fac..782f1c9ed3b2 100644 --- a/net/pecl-radius/Makefile +++ b/net/pecl-radius/Makefile @@ -1,24 +1,23 @@ PORTNAME= radius PORTVERSION= 1.4.0b1 PORTREVISION= 2 CATEGORIES= net security pear MAINTAINER= sunpoet@FreeBSD.org COMMENT= Radius client library for PHP WWW= https://pecl.php.net/package/radius \ https://github.com/LawnGnome/php-radius LICENSE= BSD3CLAUSE USES= php:pecl CONFIGURE_ARGS= --enable-radius -IGNORE_WITH_PHP=84 OPTIONS_DEFINE= EXAMPLES post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/net/pecl-radius/files/patch-php84 b/net/pecl-radius/files/patch-php84 new file mode 100644 index 000000000000..c9aaa61bc046 --- /dev/null +++ b/net/pecl-radius/files/patch-php84 @@ -0,0 +1,14 @@ +--- radlib_compat.h.orig 2016-02-15 15:11:50 UTC ++++ radlib_compat.h +@@ -39,7 +39,11 @@ any other GPL-like (LGPL, GPL2) License. + #endif + + #include "php.h" ++#if PHP_VERSION_ID >= 80400 ++#include "ext/random/php_random.h" ++#else + #include "ext/standard/php_rand.h" ++#endif + #include "ext/standard/php_standard.h" + + #define MPPE_KEY_LEN 16