summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-05-22 02:06:59 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-05-22 02:06:59 +0000
commit37c6c1bc6210348e63eab37b6465d7c6d44a96cf (patch)
treecdb50995bf2433431f8c2f6fb7de8dde11c8c983 /net-www/mod_fastcgi
parentChanged DEPEND to virtual/x11 (diff)
downloadhistorical-37c6c1bc6210348e63eab37b6465d7c6d44a96cf.tar.gz
historical-37c6c1bc6210348e63eab37b6465d7c6d44a96cf.tar.bz2
historical-37c6c1bc6210348e63eab37b6465d7c6d44a96cf.zip
new ebuild. bug #34213. Submitted by Oliver Graf <ograf@rz-online.net>.
Diffstat (limited to 'net-www/mod_fastcgi')
-rw-r--r--net-www/mod_fastcgi/ChangeLog10
-rw-r--r--net-www/mod_fastcgi/Manifest7
-rw-r--r--net-www/mod_fastcgi/files/20_mod_fastcgi.conf10
-rw-r--r--net-www/mod_fastcgi/files/Makefile-2.4.028
-rw-r--r--net-www/mod_fastcgi/files/digest-mod_fastcgi-2.4.21
-rw-r--r--net-www/mod_fastcgi/files/mod_fastcgi.conf4
-rw-r--r--net-www/mod_fastcgi/metadata.xml5
-rw-r--r--net-www/mod_fastcgi/mod_fastcgi-2.4.2.ebuild104
8 files changed, 169 insertions, 0 deletions
diff --git a/net-www/mod_fastcgi/ChangeLog b/net-www/mod_fastcgi/ChangeLog
new file mode 100644
index 000000000000..661b333b5ede
--- /dev/null
+++ b/net-www/mod_fastcgi/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-www/mod_fastcgi
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_fastcgi/ChangeLog,v 1.1 2004/05/22 02:06:59 robbat2 Exp $
+
+*mod_fastcgi-2.4.2 (21 May 2004)
+
+ 21 May 2004; Robin H. Johnson <robbat2@gentoo.org> mod_fastcgi-2.4.2.ebuild,
+ files/20_mod_fastcgi.conf, files/Makefile-2.4.0, files/mod_fastcgi.conf:
+ new ebuild. bug #34213. Submitted by Oliver Graf <ograf@rz-online.net>.
+
diff --git a/net-www/mod_fastcgi/Manifest b/net-www/mod_fastcgi/Manifest
new file mode 100644
index 000000000000..aa2749844ff9
--- /dev/null
+++ b/net-www/mod_fastcgi/Manifest
@@ -0,0 +1,7 @@
+MD5 44c85bf2e8acef5f334afa34652c833a mod_fastcgi-2.4.2.ebuild 2990
+MD5 bbaba45475c85f0d32b78db82708ca58 ChangeLog 483
+MD5 0c1ffc3eff281366ee07df94a66166e6 metadata.xml 160
+MD5 c28c5986e00f82855ecbd1887f1cd72b files/digest-mod_fastcgi-2.4.2 68
+MD5 f91641961f208de56af9e453c8cf414c files/20_mod_fastcgi.conf 221
+MD5 c23170cc7ce372ddfac2db066e88e406 files/mod_fastcgi.conf 86
+MD5 e243c356a4eb728bb4372c4f99296d37 files/Makefile-2.4.0 436
diff --git a/net-www/mod_fastcgi/files/20_mod_fastcgi.conf b/net-www/mod_fastcgi/files/20_mod_fastcgi.conf
new file mode 100644
index 000000000000..8807a37c237e
--- /dev/null
+++ b/net-www/mod_fastcgi/files/20_mod_fastcgi.conf
@@ -0,0 +1,10 @@
+<IfDefine FASTCGI>
+ <IfModule !mod_fastcgi.c>
+ LoadModule fastcgi_module extramodules/mod_fastcgi.so
+ </IfModule>
+
+ <IfModule mod_fastcgi.c>
+ AddHandler fastcgi-script .fcg
+ </IfModule>
+</IfDefine>
+# vim:ft=apache:
diff --git a/net-www/mod_fastcgi/files/Makefile-2.4.0 b/net-www/mod_fastcgi/files/Makefile-2.4.0
new file mode 100644
index 000000000000..5e24e51f716f
--- /dev/null
+++ b/net-www/mod_fastcgi/files/Makefile-2.4.0
@@ -0,0 +1,28 @@
+#
+# Makefile for Apache2
+#
+
+builddir = .
+
+top_dir = /usr/local/apache2
+
+top_srcdir = /usr/lib/apache2
+top_builddir = /usr/lib/apache2
+
+include ${top_builddir}/build/special.mk
+
+APXS = apxs2
+APACHECTL = apache2ctl
+INCLUDES = -I/usr/include/apache2
+
+#DEFS=-Dmy_define=my_value
+#INCLUDES=-Imy/include/dir
+#LIBS=-Lmy/lib/dir -lmylib
+
+all: local-shared-build
+
+install: install-modules
+
+clean:
+ -rm -f *.o *.lo *.slo *.la
+
diff --git a/net-www/mod_fastcgi/files/digest-mod_fastcgi-2.4.2 b/net-www/mod_fastcgi/files/digest-mod_fastcgi-2.4.2
new file mode 100644
index 000000000000..d611d25cd07f
--- /dev/null
+++ b/net-www/mod_fastcgi/files/digest-mod_fastcgi-2.4.2
@@ -0,0 +1 @@
+MD5 e994414304b535cb99e10b7d1cad1d1e mod_fastcgi-2.4.2.tar.gz 98295
diff --git a/net-www/mod_fastcgi/files/mod_fastcgi.conf b/net-www/mod_fastcgi/files/mod_fastcgi.conf
new file mode 100644
index 000000000000..228b07f01a78
--- /dev/null
+++ b/net-www/mod_fastcgi/files/mod_fastcgi.conf
@@ -0,0 +1,4 @@
+<IfModule mod_fastcgi.c>
+ AddHandler fastcgi-script .fcg
+</IfModule>
+# vim:ft=apache:
diff --git a/net-www/mod_fastcgi/metadata.xml b/net-www/mod_fastcgi/metadata.xml
new file mode 100644
index 000000000000..631fc921d87a
--- /dev/null
+++ b/net-www/mod_fastcgi/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-www</herd>
+</pkgmetadata>
diff --git a/net-www/mod_fastcgi/mod_fastcgi-2.4.2.ebuild b/net-www/mod_fastcgi/mod_fastcgi-2.4.2.ebuild
new file mode 100644
index 000000000000..581118e6d781
--- /dev/null
+++ b/net-www/mod_fastcgi/mod_fastcgi-2.4.2.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_fastcgi/mod_fastcgi-2.4.2.ebuild,v 1.1 2004/05/22 02:06:59 robbat2 Exp $
+
+DESCRIPTION="FastCGI is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs."
+KEYWORDS="~x86"
+
+detectapache() {
+ local domsg=
+ [ -n "$1" ] && domsg=1
+ HAVE_APACHE1=
+ HAVE_APACHE2=
+ has_version '=net-www/apache-1*' && HAVE_APACHE1=1
+ has_version '=net-www/apache-2*' && HAVE_APACHE2=1
+
+ [ -n "${HAVE_APACHE1}" ] && APACHEVER=1
+ [ -n "${HAVE_APACHE2}" ] && APACHEVER=2
+ [ -n "${HAVE_APACHE1}" ] && [ -n "${HAVE_APACHE2}" ] && APACHEVER='both'
+
+ case "${APACHEVER}" in
+ 1) [ -n "${domsg}" ] && einfo 'Apache1 only detected' ;;
+ 2) [ -n "${domsg}" ] && einfo 'Apache2 only detected';;
+ both)
+ if [ "`use apache2`" ]; then
+ [ -n "${domsg}" ] && einfo "Multiple Apache versions detected, using Apache2 (USE=apache2)"
+ APACHEVER=2
+ else
+ [ -n "${domsg}" ] && einfo 'Multiple Apache versions detected, using Apache1 (USE=-apache2)'
+ APACHEVER=1
+ fi ;;
+ *) if [ -n "${domsg}" ]; then
+ MSG="Unknown Apache version!"; eerror $MSG ; die $MSG
+ else
+ APACHEVER=0
+ fi; ;;
+ esac
+}
+
+detectapache
+
+SLOT="${APACHEVER}"
+[ "${APACHEVER}" -eq '2' ] && USE_APACHE2='2' || USE_APACHE2=''
+
+HOMEPAGE="http://fastcgi.com/"
+SRC_URI="http://fastcgi.com/dist/${P}.tar.gz"
+LICENSE="Apache-1.1"
+IUSE="apache2"
+DEPEND="net-www/apache
+ apache2? ( >=net-www/apache-2 )"
+
+src_unpack() {
+ cd ${WORKDIR}
+ unpack ${P}.tar.gz
+ cd ${S}
+ if [ "${APACHEVER}" -eq '2' ]; then
+ cp ${FILESDIR}/Makefile-2.4.0 Makefile
+ fi
+}
+
+src_compile() {
+ if [ "${APACHEVER}" -eq '2' ]; then
+ make || die "apache2 mod_scgi make failed"
+ else
+ /usr/sbin/apxs -o mod_fastcgi.so -c *.c || die "apache mod_scgi make failed"
+ fi
+}
+
+src_install() {
+ dodoc CHANGES README docs/LICENSE.TERMS docs/mod_fastcgi.html
+ if [ "${APACHEVER}" -eq '2' ]; then
+ exeinto /usr/lib/apache2-extramodules
+ doexe .libs/${PN}.so
+ insinto /etc/apache2/conf/modules.d
+ doins ${FILESDIR}/20_mod_fastcgi.conf
+ else
+ exeinto /usr/lib/apache-extramodules
+ doexe .libs/${PN}.so
+ insinto /etc/apache/conf/addon-modules
+ doins ${FILESDIR}/mod_fastcgi.conf
+ fi
+}
+
+pkg_postinst() {
+ if [ -n "${USE_APACHE2}" ] ; then
+ einfo "Add '-D FASTCGI' to your APACHE2_OPTS in /etc/conf.d/apache2"
+ else
+ einfo "1. Execute the command:"
+ einfo " \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\""
+ einfo "2. Edit /etc/conf.d/apache and add \"-D FASTCGI\" to APACHE_OPTS"
+ fi
+}
+
+pkg_config() {
+ if [ -n "${USE_APACHE2}" ] ; then
+ einfo "Add '-D FASTCGI' to your APACHE2_OPTS in /etc/conf.d/apache2"
+ else
+ ${ROOT}/usr/sbin/apacheaddmod \
+ ${ROOT}/etc/apache/conf/apache.conf \
+ extramodules/mod_fastcgi.so mod_fastcgi.c fastcgi_module \
+ before=perl define=FASTCGI addconf=conf/addon-modules/mod_fastcgi.conf
+ :;
+ fi
+}
+