7024880 Move fastcgi to Userland
authorSrinivasa Sarva <srinivasa.sarva@oracle.com>
Tue, 08 Mar 2011 16:04:03 -0800
changeset 119 c1d2498bb363
parent 118 049f3b3d6903
child 120 ef1efc113f13
7024880 Move fastcgi to Userland
components/fastcgi/Makefile
components/fastcgi/SUNWfcgi.p5m
components/fastcgi/fcgi.license
components/fastcgi/fcgi.p5m
components/fastcgi/llib-lfcgi
make-rules/configure.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/fastcgi/Makefile	Tue Mar 08 16:04:03 2011 -0800
@@ -0,0 +1,70 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		fcgi
+COMPONENT_VERSION=	2.4.0
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH=	sha1:2329404159e8b8315e524b9eaf1de763202c6e6a
+COMPONENT_ARCHIVE_URL=	http://www.fastcgi.com/dist/$(COMPONENT_ARCHIVE)
+
+include ../../make-rules/prep.mk
+include ../../make-rules/configure.mk
+include ../../make-rules/ips.mk
+
+LIBNAME=        fcgi
+LINTOUT=        lint.out
+
+CONFIGURE_OPTIONS += --disable-static
+CONFIGURE_OPTIONS += --with-pic
+CONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/fastcgi
+CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
+CONFIGURE_OPTIONS += CXXFLAGS="$(CFLAGS)"
+
+PKG_PROTO_DIRS +=       $(COMPONENT_DIR)/$(COMPONENT_SRC)
+
+COMPONENT_POST_BUILD_ACTION = \
+         (cd $(@D); $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME) -I$(@D) \
+                        -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include \
+                        $(COMPONENT_DIR)/llib-lfcgi > $(LINTOUT) 2>&1)
+
+COMPONENT_POST_INSTALL_ACTION = \
+        (cd $(@D); $(INSTALL) llib-lfcgi.ln \
+                        $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)))
+
+# common targets
+build:     $(BUILD_32_and_64)
+
+install:        $(INSTALL_32_and_64)
+
+test:
+	@echo "no tests available"
+
+BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
+
+include ../../make-rules/depend.mk
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/fastcgi/SUNWfcgi.p5m	Tue Mar 08 16:04:03 2011 -0800
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+#
+# Legacy package information for renamed SUNWfcgi package
+#
+
+set name=pkg.fmri value=pkg:/[email protected],5.11-0.133
+set name=pkg.renamed value=true
+
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+depend fmri=library/[email protected] type=require
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/fastcgi/fcgi.license	Tue Mar 08 16:04:03 2011 -0800
@@ -0,0 +1,34 @@
+
+Copyright (c) 1995 Open Market, Inc.
+Copyright (c) 1996 Open Market, Inc.
+Copyright (c) 2000 Tux the Linux Penguin
+Copyright (c) 2001  Rob Saccoccio and Chelsea Networks
+
+This FastCGI application library source and object code (the
+"Software") and its documentation (the "Documentation") are
+copyrighted by Open Market, Inc ("Open Market").  The following terms
+apply to all files associated with the Software and Documentation
+unless explicitly disclaimed in individual files.
+
+Open Market permits you to use, copy, modify, distribute, and license
+this Software and the Documentation for any purpose, provided that
+existing copyright notices are retained in all copies and that this
+notice is included verbatim in any distributions.  No written
+agreement, license, or royalty fee is required for any of the
+authorized uses.  Modifications to this Software and Documentation may
+be copyrighted by their authors and need not follow the licensing
+terms described here.  If modifications to this Software and
+Documentation have new licensing terms, the new terms must be clearly
+indicated on the first page of each file where they apply.
+
+OPEN MARKET MAKES NO EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE
+SOFTWARE OR THE DOCUMENTATION, INCLUDING WITHOUT LIMITATION ANY
+WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  IN
+NO EVENT SHALL OPEN MARKET BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY
+DAMAGES ARISING FROM OR RELATING TO THIS SOFTWARE OR THE
+DOCUMENTATION, INCLUDING, WITHOUT LIMITATION, ANY INDIRECT, SPECIAL OR
+CONSEQUENTIAL DAMAGES OR SIMILAR DAMAGES, INCLUDING LOST PROFITS OR
+LOST DATA, EVEN IF OPEN MARKET HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.  THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS".
+OPEN MARKET HAS NO LIABILITY IN CONTRACT, TORT, NEGLIGENCE OR
+OTHERWISE ARISING OUT OF THIS SOFTWARE OR THE DOCUMENTATION.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/fastcgi/fcgi.p5m	Tue Mar 08 16:04:03 2011 -0800
@@ -0,0 +1,71 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+set name=pkg.fmri value=pkg:/library/fastcgi@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="FastCGI"
+set name=pkg.description value="FastCGI is a high-speed and scalable interface for communicating with the web server"
+set name=info.classification value="org.opensolaris.category.2008:Web Services/Application and Web Servers"
+set name=info.upstream_url value=http://www.fastcgi.com
+set name=info.source_url value=$(COMPONENT_ARCHIVE_URL)
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+dir path=usr
+dir path=usr/bin
+dir path=usr/bin/$(MACH64)
+dir path=usr/include
+dir path=usr/include/fastcgi
+dir path=usr/lib
+dir path=usr/lib/$(MACH64)
+dir path=usr/share
+dir path=usr/share/man
+dir path=usr/share/man/man1
+dir path=usr/share/man/man3
+file path=usr/lib/$(MACH64)/libfcgi.so.0.0.0
+file path=usr/lib/$(MACH64)/llib-lfcgi.ln
+file path=usr/lib/libfcgi.so.0.0.0
+file path=usr/lib/llib-lfcgi.ln
+file path=usr/include/fastcgi/fastcgi.h
+file path=usr/include/fastcgi/fcgi_config.h
+file path=usr/include/fastcgi/fcgi_stdio.h
+file path=usr/include/fastcgi/fcgiapp.h
+file path=usr/include/fastcgi/fcgimisc.h
+file path=usr/include/fastcgi/fcgio.h
+file path=usr/include/fastcgi/fcgios.h
+file llib-lfcgi path=usr/lib/llib-lfcgi
+file doc/cgi-fcgi.1 path=usr/share/man/man1/cgi-fcgi.1
+file doc/FCGI_Accept.3 path=usr/share/man/man3/FCGI_Accept.3
+file doc/FCGI_Finish.3 path=usr/share/man/man3/FCGI_Finish.3
+file doc/FCGI_SetExitStatus.3 path=usr/share/man/man3/FCGI_SetExitStatus.3
+file doc/FCGI_StartFilterData.3 path=usr/share/man/man3/FCGI_StartFilterData.3
+file path=usr/bin/$(MACH64)/cgi-fcgi
+file path=usr/bin/cgi-fcgi
+link path=usr/lib/libfcgi.so target=libfcgi.so.0.0.0
+link path=usr/lib/libfcgi.so.0 target=libfcgi.so.0.0.0
+link path=usr/lib/$(MACH64)/libfcgi.so.0 target=libfcgi.so.0.0.0
+link path=usr/lib/$(MACH64)/libfcgi.so target=libfcgi.so.0.0.0
+
+license fcgi.license license="FastCGI"
+
+legacy  pkg=SUNWfcgi \
+        name="FastCGI - fcgi Application Libraries (2.4.0)" \
+        desc="FastCGI is a high-speed and scalable interface for communicating with the web server (2.4.0)"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/fastcgi/llib-lfcgi	Tue Mar 08 16:04:03 2011 -0800
@@ -0,0 +1,34 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/* LINTLIBRARY */
+/* PROTOLIB1 */
+
+#include <fastcgi.h>
+#include <fcgi_stdio.h>
+#include <fcgiapp.h>
+#include <fcgimisc.h>
+#include <fcgios.h>
+#include <fcgi_config.h>
--- a/make-rules/configure.mk	Fri Mar 04 13:19:22 2011 -0800
+++ b/make-rules/configure.mk	Tue Mar 08 16:04:03 2011 -0800
@@ -61,6 +61,7 @@
 CONFIGURE_LOCALEDIR =	$(CONFIGURE_PREFIX)/share/locale
 # all texinfo documentation seems to go to /usr/share/info no matter what
 CONFIGURE_INFODIR =	/usr/share/info
+CONFIGURE_INCLUDEDIR =	/usr/include
 
 CONFIGURE_ENV = CONFIG_SHELL="$(CONFIG_SHELL)"