Date: Tue, 12 Aug 2014 15:06:39 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r364710 - in head/www/mod_auth_xradius: . files Message-ID: <53ea2d80.69ae.4ebc7187@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Tue Aug 12 15:06:39 2014 New Revision: 364710 URL: http://svnweb.freebsd.org/changeset/ports/364710 QAT: https://qat.redports.org/buildarchive/r364710/ Log: Fix build with apache 2.4. Sponsored by: Absolight Added: head/www/mod_auth_xradius/files/ head/www/mod_auth_xradius/files/ap24-patch-src__xradius_cache.c (contents, props changed) Modified: head/www/mod_auth_xradius/Makefile Modified: head/www/mod_auth_xradius/Makefile ============================================================================== --- head/www/mod_auth_xradius/Makefile Tue Aug 12 15:05:00 2014 (r364709) +++ head/www/mod_auth_xradius/Makefile Tue Aug 12 15:06:39 2014 (r364710) @@ -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> Added: head/www/mod_auth_xradius/files/ap24-patch-src__xradius_cache.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/mod_auth_xradius/files/ap24-patch-src__xradius_cache.c Tue Aug 12 15:06:39 2014 (r364710) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53ea2d80.69ae.4ebc7187>