debian/0000755000000000000000000000000012255027446007175 5ustar debian/yaws-wiki.links0000644000000000000000000000012710617702303012153 0ustar var/lib/yaws-wiki usr/lib/yaws/wiki/priv/docroot var/lib/yaws-wiki usr/share/yaws-wiki debian/yaws-chat.install0000644000000000000000000000006110552162121012446 0ustar debian/conf/yaws-chat.conf /etc/yaws/conf.avail/ debian/yaws-doc.links0000644000000000000000000000011511324150301011741 0ustar usr/share/doc/yaws-doc/examples/www/yaws.pdf usr/share/doc/yaws-doc/yaws.pdf debian/yaws.postrm0000644000000000000000000000334012255027362011423 0ustar #! /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) if [ -d /etc/yaws/conf.d ] ; then (cd /etc && rmdir --parents --ignore-fail-on-non-empty yaws/conf.d) elif [ -d /etc/yaws ] ; then (cd /etc && rmdir --ignore-fail-on-non-empty yaws) fi 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 userdel --force --remove 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 debian/yaws.preinst0000644000000000000000000000175410731227620011566 0ustar #! /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 debian/copyright0000644000000000000000000000326210666230176011133 0ustar 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. debian/yaws-mail.install0000644000000000000000000000006110552162121012451 0ustar debian/conf/yaws-mail.conf /etc/yaws/conf.avail/ debian/index.html0000644000000000000000000000221510540605357011170 0ustar 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.

