-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
154 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
* Jun 01 2016 CloudFlare Inc <[email protected]> - 2016.6.0 | ||
- Set HTTPS envrionment variable for Flexible SSL reqquests | ||
|
||
* May 16 2016 CloudFlare Inc <[email protected]> - 2016.5.1 | ||
- Update CloudFlare IP ranges | ||
- Add EasyApache support | ||
- Update versioning scheme | ||
|
||
* Jul 07 2015 CloudFlare Inc <[email protected]> - 1.3.1 | ||
- Update CloudFlare IP ranges | ||
|
||
* Apr 15 2014 CloudFlare Inc <[email protected]> - 1.3.0 | ||
- Enable IPv6 support | ||
|
||
* Mar 20 2013 CloudFlare Inc <[email protected]> - 1.2.0 | ||
- Refactor for Apache 2.4, utilize autotools for RPM/DEB builds | ||
|
||
* Aug 30 2012 CloudFlare Inc <[email protected]> - 1.1.2 | ||
- Bugfix for intermittent segfaults under some conditions. | ||
- Pulled from remoteip codebase. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
srcdir = @srcdir@ | ||
|
||
DESTDIR = | ||
LIBEXECDIR = @LIBEXECDIR@ | ||
|
||
CPPFLAGS = @CPPFLAGS@ | ||
CFLAGS = @CFLAGS@ | ||
LDFLAGS = @LDFLAGS@ | ||
LDLIBS = @LDLIBS@ | ||
|
||
APXS = @APXS@ | ||
|
||
all : mod_cloudflare.la | ||
|
||
mod_cloudflare.la : mod_cloudflare.c | ||
$(APXS) -c $(CPPFLAGS) $(CFLAGS) $(srcdir)/mod_cloudflare.c $(LDFLAGS) $(LDLIBS) | ||
|
||
$(DESTDIR)$(LIBEXECDIR) : | ||
mkdir -p $@ | ||
|
||
install : all $(DESTDIR)$(LIBEXECDIR) | ||
$(APXS) -i -S LIBEXECDIR=$(DESTDIR)$(LIBEXECDIR) -n 'mod_cloudflare' $(srcdir)/mod_cloudflare.la | ||
|
||
clean : | ||
-rm -f $(srcdir)/.libs/* | ||
-rm -f $(srcdir)/*.o | ||
-rm -f $(srcdir)/*.lo | ||
-rm -f $(srcdir)/*.la | ||
-rm -f $(srcdir)/*.slo | ||
-rm -rf $(srcdir)/.libs | ||
-rm -rf autom4te.cache | ||
-rm -f config.log config.status | ||
|
||
distclean : clean | ||
-rm -f Makefile | ||
|
||
gitclean : distclean | ||
-rm -f configure src-package.tar.gz | ||
|
||
src-package: | ||
@tar cz *.c configure.ac Makefile.in LICENSE ChangeLog README VERSION > $@.tar.gz | ||
|
||
$(srcdir)/configure: configure.ac | ||
cd '$(srcdir)' && autoconf && ./configure | ||
|
||
Makefile: Makefile.in configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MAJOR=2016 | ||
MINOR=6 | ||
BUILD=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
dnl Process this file with autoconf to produce a configure script. | ||
|
||
AC_INIT(mod_cloudflare, m4_esyscmd([ ( VERSFILE="./VERSION"; if [ -d .git -a -x "$(which git)" -a -n "$(git describe --tags --always --dirty=-dev 2> /dev/null)" ]; then echo "$(git describe --tags --always --dirty=-dev 2> /dev/null )"; else if [ -f "$VERSFILE" ]; then . "$VERSFILE"; echo "${MAJOR}.${MINOR}.${BUILD}"; else echo "0.0.0"; fi; fi ) | tr -d '\n' ])) | ||
AC_CONFIG_SRCDIR([mod_cloudflare.c]) | ||
AC_PREREQ([2.53]) | ||
|
||
AC_CHECK_FUNCS([strrchr]) | ||
|
||
AC_ARG_WITH(apxs, AC_HELP_STRING([--with-apxs=NAME], | ||
[name of the apxs executable [[apxs]]]), | ||
[APXS="$with_apxs"]) | ||
|
||
if test -z "${APXS}"; then | ||
AC_PATH_PROGS(APXS, apxs2 apxs, [apxs], | ||
[$PATH:/usr/local/apache/bin:/usr/sbin]) | ||
fi | ||
|
||
AC_SUBST(APXS) | ||
|
||
AC_MSG_CHECKING(Apache version) | ||
HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`" | ||
HTTPD_INCLUDEDIR="`${APXS} -q INCLUDEDIR`" | ||
if test -x ${HTTPD}; then | ||
HTTPD_VERSION=`${HTTPD} -v | awk '/version/ {print $3}' \ | ||
| awk -F/ '{print $2}'` | ||
else | ||
if test -f ${HTTPD_INCLUDEDIR}/ap_release.h; then | ||
HTTPD_VERSION=`grep '^#define AP_SERVER_MAJORVERSION_NUMBER ' \ | ||
${HTTPD_INCLUDEDIR}/ap_release.h | sed -e \ | ||
's/^#define AP_SERVER_MAJORVERSION_NUMBER \([0-9]\).*/\1.X/'` | ||
else | ||
if test -f ${HTTPD_INCLUDEDIR}/httpd.h; then | ||
HTTPD_VERSION=`grep '^#define APACHE_RELEASE ' \ | ||
${HTTPD_INCLUDEDIR}/httpd.h | sed -e \ | ||
's/^#define APACHE_RELEASE \([0-9]\).*/\1.X/'` | ||
else | ||
HTTPD_VERSION="2.?" | ||
fi | ||
fi | ||
fi | ||
AC_MSG_RESULT($HTTPD_VERSION) | ||
|
||
CPPFLAGS="${CPPFLAGS}" | ||
CFLAGS="" | ||
LDFLAGS="${LDFLAGS}" | ||
LDLIBS="${LDLIBS}" | ||
|
||
AC_SUBST(CPPFLAGS) | ||
AC_SUBST(CFLAGS) | ||
AC_SUBST(LDFLAGS) | ||
AC_SUBST(LDLIBS) | ||
|
||
LIBEXECDIR="`${APXS} -q LIBEXECDIR`" | ||
AC_SUBST(LIBEXECDIR) | ||
|
||
HTTPD_MAJOR_VERSION=`echo ${HTTPD_VERSION} | sed -e 's/\..*//'` | ||
|
||
AC_OUTPUT([Makefile]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters