--- yaws-1.81.orig/debian/yaws.postrm +++ yaws-1.81/debian/yaws.postrm @@ -0,0 +1,60 @@ +#! /bin/sh +# postrm script for yaws +# +# 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/ + +case "$1" in + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + purge) + # Remove certificate and key, which were generated in postinst script + rm -f /etc/yaws/yaws-cert.pem 2>/dev/null + rm -f /etc/yaws/yaws-key.pem 2>/dev/null + + # Remove stale symlinks, which were created in postinst script + for f in localhost.conf localhost-ssl.conf ; do + if [ -h /etc/yaws/conf.d/$f ] && ! readlink -e /etc/yaws/conf.d/$f ; then + rm /etc/yaws/conf.d/$f + fi + done + + # Remove /etc/yaws/conf.d and /etc/yaws/ if they're empty + # (we won't remove user-created files) + (cd /etc && rmdir --parents --ignore-fail-on-non-empty yaws/conf.d) + + rm -f /etc/default/yaws 2>/dev/null + rm -rf /var/log/yaws 2>/dev/null + rm -rf /var/run/yaws 2>/dev/null + rm -rf /var/cache/yaws 2>/dev/null + + deluser yaws 2>/dev/null || true + delgroup yaws 2>/dev/null || true + ;; + + *) + echo "postrm 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 + --- yaws-1.81.orig/debian/changelog +++ yaws-1.81/debian/changelog @@ -0,0 +1,378 @@ +yaws (1.81-1) unstable; urgency=low + + * New upstrteam release which in particular fixes cleanup in man directory + (closes: #519655). + * Added zip and bzip2 to suggested dependencies as this would allow YAWS + to deliver zipped or bzipped contents in addition to gzipped one (tar and + gzip are required packages, so they always present). (closes: #512814). + * Added several TeXLive packages to build-dependencies to build Postscript + and PDF documentation which isn't prebuilt now. + + -- Sergei Golovan Sat, 14 Mar 2009 08:39:45 +0300 + +yaws (1.80-1) unstable; urgency=low + + * New upstream release. + + -- Sergei Golovan Mon, 16 Feb 2009 13:29:33 +0300 + +yaws (1.77-3) unstable; urgency=low + + * Fixed init.d script to wait until yaws daemon is actually started. + * Removed unnecessary displayed messages from yaws postinstall script. + + -- Sergei Golovan Sun, 21 Dec 2008 14:16:33 +0300 + +yaws (1.77-2) unstable; urgency=low + + * Removed unnecessary package grep-dctrl from build dependencies. + * Protected hostname -s and hostname -d calls in postinst script to prevent + its failure in case when hostname is incorrectly configured. It's harmless + to replace hostname by "localhost" because it's used only for generating + a reference SSL certificate which is to be replaced by a proper one. + + -- Sergei Golovan Fri, 29 Aug 2008 00:46:52 +0400 + +yaws (1.77-1) unstable; urgency=low + + * New upstream release. + * Bumped standards version to 3.8.0. + + -- Sergei Golovan Fri, 20 Jun 2008 09:55:41 +0400 + +yaws (1.76-4) unstable; urgency=low + + * Fixed bug with processing YAWS control file if it is parseable by + file:consult/1 but doesn't have a meaningful content. + + -- Sergei Golovan Sun, 08 Jun 2008 21:32:14 +0400 + +yaws (1.76-3) unstable; urgency=low + + * Added a patch which fixes typo in eacces error code. + * Catched error code 3 in YAWS init script when stopping the server. This + error code means that the server isn't running (closes: #483153). + + -- Sergei Golovan Tue, 27 May 2008 22:43:16 +0400 + +yaws (1.76-2) unstable; urgency=low + + * Added checks for error code 2 after quilt invocation which means that all + patches are already pushed/popped. This allows to convert the source + package to 3.0 (quilt) format (closes: #482713). + * Cleaned up debian/rules. + + -- Sergei Golovan Sun, 25 May 2008 13:14:53 +0400 + +yaws (1.76-1) unstable; urgency=low + + * New upstream release. + * Fixed build-dependencies (removed -1 suffix from erlang-dev version). + * Removed HOSTNAME variable from postinstall script because it might be + confused with bash environment variable. + * Added a patch which fixes two minor bugs in manpages. + + -- Sergei Golovan Fri, 04 Apr 2008 22:01:09 +0400 + +yaws (1.75-1) unstable; urgency=low + + * New upstream release. + * Added a requirement for $remote_fs into init.d script because YAWS needs + mounted /usr to run (closes: #464025). + * Removed empty directories /usr/lib/erlang/lib/yaws-*/examples/* from the + binary package. + * Overridden lintian warnings about empty directories /usr/lib/yaws/ebin + and /usr/lib/yaws/include. They are necessary for YAWS with default config + to start. + + -- Sergei Golovan Sun, 17 Feb 2008 17:21:35 +0300 + +yaws (1.74-2) unstable; urgency=low + + * Added a hack to build YAWS on hurd-i386 architecture. + * Bumped standards-version to 3.7.3. + + -- Sergei Golovan Fri, 04 Jan 2008 13:56:19 +0300 + +yaws (1.74-1) unstable; urgency=low + + * New upstream release. + + -- Sergei Golovan Sat, 29 Dec 2007 21:26:24 +0300 + +yaws (1.73-2) unstable; urgency=low + + * Remove /etc/mail/yaws-webmail.conf if it wasn't modified by a user when + upgrading from pre-split yaws package (version 1.66-1 or older). This + config file is moved to yaws-mail package and therefore isn't needed in + main package anymore (closes: #454962). + * Moved yaws pages cache from /var/run/yaws (which may be on a tmpfs) to + /var/cache/yaws and create /var/run/yaws in init.d script if necessary + (closes: #456300). + * Added Homepage field to debian control file. + + -- Sergei Golovan Sun, 16 Dec 2007 16:37:33 +0300 + +yaws (1.73-1) unstable; urgency=low + + * New upstream bugfix release. + * Removed patch which fixed SSL connections as it is included into upstream + distribution. + + -- Sergei Golovan Tue, 02 Oct 2007 19:10:52 +0400 + +yaws (1.72-1) unstable; urgency=low + + * New upstream release (fixes image files which were broken in 1.70 + release). + * Added patch by John Webb which fixes SSL connections to Yaws. + + -- Sergei Golovan Thu, 20 Sep 2007 15:51:36 +0400 + +yaws (1.70-1) unstable; urgency=low + + * New upstream release. + * Replaced deprecated ${Source-Version} substitution variable by + ${binary:Version} in debian control file. + * Rewritten clean target in debian/rules to ignore only missing Makefile + error (in fact, it is a missing include.mk error). + * Made clean-patched target in debian/rules depend on patch-stamp. + * Redefined HOME environment variable to fix Erlang compiler warnings in + case when HOME points to an existent inaccessible directory. + + -- Sergei Golovan Wed, 12 Sep 2007 21:43:35 +0400 + +yaws (1.68-5) unstable; urgency=low + + [ Sergei Golovan ] + * Fixed licence agreement in debian/copyright (closes: #440402). + * Added Sergei Golovan to uploaders list. + * Bumped debhelper compatibility level to 5. + + -- Sergei Golovan Sat, 01 Sep 2007 12:36:30 +0400 + +yaws (1.68-4) unstable; urgency=low + + [ Sergei Golovan ] + * Added dependency on erlang ABI virtual package. + * Relaxed dependency on erlang-dev (moved it to Suggests from Recommends). + * Added Yaws homepage to the package description. + * Added build-indep and build-arch targets to debian/rules. + + -- Torsten Werner Tue, 26 Jun 2007 19:49:46 +0400 + +yaws (1.68-3) unstable; urgency=low + + [ Sergei Golovan ] + * Fixed cleaning up after build (closes: #424093). + + -- Torsten Werner Thu, 17 May 2007 20:39:42 +0400 + +yaws (1.68-2) unstable; urgency=low + + [ Sergei Golovan ] + * Moved document roots away from /var/www. Yaws document root is now ar + /usr/share/yaws, yaws-chat and yaws-mail document roots are in + /usr/share/yaws-chat and yaws-mail respectively. Yaws-wiki requires write + access to its document root, so it is placed to /var/lib/yaws-wiki. + + -- Torsten Werner Mon, 07 May 2007 23:14:59 +0400 + +yaws (1.68-1) unstable; urgency=low + + [ Sergei Golovan ] + * New upstream release. + * Removed patch for multiple config files support (it's included in + upstream distribution). + * Removed patch, which added DESTDIR variable support, (it's included + in upstream distribution). + + -- Torsten Werner Fri, 09 Feb 2007 19:14:42 +0300 + +yaws (1.66-2) experimental; urgency=low + + [ Sergei Golovan ] + * Added patch and unpatch targets to debian/rules. + * Made clean target in debian/rules clean up yaws applications. + * Renamed and documented patches in debian/patches. + * Moved creating yaws user from preinst to postinst script as required + by Debian Policy. + * Split the package into five binary packages. Separated all + applications, supplied with Yaws (chat, mail, wiki, yapp) to their + own packages. + * Added patch to support multiple configs, rewritten Yaws config to + source all files in /etc/yaws/conf.d directory, making installing/ + removing applications/virtual hosts easier. + * Added emergency exits in debian/rules in case of errors inside for + loops (thanks to Christoph Berg for pointing out the problem). + * Strictened config directory permissions (thanks to Christoph Berg for + pointing out the problem). + * Replaced SSL certificates supplied with upstream tarball by generated + in postinst script. + + -- Torsten Werner Sat, 13 Jan 2007 19:08:09 +0300 + +yaws (1.66-1) experimental; urgency=low + + [ Torsten Werner ] + * Remove redundant Build-Depends because they are already fulfilled by + erlang-dev. + * Switched to erlang-depends. + * Refactored the package a bit by introducing dh_install. + * Fixed some dpatches. + * Switch from dpatch to quilt. + + [ Sergei Golovan ] + * New upstream release. + + -- Torsten Werner Fri, 15 Dec 2006 22:59:40 +0100 + +yaws (1.65-2) unstable; urgency=low + + [ Sergei Golovan ] + * Fixed shared-lib-without-dependency-information lintian warning + by explicitly linking setuid_drv.so to libc. + + -- Erlang Packagers Thu, 14 Sep 2006 22:42:00 +0400 + +yaws (1.65-1) unstable; urgency=low + + [ Sergei Golovan ] + * New upstream version. + * Moved Yaws applications to /usr/lib/yaws/ + directories, and moved applications' docroots to + /usr/lib/yaws//priv/docroot directories. Users, + who want to use these applications can copy or link docroots to + /var/www or whatever. + * Overridden image-file-in-usr-lib lintian warning. + * Added erlang-nox to Build-Depends because it is required to + build documentation for new yaws application yapp. + * Added LSB keyword section to init.d script. + * Removed patches which corrected including Yaws headers. They are + included to upstream. + * Added Yaws logo to the default web page. + + -- Erlang Packagers Wed, 13 Sep 2006 10:09:08 +0400 + +yaws (1.64-2) unstable; urgency=low + + [ Sergei Golovan ] + * Again use /etc/mime.types to build. + * Added versioned dependency on erlang. + + -- Erlang Packagers Sun, 23 Jul 2006 14:47:10 +0400 + +yaws (1.64-1) unstable; urgency=low + + [ Sergei Golovan ] + * New upstream version. + * Removed patches from yaws_cgi.erl and yaws_ctl.erl because they + are included in upstream. + * Added chat, mail, and wiki applications included into yaws + distribution. + * Added erlang-dev to Recommends section of debian/control (yaws + dynamic pages may require some development files in order to be + compiled in-place). + * Overrided lintian warning shared-lib-without-dependency-information + (the library setuid_drv.so is not to link binaries with it). + * Changed /etc/yaws/yaws.conf permissions to 600 because it may contain + authentication data. + + -- Erlang Packagers Fri, 14 Jul 2006 21:45:31 +0400 + +yaws (1.63-2) unstable; urgency=low + + * Fixed Maintainer address in debian/control. + + [ Sergei Golovan ] + * Added /usr/lib/yaws/ebin and /usr/lib/yaws/include to directory + list. + * Removed username option from yaws.conf since it isn't supported + anymore. + * Set environment variable SCRIPT_FILENAME to make php-cgi of + version 4.3.2 and above working. + * Added two new variable sto yaws.default. YAWS_USER allows to run yaws + from nonroot user. YAWS_ID specifies daemon id (instead of two + different places - yaws.conf and yaws.init) + * Moved configs to /etc/yaws directory. + * Create new user yaws during installation. + * Patched yaws_ctl.erl to fix insecure controlling of Yaws daemon. + + -- Erlang Packagers Thu, 06 Jul 2006 01:03:02 +0400 + +yaws (1.63-1) unstable; urgency=low + + * New upstream release + * New mainteners: Erlang Packagers. + + [ Francois-Denis Gonthier ] + * Closes: #366341. No longer depends on Erlang only. + * Closes: #356272. Cleans log on purge. + * Closes: #353189. We don't need to depend on erlang-src. In all cases + erlang-src is in the archive now so it's not longer a bug. + + [ Sergei Golovan ] + * Updated Build-Depends to use erlang 10.b.10. + * Moved yaws erlang binaries and includes from /usr/lib/yaws to + /usr/lib/erlang/lib/yaws-1.63. This makes yaws modules development + easier. + * Made yaws using /usr/lib/yaws as its application directory + instead of /usr/lib/yaws/examples. + * Removed yaws headers from /usr/lib/erlang/lib/yaws-1.63. They + duplicate the files in include subdir. + * Added two new options to yaws.conf. + * Added commented virtual host examples to yaws.conf. + * Added get-orig-source target to debian/rules. + + -- Erlang Packagers Tue, 20 Jun 2006 11:23:24 +0400 + +yaws (1.58-1.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/control: Removed the build dependency on erlang-src, which doesn't + exist. Added a build dependency on libpam0g-dev. Closes: #353189. + * debian/yaws.postrm: Added. Now removes /var/log/yaws on purge + (see policy 10.8, Log files, last paragraph). Closes: #356272. + + -- Lars Wirzenius Fri, 10 Mar 2006 18:35:58 +0000 + +yaws (1.58-1) unstable; urgency=low + + * New upstream release. + * Updated debhelper build dep. + + -- Will Newton Wed, 15 Feb 2006 20:28:08 +0000 + +yaws (1.57-1) unstable; urgency=low + + * New upstream release. + * Use /etc/mime.types for build. (Closes: #317557) + * Bumped standards version to 3.6.2. + + -- Will Newton Wed, 17 Aug 2005 19:33:58 +0100 + +yaws (1.56-1) unstable; urgency=low + + * New upstream version. + - Fixes source disclosure security issue. + + -- Will Newton Thu, 16 Jun 2005 17:37:07 +0100 + +yaws (1.55-2) unstable; urgency=low + + * Provide httpd-cgi. (Closes: #312911) + + -- Will Newton Sat, 11 Jun 2005 12:12:14 +0100 + +yaws (1.55-1) unstable; urgency=low + + * New upstream version. + + -- Will Newton Fri, 10 Jun 2005 16:02:30 +0100 + +yaws (1.54-1) unstable; urgency=low + + * Initial release (Closes: #211544) + + -- Will Newton Thu, 19 May 2005 20:55:25 +0100 + --- yaws-1.81.orig/debian/yaws-wiki.docs +++ yaws-1.81/debian/yaws-wiki.docs @@ -0,0 +1 @@ +applications/wiki/README --- yaws-1.81.orig/debian/yaws.dirs +++ yaws-1.81/debian/yaws.dirs @@ -0,0 +1,8 @@ +etc/yaws/conf.avail +etc/yaws/conf.d +usr/bin +usr/lib/yaws/ebin +usr/lib/yaws/include +usr/share/doc/yaws/examples +usr/share/lintian/overrides +usr/share/yaws --- yaws-1.81.orig/debian/yaws-application.postrm.in +++ yaws-1.81/debian/yaws-application.postrm.in @@ -0,0 +1,54 @@ +#! /bin/sh +# postrm script for yaws-@APPLICATION@ +# +# 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' +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove) + # Remove config symlink, which was created in postinst script + f=yaws-@APPLICATION@.conf + if [ -h /etc/yaws/conf.d/$f ] && (! readlink -e /etc/yaws/conf.d/$f || \ + [ "`readlink /etc/yaws/conf.d/$f`" = "../conf.avail/$f" ]) ; then + rm /etc/yaws/conf.d/$f + fi + + # Reload yaws configuration (for yet unknown reason, + # invoke-rc.d yaws reload doesn't work here, so restart). + if [ -x "/etc/init.d/yaws" ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d yaws restart || exit $? + else + /etc/init.d/yaws restart || exit $? + fi + fi + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm 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 + --- yaws-1.81.orig/debian/rules +++ yaws-1.81/debian/rules @@ -1,17 +1,27 @@ #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. -# GNU copyright 1997 to 1999 by Joey Hess. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +VSN=1.81 + +export HOME := $(CURDIR)/debian # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 - +export QUILT_PATCHES := debian/patches # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DESTDIR=$(CURDIR)/debian/yaws + +-include vsn.mk CFLAGS = -Wall -g @@ -20,88 +30,233 @@ else CFLAGS += -O2 endif -ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTALL_PROGRAM += -s + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + TYPE = debug endif -config.status: configure +patch: patch-stamp +patch-stamp: dh_testdir - # Add here commands to configure the package. - CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + quilt push -a || test $$? = 2 + touch patch-stamp +unpatch: patch-stamp + dh_testdir + quilt pop -a || test $$? = 2 + rm -rf .pc + rm -f patch-stamp -build: build-stamp - -build-stamp: config.status +config.status: patch-stamp configure dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" \ + ./configure --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --sysconfdir=/etc/yaws \ + --localstatedir=/var + ln -s . yaws - # Add here commands to compile the package. - $(MAKE) - #/usr/bin/docbook-to-man debian/yaws.sgml > yaws.1 - touch build-stamp +build: build-arch build-indep -clean: +build-arch: build-arch-stamp +build-arch-stamp: config.status dh_testdir - dh_testroot - rm -f build-stamp config.status + # + # Compile the package. + TYPE="$(TYPE)" $(MAKE) DLL_LIBS=-lc + $(MAKE) docs + # + touch build-arch-stamp - # Add here commands to clean up after the build process. - -$(MAKE) clean -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - cp -f /usr/share/misc/config.sub config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - cp -f /usr/share/misc/config.guess config.guess -endif +build-indep: build-indep-stamp +build-indep-stamp: config.status + dh_testdir + # + # Build applications included into yaws distribution + for appdir in applications/* ; do \ + (cd $$appdir ; \ + mkdir ebin ; \ + TYPE="$(TYPE)" $(MAKE) || exit 1) \ + done + # + touch build-indep-stamp +clean: clean-patched unpatch + dh_testdir + dh_testroot + dh_clean - dh_clean +clean-patched: patch-stamp + dh_testdir + dh_testroot + # + # Clean up applications included into yaws distribution + [ ! -f include.mk ] || \ + for appdir in applications/* ; do \ + (cd $$appdir ; \ + $(MAKE) clean || exit 1 ; \ + $(MAKE) cleandocs || exit 1) \ + done + # + # Clean up after the build process. + [ ! -f include.mk ] || $(MAKE) clean + [ ! -f include.mk ] || $(MAKE) conf_clean + # + rm -f build-*-stamp + rm -f yaws erl_crash.dump + rm -f debian/yaws-*.postinst debian/yaws-*.postrm -install: build +install-arch: build-arch dh_testdir dh_testroot dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/yaws. - $(MAKE) install prefix=$(CURDIR)/debian/yaws INSTALLPREFIX=$(CURDIR)/debian/yaws/usr DESTDIR=$(CURDIR)/debian/yaws + dh_installdirs -a + # + # Install the package into debian/yaws. + $(MAKE) install DESTDIR=$(DESTDIR) + # + # Fix permissions on examples + chmod a-x $(DESTDIR)/var/yaws/www/testdir/index.html + # + # Remove init script shipped with yaws + rm -rf $(DESTDIR)/etc/yaws/init.d + # + # Remove errant .xvpics directory + rm -rf $(DESTDIR)/var/yaws/www/.xvpics + # + # Remove duplicated headers + rm -f $(DESTDIR)/usr/lib/erlang/lib/yaws-$(YAWS_VSN)/*.hrl + # + # Remove useless empty files + find $(DESTDIR) -type f -name '.*' -print -exec rm -f \{\} \; + # + # Remove SSL certificates + rm -f $(DESTDIR)/etc/yaws/*.pem + # + # Move /var/yaws into the examples directory + mv $(DESTDIR)/var/yaws/* $(DESTDIR)/usr/share/doc/yaws/examples/ + rmdir $(DESTDIR)/var/yaws + # + # Remove empty directories + rm -rf $(DESTDIR)/usr/lib/erlang/lib/yaws-$(YAWS_VSN)/examples/ +install-indep: build-indep + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs -i + # + # Install applications (and READMEs) included into yaws distribution + # Application beams go to /usr/lib/yaws + # Other application files go to /usr/share/yaws-application/docroot + for appdir in applications/* ; do \ + (cd $$appdir ; \ + app=`basename $$appdir` ; \ + $(MAKE) install DESTDIR=$(DESTDIR)-$$app \ + EBININSTALLDIR=$(DESTDIR)-$$app/usr/lib/yaws/$$app/ebin \ + CHATINSTALLDIR=$(DESTDIR)-chat/usr/share/yaws-chat \ + MAILINSTALLDIR=$(DESTDIR)-mail/usr/share/yaws-mail \ + WIKIINSTALLDIR=$(DESTDIR)-wiki/var/lib/yaws-wiki || exit 1) \ + done + # + # Fix permissions of application files + for appdir in applications/* ; do \ + app=`basename $$appdir` ; \ + find $(DESTDIR)-$$app -type f -exec chmod a-x \{\} \; ; \ + done + # + # Remove useless empty files + for appdir in applications/* ; do \ + app=`basename $$appdir` ; \ + find $(DESTDIR)-$$app -type f -name '.*' -print -exec rm -f \{\} \; ; \ + done + # + # Generate postinst and postrm scripts for applications + for appdir in applications/* ; do \ + app=`basename $$appdir` ; \ + sed -e "s/@APPLICATION@/$$app/g" \ + debian/yaws-application.postinst.in >debian/yaws-$$app.postinst || exit 1; \ + sed -e "s/@APPLICATION@/$$app/g" \ + debian/yaws-application.postrm.in >debian/yaws-$$app.postrm || exit 1 ; \ + done # Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. +binary-indep: install-indep + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i ChangeLog + dh_installdocs -i + dh_installexamples -i + dh_install -i +# dh_installmenu -i +# dh_installdebconf -i +# dh_installlogrotate -i +# dh_installemacsen -i +# dh_installpam -i +# dh_installmime -i +# dh_installinit -i +# dh_installcron -i +# dh_installinfo -i + dh_installman -i + dh_link -i + dh_strip -i + dh_compress -i -X.erl -X.beam -X.yaws -X.pdf -X .ps + dh_fixperms -i +# dh_perl -i +# dh_python -i +# dh_makeshlibs -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i # Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs ChangeLog - dh_installdocs - dh_installexamples -# dh_install -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_installinit -# dh_installcron -# dh_installinfo - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms -# dh_perl -# dh_python -# dh_makeshlibs - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb +binary-arch: install-arch + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_installexamples -a + dh_install -a + install -m 644 debian/yaws.lintian-override \ + $(DESTDIR)/usr/share/lintian/overrides/yaws +# dh_installmenu -a +# dh_installdebconf -a +# dh_installlogrotate -a +# dh_installemacsen -a +# dh_installpam -a +# dh_installmime -a + dh_installinit -a +# dh_installcron -a +# dh_installinfo -a + dh_installman -a + dh_link -a + dh_strip -a + dh_compress -a -X.erl -X.beam -X.yaws -X.pdf -X.ps + dh_fixperms -a +# dh_perl -a +# dh_python -a +# dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a + erlang-depends + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-arch binary-indep + +get-orig-source: + wget -O - http://yaws.hyber.org/download/yaws-$(VSN).tar.gz | tar zx + tar zcf yaws_$(VSN).orig.tar.gz yaws-$(VSN) + rm -r yaws-$(VSN) + rm yaws -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: build build-indep build-arch clean binary-indep binary-arch binary \ + install-arch install-indep get-orig-source patch unpatch clean-patched --- yaws-1.81.orig/debian/yaws-yapp.docs +++ yaws-1.81/debian/yaws-yapp.docs @@ -0,0 +1 @@ +applications/yapp/README --- yaws-1.81.orig/debian/yaws-yapp.links +++ yaws-1.81/debian/yaws-yapp.links @@ -0,0 +1 @@ +usr/share/yaws-yapp usr/lib/yaws/yapp/priv/docroot --- yaws-1.81.orig/debian/yaws-yapp.install +++ yaws-1.81/debian/yaws-yapp.install @@ -0,0 +1 @@ +debian/conf/yaws-yapp.conf /etc/yaws/conf.avail/ --- yaws-1.81.orig/debian/yaws.preinst +++ yaws-1.81/debian/yaws.preinst @@ -0,0 +1,47 @@ +#! /bin/sh +# preinst script for yaws +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' + +case "$1" in + install) + ;; + + upgrade) + # Remove /etc/mail/yaws-webmail.conf if it isn't modified by user + if dpkg --compare-versions "$2" lt-nl "1.66-2" ; then + cf="/etc/mail/yaws-webmail.conf" + if [ -f $cf ] ; then + md5sumold=$(dpkg-query -W -f='${Conffiles}' yaws | grep $cf | awk '//{print $2}') + md5sumnew=$(md5sum $cf | awk '//{print $1}') + if [ "$md5sumold" = "$md5sumnew" ] ; then + rm -f $cf + fi + fi + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst 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 + --- yaws-1.81.orig/debian/yaws-chat.install +++ yaws-1.81/debian/yaws-chat.install @@ -0,0 +1 @@ +debian/conf/yaws-chat.conf /etc/yaws/conf.avail/ --- yaws-1.81.orig/debian/yaws.default +++ yaws-1.81/debian/yaws.default @@ -0,0 +1,21 @@ +# Defaults for yaws initscript +# sourced by /etc/init.d/yaws +# installed at /etc/default/yaws by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Default user which runs yaws web server. +# If you want yaws to listen privileged port 80, set it to root +# or install fd_server from http://jungerl.sourceforge.net/ +YAWS_USER=yaws + +# Default yaws daemon id (when it starts from init script). +# Put only alphanumeric symbols to the YAWS_ID variable. +YAWS_ID=debian_yaws + +# Additional options that are passed to the Daemon. +# -heart restarts the daemon if it crashes +DAEMON_OPTS="-heart" + --- yaws-1.81.orig/debian/yaws-chat.links +++ yaws-1.81/debian/yaws-chat.links @@ -0,0 +1 @@ +usr/share/yaws-chat usr/lib/yaws/chat/priv/docroot --- yaws-1.81.orig/debian/yaws.init +++ yaws-1.81/debian/yaws.init @@ -0,0 +1,110 @@ +#! /bin/sh +# +# Start/stop Yaws web server +# +# Written by Miquel van Smoorenburg . +# Modified for Debian by Ian Murdock . +# Modified for yaws #by Will Newton +# and Sergei Golovan + +### BEGIN INIT INFO +# Provides: yaws +# Required-Start: $remote_fs $network +# Required-Stop: $remote_fs $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts Yaws web server +# Description: Starts Yaws web server, a high perfomance +# HTTP 1.1 webserver written in Erlang. +### END INIT INFO + +set -e + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/yaws +NAME="yaws web server" +DESC=yaws +YAWS_USER=yaws +YAWS_ID=debian_yaws + +test -x $DAEMON || exit 0 + +# Include yaws defaults if available +if [ -f /etc/default/yaws ] ; then + . /etc/default/yaws +fi + +if [ ! -d /var/run/yaws ] ; then + install -o yaws -g yaws -m 750 -d /var/run/yaws +fi + +daemon() +{ + script="$DAEMON -I $YAWS_ID $@" + su $YAWS_USER -c "$script" +} + +start() +{ + daemon -D $DAEMON_OPTS + + cnt=0 + while ! (daemon -S >/dev/null || test $? = 3) ; do + echo -n . + cnt=`expr $cnt + 1` + if [ $cnt -ge 10 ] ; then + echo -n " failed" + break + fi + sleep 1 + done +} + +stop() +{ + daemon -s >/dev/null || test $? = 3 + + cnt=0 + while ! (daemon -S >/dev/null || test $? = 3) ; do + echo -n . + cnt=`expr $cnt + 1` + if [ $cnt -ge 10 ] ; then + echo -n " failed" + break + fi + sleep 1 + done +} + +case "$1" in + start) + echo -n "Starting $DESC: " + start + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + stop + echo "$NAME." + ;; + status) + daemon -S + ;; + reload|force-reload) + echo "Reloading $DESC configuration files." + daemon -h + ;; + restart) + echo -n "Restarting $DESC: " + stop + start + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|status|restart|reload|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- yaws-1.81.orig/debian/index.html +++ yaws-1.81/debian/index.html @@ -0,0 +1,31 @@ + + + +Test Page for Yaws Installation + + + +

