mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Fix build with apache 2.4.
Sponsored by: Absolight
This commit is contained in:
parent
cc2002fab7
commit
2fb4e097ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364710
@ -12,10 +12,16 @@ MAINTAINER= mwlucas@FreeBSD.org
|
||||
COMMENT= Enables RADIUS authentication
|
||||
|
||||
|
||||
USE_APACHE= 22
|
||||
USE_APACHE= 22+
|
||||
USES= tar:bzip2
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
PLIST_FILES= ${APACHEMODDIR}/mod_auth_xradius.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${APACHE_VERSION} > 22
|
||||
EXTRA_PATCHES= ${PATCHDIR}/ap24-patch-src__xradius_cache.c
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
14
www/mod_auth_xradius/files/ap24-patch-src__xradius_cache.c
Normal file
14
www/mod_auth_xradius/files/ap24-patch-src__xradius_cache.c
Normal file
@ -0,0 +1,14 @@
|
||||
--- ./src/xradius_cache.c.orig 2005-04-27 08:49:25.000000000 +0200
|
||||
+++ ./src/xradius_cache.c 2014-08-12 11:56:22.000000000 +0200
|
||||
@@ -143,9 +143,9 @@
|
||||
/* Running as Root */
|
||||
if (geteuid() == 0) {
|
||||
/* Allow the configured Apache use to read/write to the DBM */
|
||||
- chown(path1, unixd_config.user_id, -1);
|
||||
+ chown(path1, ap_unixd_config.user_id, -1);
|
||||
if (path2 != NULL) {
|
||||
- chown(path2, unixd_config.user_id, -1);
|
||||
+ chown(path2, ap_unixd_config.user_id, -1);
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user