From 1f2830709d42c1e540dc8311030cd7897fd6583a Mon Sep 17 00:00:00 2001 From: sv Date: Thu, 13 Nov 2003 02:15:18 +0000 Subject: [PATCH] Added Debian build files, based on 2.4.0-2 mod_fastcgi package from Debian unstable --- debian/500mod_fastcgi.info | 16 +++++ debian/changelog | 155 +++++++++++++++++++++++++++++++++++++++++++++ debian/control | 18 ++++++ debian/copyright | 49 ++++++++++++++ debian/postinst | 107 +++++++++++++++++++++++++++++++ debian/prerm | 78 +++++++++++++++++++++++ debian/rules | 50 +++++++++++++++ 7 files changed, 473 insertions(+) create mode 100644 debian/500mod_fastcgi.info create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/postinst create mode 100644 debian/prerm create mode 100755 debian/rules diff --git a/debian/500mod_fastcgi.info b/debian/500mod_fastcgi.info new file mode 100644 index 0000000..32d2473 --- /dev/null +++ b/debian/500mod_fastcgi.info @@ -0,0 +1,16 @@ +LoadModule: fastcgi_module /usr/lib/apache/1.3/mod_fastcgi.so +Directives: + FastCgiServer + FastCgiConfig + FastCgiExternalServer + FastCgiIpcDir + FastCgiSuexec + FastCgiAuthenticator + FastCgiAuthenticatorAuthoritative + FastCgiAuthorizer + FastCgiAuthorizerAuthoritative + FastCgiAccessChecker + FastCgiAccessCheckerAuthoritative +Handles: + fastcgi-script +Description: Support for FastCGI diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5086118 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,155 @@ +libapache-mod-fastcgi (2.4.1) unstable; urgency=low + + * Debian builds adopted by upstream. See the CHANGES file for a + list of changes since the last release. Patches from the Debian + project most welcome :-) + + -- Sam Vilain Thu, 13 Nov 2003 02:00:37 +0000 + +libapache-mod-fastcgi (2.4.0-2) unstable; urgency=low + + * Removed a useless and buggy debian/postrm; closes: #181418. + + -- Davide Puricelli (evo) Wed, 19 Feb 2003 14:34:24 +0100 + +libapache-mod-fastcgi (2.4.0-1) unstable; urgency=low + + * New upstream version. + * Bumping Standards-Version to 3.5.8. + * Enhancing debian/postinst and debian/prerm scripts. + + -- Davide Puricelli (evo) Thu, 13 Feb 2003 14:21:57 +0100 + +libapache-mod-fastcgi (2.2.12-4) unstable; urgency=low + + * Fixed debian/rules (gah). + + -- Davide Puricelli (evo) Fri, 16 Aug 2002 14:45:48 +0200 + +libapache-mod-fastcgi (2.2.12-3) unstable; urgency=low + + * No longer links against (nonexistent) libdb.so.2. + + -- Davide Puricelli (evo) Fri, 16 Aug 2002 13:51:36 +0200 + +libapache-mod-fastcgi (2.2.12-2) unstable; urgency=low + + * Fixed -autoUpdate option, closes: #132981. + Patch provided by Freddy Spierenburg + + -- Davide Puricelli (evo) Sun, 17 Mar 2002 15:32:08 +0100 + +libapache-mod-fastcgi (2.2.12-1) unstable; urgency=low + + * New upstream version. + + -- Davide Puricelli (evo) Sun, 9 Dec 2001 21:07:42 +0000 + +libapache-mod-fastcgi (2.2.10-3) unstable; urgency=low + + * Now depends on apache-common 1.3.14-2. + + -- Davide Puricelli (evo) Thu, 7 Dec 2000 19:47:14 +0100 + +libapache-mod-fastcgi (2.2.10-2) unstable; urgency=low + + * Recompiled against apache-dev 1.3.14-1; closes: #78516, #78629. + + -- Davide Puricelli (evo) Sun, 3 Dec 2000 17:44:21 +0100 + +libapache-mod-fastcgi (2.2.10-1) unstable; urgency=low + + * New upstream version. + + -- Davide Puricelli (evo) Tue, 28 Nov 2000 19:40:33 +0100 + +libapache-mod-fastcgi (2.2.8-1) unstable; urgency=low + + * New upstream version. + + -- Davide Puricelli (evo) Mon, 28 Aug 2000 17:46:13 +0200 + +libapache-mod-fastcgi (2.2.6-2) unstable; urgency=low + + * Further fixed debian/postinst. + + -- Davide Puricelli (evo) Tue, 15 Aug 2000 12:06:59 +0200 + +libapache-mod-fastcgi (2.2.6-1) unstable; urgency=low + + * New upstream version. + * New maintainer email address. + + -- Davide Puricelli (evo) Sat, 12 Aug 2000 11:13:05 +0200 + +libapache-mod-fastcgi (2.2.4-2) unstable; urgency=low + + * Sponsored upload for Davide Puricelli (evo) . + * Build-Depends: apache, thanks to Christian T. Steigies. + * debian/postinst and debian/prerm should work fine with + apache-ssl; closes: #58590. + * Updated 500mod_fastcgi.info. + + -- Milan Zamazal Sun, 6 Aug 2000 17:32:42 +0200 + +libapache-mod-fastcgi (2.2.4-1) unstable; urgency=low + + * Sponsored upload for Davide Puricelli (evo) . + + -- Milan Zamazal Thu, 13 Jul 2000 22:18:12 +0200 + +libapache-mod-fastcgi (2.2.4-1) unstable; urgency=low + + * New maintainer. + * New upstream version. + * Build-Depends: apache-dev; closes: #59488. + + -- Davide Puricelli (evo) Wed, 21 Jun 2000 18:53:14 +0200 + +libapache-mod-fastcgi (2.2.2-2) unstable; urgency=low + + * Compiled for Apache 1.3.9; closes: #45272. + * FHS. + * Standards 3.0.1. + * No lintian 1.8.2 errors. + * Orphaned. + + -- Milan Zamazal Sun, 19 Sep 1999 11:28:28 +0200 + +libapache-mod-fastcgi (2.2.2-1) unstable; urgency=low + + * New upstream version. + * Compiled with egcs/glibc 2.1. + * Compiled for Apache 1.3.6; closes: #43499. + * debian/rules: get apxs from path again. + * debian/500mod_fastcgi.info: Handles, not Handlers. + * Compiled with -O2. + * No lintian 1.7 errors. + * Thanks to Mark Eichin for the fixes. + + -- Milan Zamazal Sat, 28 Aug 1999 11:16:03 +0200 + +libapache-mod-fastcgi (2.2.1-1) unstable; urgency=low + + * New upstream version. + * Install upstream changelog. + + -- Milan Zamazal Mon, 15 Mar 1999 11:26:11 +0100 + +libapache-mod-fastcgi (2.1b1-2) unstable; urgency=low + + * Depend on apache-common <<1.3.4; closes: #32505. + * Do not use wild cards in debian/docs. + + -- Milan Zamazal Mon, 8 Feb 1999 15:30:23 +0100 + +libapache-mod-fastcgi (2.1b1-1) unstable; urgency=low + + * Initial Release. + * Lintian 0.9.5 satisfied. + + -- Milan Zamazal Thu, 14 Jan 1999 12:16:50 +0100 + +Local variables: +mode: debian-changelog +End: diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d27ede4 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: libapache-mod-fastcgi +Section: non-free/web +Priority: optional +Maintainer: Sam Vilain +Standards-Version: 3.5.8.0 +Build-Depends: apache-dev (>= 1.3.0), debhelper (>> 3.0.0), lynx, libdb2-dev + +Package: libapache-mod-fastcgi +Architecture: any +Depends: apache-common (>= 1.3.0), ${shlibs:Depends} +Description: FastCGI module for Apache + This package contains a FastCGI module for the Apache (1.3) web + server. + . + FastCGI is an open standard for communicating between a web server + and a web application, supported by many free and closed source web + servers. It provides CGI-like functionality, without the need to + program to a particular server API. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..363314c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,49 @@ +This package was debianized by Davide Puricelli (evo) on +Sat, 3 Jun 2000 22:50:10 +0200. + +It was downloaded from http://www.fastcgi.com/ + +Copyright: + +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 solely for the purpose of +implementing the FastCGI specification defined by Open Market or +derivative specifications publicly endorsed by Open Market and +promulgated by an open standards organization and for no other +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, but the modified Software and Documentation must +be used for the sole purpose of implementing the FastCGI specification +defined by Open Market or derivative specifications publicly endorsed +by Open Market and promulgated by an open standards organization and +for no other purpose. If modifications to this Software and +Documentation have new licensing terms, the new terms must protect Open +Market's proprietary rights in the Software and Documentation to the +same extent as these licensing terms and must be clearly indicated on +the first page of each file where they apply. + +Open Market shall retain all right, title and interest in and to the +Software and Documentation, including without limitation all patent, +copyright, trade secret and other proprietary rights. + +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. diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..b586c55 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,107 @@ +#!/bin/bash +# vim: set ts=2 sw=2 et: + +set -e + +# These functions ask the user whether to reconfigure apache/apachessl. +do_enable () { + if [ -s /etc/apache/httpd.conf ] ; then + if grep '^LoadModule.*mod_fastcgi\.so' /etc/apache/httpd.conf 2>&1 >/dev/null + then + exit 0 + fi + fi + echo -n "A new Apache module has been installed. Reconfigure apache [Y/n]? " + read CONFIG + case "$CONFIG" in + [nN]*) # user said no + echo -n "" # do nothing + ;; + *) # user said yes + if [ -x /usr/sbin/apacheconfig ] ; then + /usr/sbin/apacheconfig --force-modules + fi + ;; + esac +} + +do_enablessl () { + if [ -s /etc/apache-ssl/httpd.conf ] ; then + if grep '^LoadModule.*mod_fastcgi\.so' /etc/apache-ssl/httpd.conf 2>&1 >/dev/null ; then + exit 0 + fi + fi + echo -n "A new Apache module has been installed. Reconfigure apache-ssl [Y/n]? " + read CONFIG + case "$CONFIG" in + [nN]*) # user said no + echo -n "" # do nothing + ;; + *) # user said yes + if [ -x /usr/sbin/apache-sslconfig ] ; then + /usr/sbin/apache-sslconfig --force-modules + fi + ;; + esac +} + +# These functions ask the user whether to restart apache/apachessl. +ask_restart () { + echo -n "An Apache module has been modified. Restart apache [Y/n]? " + read CONFIG + case "$CONFIG" in + [nN]*) # user said no + echo -n "" # do nothing + ;; + *) # user said yes + /usr/sbin/apachectl restart + ;; + esac +} +ask_restartssl () { + echo -n "An Apache module has been modified. Restart apache-ssl [Y/n]? " + read CONFIG + case "$CONFIG" in + [nN]*) # user said no + echo -n "" # do nothing + ;; + *) # user said yes + /usr/sbin/apache-sslctl restart + ;; + esac +} + +case "$1" in + configure) + # Configure this package. If the package must prompt the user for + # information, do it here. There are three sub-cases. + if [ "${2+set}" != "set" ] ; then + # We're being installed by an ancient dpkg which doesn't remember + # which version was most recently configured, or even whether + # there is a most recently configured version. + if [ -s /etc/apache/httpd.conf ] ; then do_enable ; fi + if [ -s /etc/apache-ssl/httpd.conf ] ; then do_enablessl ; fi + elif [ -z "$2" -o "$2" = "" ] ; then + # The package has not ever been configured on this system, or was + # purged since it was last configured. + # DJ: So let's do_enable the module! + if [ -s /etc/apache/httpd.conf ] ; then do_enable ; fi + if [ -s /etc/apache-ssl/httpd.conf ] ; then do_enablessl ; fi + else + # Version $2 is the most recently configured version of this + # package. + if [ -x /usr/sbin/apachectl ] ; then ask_restart ; fi + if [ -x /usr/sbin/apache-sslctl ] ; then ask_restartssl ; fi + fi + ;; + abort-upgrade | abort-remove | abort-deconfigure) + ;; + *) + echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 1 + ;; +esac + +exit 0 + +#DEBHELPER# diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..d9b9bcd --- /dev/null +++ b/debian/prerm @@ -0,0 +1,78 @@ +#!/bin/bash +# vim: set ts=2 sw=2 et: + +set -e + +# These functions comment out the LoadModule directive in httpd.conf +# for apache/apache-ssl. They also ask the user whether to restart +# apache/apache-ssl. +killconf () { + src=/etc/apache/httpd.conf + dst=/etc/apache/httpd.conf.tmp.$$ + if [ -s $src ] ; then + sed 's/^\(LoadModule.*mod_fastcgi\.so\)/# \1/' $src > $dst + mv -f $dst $src + ask_restart + fi +} +killconfssl () { + src=/etc/apache-ssl/httpd.conf + dst=/etc/apache-ssl/httpd.conf.tmp.$$ + if [ -s $src ] ; then + sed 's/^\(LoadModule.*mod_fastcgi\.so\)/# \1/' $src > $dst + mv -f $src $dst + ask_restartssl + fi +} + +# These functions ask the user whether to restart apache/apachessl. +ask_restart () { + echo -n "An Apache module has been modified. Restart apache [Y/n]? " + read CONFIG + if [ ".$CONFIG" != ".n" -a ".$CONFIG" != ".N" ] + then + if [ -x /usr/sbin/apachectl ]; then + /usr/sbin/apachectl restart || true + else + echo 'apachectl not found.' + fi + fi +} +ask_restartssl () { + echo -n "An Apache module has been modified. Restart apache-ssl [Y/n]? " + read CONFIG + if [ ".$CONFIG" != ".n" -a ".$CONFIG" != ".N" ] ; then + if [ -x /usr/sbin/apache-sslctl ]; then + /usr/sbin/apache-sslctl restart || true + else + echo 'apache-sslctl not found.' + fi + fi +} + +# This script is called twice during the removal of the package; once +# after the removal of the package's files from the system, and as +# the final step in the removal of this package, after the package's +# conffiles have been removed. + +case "$1" in + remove) + # This package has been removed, but its configuration has not yet + # been purged. + killconf + killconfssl + : + ;; + upgrade | deconfigure | failed-upgrade) + # I _think_ I'm right here...let it sit on an upgrade. + : + ;; + *) + echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 1 + ;; +esac + +exit 0 + +#DEBHELPER# diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8edbf37 --- /dev/null +++ b/debian/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f +CFLAGS = -O2 -Wall +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +INSTALL_PROGRAM += -s +endif + +binary: binary-indep binary-arch + +binary-indep: + +binary-arch: build install + dh_testdir + dh_testroot + #dh_installchangelogs CHANGES + dh_installdocs docs/mod_fastcgi.html CHANGES + dh_installdeb + dh_fixperms + dh_shlibdeps + dh_compress +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + dh_strip +endif + dh_md5sums + dh_gencontrol + dh_builddeb + +build: build-stamp +build-stamp: + dh_testdir + CFLAGS="$(CFLAGS)" /usr/bin/apxs -o mod_fastcgi.so -c *.c + touch build-stamp + +clean: + dh_testdir + rm -f build-stamp + -rm -f *.o mod_fastcgi.so + dh_clean build-stamp + +install: + dh_testdir + dh_installdirs + mkdir -p debian/tmp/usr/lib/apache/1.3 + cp mod_fastcgi.so debian/tmp/usr/lib/apache/1.3/ + chmod 644 debian/tmp/usr/lib/apache/1.3/mod_fastcgi.so + cp debian/500mod_fastcgi.info debian/tmp/usr/lib/apache/1.3/ + +.PHONY: binary binary-arch binary-indep clean build install -- 2.11.4.GIT