You are not logged in.
I built this after a bit of hacking about with sedding patch files to get it to build nicely without going after a mkdir.sh file which doesn't exist (whoever packaged apache, i'm looking at you!)
Anyway, here it is, only installs one file but hey, it's worth packaging
edit: oops, best have both md5s in there.
# Contributed by Paul "Winkie" Robins, paul at gamingmp.com
pkgname=mod_fastcgi
pkgver=2.4.2
pkgrel=1
pkgdesc="a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs."
url="http://www.fastcgi.com"
makedepends=('apache' 'sed' 'patch')
depends='apache'
source=("http://www.fastcgi.com/dist/$pkgname-$pkgver.tar.gz" "Makefile.patch")
md5sums=('e994414304b535cb99e10b7d1cad1d1e' 'a3071da5be9ca87b9aa181ea67577b35')
build() {
cd $startdir/src/$pkgname-$pkgver
cp Makefile.AP2 Makefile
sed "s,$startdir,$startdir," ../Makefile.patch| patch
make top_dir=/home/httpd/ || return 1
mkdir $startdir/pkg/usr $startdir/pkg/usr/lib $startdir/pkg/usr/lib/apache
make top_dir=/home/httpd/ install
}
Offline
edit: oops, best have both md5s in there.
... and even better to provide that patch
I'm not so good at reverse engeneering of md5sums ...
-neri
Offline
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Winkie wrote:edit: oops, best have both md5s in there.
... and even better to provide that patch
I'm not so good at reverse engeneering of md5sums ...-neri
Pff, I am, check this out:
[paul@nec1 mod_fastcgi]$ md5reverse a3071da5be9ca87b9aa181ea67577b35
--- Makefile 2002-07-29 02:36:34.000000000 +0100
+++ Makefile 2004-12-14 11:05:19.000000000 +0000
@@ -15,8 +15,9 @@
APACHECTL = apachectl
#DEFS=-Dmy_define=my_value
-#INCLUDES=-Imy/include/dir
+INCLUDES=-I/usr/include/apache
#LIBS=-Lmy/lib/dir -lmylib
+DESTDIR=$startdir/pkg
all: local-shared-build
I might note that I only found out about DESTDIR recently because i'm an idiot, pretty much all my old packages are probably useless now
Offline
could you provide a rundown on how to get fastcgi working?
I would really like to get ruby working under fastcgi..
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
could you provide a rundown on how to get fastcgi working?
I would really like to get ruby working under fastcgi..
Sure, static, dynamic or external?
Offline
cactus wrote:could you provide a rundown on how to get fastcgi working?
I would really like to get ruby working under fastcgi..Sure, static, dynamic or external?
*clueless look on face*
I honestly don't know a WHOLE lot about fastcgi. I was just intriuged by some of the reports on the speed of it. It does something like run an external "server" that processes the scripts right? I was also led to believe that there can be problems with sessions and stuff, as it is now an external process handling them, and all of the scripts are handled by the same instance.
Is this correct?
hmm..I might have to do some more studying on this...
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I honestly don't know a WHOLE lot about fastcgi. I was just intriuged by some of the reports on the speed of it. It does something like run an external "server" that processes the scripts right? I was also led to believe that there can be problems with sessions and stuff, as it is now an external process handling them, and all of the scripts are handled by the same instance.
Yeah, pretty much, it provides persistance and speed boost because of said persistance to CGI applications.
Your basic types are:
· Static
You define the server in the httpd config and it starts up an instance accordingly, if the instance dies it will be replaced.
· Dynamic
FastCGI applications are auto detected (Based on calls from the CGI script I assume) and dealt with accordingly
· External
Similar to static, but it is expected to be handled externally, so the HTTPD doesn't screw with it.
Some good documentation is available at www.fastcgi.com, i'm only talking about mod_fastcgi here of course.
Offline