--- libapache-mod-frontpage-1.5.1.orig/Makefile +++ libapache-mod-frontpage-1.5.1/Makefile @@ -11,9 +11,9 @@ CFLAGS=-DLINUX=22 -DEAPI -DTARGET="apache" -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 # additional user defines, includes and libraries -DEF= -DFPEXEC_BIN=\\\"/usr/sbin/fpexec\\\" +DEF= -DFPEXEC_BIN=\\\"/usr/lib/apache/fpexec\\\" -DEF2= -DFP_HTTPD_USER=\"www\" \ +DEF2= -DFP_HTTPD_USER=\"www-data\" \ -DFP_UID_MIN=1000 \ -DFP_GID_MIN=1000 \ -DFP_LOG_EXEC=\"/var/log/apache/error.log\" \ @@ -42,11 +42,12 @@ # install the DSO file into the Apache installation # and activate it in the Apache configuration install: all - $(APXS) -i -a -n 'frontpage' mod_frontpage.so - /usr/bin/install fpexec /usr/sbin/fpexec - chown root.root /usr/sbin/fpexec - chmod 4711 /usr/sbin/fpexec - $(APACHECTL) restart +# $(APXS) -i -a -n 'frontpage' mod_frontpage.so + /usr/bin/install mod_frontpage.so ${DESTDIR}/usr/lib/apache/1.3 + /usr/bin/install fpexec ${DESTDIR}/usr/lib/apache/fpexec + chown root.root ${DESTDIR}/usr/lib/apache/fpexec + chmod 4711 ${DESTDIR}/usr/lib/apache/fpexec +# $(APACHECTL) restart # cleanup clean: --- libapache-mod-frontpage-1.5.1.orig/debian/changelog +++ libapache-mod-frontpage-1.5.1/debian/changelog @@ -0,0 +1,16 @@ +libapache-mod-frontpage (1.5.1-2) unstable; urgency=low + + * fpexec have to be setuid root + * the apache daemon should be run by www-data + + -- Hon Tue, 26 Jun 2001 02:04:32 +0800 + +libapache-mod-frontpage (1.5.1-1) unstable; urgency=low + + * Initial Release. + + -- Hon Sun, 24 Jun 2001 22:31:03 +0800 + +Local variables: +mode: debian-changelog +End: --- libapache-mod-frontpage-1.5.1.orig/debian/copyright +++ libapache-mod-frontpage-1.5.1/debian/copyright @@ -0,0 +1,8 @@ +This package was debianized by Hon on +Sun, 24 Jun 2001 22:31:03 +0800. + +It was downloaded from http://home.edo.uni-dortmund.de/~chripo + +Upstream Author(s): Christof Pohl + +Copyright (C) 2001 Christof Pohl --- libapache-mod-frontpage-1.5.1.orig/debian/dirs +++ libapache-mod-frontpage-1.5.1/debian/dirs @@ -0,0 +1,2 @@ +usr/lib/apache +usr/lib/apache/1.3 --- libapache-mod-frontpage-1.5.1.orig/debian/postinst +++ libapache-mod-frontpage-1.5.1/debian/postinst @@ -0,0 +1,98 @@ +#! /bin/sh +# postinst script for libapache-mod-dav +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + + +# DJ +# This function may enable our module. +enable () { + + [ -f /etc/apache/httpd.conf ] || exit 0 + if grep '^LoadModule.*mod_frontpage\.so' /etc/apache/httpd.conf 2>&1 >/dev/null + then + exit 0 + fi + echo -n "A new Apache module has been installed. Reconfigure apache [Y/n]? " + read CONFIG + if [ ".$CONFIG" = ".n" -o ".$CONFIG" = ".N" ] + then + exit 0 + fi + [ -x /usr/sbin/apacheconfig ] && /usr/sbin/apacheconfig --force-modules + exit 0 +} + +# Restart apache if user wants. +ask_restart () { + echo -n "An Apache module has been modified. Restart apache [Y/n]? " + read CONFIG + if [ ".$CONFIG" != ".n" -a ".$CONFIG" != ".N" ] + then + /usr/sbin/apachectl graceful + fi +} + + +case "$1" in + configure) + chmod 4755 /usr/lib/apache/fpexec + # Configure this package. If the package must prompt the user for + # information, do it here. There are three sub-cases. + : + if test "${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. + enable + : + elif test -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 enable the module! + enable + : + else + # Version $2 is the most recently configured version of this + # package. + ask_restart + : + fi ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- libapache-mod-frontpage-1.5.1.orig/debian/postrm +++ libapache-mod-frontpage-1.5.1/debian/postrm @@ -0,0 +1,59 @@ +#! /bin/sh +# postrm script for libapache-mod-dav +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/doc/packaging-manual/ + + +# DJ: function to comment us out in httpd.conf +killconf () { + tmpfile=/etc/apache/httpd.conf.tmp.$$ + sed $tmpfile + mv -f $tmpfile /etc/apache/httpd.conf + ask_restart +} + +# Restart apache if user wants. +ask_restart () { + echo -n "An Apache module has been modified. Restart apache [Y/n]? " + read CONFIG + if [ ".$CONFIG" != ".n" -a ".$CONFIG" != ".N" ] + then + /usr/sbin/apachectl graceful || true + fi +} + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + killconf +# update the menu system +# if [ -x /usr/bin/update-menus ]; then update-menus; fi + + ;; + + *) + echo "postrm called with unknown argument \`$1'" 1>&2 + exit 0 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + + --- libapache-mod-frontpage-1.5.1.orig/debian/prerm +++ libapache-mod-frontpage-1.5.1/debian/prerm @@ -0,0 +1,39 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +# DJ: function to comment us out in httpd.conf +killconf () { + if [ -f /etc/apache/httpd.conf ]; then + tmpfile=/etc/apache/httpd.conf.tmp.$$ + cat /etc/apache/httpd.conf |\ + sed 's/^(LoadModule.*mod_frontpage\.so)/#\1/' > $tmpfile + mv -f $tmpfile /etc/apache/httpd.conf + # Let the user restart when they want to. + # ask_restart + fi +} + +# Restart apache if user wants. +ask_restart () { + echo -n "An Apache module has been modified. Restart apache [Y/n]? " + read CONFIG || true + if [ ".$CONFIG" != ".n" -a ".$CONFIG" != ".N" ] + then + test -x /usr/sbin/apachectl && /usr/sbin/apachectl restart || true + fi +} + +case "$1" in + remove) + killconf ;; + upgrade | deconfigure | failed-upgrade) + : + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 1;; +esac + +exit 0 --- libapache-mod-frontpage-1.5.1.orig/debian/500mod_frontpage.info +++ libapache-mod-frontpage-1.5.1/debian/500mod_frontpage.info @@ -0,0 +1,5 @@ +LoadModule: frontpage_module /usr/lib/apache/1.3/mod_frontpage.so +Directives: + FrontPageEnable + FrontPageDisable +Description: FrontPage Server Extension Module --- libapache-mod-frontpage-1.5.1.orig/debian/control +++ libapache-mod-frontpage-1.5.1/debian/control @@ -0,0 +1,19 @@ +Source: libapache-mod-frontpage +Section: contrib/web +Priority: optional +Maintainer: Hon +Standards-Version: 3.0.1 + +Package: libapache-mod-frontpage +Architecture: any +Depends: apache-common (>=1.3.19-0), ${shlibs:Depends} +Description: FrontPage Server Extension for Apache + This package include the Improved mod_frontpage module. It replaces + the Apache-FP patches and module supplied with the Frontpage Server + Extensions available from Microsoft and Ready-to-Run Software. + . + Using this module allows you to use advanced features of the FrontPage + client with your Apache HTTP Server (e.g. creating Frontpage-extended + subwebs using the FrontPage client in contrast to creating them as + user "root" with "fpinstall.sh" or the "fpsrvadm.exe" utility on the + system's shell). --- libapache-mod-frontpage-1.5.1.orig/debian/rules +++ libapache-mod-frontpage-1.5.1/debian/rules @@ -0,0 +1,80 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=1 + +build: build-stamp +build-stamp: + dh_testdir + + + # Add here commands to compile the package. + #$(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install DESTDIR=`pwd`/debian/tmp + + cp debian/500mod_frontpage.info debian/tmp/usr/lib/apache/1.3 + chmod 644 debian/tmp/usr/lib/apache/1.3/mod_frontpage.so + chmod 644 debian/tmp/usr/lib/apache/1.3/500mod_frontpage.info + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron +# dh_installmanpages +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. + dh_suidregister +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libapache-mod-frontpage-1.5.1.orig/debian/docs +++ libapache-mod-frontpage-1.5.1/debian/docs @@ -0,0 +1,5 @@ +CHANGES +FEATURES +INSTALL +INSTALL.APXS +README \ No newline at end of file --- libapache-mod-frontpage-1.5.1.orig/README +++ libapache-mod-frontpage-1.5.1/README @@ -0,0 +1,132 @@ +///////////////////////////////////////////////////////////////////////////// +// Improved mod_frontpage // +// for Apache 1.3.19 // +// v1.5.1mdk - March 19, 2001 // +// Copyright (C) 2001 Christof Pohl // +// APXS install by Jean-Michel Dault . +It replaces the Apache-FP patches and module supplied with the FrontPage Server +Extensions available from Microsoft and Ready-to-Run +Software . + +Using this module allows you to use advanced features of the FrontPage client +with your Apache HTTP Server (e.g. creating FrontPage-extended subwebs using the +FrontPage client in contrast to creating them as user "root" with "fpinstall.sh" +or the "fpsrvadm.exe"-utility on the system's shell). + + +The FrontPage Server Extensions +------------------------------- + +The Microsoft FrontPage 2000 Server Extensions are a set of programs on a Web +server that support administering, authoring, and browsing a FrontPage-extended +Web site. For more information concerning the FrontPage Server Extensions have a +look at the Microsoft FrontPage Server Extensions Resource Kit +. + + +Advantages of Improved mod_frontpage +------------------------------------ + +General features of Improved mod_frontpage: + + * It works with the current version of Apache. + * It improves your site's security by enforcing additional checks to + ensure the FrontPage CGI programs can be run safely. + * It allows to use the FrontPage Server Extensions along with suEXEC (have + a look at the Apache documentation for more + information about suEXEC). + * It uses fewer system resources. + * Easy configuration with Apache's "configure" command. + * A detailed step-by-step installation guide for compiling and installing a + FrontPage-extended Apache HTTP Server is included. + * Per-Server configuration allows to select which of your (virtual) servers + are allowed to use the FrontPage Server Extensions. + * Compatible to the PHP Hypertext Preprocessor + versions 4.x and 3.x. + * Compatible to Ralf S. Engelschall's mod_ssl . + * Should be compatible with various other modules (e.g. mod_perl) available + for the Apache HTTP Server + + +Security enhancements of Improved mod_frontpage +----------------------------------------------- + +Instead of running the FrontPage CGI programs directly the Apache Web Server +will execute a "wrapper" called "fpEXEC". The fpEXEC wrapper implements +several security checks that must be passed before it really runs the +FrontPage CGI programs. For more information about fpEXEC and its security +checks, have a look at the Improved mod_frontpage features in file "FEATURES". + + +More about Improved mod_frontpage +--------------------------------- + +Head over to the FAQ and +have a look at the articles. Hopefully, your questions will be answered +there... :-) + + + +INSTALLATION +============ + +Please read the document INSTALL for information on how to compile and install +an Apache HTTP Server with Improved mod_frontpage. + + + +FAQ +=== + +You can find a list of frequently asked questions (FAQ) at + + + + +THANKS +====== + +Many thanks go to Gregory A. Lundberg for his +mod_frontpage-VR, which Improved mod_frontpage is based on. :-) + + + +DISCLAIMER +========== + +NO WARRANTIES. The author expressly disclaims any warranty for this code +and information. This code and information and any related documentation is +provided "as is" without warranty of any kind, either express or implied, +including, without limitation, the implied warranties or merchantability, +fitness for a particular purpose, or noninfringement. The entire risk +arising out of use or performance of this code and information remains with +you. + +NO LIABILITY FOR DAMAGES. In no event shall the author or his suppliers be +liable for any damages whatsoever (including, without limitation, damages +for loss of business profits, business interruption, loss of business +information, or any other pecuniary loss) arising out of the use of or +inability to use this product, even if the author has been advised of the +possibility of such damages. Because some states/jurisdictions do not allow +the exclusion or limitation of liability for consequential or incidental +damages, the above limitation may not apply to you. + +