Skip to content
Commits on Apr 13, 2016
  1. @capflam

    Do not use erlang:now/0 anymore in Yaws applications

    capflam committed Apr 5, 2016
    erlang:now/1 was deprecated in Erlang/OTP 18.0. We rely on yaws:get_time_tuple/0
    instead.
Commits on Nov 11, 2014
  1. @sebgod @vinoski

    Set file encoding for wiki application

    sebgod committed with vinoski Nov 11, 2014
    Added encoding directive to correctly compile when configured with utf-8,
    file applications/wiki/src/wiki.erl
Commits on Jul 7, 2014
  1. @capflam

    Massive autotools refactoring & cleanup

    capflam committed Jun 10, 2014
    Now, all makefile are generated by automake. This way, many things are more
    configurable and maintainable.
    
    Main (visible) changes:
    
     * Now, you can configure and compile Yaws outside the source directory. It is
       also possible to generate an archive for distribution, using the 'dist' target
       (from now, 'distcheck' target should always pass).
    
     * We track .erl dependencies using '-M*' flags of ERLC.
    
     * generated header 'yaws_configure.hrl' disappears. HAVE_SENDFILE,
       HAVE_ERLANG_SENDFILE and HAVE_CRYPTO_HASH macros are defined in ERLC flags.
    
     * yaws_generated:localinstall/0 function disappears (see comment about local
       install).
    
     * To create a windows installer, we just need to run the 'mkinstaller'
       target. Read win32/README.developer for details.
    
     * We use standard Erlang installation path for Yaws, relative to the erlang
       library directory (/usr/lib/erlang/lib). Now, '$(libdir)/yaws' is a link. We
       do the same for yapp application.
    
     * "local install" was removed. Now, to do a "developer install", we just need
       to set a prefix during the project configuration using --prefix option. So,
       you need to install yaws to test it.
    
     * DESTDIR variable is still supported.
    
     * scripts/make-release was rewritten to use 'dist' and 'mkinstaller' targets.
    
     * Installation of Yaws applications has slightly changed. Now they are
       installed in their own directory, in '$(localstatedir)/yaws'. So, chat
       application will be installed in '$(localstatedir)/yaws/chat', with 'www' and
       'ebin' subdirs.
    
    Main targets (others than all/install/clean....):
    
      * all           : compile Yaws
      * debug         : compile Yaws with debug flags
      * clean         : remove files produced by all or debug target
      * install       : do a proper install of Yaws
      * doc or docs   : build the documentation
      * check or test : launch tests
      * cleantest     : remove files produced by check target
      * dialyzer      : run dialyzer on Yaws
      * mkinstaller   : build an installer for windows
      * cleaninstaller: remove files produced by mkinstaller target
      * apps          : compile Yaws applications (chat,mail,wiki,yapp)
      * cleanapps     : remove files produced by apps target
      * installapps   : install Yaws applications
      * fullinstall   : install + installapps
      * fullclean     : clean + cleantest + cleanapps + cleaninstaller
    
      To install an application, run: (cd application/{APP} && make install)
    
    Of course, many things can be customized during configuration and Rebar still
    works as expected. To do an install with (almost) the same tree than with
    previous of Yaws, do:
    
      $> ./configure yawsdir=${prefix}/lib/yaws yappdir=${prefix}/lib/yapp \
            --sysconfdir=/etc --localstatedir=/var
      $> make install
    
    Here is the default installation tree on my debian:
    
       usr
        ├── lib
        │   └── erlang
        │       └── lib
        │           ├── yapp-0.4.2
        │           │   ├── doc/
        │           │   ├── ebin/
        │           │   ├── examples/
        │           │   └── priv/docroot/
        │           └── yaws-1.98
        │               ├── ebin/
        │               ├── include/
        │               └── priv/
        │               ├── examples/
        │
        ├── local/bin/yaws
        │
        ├── local/etc/init.d/yaws
        ├── local/etc/yaws/
        ├── local/etc/mail/yaws-webmail.conf
        │
        ├── local/lib/pkgconfig/yaws.pc
        ├── local/lib/yapp -> /usr/lib/erlang/lib/yapp-0.4.2
        ├── local/lib/yaws -> /usr/lib/erlang/lib/yaws-1.98
        │
        ├── local/share/doc/yaws/yaws.pdf
        ├── local/share/man/{man1,man5}/
        │
        ├── local/var/log/yaws
        ├── local/var/run/yaws
        └── local/var/yaws
            ├── chat/{ebin,www}
            ├── mail/{ebin,www}
            ├── wiki/{ebin,www}
            └── www
