I have tried to compile www/mod_evasive. Errors:
Found on the net:
If you move or copy in the work/mod_evasive directory mod_evasive20.c to mod_evasive24.c. Change every appearance of "remote_ip" to "client_ip".
Changed Makefile to:
The only thing left is the line in httpd.conf had to be
because apache24 says:
(I didn't find the right identifier for evasive(24)_module) but the "thing" compiled and works.
Code:
mod_evasive20.c: In function 'access_checker':
mod_evasive20.c:142: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:146: error: 'conn_rec' has no member named 'remote_ip'
mod_evasive20.c:158: error: 'conn_rec' has no member named 'remote_ip'
.......
Found on the net:
If you move or copy in the work/mod_evasive directory mod_evasive20.c to mod_evasive24.c. Change every appearance of "remote_ip" to "client_ip".
Changed Makefile to:
Code:
USE_APACHE= 24
MODULENAME= ${PORTNAME}24
post-patch:
@${REINPLACE_CMD} -e "s|/bin/mail|/usr/bin/mail|g" \
${WRKSRC}/mod_evasive.c ${WRKSRC}/mod_evasive24.c \
${WRKSRC}/mod_evasiveNSAPI.c
The only thing left is the line in httpd.conf had to be
Code:
LoadModule evasive[B]20[/B]_module libexec/apache24/mod_evasive24.so
Code:
httpd: Syntax error on line 162 of /usr/local/etc/apache24/httpd.conf: Can't locate API module structure `evasive[B]24[/B]_module' in file /usr/local/libexec/apache24/mod_evasive24.so: Undefined symbol "evasive24_module"
(I didn't find the right identifier for evasive(24)_module) but the "thing" compiled and works.