1
0
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:
Mathieu Arnold 2014-08-12 15:06:39 +00:00
parent cc2002fab7
commit 2fb4e097ee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364710
2 changed files with 22 additions and 2 deletions

View File

@ -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>

View 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