debian/yaws-wiki.docs0000644000000000000000000000003110552162121011751 0ustar applications/wiki/README debian/control0000644000000000000000000000705412255027362010603 0ustar Source: yaws Section: httpd Priority: optional Maintainer: Debian Erlang Packagers Uploaders: Sergei Golovan Build-Depends: debhelper (>= 8.9.7), autotools-dev, libpam0g-dev, erlang-dev (>= 1:13.b.1-3), erlang-edoc, erlang-mnesia Build-Depends-Indep: texlive-latex-base, texlive-latex-recommended, texlive-fonts-recommended, texlive-font-utils, texlive-extra-utils, ghostscript Standards-Version: 3.9.4 Homepage: http://yaws.hyber.org/ Vcs-Svn: svn://svn.debian.org//svn/pkg-erlang/yaws/trunk/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-erlang/yaws/trunk/ Package: yaws Architecture: all Provides: httpd, httpd-cgi Depends: erlang-yaws (>= ${binary:Version}), adduser, ssl-cert, lsb-base (>= 3.0-6), ${misc:Depends} Suggests: yaws-doc, yaws-chat, yaws-mail, yaws-wiki, yaws-yapp 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. . This package includes binaries and config to run Yaws in standalone mode where it works as a regular webserver daemon. Package: erlang-yaws Architecture: any Depends: ${erlang-abi:Depends}, ${erlang:Depends}, ${shlibs:Depends}, ${misc:Depends} Suggests: yaws, yaws-doc, zip, bzip2 Replaces: yaws (<< 1.88-2) Description: Erlang application which implements HTTP webserver 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. . This package includes Erlang Yaws application suitable to work in embedded mode where it runs as a webserver in another Erlang application. Package: yaws-doc Section: doc Architecture: all Depends: ${misc:Depends} Suggests: erlang-yaws, yaws Replaces: yaws (<< 1.87) Description: Documentation and examples for Yaws web server 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. . This package includes Yaws documentation and examples. Package: yaws-chat Section: web Architecture: all Depends: ${erlang:Depends}, yaws (>= ${binary:Version}), ${misc:Depends} Description: Chat application for Yaws web server Yaws-chat allows one to create a very simple web-based chatroom. Package: yaws-mail Section: web Architecture: all Depends: ${erlang:Depends}, yaws (>= ${binary:Version}), ${misc:Depends} 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 Section: web Architecture: all Depends: ${erlang:Depends}, yaws (>= ${binary:Version}), ${misc:Depends} Description: Wiki application for Yaws web server Yaws-wiki is a small wiki application, written in Erlang for Yaws web server. Package: yaws-yapp Section: web Architecture: all Depends: ${erlang:Depends}, yaws (>= ${binary:Version}), ${misc:Depends} Description: Provides 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. debian/conf/0000755000000000000000000000000012255027413010114 5ustar debian/conf/yaws-mail.conf0000644000000000000000000000056010617702303012665 0ustar # 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 # debian/conf/yaws.conf0000644000000000000000000001214711771577232011766 0ustar # 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/custom/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/custom/include # Set this to an integer value to control # max number of connections from clients into the server max_connections = nolimit # Normally, yaws does not restrict the number of times a connection is # kept alive using keepalive. Setting this parameter to an integer X # will ensure that connections are closed once they have been used X times. # This can be a useful to guard against long running connections # collecting too much garbage in the erlang VM. keepalive_maxuses = nolimit # Override the garbage collection option parameters for processes # that handle new connections. Useful for systems expecting long-lived # connections that handle a lot of data. The default value is Erlang's # default. Valid options are {fullsweep_after, X} and/or {min_heap_size, Y} where # X and Y are integers. See Erlang's erlang:spawn_opt/4 function for more # details. The value type is a quoted string containing an Erlang proplist or # the atom undefined. process_options = "[]" # Set the size of the cached acceptor process pool. The value must be an # integer greater than or equal to 0. The default pool size is 8. Setting # the pool size to 0 effectively disables the pool. acceptor_pool_size = 8 # 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 # Enable this if we want to use the old OTP ssl implementation # OTP R13B03 is known to work with this flag set to false (default) use_old_ssl = false # It is possible to have yaws start additional application-specific code at # startup. Set runmod to the name of the module you want yaws to start. It # assumes the module has an exported function start/0. To have multiple # runmods just add more "runmod = xyz" lines. # runmod = mymodule # 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. As of release 1.90 the global auth_log is # deprecated and ignored. Now, this variable must be set in # server part #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 # If the HTTP client session is to be kept alive, wait this many # milliseconds for a new request before timing out the connection. Note # that infinity is a valid value but it's not recommended. keepalive_timeout = 30000 # 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 # And 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 # # debian/conf/yaws-wiki.conf0000644000000000000000000000054410617702303012710 0ustar # 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 # debian/conf/localhost-ssl.conf0000644000000000000000000000125510617702303013553 0ustar # 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 debian/conf/localhost.conf0000644000000000000000000000106610617702303012754 0ustar # 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 debian/conf/yaws-yapp.conf0000644000000000000000000000124510617702303012715 0ustar # 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 # # debian/conf/yaws-chat.conf0000644000000000000000000000055010617702303012661 0ustar # 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 # debian/patches/0000755000000000000000000000000012255027413010616 5ustar debian/patches/docs.diff0000644000000000000000000000153712230505663012407 0ustar Patch removes dependency om non-free latex2html package when building docs. Also, it renames \ifpdf to \ifpdfoutput to avoid clash with ifpdf package (sourced by geometry package in TeXLive 2009). --- a/doc/Makefile +++ b/doc/Makefile @@ -17,9 +17,6 @@ @if [ -z "$(PDFLATEX)" ]; then \ echo "Need pdflatex"; exit 1; \ fi - @if [ -z "`which latex2html`" ]; then \ - echo "Need latex2html"; exit 1; \ - fi --- a/doc/yaws.tex +++ b/doc/yaws.tex @@ -34,7 +34,7 @@ \usepackage[T1]{fontenc} \usepackage{xspace} -\usepackage{html} +%\usepackage{html} \makeatother \begin{document} --- a/man/Makefile +++ b/man/Makefile @@ -7,6 +7,7 @@ cp yaws.1 $(DESTDIR)$(PREFIX)/share/man/man1 cp yaws.conf.5 $(DESTDIR)$(PREFIX)/share/man/man5 cp yaws_api.5 $(DESTDIR)$(PREFIX)/share/man/man5 + cp yaws_soap_lib.5 $(DESTDIR)$(PREFIX)/share/man/man5 debian/patches/m32m64.diff0000644000000000000000000000332412230505663012403 0ustar Patch by Sergei Golovan removes -m32 or -m64 gcc command line options (which lead to FTBFS) for all non-x86* architectures. --- a/configure +++ b/configure @@ -4088,16 +4088,15 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: found 64-bit Erlang" >&5 $as_echo "$as_me: found 64-bit Erlang" >&6;} case "$host_cpu" in - x86_64) CBIT= ;; - *) CBIT=-m64 ;; + i?86) CBIT=-m64 ;; + *) CBIT= ;; esac else { $as_echo "$as_me:${as_lineno-$LINENO}: found 32-bit Erlang" >&5 $as_echo "$as_me: found 32-bit Erlang" >&6;} case "$host_cpu" in - i?86) CBIT= ;; - armv6l) CBIT= ;; - *) CBIT=-m32 ;; + x86_64) CBIT=-m32 ;; + *) CBIT= ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ --- a/configure.in +++ b/configure.in @@ -230,14 +230,13 @@ end end)])], [AC_MSG_NOTICE(found 64-bit Erlang) case "$host_cpu" in - x86_64) CBIT= ;; - *) CBIT=-m64 ;; + i?86) CBIT=-m64 ;; + *) CBIT= ;; esac], [AC_MSG_NOTICE(found 32-bit Erlang) case "$host_cpu" in - i?86) CBIT= ;; - armv6l) CBIT= ;; - *) CBIT=-m32 ;; + x86_64) CBIT=-m32 ;; + *) CBIT= ;; esac]) CFLAGS="$CFLAGS $CBIT" LD_SHARED="$CC $CBIT -shared" debian/patches/gnu.diff0000644000000000000000000000151512230505663012244 0ustar Patch by Sergei Golovan allows YWAS to build on hurd-i386 architecture. --- a/configure +++ b/configure @@ -4191,6 +4191,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 --- a/configure.in +++ b/configure.in @@ -299,6 +299,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) debian/patches/installapps.diff0000644000000000000000000000164612230505663014012 0ustar Patch makes yaws applications installing under /usr/lib/yaws directory and docs installing to /usr/share/doc/yaws directory. --- a/applications/yapp/Makefile +++ b/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)$(LIBDIR)/$(APPNAME)/ebin - $(INSTALL) -d $(DESTDIR)$(LIBDIR)/$(APPNAME)/priv/docroot - $(INSTALL) -d $(DESTDIR)$(LIBDIR)/$(APPNAME)/doc - (tar cf - ebin priv doc) | (cd $(DESTDIR)$(LIBDIR)/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 - ) debian/patches/series0000644000000000000000000000006012230505663012030 0ustar installapps.diff gnu.diff docs.diff m32m64.diff debian/yaws-wiki.install0000644000000000000000000000006110552162121012472 0ustar debian/conf/yaws-wiki.conf /etc/yaws/conf.avail/ debian/erlang-yaws.dirs0000644000000000000000000000003411422316075012300 0ustar usr/share/lintian/overrides debian/yaws-mail.docs0000644000000000000000000000006010552162121011732 0ustar applications/mail/README applications/mail/TODO debian/yaws-doc.install0000644000000000000000000000006711324150301012275 0ustar debian/tmp/var/yaws/* usr/share/doc/yaws-doc/examples/ debian/erlang-yaws.install0000644000000000000000000000023512143237004013003 0ustar debian/tmp/usr/lib /usr/ debian/tmp/usr/share/man/man5/yaws_api.5 /usr/share/man/man5/ debian/tmp/usr/share/man/man5/yaws_soap_lib.5 /usr/share/man/man5/ debian/yaws.links0000644000000000000000000000016711753676327011240 0ustar etc/ssl/certs/ssl-cert-snakeoil.pem etc/yaws/yaws-cert.pem etc/ssl/private/ssl-cert-snakeoil.key etc/yaws/yaws-key.pem debian/yaws.postinst0000644000000000000000000000526512255027362011772 0ustar #! /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 for d in yaws yaws/conf.avail yaws/conf.d ; do if ! dpkg-statoverride --list /etc/$d >/dev/null; then chown root:yaws /etc/$d chmod 750 /etc/$d fi done # Yaws configs may contain sensitive information (passwords) for f in /etc/yaws/yaws.conf /etc/yaws/conf.avail/*.conf ; do if ! dpkg-statoverride --list $f >/dev/null; then chown root:yaws $f chmod 640 $f fi done # 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 ln -s ../conf.avail/$f /etc/yaws/conf.d/ fi done fi # Adding yaws user to the ssl-cert group to use the snakeoil # SSL certificate if getent group ssl-cert >/dev/null ; then adduser --quiet yaws ssl-cert fi # Create the homedir if it doesn't exist for some reason mkdir -p /var/cache/yaws # 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 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 debian/watch0000644000000000000000000000135710443125727010232 0ustar # 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 debian/erlang-yaws.README.Debian0000644000000000000000000000052211422316075013457 0ustar Yaws application is installed into /usr/lib/yaws directory, so to run it you have to add option -pa /usr/lib/yaws/ebin to Erlang process command line. Also, if you develop using Yaws don't forget to add -I/usr/lib/yaws/include to Erlang compiler options. -- Sergei Golovan Wed, 05 May 2010 21:44:51 +0400 debian/yaws.default0000644000000000000000000000144111753745331011530 0ustar # 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 grant the capability for binding to privileged ports via # # setcap 'cap_net_bind_service=+ep' /usr/lib/erlang/erts-*/bin/beam # # (and/or beam.smp) and don't forget to regrant this capability # when Erlang will be upgraded. 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 (see yaws(1) # for a full list). # --heart restarts the daemon if it crashes DAEMON_OPTS="--heart" debian/yaws.prerm0000644000000000000000000000127210452032300011207 0ustar #! /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 debian/yaws-yapp.links0000644000000000000000000000006310617702303012160 0ustar usr/share/yaws-yapp usr/lib/yaws/yapp/priv/docroot debian/yaws-application.postinst.in0000644000000000000000000000364410617702303014672 0ustar #! /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 debian/yaws-application.postrm.in0000644000000000000000000000266410552162121014330 0ustar #! /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 debian/yaws-chat.links0000644000000000000000000000006310617702303012126 0ustar usr/share/yaws-chat usr/lib/yaws/chat/priv/docroot debian/yaws-yapp.docs0000644000000000000000000000003110552162121011757 0ustar applications/yapp/README debian/yaws-mail.links0000644000000000000000000000006310617702303012131 0ustar usr/share/yaws-mail usr/lib/yaws/mail/priv/docroot debian/yaws.dirs0000644000000000000000000000016011422316075011032 0ustar etc/yaws/conf.avail etc/yaws/conf.d usr/bin usr/lib/yaws/custom/ebin usr/lib/yaws/custom/include usr/share/yaws debian/compat0000644000000000000000000000000212143237004010360 0ustar 8 debian/yaws.init0000644000000000000000000000417512255027362011051 0ustar #! /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 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/yaws NAME=yaws DESC="Yaws web server" 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 # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions daemon() { script="$DAEMON --id $YAWS_ID $@" su -l $YAWS_USER -c "$script" } start() { daemon --daemon $DAEMON_OPTS cnt=0 while ! (daemon --status >/dev/null || test $? = 3) ; do log_progress_msg . cnt=`expr $cnt + 1` if [ $cnt -ge 10 ] ; then return 1 fi sleep 1 done return 0 } stop() { daemon --stop >/dev/null || test $? = 3 cnt=0 while ! (daemon --status >/dev/null || test $? = 3) ; do log_progress_msg . cnt=`expr $cnt + 1` if [ $cnt -ge 10 ] ; then return 1 fi sleep 1 done return 0 } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" start log_end_msg $? ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" stop log_end_msg $? ;; status) daemon --status ;; reload|force-reload) log_daemon_msg "Reloading $DESC config" "$NAME" daemon --hup >/dev/null && log_end_msg 0 || log_end_msg 1 ;; restart) log_daemon_msg "Restarting $DESC" "$NAME" stop start log_end_msg $? ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|status|restart|reload|force-reload}" >&2 exit 1 ;; esac exit 0 debian/yaws-doc.dirs0000644000000000000000000000004111324150301011560 0ustar /usr/share/doc/yaws-doc/examples debian/erlang-yaws.lintian-overrides0000644000000000000000000000010212143237004014764 0ustar erlang-yaws: virtual-package-depends-without-real-package-depends debian/changelog0000644000000000000000000006041712255027362011054 0ustar yaws (1.98-2) unstable; urgency=low * Use userdel --force in postrm script to remove the yaws user on purging the yaws package. * Create yaws homedir if it doesn't exist in postinst script. * Delete /etc/yaws directory in postrm script only if it does exist. * Use init functions from lsb-base to report init.d script progress and status. * More carefully process errors when starting and stopping the Yaws daemon (closes: #728796). -- Sergei Golovan Fri, 20 Dec 2013 15:49:50 +0400 yaws (1.98-1) unstable; urgency=low * New upstream bugfix release. -- Sergei Golovan Tue, 12 Nov 2013 09:20:34 +0400 yaws (1.97-2) unstable; urgency=low * Added --with autotools_dev dh option to fix build on arm64 architecture (closes: #727526). -- Sergei Golovan Mon, 04 Nov 2013 08:37:55 +0400 yaws (1.97-1) unstable; urgency=low * New upstream release. * Removed patch which fixed building with Erlang R16B01. -- Sergei Golovan Sat, 19 Oct 2013 17:37:30 +0400 yaws (1.96-4) unstable; urgency=low * Fixed cleaning in debian/rules (closes: #724165). -- Sergei Golovan Mon, 23 Sep 2013 10:49:44 +0400 yaws (1.96-3) unstable; urgency=low * Fixed FTBFS if built with Erlang R16B01 (closes: #718084). -- Sergei Golovan Sun, 28 Jul 2013 22:33:38 +0400 yaws (1.96-2) unstable; urgency=low * Switched to 3.0 (quilt) source package version. * Bumped debhelper compatibility version to 8. * Bumped standards version to 3.9.4. * Separated arch-independent build dependencies from arch-dependent ones. * Install yaws_soap_lib.5 manpage. * Added a few forgotten objects to clean target. -- Sergei Golovan Fri, 10 May 2013 22:34:36 +0400 yaws (1.96-1) experimental; urgency=low * New upstream release. * Removed patch which fixed building mime_types.beam because it's no longer necessary. -- Sergei Golovan Wed, 20 Mar 2013 13:02:55 +0400 yaws (1.95-1) experimental; urgency=low * New upstream feature release. * Fixed build of mime_types.beam in case when unversioned yaws link is removed from the sources tarball. -- Sergei Golovan Thu, 18 Oct 2012 23:58:09 +0400 yaws (1.94-1) unstable; urgency=low * New upstream bugfix release. * Removed patches introduced in 1.93-1 and 1.93-2. -- Sergei Golovan Tue, 26 Jun 2012 10:08:55 +0400 yaws (1.93-2) unstable; urgency=low * Added a patch which fixes delivering directory listings. -- Sergei Golovan Tue, 26 Jun 2012 09:17:49 +0400 yaws (1.93-1) unstable; urgency=low * New upstream release. * Refreshed patches and removed those which are no longer necessary. * Added a patch which strengthens the random number generation for the chat and mail applications. It also ensures all the characters in the yaws_session_server cookies are printable. * Don't compress the yaws.eps logo in the examples. * Removed use_fdsrv option from the yaws.conf because its support is removed by upstream. -- Sergei Golovan Sun, 24 Jun 2012 15:45:00 +0400 yaws (1.92-4) unstable; urgency=low * Removed unnecessary suggested dependency on erlang-dev. * Cleaned up debian/rules a bit. * Bumped debhelper competibility version to 7 because of dh_lintian. * Bumped standards version to 3.9.3. -- Sergei Golovan Fri, 08 Jun 2012 09:20:57 +0400 yaws (1.92-3) unstable; urgency=low * Switched to long options in init.d script because the short ones aren't documented anymore. * Added a short notice on how to bind to a privileged port in yaws.default file comments and README.Debian. * Change Yaws config files permissions only if the local admin didn't override them using dpkg-statoverride. * Switched to the snakeoil SSL certificate from generating a new one in postinstallation script. -- Sergei Golovan Mon, 14 May 2012 16:57:06 +0400 yaws (1.92-2) unstable; urgency=low * Added patch which fixes version and modules list in the yapp application script yapp.app. -- Sergei Golovan Wed, 22 Feb 2012 10:40:29 +0400 yaws (1.92-1) unstable; urgency=low * New upstream release. * Removed patches which fix directory traversal bug and loading external drivers for Erlang R15B because they are included into this upstream release. * Added a few more fixes for compatibility with Erlang R15B. * Removed patch which uses external mime.types. * Added a patch which fixes CVE-2011-5025 in the yaws-wiki package (closes: #653966). * Copied acceptor_pool_size option to yaws.conf from the upstream config. -- Sergei Golovan Wed, 18 Jan 2012 09:46:18 +0400 yaws (1.91-3) experimental; urgency=low * Added patch which fixes loading external drivers in Erlang R15B. * Added patch which moves from regexp to re module because the former is removed from Erlang R15B. -- Sergei Golovan Sat, 17 Dec 2011 12:30:44 +0400 yaws (1.91-2) unstable; urgency=high * Added patch by Uwe Dauernheim which fixes directory traversal bug (closes: #650009). -- Sergei Golovan Sat, 26 Nov 2011 19:34:12 +0400 yaws (1.91-1) unstable; urgency=low * New upstream release. -- Sergei Golovan Tue, 09 Aug 2011 23:26:01 +0400 yaws (1.90-2) unstable; urgency=low * Removed -m32 and -m64 gcc command line option which led to FTBFS on ia64 and s390 architectures. -- Sergei Golovan Mon, 13 Jun 2011 16:34:40 +0400 yaws (1.90-1) unstable; urgency=low * New upstream release. * Bumped standards version to 3.9.2. * Fixed a few spelling errors in package descriptions. * Fixed a bug in yaws.conf(5) manpage. -- Sergei Golovan Mon, 13 Jun 2011 15:34:55 +0400 yaws (1.89-1) experimental; urgency=low * New upstream release. * Synchrinized config file with the upstream version. * Bumped standards version to 3.9.1. -- Sergei Golovan Fri, 19 Nov 2010 09:19:07 +0300 yaws (1.88-2) unstable; urgency=low * Split out Yaws application to a separate package erlang-yaws, which simplifies using Yaws in embedded mode. The yaws binary package now includes additional binaries and configs necessary to run a standalone Yaws daemon. * Bumped standards version to 3.9.0. -- Sergei Golovan Fri, 23 Jul 2010 17:38:18 +0400 yaws (1.88-1) unstable; urgency=low * New upstream release. * Bumped standards version to 3.8.4. -- Sergei Golovan Wed, 24 Mar 2010 15:43:06 +0300 yaws (1.87-1) unstable; urgency=low * New upstream release. * Moved Yaws binaries to /usr/lib/yaws directory to follow upstream closer and to make sure that private Yaws modules don't clash with any other application. The drawback is that now one has to add -pa /usr/lib/yaws/ebin to the command line if he wants to use Yaws in embedded mode. * Split out yaws-doc package which contains documentation in PDF and examples. * Added README.Debian in which clarified how to change epam permissions in case when it has to be suid or sgid binary. * Don't create /var/run/yaws in Yaws init script because this directory is no longer used. Also, change working dir to /var/cache/yaws before starting the daemon because Erlang issues warnings about inaccessible modules if the current dir isn't readable by yaws user. * Fixed a few spelling errors in manpages. -- Sergei Golovan Fri, 15 Jan 2010 23:41:06 +0300 yaws (1.86-2) unstable; urgency=low * Renamed \ifpdf macro to \ifpdfoutput in yaws.tex documentation file because it clashes with ifpdf package which is sourced by geometry package in TeXLive 2009 (closes: #560759). * Added texlive-font-utils to build dependencies because epstopdf script has been moved to it from texlive-extra-utils in TeXLive 2009. -- Sergei Golovan Sat, 12 Dec 2009 19:19:32 +0300 yaws (1.86-1) unstable; urgency=low * New upstream release. -- Sergei Golovan Fri, 11 Dec 2009 19:37:09 +0300 yaws (1.85-1) unstable; urgency=low * New upstream release. -- Sergei Golovan Fri, 30 Oct 2009 22:36:02 +0300 yaws (1.84-2) unstable; urgency=low * New maintainer's email address pkg-erlang-devel@lists.alioth.debian.org. * Added VCS headers to debian/control. * Added README.source with a link to /usr/share/doc/quilt/README.source where one can find info on how to apply a series of patches to an original source tarball. * Bumped standards version to 3.8.3. -- Sergei Golovan Sat, 17 Oct 2009 17:23:15 +0400 yaws (1.84-1) unstable; urgency=low * New upstream release. * Removed Torsten Werner from the uploaders list as per his request. * Replaced build dependency on erlang-nox by dependency on erlang-edoc and erlang-mnesia because erlang-nox became a transitional package and will be removed in the future. * Added ${erlang:Depends} variable to binary packages dependencies. This allows to calculate dependencies automatically. This means that erlang-dev build dependency version became 1:13.b.1-3 or higher. * Bumped standards version to 3.8.1. -- Sergei Golovan Sun, 09 Aug 2009 12:17:53 +0400 yaws (1.82-2) unstable; urgency=low * Fixed default config name (in 1.82 specifying /etc/yaws in configure script call moved default config to /etc/yaws/yaws). -- Sergei Golovan Fri, 12 Jun 2009 19:21:31 +0400 yaws (1.82-1) unstable; urgency=low * New upstream release. * Moved yaws-yapp, yaws-mail, yaws-chat and yaws-wiki back to web section. -- Sergei Golovan Sun, 07 Jun 2009 12:10:30 +0400 yaws (1.81-2) unstable; urgency=low * Moved epam binary from priv/lib to priv directory where YAWS expects to find it (closes: #522158). * Added build-dependency on erlang-dev (>= 1:13.b) to make transition to Erlang R13B easier. * Bumped standards version to 3.8.1. * Moved the package to httpd section. * Removed /var/run/yaws directory from the binary package. * Overridden lintian warning virtual-package-depends-without-real-package- depends because the virtual packages erlang-abi-* are provided only to simplify transition to another version of Erlang interface ABI, and yaws package already depends on erlang-base which provides erlang-abi-*. -- Sergei Golovan Fri, 01 May 2009 21:00:29 +0400 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 debian/yaws.install0000644000000000000000000000054611422316075011547 0ustar debian/tmp/usr/bin /usr/ debian/tmp/usr/share/man/man1 /usr/share/man/ debian/tmp/usr/share/man/man5/yaws.conf.5 /usr/share/man/man5/ 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/ debian/rules0000755000000000000000000001145112243700324010245 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # 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. export HOME := $(CURDIR)/debian # 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 DESTDIR1=$(CURDIR)/debian/erlang-yaws TMPDIR=$(CURDIR)/debian/tmp CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) TYPE = debug endif %: dh $@ --with autotools_dev override_dh_auto_clean: 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 rm -rf applications/chat/ebin # # Clean up after the build process. [ ! -f include.mk ] || $(MAKE) clean [ ! -f include.mk ] || $(MAKE) conf_clean rm -f priv/charset.def # rm -f erl_crash.dump rm -f debian/yaws-*.postinst debian/yaws-*.postrm override_dh_auto_configure: dh_testdir # CFLAGS="$(CFLAGS)" \ ./configure --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --sysconfdir=/etc \ --localstatedir=/var override_dh_auto_build-arch: dh_testdir # # Compile the package. mkdir -p examples/ebin TYPE="$(TYPE)" $(MAKE) DLL_LIBS=-lc override_dh_auto_build-indep: dh_testdir # # Build applications included into yaws distribution for appdir in applications/* ; do \ (cd $$appdir ; \ mkdir -p ebin ; \ TYPE="$(TYPE)" $(MAKE) || exit 1) \ done # # Build documentation $(MAKE) docs override_dh_auto_test: # Do nothing because the tests require downloading some tools from # the Internet. override_dh_auto_install-arch: dh_testdir # # Install the package into debian/yaws. $(MAKE) install DESTDIR=$(TMPDIR) # # Fix location of epam binary mv $(TMPDIR)/usr/lib/yaws/priv/lib/epam $(TMPDIR)/usr/lib/yaws/priv/ # # Fix permissions on examples chmod a-x $(TMPDIR)/var/yaws/www/testdir/index.html # # Remove duplicated headers rm -f $(TMPDIR)/usr/lib/yaws/*.hrl # # Remove useless .empty files and .xvpics directory find $(TMPDIR) -type f -name '.*' -print -exec rm -rf \{\} \; # # Remove empty directories rm -rf $(TMPDIR)/usr/lib/yaws/examples/ # dh_install -a override_dh_auto_install-indep: dh_testdir # # Install applications (and READMEs) included into yaws distribution # Application beams go to /usr/lib/yaws/$application/ebin # 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 # dh_install -i override_dh_compress: dh_compress -X.erl -X.beam -X.yaws -X.pdf -X .ps -X .eps override_dh_gencontrol: erlang-depends dh_gencontrol v=1.98 get-orig-source: wget -O - http://yaws.hyber.org/download/yaws-$(v).tar.gz | tar zx tar zcf yaws_$(v).orig.tar.gz yaws-$(v) rm -r yaws-$(v) rm yaws .PHONY: override_dh_auto_clean override_dh_auto_configure override_dh_auto_build-arch \ override_dh_auto_build-indep override_dh_auto_test override_dh_auto_install-arch \ override_dh_auto_install-indep override_dh_compress override_dh_gencontrol \ get-orig-source debian/yaws-yapp.install0000644000000000000000000000006110552162121012500 0ustar debian/conf/yaws-yapp.conf /etc/yaws/conf.avail/ debian/yaws.README.Debian0000644000000000000000000000231412143237004012205 0ustar Yaws allows one to use PAM for authentication purposes. Though epam binary which is used for that isn't suid root (this doesn't allow to authenticate using shadow system passwords). The local administrator may want to override permissions for /usr/lib/yaws/priv/epam. To make it sgid shadow run dpkg-statoverride --add root shadow 02755 /usr/lib/yaws/priv/epam To make it suid root run dpkg-statoverride --add root yaws 04750 /usr/lib/yaws/priv/epam In the latter case only yaws user (in fact, all users in group yaws) will be able to execute the binary. ---------- If you want Yaws to listen privileged ports (80 for HTTP or 443 for HTTPS) you may set the YAWS_USER variable in /etc/default/yaws config file to root. But if you don't want Yaws to run as root, you may grant it the capability for binding to privileged ports using the following command: setcap 'cap_net_bind_service=+ep' /usr/lib/erlang/erts-*/bin/beam \ 'cap_net_bind_service=+ep' /usr/lib/erlang/erts-*/bin/beam.smp Unfortunately, these capabilities will be lost after the next upgrade of Erlang packages, so you'll have to rerun the command after any Erlang upgrade. -- Sergei Golovan Sun, 13 May 2012 16:40:33 +0400 debian/source/0000755000000000000000000000000012255027413010467 5ustar debian/source/format0000644000000000000000000000001412143237004011670 0ustar 3.0 (quilt)