Commits on Apr 4, 2013
  1. @vinoski
Commits on Jan 3, 2013
  1. @capflam

    Add access functions for #gconf{} and #sconf{} records

    capflam committed Nov 9, 2012
    Applications may want to retrieve information in it. yaws:gconf_*/1 and
    yaws:sconf_*/1 should be used in preference to a direct access to reduce
    the dependence of your code on these records. So internal modifications
    could be done avoiding the need to update and recompile your application.
    
    Update www/internals.yaws accordingly and remove dependency on 'yaws.hrl'
    in examples and applications. Add unit tests to check #gconf{} and #sconf{}
    setup.
Commits on Jun 24, 2012
  1. The random patch for 1.93 wasn't good enough as discovered by Sergei …

    committed Jun 24, 2012
    …Golovan, we need to cater for non printable chars
Commits on May 5, 2012
  1. @vinoski
Commits on May 1, 2012
  1. @vinoski
Commits on Mar 24, 2012
  1. @vinoski

    fix yaws issue #97: mail application config file read failure

    vinoski committed Mar 24, 2012
    Change yaws_config to export the toks/2 function being called by the mail
    application.
  2. @vinoski
Commits on Mar 4, 2012
  1. @karlsson
Commits on Jan 18, 2012
  1. @sgolovan @vinoski

    fixed wiki app XSS vulnerabilities

    sgolovan committed with vinoski Jan 16, 2012
    In applications/wiki/src/wiki.erl,
    applications/wiki/src/wiki_format_txt.erl,
    applications/wiki/src/wiki_to_html.erl: Fixed CVE-2011-5025 (multiple
    cross-site scripting (XSS) vulnerabilities in the wiki) by accepting
    only letters and digits in node names, guarding a few calls to
    list_to_integer/1, and escaping all HTML which goes to a user's
    browser.
  2. @sgolovan @vinoski

    R15B compatibility fixes

    sgolovan committed with vinoski Jan 16, 2012
    In applications/mail/src/mail.erl, applications/mail/src/smtp.erl,
    applications/wiki/src/utils.erl, applications/wiki/src/wiki.erl,
    applications/wiki/src/wiki_format_txt.erl,
    applications/wiki/src/wiki_yaws.erl: Fixed compatibility with Erlang
    R15B. Replaced atom/1, list/1, integer/1 by is_atom/1, is_list/1,
    is_integer/1 and erlang:fault/1 by erlang:error/1. In the wiki app,
    replaced regexp module by re one, renamed error/1 by html_error/1 to
    avoid clashing with global error/1 function.
  3. @sgolovan @vinoski

    fixes for make clean in applications and doc dirs

    sgolovan committed with vinoski Jan 16, 2012
    * applications/wiki/scripts/Makefile: Remove all scripts on make
      clean.
    * applications/yapp/Makefile: Remove forgotten PNG image on make
      clean.
    * doc/Makefile: Remove generated www/yaws.ps and www/yaws.pdf on
      make clean.
Commits on Oct 31, 2011
  1. @vinoski

    whitespace cleanup

    vinoski committed Oct 31, 2011
    Remove all trailing whitespace from all text files. Some bot sent
    Klacke and me a pull request saying it had done this for us, but I
    reviewed the diffs and it was affecting lines that shouldn't have been
    affected, so perl and I did it ourselves instead.
