ports

morpheus ports
git clone git://git.2f30.org/ports.git
Log | Files | Refs | LICENSE

commit 49ecc50304f3c0a51129710024b0c73a137f68d7
parent 0b1c3bf18a0130716b0e9147ab5a23dea1055d05
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat Jun 14 20:42:23 +0200

add fastcgi and fcgiwrap

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
fastcgi/checksums | 1+
fastcgi/depsinc.mk | 11+++++++++++
fastcgi/fastcgi.mk | 20++++++++++++++++++++
fastcgi/fcgi-2.4.0.patch | 11+++++++++++
fastcgi/mkfile | 9+++++++++
fastcgi/v.mk | 1+
fcgiwrap/checksums | 1+
fcgiwrap/fcgiwrap.mk | 24++++++++++++++++++++++++
fcgiwrap/mkfile | 6++++++
fcgiwrap/v.mk | 1+
10 files changed, 85 insertions(+), 0 deletions(-)
diff --git a/fastcgi/checksums b/fastcgi/checksums @@ -0,0 +1 @@ +38164d11112e834b30c6f809da4e184021e8d22ec8db2c49ad827895a75b99dc1824b94831304aa0ae1174176fe64d02a12882b1a00b780119600bdc39a90927 fcgi-2.4.0.tar.gz diff --git a/fastcgi/depsinc.mk b/fastcgi/depsinc.mk @@ -0,0 +1,11 @@ +<$fastcgi_DEPDIR/v.mk + +fastcgi_bindir = ${fastcgi_DEPDIR}/fcgi-$v/lib/bin +fastcgi_libdir = ${fastcgi_DEPDIR}/fcgi-$v/lib/lib +fastcgi_includedir = ${fastcgi_DEPDIR}/fcgi-$v/lib/include + +fastcgi_CFLAGS = -I${fastcgi_includedir} +fastcgi_LDFLAGS = -L${fastcgi_libdir} -lfcgi + +DEPS_CFLAGS = $DEPS_CFLAGS ${fastcgi_CFLAGS} +DEPS_LDFLAGS = $DEPS_LDFLAGS ${fastcgi_LDFLAGS} diff --git a/fastcgi/fastcgi.mk b/fastcgi/fastcgi.mk @@ -0,0 +1,20 @@ +TARG = fastcgi + +<$mkbuild/mk.common-noinst + +fastcgi:QV: + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + CC="$CC -static" ./configure \ + --prefix="$prefix" \ + --mandir="$ROOT/share/man" \ + --disable-shared \ + --enable-static + make -j$nprocs LDFLAGS="-all-static $LDFLAGS" + # install lib for use as a dependency. + make -j$nprocs install DESTDIR=`pwd`/lib + # remove .la files for now ? + find `pwd`/lib -iname "*.la" -exec rm {} \; + +install:QV: + make -j$nprocs install DESTDIR="$ROOT" diff --git a/fastcgi/fcgi-2.4.0.patch b/fastcgi/fcgi-2.4.0.patch @@ -0,0 +1,11 @@ +diff -Nru fcgi-2.4.0.orig/libfcgi/fcgio.cpp fcgi-2.4.0/libfcgi/fcgio.cpp +--- fcgi-2.4.0.orig/libfcgi/fcgio.cpp 2009-08-25 16:22:24.674699335 +0200 ++++ fcgi-2.4.0/libfcgi/fcgio.cpp 2009-08-25 16:22:53.374707538 +0200 +@@ -23,6 +23,7 @@ + #endif + + #include <limits.h> ++#include <cstdio> + #include "fcgio.h" + + using std::streambuf; diff --git a/fastcgi/mkfile b/fastcgi/mkfile @@ -0,0 +1,9 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = fcgi-$v +url = http://www.fastcgi.com/dist/fcgi-$v.tar.gz +mkfile = ../fastcgi.mk + +patches = \ + ../fcgi-2.4.0.patch diff --git a/fastcgi/v.mk b/fastcgi/v.mk @@ -0,0 +1 @@ +v = 2.4.0 diff --git a/fcgiwrap/checksums b/fcgiwrap/checksums @@ -0,0 +1 @@ +b8d35762d1d3c94a67602290b0092f0c38cffbbcd3dbc16597abf8b92172909b04450c238de2e430e841a17dd47fdd48d6a001f77539966980ef1af61e447ddc 1.1.0.tar.gz diff --git a/fcgiwrap/fcgiwrap.mk b/fcgiwrap/fcgiwrap.mk @@ -0,0 +1,24 @@ +TARG = fcgiwrap +DEPS = fastcgi + +INSTALL_BIN = fcgiwrap +INSTALL_MAN8 = fcgiwrap.8 + +BIN = fcgiwrap +OBJ = fcgiwrap.o + +<$mkbuild/mk.default + +<../v.mk + +LOCAL_CFLAGS = \ + -DPACKAGE_NAME=\"fcgiwrap\" \ + -DPACKAGE_VERSION=\"$v\" \ + -DPACKAGE_BUGREPORT=\"root@localdomain.pl\" + +LOCAL_LDFLAGS = + +$OBJ: config.h + +config.h: + touch config.h diff --git a/fcgiwrap/mkfile b/fcgiwrap/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = fcgiwrap-$v +url = https://github.com/gnosek/fcgiwrap/archive/$v.tar.gz +mkfile = ../fcgiwrap.mk diff --git a/fcgiwrap/v.mk b/fcgiwrap/v.mk @@ -0,0 +1 @@ +v = 1.1.0