From 6ca3655e7ea0c7724583f4ad35e78558323324bf Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 23 Apr 2014 14:54:27 +0000 Subject: [PATCH] Welcome mod_cloudflare to the tree. Unfortunately, Cloudflare doesn't seem to be handling release management of mod_cloudflare very well so for now we are pulling from their public Github repository and the version number will be 0.0.YYYYMMDD based on the date of the commit we're pulling. They don't commit updates very often, so this should be fine until they figure out their release process. --- www/Makefile | 1 + www/mod_cloudflare/Makefile | 27 +++++++++++++++++++++++++++ www/mod_cloudflare/distinfo | 2 ++ www/mod_cloudflare/pkg-descr | 6 ++++++ 4 files changed, 36 insertions(+) create mode 100644 www/mod_cloudflare/Makefile create mode 100644 www/mod_cloudflare/distinfo create mode 100644 www/mod_cloudflare/pkg-descr diff --git a/www/Makefile b/www/Makefile index d627bf82044b..7158988263d5 100644 --- a/www/Makefile +++ b/www/Makefile @@ -469,6 +469,7 @@ SUBDIR += mod_cfg_ldap SUBDIR += mod_chroot SUBDIR += mod_clamav + SUBDIR += mod_cloudflare SUBDIR += mod_cplusplus SUBDIR += mod_cvs2 SUBDIR += mod_dnssd diff --git a/www/mod_cloudflare/Makefile b/www/mod_cloudflare/Makefile new file mode 100644 index 000000000000..5dcfcc482a8c --- /dev/null +++ b/www/mod_cloudflare/Makefile @@ -0,0 +1,27 @@ +# Created by: Mark Felder +# $FreeBSD$ + +PORTNAME= mod_cloudflare +PORTVERSION= 0.0.20140409 +CATEGORIES= www +MASTER_SITES= GH + +MAINTAINER= feld@FreeBSD.org +COMMENT= Cloudflare fork of mod_remoteip + +LICENSE= APACHE20 + +USE_GITHUB= yes +GH_ACCOUNT= cloudflare +GH_PROJECT= mod_cloudflare +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= da8436d + +USE_APACHE= 22+ +AP_FAST_BUILD= yes +AP_GENPLIST= yes +SHORTMODNAME= cloudflare + +SRC_FILE= mod_cloudflare.c + +.include diff --git a/www/mod_cloudflare/distinfo b/www/mod_cloudflare/distinfo new file mode 100644 index 000000000000..046e3c7039bc --- /dev/null +++ b/www/mod_cloudflare/distinfo @@ -0,0 +1,2 @@ +SHA256 (mod_cloudflare-0.0.20140409.tar.gz) = 934fc0995334462436ea92a45df2c7dfab0fb790ae651396eee34a546cfee5ca +SIZE (mod_cloudflare-0.0.20140409.tar.gz) = 9969 diff --git a/www/mod_cloudflare/pkg-descr b/www/mod_cloudflare/pkg-descr new file mode 100644 index 000000000000..9a982070c2f5 --- /dev/null +++ b/www/mod_cloudflare/pkg-descr @@ -0,0 +1,6 @@ +Based on mod_remoteip.c, this Apache extension will replace the +remote_ip variable in user's logs with the correct remote IP sent from +CloudFlare. The module only performs the IP substitution for requests +originating from CloudFlare IPs by default. + +WWW: https://github.com/cloudflare/mod_cloudflare