Commits on May 25, 2011
Commits on May 7, 2011
  1. @tuncer @vinoski

    add rebar support (Tuncer Ayaz and Steve Vinoski)

    tuncer committed with vinoski May 7, 2011
    Add support for building yaws with rebar. The original configure and
    make support is kept intact.
    
    If you build with rebar you get a local install. The rebar approach
    does not support a regular install, which defaults into /usr/local. If
    you want a regular install, use configure and make.
    
    Create a new top-level contrib directory and move unused src files
    there. Also move src/benchmarks and src/contrib contents there as
    well. Remove the obsolete src/patches directory. This is all to keep
    rebar from compiling this unused code (since by default it compiles
    everything under the src dir).
    
    Move a number of build rules out of Makefiles into separate scripts so
    they can be used by both rebar and make.
    
    Modify yaws version specifier and handling to be amenable to rebar.
    
    Clean up trailing whitespace in a number of scripts and Makefiles.
    
    Use the following environment variables to customize the rebar build
    defaults:
    
    DEFAULT_CHARSET: used in mime type table (default: "")
    ERLBINDIR: e.g. /usr/local/bin
    ETCDIR: etc directory (default: ./etc)
    VARDIR: var directory (default: ./var)
Commits on Apr 20, 2011
  1. @vinoski

    major trailing whitespace cleanup

    vinoski committed Apr 19, 2011
    Remove trailing whitespace in all .erl and .hrl files in the
    repository.
    
    If you're an emacs user, you can easily see trailing whitespace using
    settings like these in your ~/.emacs file:
    
    (setq-default show-trailing-whitespace t)
    (set-face-background 'trailing-whitespace "slate gray")
    
    You can also delete trailing whitespace automatically when you save
    your Erlang sources by setting the emacs before-save-hook in your
    ~/.emacs file like this:
    
    (add-hook 'before-save-hook
              '(lambda () (if (eq major-mode 'erlang-mode)
                              (delete-trailing-whitespace))))
Commits on Jul 26, 2010
  1. @karlsson

    Modifed yapp application - added simple example and changed oroginal …

    karlsson committed Jul 26, 2010
    …authors mail address.
Commits on Jul 1, 2010
  1. @karlsson
Commits on Sep 17, 2009
  1. @vinoski
Commits on Apr 20, 2009
  1. @vinoski
Commits on Apr 18, 2009
  1. add ets-based yapp registry implementation for cases where mnesia is …

    Steve Vinoski committed Apr 18, 2009
    …overkill
Commits on Mar 5, 2009
  1. @ndim
Commits on Aug 2, 2008
  1. Fixed synchronizatin issues with Yaws at startup

    Mikael Karlsson committed Aug 2, 2008
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1271 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on May 15, 2008
  1. cygwin install patch by Bill Robertsson

    committed May 15, 2008
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1243 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Feb 14, 2008
  1. untabified all of yaws

    committed Feb 14, 2008
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1217 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Dec 30, 2007
  1. updated yapp documentation and startup sequence of yapp to avoid

    Mikael Karlsson committed Dec 30, 2007
    deadlock situation when yapp is inncluded in other applications .app
    files.
    
    
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1205 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Sep 19, 2007
  1. git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…

    committed Sep 19, 2007
    …/yaws@1161 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Sep 10, 2007
  1. bad props on pic files

    committed Sep 10, 2007
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1152 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Sep 7, 2007
  1. svn binary props on the wiki files

    committed Sep 7, 2007
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1150 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Apr 9, 2007
  1. fixed yapp dependencies to vdir handling, added local stylesheet and …

    Mikael Karlsson committed Apr 9, 2007
    …updated yapp_intro documentation
    
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1114 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Feb 9, 2007
  1. Added handling of opaque variables so that ErlyWab apps can be made i…

    Mikael Karlsson committed Feb 9, 2007
    …nto Yapps
    
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1090 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Dec 17, 2006
  1. *** empty log message ***

    committed Dec 17, 2006
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1063 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Something went wrong with that request. Please try again.