If you can see this, it means that the installation of the Yaws web +server software on this system was successful. You may now add +content to this directory and replace this page.

+ +
+Yaws Logo +
+

Seeing this instead of the website you +expected?

+ +

This page is here because the site administrator has changed the +configuration of this web server. Please contact the person +responsible for maintaining this server with questions. +The Yaws web server software this site administrator is using has +nothing to do with maintaining this site and cannot help resolve +configuration issues.

+ + + + --- yaws-1.81.orig/debian/yaws.files +++ yaws-1.81/debian/yaws.files @@ -0,0 +1,4 @@ +usr/bin/* +usr/lib/erlang/* +usr/share/doc/yaws/* +usr/share/man/* --- yaws-1.81.orig/debian/watch +++ yaws-1.81/debian/watch @@ -0,0 +1,22 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to examine a Webpage +# +#http://www.example.com/downloads.php yaws-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/yaws-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/yaws-(.*)\.tar\.gz debian uupdate + +# Uncomment to use Roland's hack for sourceforge based projects - YMMV! +#http://people.debian.org/~lolando/sfdlr.php?project=yaws yaws-([\d.]*).tar.gz + +http://yaws.hyber.org/download/yaws-(.*)\.tar\.gz --- yaws-1.81.orig/debian/copyright +++ yaws-1.81/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by Will Newton on +Thu, 19 May 2005 20:55:25 +0100. + +It was downloaded from http://yaws.hyber.org/ + +Author: Claes Wikstrom + +Copyright (c) 2006, Claes Wikstrom, klacke@hyber.org +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of "Yaws" nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + --- yaws-1.81.orig/debian/yaws-mail.install +++ yaws-1.81/debian/yaws-mail.install @@ -0,0 +1 @@ +debian/conf/yaws-mail.conf /etc/yaws/conf.avail/ --- yaws-1.81.orig/debian/compat +++ yaws-1.81/debian/compat @@ -0,0 +1 @@ +5 --- yaws-1.81.orig/debian/yaws-mail.links +++ yaws-1.81/debian/yaws-mail.links @@ -0,0 +1 @@ +usr/share/yaws-mail usr/lib/yaws/mail/priv/docroot --- yaws-1.81.orig/debian/yaws-application.postinst.in +++ yaws-1.81/debian/yaws-application.postinst.in @@ -0,0 +1,66 @@ +#! /bin/sh +# postinst script for yaws-@APPLICATION@ +# +# 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'. + +case "$1" in + configure) + # Wiki requires write permissions, so give them to make wiki working + # out-of-the-box + if [ "@APPLICATION@" = "wiki" ] ; then + chown yaws:yaws /var/lib/yaws-@APPLICATION@ + fi + + # Create config symlink + f=yaws-@APPLICATION@.conf + if [ -f /etc/yaws/conf.avail/$f ] && [ ! -f /etc/yaws/conf.d/$f ] ; then + echo "Creating config symlink /etc/yaws/conf.d/$f" + ln -s ../conf.avail/$f /etc/yaws/conf.d/ + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# Reload yaws configuration (for yet unknown reason, invoke-rc.d yaws reload +# doesn't work here, so restart). +if [ -x "/etc/init.d/yaws" ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d yaws restart || exit $? + else + /etc/init.d/yaws restart || exit $? + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- yaws-1.81.orig/debian/yaws.install +++ yaws-1.81/debian/yaws.install @@ -0,0 +1,5 @@ +debian/conf/yaws.conf /etc/yaws/ +debian/conf/localhost.conf /etc/yaws/conf.avail/ +debian/conf/localhost-ssl.conf /etc/yaws/conf.avail/ +debian/index.html /usr/share/yaws/ +www/icons/yaws.gif /usr/share/yaws/ --- yaws-1.81.orig/debian/yaws.lintian-override +++ yaws-1.81/debian/yaws.lintian-override @@ -0,0 +1,2 @@ +yaws: package-contains-empty-directory usr/lib/yaws/ebin/ +yaws: package-contains-empty-directory usr/lib/yaws/include/ --- yaws-1.81.orig/debian/yaws-wiki.install +++ yaws-1.81/debian/yaws-wiki.install @@ -0,0 +1 @@ +debian/conf/yaws-wiki.conf /etc/yaws/conf.avail/ --- yaws-1.81.orig/debian/yaws-wiki.links +++ yaws-1.81/debian/yaws-wiki.links @@ -0,0 +1,2 @@ +var/lib/yaws-wiki usr/lib/yaws/wiki/priv/docroot +var/lib/yaws-wiki usr/share/yaws-wiki --- yaws-1.81.orig/debian/control +++ yaws-1.81/debian/control @@ -0,0 +1,63 @@ +Source: yaws +Section: web +Priority: optional +Maintainer: Erlang Packagers +Uploaders: Torsten Werner , Sergei Golovan +Build-Depends: debhelper (>= 5.0.0), autotools-dev, + erlang-dev (>= 1:11.b.2), erlang-nox, mime-support, libpam0g-dev, + texlive-latex-base, texlive-latex-recommended, texlive-fonts-recommended, + texlive-extra-utils, ghostscript, quilt +Standards-Version: 3.8.0 +Homepage: http://yaws.hyber.org/ + +Package: yaws +Architecture: any +Provides: httpd, httpd-cgi +Depends: ${erlang-nox:Depends}, ${erlang-abi:Depends}, adduser, openssl, ${shlibs:Depends}, ${misc:Depends} +Suggests: ${erlang-dev:Depends}, yaws-chat, yaws-mail, yaws-wiki, yaws-yapp, zip, bzip2 +Description: High performance HTTP 1.1 webserver written in Erlang + Yaws is a high performance HTTP 1.1 webserver written in Erlang. It is a + multithreaded webserver where one Erlang light weight process is used to + handle each client. Two separate modes of operation are supported. + . + Standalone mode where Yaws runs as a regular webserver daemon. This is the + default mode. + . + Embedded mode where Yaws runs as an embedded webserver in another Erlang + application. + . + The main advantages of yaws compared to other Web technologies are + performance and elegance. The performance comes from the underlying Erlang + system and its ability to handle concurrent processes in an efficent way. + Its elegance comes from Erlang as well. Web applications don't have to be + written in ugly adhoc languages. + +Package: yaws-chat +Architecture: all +Depends: yaws (>= ${binary:Version}), yaws (<< ${binary:Version}.0) +Description: Chat application for Yaws web server + Yaws-chat allows to create a very simple web-based chatroom. + +Package: yaws-mail +Architecture: all +Depends: yaws (>= ${binary:Version}), yaws (<< ${binary:Version}.0) +Description: Webmail application for Yaws web server + Yaws-mail is a small stateless webmail application. It requires + SMTP and POP3 servers to operate and does not store email locally. + +Package: yaws-wiki +Architecture: all +Depends: yaws (>= ${binary:Version}), yaws (<< ${binary:Version}.0) +Description: Wiki application for Yaws web server + Yaws-wiki is a small wiki application, written in Erlang for Yaws + web server. + +Package: yaws-yapp +Architecture: all +Depends: yaws (>= ${binary:Version}), yaws (<< ${binary:Version}.0) +Description: An easy way to deploy applications for Yaws web server + Yaws-yapp (Yaws application handler) is a helper application. + It takes care of adding, and removing, the applications into a running + server. When anyone access the server with an URL that matches the path + for an added application, the docroot will be temporarily switched + to where the web pages for that application are located. --- yaws-1.81.orig/debian/yaws.prerm +++ yaws-1.81/debian/yaws.prerm @@ -0,0 +1,31 @@ +#! /bin/sh +# prerm script for yaws +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure|failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 + --- yaws-1.81.orig/debian/yaws-mail.docs +++ yaws-1.81/debian/yaws-mail.docs @@ -0,0 +1,2 @@ +applications/mail/README +applications/mail/TODO --- yaws-1.81.orig/debian/yaws.postinst +++ yaws-1.81/debian/yaws.postinst @@ -0,0 +1,105 @@ +#! /bin/sh +# postinst script for yaws +# +# 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'. + +case "$1" in + configure) + # Create yaws user + adduser --quiet --system --shell /bin/sh --group --home /var/cache/yaws yaws + # Moving home directory if it's still in /var/run + usermod --home /var/cache/yaws --move-home yaws >/dev/null 2>/dev/null + + # Fixing config directory permissions + chown root:yaws /etc/yaws + chmod 750 /etc/yaws + + # Yaws configs may contain sensitive information (passwords) + chown root:yaws /etc/yaws/yaws.conf + chmod 640 /etc/yaws/yaws.conf + + chown -R root:yaws /etc/yaws/conf.avail + chmod 640 /etc/yaws/conf.avail/* + + # Create config symlinks + # Do it only if it's a fresh install or upgrade from version + # less than 1.66-2 (which is the first version with multiple + # configs), allowing admin to safely remove it. + + if dpkg --compare-versions "$2" lt "1.66-2" ; then + for f in localhost.conf localhost-ssl.conf ; do + if [ ! -f /etc/yaws/conf.d/$f ] ; then + echo "Creating config symlink /etc/yaws/conf.d/$f" + ln -s ../conf.avail/$f /etc/yaws/conf.d/ + fi + done + fi + + # Making /etc/yaws/yaws-cert.pem and /etc/yaws/yaws-key.pem + # if they do not exist. + ( cd /etc/yaws + if [ ! -f yaws-cert.pem ] || [ ! -f yaws-key.pem ] ; then + HOST=$(hostname -s 2>/dev/null || echo localhost) + DOMAIN=$(hostname -d 2>/dev/null || echo localdomain) + openssl req -new -x509 -days 365 -nodes \ + -out yaws-cert.pem \ + -keyout yaws-key.pem > /dev/null 2>&1 <<+++ +. +. +. +$DOMAIN +$HOST +localhost +root@$HOST.$DOMAIN ++++ + echo "Created /etc/yaws/yaws-cert.pem and /etc/yaws/yaws-key.pem for localhost ONLY" + fi ) + + # Make yaws certificates readable only by the server + chown root:yaws /etc/yaws/*.pem + chmod 640 /etc/yaws/*.pem + + # Only user yaws and root are allowed to create + # yaws control files + chown -R yaws:yaws /var/cache/yaws + chmod 750 /var/cache/yaws + + install -o yaws -g yaws -m 750 -d /var/run/yaws + install -o yaws -g adm -m 750 -d /var/log/yaws + ;; + + 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 + --- yaws-1.81.orig/debian/patches/clean.diff +++ yaws-1.81/debian/patches/clean.diff @@ -0,0 +1,44 @@ +Patch fixes cleaning up after build process. + +--- yaws-1.80.orig/Makefile ++++ yaws-1.80/Makefile +@@ -36,6 +36,7 @@ + + conf_clean: + -rm include.mk config.cache config.status config.log 2> /dev/null ++ -rm test/support/include.mk test/support/include.sh $(PKGCONFIG_FILES) 2> /dev/null + + local_install: all + (cd scripts && $(MAKE) local_install) +--- yaws-1.80.orig/doc/Makefile ++++ yaws-1.80/doc/Makefile +@@ -28,6 +28,7 @@ + + clean: + rm -f *.ps *.dvi *.log *.aux *.pdf *.toc *.beam 2> /dev/null || true ++ rm -f *.out ../www/yaws.ps ../www/yaws.pdf 2> /dev/null || true + + install: + -install -d $(DESTDIR)$(PREFIX)/share/doc/yaws-$(YAWS_VSN) +--- yaws-1.80.orig/applications/wiki/scripts/Makefile ++++ yaws-1.80/applications/wiki/scripts/Makefile +@@ -27,7 +27,7 @@ + chmod +x $@ + + clean: +- rm importFiles getPassword updateWiki ++ rm -f $(SCRIPTS) + + + install: +--- yaws-1.80.orig/applications/yapp/Makefile ++++ yaws-1.80/applications/yapp/Makefile +@@ -21,7 +21,7 @@ + $(ERL) -noshell -run edoc_run application "'$(APPNAME)'" '"."' '$(DOC_OPTS)' -s init stop + + cleandocs: +- rm -rf doc/*.html doc/edoc-info doc/stylesheet.css ++ rm -rf doc/*.html doc/edoc-info doc/stylesheet.css doc/*.png + + install: all docs + $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/$(APPNAME)/ebin --- yaws-1.81.orig/debian/patches/ctl.diff +++ yaws-1.81/debian/patches/ctl.diff @@ -0,0 +1,28 @@ +Patch adds processing the case when ctlfile is parsable but its +content is invalid. + +--- yaws-1.80.orig/src/yaws_ctl.erl ++++ yaws-1.80/src/yaws_ctl.erl +@@ -314,6 +314,8 @@ + Err -> + Err + end; ++ {ok, Terms} -> ++ {error, {content, Terms}}; + Err -> + Err + end. +@@ -334,6 +336,13 @@ + io:format("No yaws system responds~n",[]), + timer:sleep(10), + erlang:halt(2); ++ {error, {content,Terms}} -> ++ io:format("The ctlfile ~s is readable but its content~n" ++ "~p~n" ++ "isn't in YAWS control file format~n", ++ [yaws:ctl_file(SID),Terms]), ++ timer:sleep(10), ++ erlang:halt(2); + {error, Reason} -> + io:format("You failed to read the ctlfile ~s~n" + "error was: <~p>~n" --- yaws-1.81.orig/debian/patches/man.diff +++ yaws-1.81/debian/patches/man.diff @@ -0,0 +1,40 @@ +Patch fixes erros in yaws manual pages. + +--- yaws-1.80.orig/man/yaws.conf.5 ++++ yaws-1.80/man/yaws.conf.5 +@@ -194,11 +194,11 @@ + Yaws can virthost several webservers on the same ip address as well + as several webservers on different ip addresses. The on limitation here is + that there can be only one server with ssl enabled per each individual ip address. +-.pp ++.PP + Each virtual host is defined within a matching pair of \fB\fR + and \fB\fR. The ServerName will be the name of the webserver. + +-.pp ++.PP + The following directives are allowed inside a server definition. + .TP + \fBport = Port \fR +@@ -530,7 +530,7 @@ + + .fi + +-.pp ++.PP + And this example shows a similar setup but two webservers on the same ip address + + .nf +--- yaws-1.80.orig/man/yaws_api.5 ++++ yaws-1.80/man/yaws_api.5 +@@ -197,8 +197,8 @@ + from a process. The other process can call this function to deliver + these chunks. It requires the \fBout/1\fR function to return the + value \fB{streamcontent, MimeType, FirstChunk}\fR to work. +-YawsPid is the process identifier of the yaws process delivering the original +-.yaws file. That is self() in the yaws code. ++YawsPid is the process identifier of the yaws process delivering the ++original .yaws file. That is self() in the yaws code. + The Pid must typically be passed (somehow) to the producer of the stream. + + .TP --- yaws-1.81.orig/debian/patches/docs.diff +++ yaws-1.81/debian/patches/docs.diff @@ -0,0 +1,14 @@ +Patch removes dependency om non-free latex2html package when building +docs. + +--- yaws-1.81.orig/doc/yaws.tex ++++ yaws-1.81/doc/yaws.tex +@@ -44,7 +44,7 @@ + + \usepackage[T1]{fontenc} + \usepackage{xspace} +-\usepackage{html} ++%\usepackage{html} + + \makeatother + \begin{document} --- yaws-1.81.orig/debian/patches/installdocs.diff +++ yaws-1.81/debian/patches/installdocs.diff @@ -0,0 +1,15 @@ +Patch makes docs installing into /usr/share/docs/yaws (without +yaws version number in directory name, see section 12.3 of +Debian Policy Manual). + +--- yaws-1.80.orig/doc/Makefile ++++ yaws-1.80/doc/Makefile +@@ -30,6 +30,5 @@ + rm -f *.ps *.dvi *.log *.aux *.toc *.beam 2> /dev/null || true + + install: +- -install -d $(DESTDIR)$(PREFIX)/share/doc/yaws-$(YAWS_VSN) +- -cp yaws.pdf $(DESTDIR)$(PREFIX)/share/doc/yaws-$(YAWS_VSN) +- ++ -install -d $(DESTDIR)$(PREFIX)/share/doc/yaws ++ -cp yaws.pdf $(DESTDIR)$(PREFIX)/share/doc/yaws --- yaws-1.81.orig/debian/patches/install.diff +++ yaws-1.81/debian/patches/install.diff @@ -0,0 +1,151 @@ +Patch makes yaws installing into /usr/lib/erlang/lib hierarchy to +make its use more convenient. Also yaws paths in the examples are +corrected. + +--- yaws-1.80.orig/src/Makefile ++++ yaws-1.80/src/Makefile +@@ -98,15 +98,15 @@ + rm -f $(EBIN_FILES) yaws_generated.erl charset.def mime_types.erl yaws_configure.hrl + + install: regen all docsinstall +- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/ebin +- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/include +- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/ebin +- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/priv ++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/examples/ebin ++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/examples/include ++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/ebin ++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/priv + $(INSTALL) -d $(DESTDIR)$(VARDIR)/log/yaws + $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/ebin +- (cd ..; tar cf - ebin ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - ) +- (cd ..; tar cf - include ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - ) +- (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - ) ++ (cd ..; tar cf - ebin ) | (cd $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN); tar xf - ) ++ (cd ..; tar cf - include ) | (cd $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN); tar xf - ) ++ (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN); tar xf - ) + $(RM) yaws_generated.erl ../ebin/yaws_generated.beam 2>/dev/null || true + + docsinstall: +--- yaws-1.80.orig/Makefile ++++ yaws-1.80/Makefile +@@ -25,7 +25,7 @@ + @echo + @echo "** etc files went into ${ETCDIR}" + @echo "** executables went into ${prefix}/bin" +- @echo "** library files went into ${prefix}/lib/yaws" ++ @echo "** library files went into ${prefix}/lib/erlang/lib/yaws-$(YAWS_VSN)" + @echo "** var files went into ${VARDIR}" + @echo "** default docroot went into ${VARDIR}/yaws/www" + @echo +@@ -76,7 +76,7 @@ + @echo + @echo "** etc files will go into ${ETCDIR}" + @echo "** executables will go into ${prefix}/bin" +- @echo "** library file will go into ${prefix}/lib/yaws" ++ @echo "** library file will go into ${prefix}/lib/erlang/lib/yaws-$(YAWS_VSN)" + @echo "** var files will go into ${VARDIR}" + @echo + @echo "--------------------------------" +--- yaws-1.80.orig/c_src/Makefile ++++ yaws-1.80/c_src/Makefile +@@ -1,5 +1,5 @@ + include ../include.mk +- ++include ../vsn.mk + + # don't c-compile anything on win32 (yet) + # I don't know how to make a linked in driver using gcc, or any +@@ -32,12 +32,12 @@ + -rm -f $(PRIV_FILES) setuid_drv.$(OBJ) epam.$(OBJ) yaws_sendfile_drv.$(OBJ) hashtable.$(OBJ) + + install: $(PRIV_FILES) +- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/priv/lib +- $(INSTALL) $(PRIV_FILES) $(DESTDIR)$(PREFIX)/lib/yaws/priv/lib ++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/priv/lib ++ $(INSTALL) $(PRIV_FILES) $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/priv/lib + ifndef WIN32 +- if [ `id -u` = "0" -a -d $(DESTDIR)$(PREFIX)/lib/yaws/priv/epam ]; then \ +- chown root $(DESTDIR)$(PREFIX)/lib/yaws/priv/epam; \ +- chmod a+s $(DESTDIR)$(PREFIX)/lib/yaws/priv/epam; \ ++ if [ `id -u` = "0" -a -d $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/priv/lib/epam ]; then \ ++ chown root $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/priv/lib/epam; \ ++ chmod a+s $(DESTDIR)$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)/priv/lib/epam; \ + fi + endif + +--- yaws-1.80.orig/scripts/Makefile ++++ yaws-1.80/scripts/Makefile +@@ -1,5 +1,5 @@ + include ../include.mk +- ++include ../vsn.mk + + all debug: ../bin/yaws yaws.conf + +@@ -40,7 +40,7 @@ + yaws.conf: + @echo PREFIX is $(PREFIX) + cat yaws.conf.template | \ +- ./Subst %yawsdir% "$(PREFIX)/lib/yaws" | \ ++ ./Subst %yawsdir% "$(PREFIX)/lib/erlang/lib/yaws-$(YAWS_VSN)" | \ + ./Subst %logdir% "$(VARDIR)/log/yaws" | \ + ./Subst %vardir% "$(VARDIR)" | \ + ./Subst %host% `hostname` | \ +--- yaws-1.80.orig/scripts/Install ++++ yaws-1.80/scripts/Install +@@ -19,10 +19,10 @@ + v=${vardir} + + install -d ${destdir}${prefix}/bin +-install -d ${destdir}${prefix}/etc ++install -d ${destdir}${etcdir} + + cat yaws.template | \ +- ./Subst %yawsdir% ${prefix}/lib/yaws | \ ++ ./Subst %yawsdir% ${prefix}/lib/erlang/lib/yaws-${YAWS_VSN} | \ + ./Subst %vardir% ${vardir} | \ + ./Subst %erl% "${erl}" | \ + ./Subst %run_erl% "${bindir}/run_erl" | \ +@@ -31,8 +31,8 @@ + + chmod +x ${destdir}${prefix}/bin/yaws + +-install -d ${destdir}${prefix}/lib/yaws/examples/ebin +-install -d ${destdir}${prefix}/lib/yaws/examples/include ++install -d ${destdir}${prefix}/lib/erlang/lib/yaws-${YAWS_VSN}/examples/ebin ++install -d ${destdir}${prefix}/lib/erlang/lib/yaws-${YAWS_VSN}/examples/include + + ## seems gentoo don't like to be installed in /usr/local/etc + ## since /sbin/runscript still reads /etc/conf.d +--- yaws-1.80.orig/www/embed.yaws ++++ yaws-1.80/www/embed.yaws +@@ -186,7 +186,7 @@ +

+
+
+-# erl -pa /usr/local/lib/yaws/ebin -yaws embedded true -s ybed
++# erl -yaws embedded true -s ybed
+   
+
+ +@@ -199,7 +199,7 @@ + +
+ +-# erl -pa /usr/local/lib/yaws/ebin -yaws embedded true -s ybed ++# erl -yaws embedded true -s ybed + Erlang (BEAM) emulator version 5.3.b1 [source] [hipe] + + Eshell V5.3.b1 (abort with ^G) +--- yaws-1.80.orig/www/ybed.erl ++++ yaws-1.80/www/ybed.erl +@@ -8,7 +8,7 @@ + -module(ybed). + -compile(export_all). + +--include("/usr/local/lib/yaws/include/yaws.hrl"). ++-include_lib("yaws/include/yaws.hrl"). + + start() -> + application:start(yaws), --- yaws-1.81.orig/debian/patches/mime.diff +++ yaws-1.81/debian/patches/mime.diff @@ -0,0 +1,14 @@ +Patch makes using system wide mime.types instead of possibly outdated +mime.types, supplied by upstream. + +--- yaws-1.80.orig/src/mime_type_c.erl ++++ yaws-1.80/src/mime_type_c.erl +@@ -21,7 +21,7 @@ + + + c() -> +- {ok, F} = file:open("mime.types", [read]), ++ {ok, F} = file:open("/etc/mime.types", [read]), + io:format("Compiling mime.types ... > mime_types.erl ~n", []), + {ok, B} = file:read_file("charset.def"), + case string:tokens(binary_to_list(B)," \r\n\t" ++ [0, 12]) of --- yaws-1.81.orig/debian/patches/installapps.diff +++ yaws-1.81/debian/patches/installapps.diff @@ -0,0 +1,20 @@ +Patch makes yaws applications installing under /usr/lib/yaws directory +and docs installing to /usr/share/doc/yaws directory. + +--- yaws-1.80.orig/applications/yapp/Makefile ++++ yaws-1.80/applications/yapp/Makefile +@@ -24,8 +24,10 @@ + rm -rf doc/*.html doc/edoc-info doc/stylesheet.css doc/*.png + + install: all docs +- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/$(APPNAME)/ebin +- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/$(APPNAME)/priv/docroot +- $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/$(APPNAME)/doc +- (tar cf - ebin priv doc) | (cd $(DESTDIR)$(PREFIX)/lib/yapp; tar xf - ) ++ $(INSTALL) -d $(DESTDIR)/usr/lib/yaws/$(APPNAME)/ebin ++ $(INSTALL) -d $(DESTDIR)/usr/share/yaws-$(APPNAME) ++ $(INSTALL) -d $(DESTDIR)/usr/share/doc/yaws-$(APPNAME)/doc ++ (tar cf - ebin) | (cd $(DESTDIR)/usr/lib/yaws/$(APPNAME); tar xf - ) ++ (cd priv/docroot; tar cf - .) | (cd $(DESTDIR)/usr/share/yaws-$(APPNAME); tar xf - ) ++ (tar cf - doc) | (cd $(DESTDIR)/usr/share/doc/yaws-$(APPNAME); tar xf - ) + --- yaws-1.81.orig/debian/patches/gnu.diff +++ yaws-1.81/debian/patches/gnu.diff @@ -0,0 +1,37 @@ +Patch by Sergei Golovan allows YWAS to build on hurd-i386 architecture. + +--- yaws-1.80.orig/configure ++++ yaws-1.80/configure +@@ -3895,6 +3895,16 @@ + FPIC=-fPIC + + ;; ++ *gnu*) ++ cat >>confdefs.h <<\_ACEOF ++#define GNU 1 ++_ACEOF ++ ++ LD_SHARED="gcc -shared" ++ ++ FPIC=-fpic ++ ++ ;; + *cygwin*) + # Extract the first word of "werl", so it can be a program name with args. + set dummy werl; ac_word=$2 +--- yaws-1.80.orig/configure.in ++++ yaws-1.80/configure.in +@@ -246,6 +246,13 @@ + FPIC=-fPIC + AC_SUBST(FPIC) + ;; ++ *gnu*) ++ AC_DEFINE(GNU) ++ LD_SHARED="gcc -shared" ++ AC_SUBST(LD_SHARED) ++ FPIC=-fPIC ++ AC_SUBST(FPIC) ++ ;; + *cygwin*) + AC_PATH_PROG(WERL, werl) + AC_SUBST(WERL) --- yaws-1.81.orig/debian/patches/series +++ yaws-1.81/debian/patches/series @@ -0,0 +1,9 @@ +clean.diff +mime.diff +install.diff +installdocs.diff +installapps.diff +gnu.diff +man.diff +ctl.diff +docs.diff --- yaws-1.81.orig/debian/conf/yaws.conf +++ yaws-1.81/debian/conf/yaws.conf @@ -0,0 +1,154 @@ +# conf for yaws + + +# first we have a set of globals +# That apply to all virtual servers + + +# This is the directory where all logfiles for +# all virtual servers will be written + +logdir = /var/log/yaws + + +# This the path to a directory where additional +# beam code can be placed. The daemon will add this +# directory to its search path + +ebin_dir = /usr/lib/yaws/ebin + + +# This is a directory where application specific .hrl +# files can be placed. application specifig .yaws code can +# then include these .hrl files + +include_dir = /usr/lib/yaws/include + + +# This is a debug variable, possible values are http | traffic | false +# It is also possible to set the trace (possibly to the tty) while +# invoking yaws from the shell as in +# yaws -i -T -x (see man yaws) + +trace = false + + +# it is possible to have yaws start additional +# application specific code at startup + +# runmod = my_app + + +# By default yaws will copy the erlang error_log and +# end write it to a wrap log called report.log (in the logdir) +# this feature can be turned off. This would typically +# be the case when yaws runs within another larger app + +copy_error_log = true + + +# Logs are wrap logs + +log_wrap_size = 1000000 + + +# Possibly resolve all hostnames in logfiles so webalizer +# can produce the nice geography piechart + +log_resolve_hostname = false + + +# fail completely or not if yaws fails +# to bind a listen socket + +fail_on_bind_err = true + + +# If HTTP auth is used, it is possible to have a specific +# auth log. + +auth_log = true + + +# When we're running multiple yaws systems on the same +# host, we need to give each yaws system an individual +# name. Yaws will write a number of runtime files under +# /tmp/yaws/${id} +# The default value is "default" +# +# In Debian system init script supplies id from the command +# line, so it's not necessary to specify it here + +#id = debian_yaws + + +# earlier versions of Yaws picked the first virtual host +# in a list of hosts with the same IP/PORT when the Host: +# header doesn't match any name on any Host +# This is often nice in testing environments but not +# acceptable in real live hosting scenarios + +pick_first_virthost_on_nomatch = true + + +# All unices are broken since it's not possible to bind to +# a privileged port (< 1024) unless uid==0 +# There is a contrib in jungerl which makes it possible by means +# of an external setuid root programm called fdsrv to listen to +# to privileged port. +# If we use this feature, it requires fdsrv to be properly installed. +# Doesn't yet work with SSL. + +use_fdsrv = false + +# Load external config files. To add virtual server, don't +# edit this config file. Instead, put additional config to +# /etc/yaws/config.d/ and it will be sourced during yaws +# reload. + +subconfigdir = /etc/yaws/conf.d + +# End then a set of virtual server examples +# (If you want to use privileged port, run yaws as root, +# setting YAWS_USER in /etc/default/yaws, or use port +# redirection, e.g. via iptables.) + +# All virtual server examples are commented out. + +# First two virthosted servers on the same IP (0.0.0.0) +# in this case, but an explicit IP can be given as well + +# +# port = 8080 +# listen = 0.0.0.0 +# docroot = /var/www/yaws +# + +# +# port = 8080 +# listen = 0.0.0.0 +# docroot = /var/www/yaws-webdav +# dir_listings = true +# dav = true +# +# realm = foobar +# dir = / +# user = foo:bar +# user = baz:bar +# +# + + +# And then an ssl server + +# +# port = 8443 +# docroot = /var/www/yaws-ssl +# listen = 0.0.0.0 +# dir_listings = true +# +# keyfile = /etc/yaws/yaws-key.pem +# certfile = /etc/yaws/yaws-cert.pem +# +# + --- yaws-1.81.orig/debian/conf/yaws-yapp.conf +++ yaws-1.81/debian/conf/yaws-yapp.conf @@ -0,0 +1,31 @@ +# Configuration file for yaws-yapp + +# This the path to a directory where yapp +# beam code is placed. The daemon will add this +# directory to its search path + +ebin_dir = /usr/lib/yaws/yapp/ebin + + +# Start yapp at startup + +runmod = yapp + +# To enable yapp, also you should create Mnesia database +# scheme for running with Yaws. + +# Edit the following virtual server definition to +# enable web-GUI to list/add/remove Yaws applications. + +# +# port = 8080 +# listen = 0.0.0.0 +# docroot = /usr/share/yaws-yapp +# dir_listings = true +# arg_rewrite_mod = yapp +# +# yapp_server_id = yappexample +# bootstrap_yapps = yapp +# +# + --- yaws-1.81.orig/debian/conf/yaws-wiki.conf +++ yaws-1.81/debian/conf/yaws-wiki.conf @@ -0,0 +1,17 @@ +# Configuration file for yaws-wiki + +# This the path to a directory where wiki +# beam code is placed. The daemon will add this +# directory to its search path + +ebin_dir = /usr/lib/yaws/wiki/ebin + +# Edit the following virtual server definition to +# enable yaws wiki. + +# +# port = 8080 +# listen = 0.0.0.0 +# docroot = /var/lib/yaws-wiki +# + --- yaws-1.81.orig/debian/conf/localhost-ssl.conf +++ yaws-1.81/debian/conf/localhost-ssl.conf @@ -0,0 +1,24 @@ +# Configuration file for Yaws HTTP daemon + +# This config defines SSL-enabled virtual server localhost. +# It is enabled by default. If you want to disable it, remove +# symlink from /etc/yaws/conf.d/. + +# Instead you may edit this file and after that reload +# yaws configureation using invoke-rc.d yaws reload + +# (If you want to use privileged port, run yaws as root, +# setting YAWS_USER in /etc/default/yaws, or use port +# redirection, e.g. via iptables.) + + + port = 8443 + listen = 0.0.0.0 + docroot = /usr/share/yaws + # dir_listings = true + + keyfile = /etc/yaws/yaws-key.pem + certfile = /etc/yaws/yaws-cert.pem + + + --- yaws-1.81.orig/debian/conf/yaws-chat.conf +++ yaws-1.81/debian/conf/yaws-chat.conf @@ -0,0 +1,17 @@ +# Configuration file for yaws-chat + +# This the path to a directory where chat +# beam code is placed. The daemon will add this +# directory to its search path + +ebin_dir = /usr/lib/yaws/chat/ebin + +# Edit the following virtual server definition to +# enable chat server. + +# +# port = 8080 +# listen = 0.0.0.0 +# docroot = /usr/share/yaws-chat +# + --- yaws-1.81.orig/debian/conf/yaws-mail.conf +++ yaws-1.81/debian/conf/yaws-mail.conf @@ -0,0 +1,17 @@ +# Configuration file for yaws-mail + +# This the path to a directory where mail +# beam code is placed. The daemon will add this +# directory to its search path + +ebin_dir = /usr/lib/yaws/mail/ebin + +# Edit the following virtual server definition to +# enable webmail application. + +# +# port = 8080 +# listen = 0.0.0.0 +# docroot = /usr/share/yaws-mail +# + --- yaws-1.81.orig/debian/conf/localhost.conf +++ yaws-1.81/debian/conf/localhost.conf @@ -0,0 +1,20 @@ +# Configuration file for Yaws HTTP daemon + +# This config defines virtual server localhost. It is +# enabled by default. If you want to disable it, remove +# symlink from /etc/yaws/conf.d/. + +# Instead you may edit this file and after that reload +# yaws configureation using invoke-rc.d yaws reload + +# (If you want to use privileged port, run yaws as root, +# setting YAWS_USER in /etc/default/yaws, or use port +# redirection, e.g. via iptables.) + + + port = 8080 + listen = 0.0.0.0 + docroot = /usr/share/yaws + # dir_listings = true + +