1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

www/p5-CGI-SpeedyCGI: Fix build with llvm16

- Replace deprecated @exec/@unexec with @postexec/@postunexec

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-06-25 23:41:37 +02:00
parent 2f038fd050
commit 063fe7a48e
2 changed files with 8 additions and 2 deletions

View File

@ -23,6 +23,12 @@ OPTIONS_SUB= yes
APACHE_USES= apache
APACHE_CONFIGURE_ENV_OFF= WITHOUT_APACHE=yes
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch:
@${REINPLACE_CMD} -e 's/__inline__//g' \
${WRKSRC}/src/speedy_inc.h

View File

@ -4,5 +4,5 @@ bin/speedy_dump
bin/speedy_suidperl
%%SITE_PERL%%/CGI/SpeedyCGI.pm
%%APACHE%%%%APACHEMODDIR%%/mod_speedycgi.so
%%APACHE%%@exec %D/sbin/apxs -e -a -n speedycgi %D/%F
%%APACHE%%@unexec %D/sbin/apxs -e -A -n speedycgi %D/%F
%%APACHE%%@postexec %D/sbin/apxs -e -a -n speedycgi %D/%F
%%APACHE%%@postunexec %D/sbin/apxs -e -A -n speedycgi %D/%F