Added mod_fastcgi-2.4.6 build template.

--HG--
extra : convert_revision : e4b26ebcf9db85c8576b98bef9d2c084fc19ce92
This commit is contained in:
Juan RP 2010-04-30 18:50:28 +02:00
parent 0602890682
commit 5c61d68797

View file

@ -0,0 +1,34 @@
# Template file for 'mod_fastcgi'
pkgname=mod_fastcgi
version=2.4.6
distfiles="http://www.fastcgi.com/dist/${pkgname}-${version}.tar.gz"
build_style=gnu_makefile
short_desc="Apache module to support the FastCGI protocol"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=a5a887eecc8fe13e4cb1cab4d140188a3d2b5e6f337f8a1cce88ca441ddbe689
long_desc="
This is a FastCGI module for the Apache 2.x web server. FastCGI is an open
standard for communicating between a web server and a long-running web
application. CGI scripts supporting FastCGI can be started as a daemon and
process multiple requests without restarting. This is particularly useful for
scripts written in languages like Perl, as it saves the cost of recompiling
the scripts and its loaded modules with each invocation."
Add_dependency run glibc
Add_dependency run apache
Add_dependency build apache-devel
pre_build()
{
mv ${wrksrc}/Makefile.AP2 ${wrksrc}/Makefile
sed -e "s|/usr/local/apache2|/usr/libexec/httpd|" \
-e "s|\(top_srcdir.*=\).*|\1 /usr/share/apache-httpd|" \
-e "s|\(top_builddir.*=\).*|\1 /usr/share/apache-httpd|" \
-i ${wrksrc}/Makefile
}
post_install()
{
install -D -m644 ${wrksrc}/docs/LICENSE.TERMS \
${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE
}