You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2013/07/13 01:06:06 UTC

git commit: makefile to download lighttpd and compile the module

Updated Branches:
  refs/heads/master 910a4f8cf -> a7564eb4d


makefile to download lighttpd and compile the module


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/a7564eb4
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/a7564eb4
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/a7564eb4

Branch: refs/heads/master
Commit: a7564eb4d98806daa0c344b70b82aff10b766808
Parents: 910a4f8
Author: Bryan Call <bc...@apache.org>
Authored: Fri Jul 12 16:05:35 2013 -0700
Committer: Bryan Call <bc...@apache.org>
Committed: Fri Jul 12 16:05:35 2013 -0700

----------------------------------------------------------------------
 tools/lighttpd_mod_generator/Makefile | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a7564eb4/tools/lighttpd_mod_generator/Makefile
----------------------------------------------------------------------
diff --git a/tools/lighttpd_mod_generator/Makefile b/tools/lighttpd_mod_generator/Makefile
new file mode 100644
index 0000000..11c8dae
--- /dev/null
+++ b/tools/lighttpd_mod_generator/Makefile
@@ -0,0 +1,14 @@
+VERSION=1.4.30
+
+all: mod_generator.so
+
+lighttpd:
+	if [ ! -f lighttpd-$(VERSION).tar.bz2 ]; then wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-$(VERSION).tar.bz2; fi
+	if [ ! -d lighttpd-$(VERSION) ]; then tar xjf lighttpd-$(VERSION).tar.bz2; fi
+	cd lighttpd-$(VERSION); ./configure --prefix=/usr/local --without-bzip2
+	cd lighttpd-$(VERSION); gmake
+
+mod_generator.so: mod_generator.c lighttpd
+	gcc -shared -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/local/lib64\" -DSBIN_DIR=\"/usr/local/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MTmod_scgi.lo -MD -MP mod_generator.c  -fPIC -DPIC -I lighttpd-$(VERSION)/src/ -I lighttpd-$(VERSION)/ -o mod_generator.so
+
+	rm -rf lighttpd-$(VERSION).tar.bz2 lighttpd-$(VERSION) mod_generator.so