--- tntnet-1.6.3.orig/debian/tntnet-runtime.install
+++ tntnet-1.6.3/debian/tntnet-runtime.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/tntnet/tntnet.*	usr/lib/tntnet
--- tntnet-1.6.3.orig/debian/README.Debian
+++ tntnet-1.6.3/debian/README.Debian
@@ -0,0 +1,7 @@
+tntnet for Debian
+-----------------
+
+tntnet has been configured as a default to have the demos in
+tntnet-demos available at http://localhost/demos/
+
+ -- Kari Pahula <kaol@debian.org>, Wed, 12 Jul 2006 11:04:15 +0300
--- tntnet-1.6.3.orig/debian/tntnet.postrm
+++ tntnet-1.6.3/debian/tntnet.postrm
@@ -0,0 +1,46 @@
+#!/bin/sh
+# postrm script for tntnet
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+	purge)
+
+	if [ -e /var/log/tntnet/ ] ; then
+		rm -r /var/log/tntnet/
+	fi
+
+	;;
+
+	remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+
+        ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- tntnet-1.6.3.orig/debian/compat
+++ tntnet-1.6.3/debian/compat
@@ -0,0 +1 @@
+5
--- tntnet-1.6.3.orig/debian/tntnet.install
+++ tntnet-1.6.3/debian/tntnet.install
@@ -0,0 +1,4 @@
+debian/tmp/etc/tntnet/			etc/
+debian/tmp/usr/bin/tntnet		usr/bin/
+debian/tmp/usr/share/man/man7/tntnet*	usr/share/man/man7/
+debian/tmp/usr/share/man/man8/		usr/share/man/
--- tntnet-1.6.3.orig/debian/rules
+++ tntnet-1.6.3/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+DEB_DH_MAKESHLIBS_ARGS := -X/usr/lib/tntnet/
+DEB_CONFIGURE_EXTRA_FLAGS := LIBS=-lpthread
+
+clean::
+	rm -f etc/tntnet/tntnet.conf etc/tntnet/tntnet.properties
+	rm -f etc/init.d/tntnet
+	rm -rf sdk/demos/subcomp/
+	find -name Makefile.in -exec rm '{}' ';'
+	rm -f configure aclocal.m4 ltmain.sh libtool install-sh missing depcomp INSTALL
+	rm -f m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4
+	rm -f framework/common/config.h.in
+
+post-patches::
+	autoreconf -sif
\ No newline at end of file
--- tntnet-1.6.3.orig/debian/tntnet-dev.install
+++ tntnet-1.6.3/debian/tntnet-dev.install
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man7/ecpp*	usr/share/man/
--- tntnet-1.6.3.orig/debian/changelog
+++ tntnet-1.6.3/debian/changelog
@@ -0,0 +1,129 @@
+tntnet (1.6.3-4) unstable; urgency=low
+
+  * Call "pkg-config gnutls" to get correct flags. (Closes: #529848)
+  * Added pkg-config, automake, autoconf, libtool as build deps.
+  * Regenerate autotool files at build time.
+  * Standards-Version 3.8.3 (no changes necessary).
+
+ -- Kari Pahula <kaol@debian.org>  Wed, 19 Aug 2009 09:57:52 +0300
+
+tntnet (1.6.3-3) unstable; urgency=low
+
+  * Don't install all the demos in libtntnet-dev, as done in -2 due to
+    a misplaced file glob.
+  * Add a new package tntnet-runtime, that has the runtime plugin
+    /usr/lib/tntnet/tntnet.so.
+  * Removed the runtime plugin's files from libtntnet-dev and libtntnet8.
+
+ -- Kari Pahula <kaol@debian.org>  Sat, 14 Jun 2008 20:25:32 +0300
+
+tntnet (1.6.3-2) unstable; urgency=low
+
+  * Moved ecpp.7 to libtntnet-dev from tntnet.
+  * Moved /usr/lib/tntnet/tntnet.so to libtntnet-dev and
+    /usr/lib/tntnet/tntnet.so.8* to libtntnet8, both from tntnet.
+  * Standards-Version bump to 3.8.0 (no changes necessary)
+
+ -- Kari Pahula <kaol@debian.org>  Sat, 14 Jun 2008 17:30:47 +0300
+
+tntnet (1.6.3-1) unstable; urgency=low
+
+  * New upstream release
+  * SONAME 7 -> 8.
+  * Made libtntnet-dev depend on the shared library package.
+  * Use upstream's Makefile.in files and don't run aclocal and automake
+    during build.
+
+ -- Kari Pahula <kaol@debian.org>  Fri, 06 Jun 2008 09:19:34 +0300
+
+tntnet (1.6.1.2-2) unstable; urgency=low
+
+  * Added missing build dependency, libtool (Closes: #474419)
+
+ -- Kari Pahula <kaol@debian.org>  Mon, 07 Apr 2008 18:57:14 +0300
+
+tntnet (1.6.1.2-1) unstable; urgency=low
+
+  * New upstream release (Closes: #456991)
+  * SONAME 6 -> 7.
+  * Added LIBS=-lpthread to configure's parameters.
+
+ -- Kari Pahula <kaol@debian.org>  Thu, 27 Mar 2008 21:18:40 +0200
+
+tntnet (1.6.0.1-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS with gcc-4.3.  Thanks to Kumar Appaiah for the patch.  (Closes:
+    #454837)
+  * Lintian cleanups:
+    - Use utf-8 for debian/copyright.
+    - Add Homepage field to debian/control in place of having it in every
+      package description.
+    - Update to Standards-Version 3.7.3 (no changes needed).
+
+ -- James Vega <jamessan@debian.org>  Mon, 17 Mar 2008 22:06:12 -0400
+
+tntnet (1.6.0.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Kari Pahula <kaol@debian.org>  Mon, 02 Jul 2007 17:20:17 +0300
+
+tntnet (1.6.0-2) unstable; urgency=low
+
+  * Added missing build-dep zip (Closes: #427531)
+
+ -- Kari Pahula <kaol@debian.org>  Mon, 04 Jun 2007 21:43:40 +0300
+
+tntnet (1.6.0-1) unstable; urgency=low
+
+  * New upstream release (Closes: #417730, #426867)
+  * Updated debian/copyright (was GPL, is LGPL now)
+  * Only start tntnet if port 80 is unbound (Closes: #413186)
+
+ -- Kari Pahula <kaol@debian.org>  Tue, 29 May 2007 20:38:55 +0300
+
+tntnet (1.5.3-2) unstable; urgency=low
+
+  * Moved /usr/sbin/tntnet to /usr/bin/tntnet
+
+ -- Kari Pahula <kaol@debian.org>  Sun,  5 Nov 2006 11:21:34 +0200
+
+tntnet (1.5.3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Kari Pahula <kaol@debian.org>  Sat, 23 Sep 2006 15:08:55 +0300
+
+tntnet (1.5.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Really added a dependency on libcxxtools-dev for libtntnet-dev
+  * LSBized /etc/init.d/tntnet
+  * Install .js and .png files needed by demos to /usr/share/tntnet/ and
+    configure the default tntnet.conf to seek for /demos/*.{js,png} from
+    there.
+
+ -- Kari Pahula <kaol@debian.org>  Thu, 14 Sep 2006 10:41:13 +0300
+
+tntnet (1.5.1+1.5.2pre3-3) unstable; urgency=low
+
+  * Added a dependency on libcxxtools-dev for libtntnet-dev
+  * Moved /usr/bin/ecpp* to libtntnet-dev package
+  * Removed logrotate script (upstream says that tntnet can rotate its own
+    logs)
+
+ -- Kari Pahula <kaol@debian.org>  Sun, 23 Jul 2006 18:09:06 +0300
+
+tntnet (1.5.1+1.5.2pre3-2) unstable; urgency=low
+
+  * Added missing build-deps libgnutls-dev and libltdl3-dev (Closes: #378042)
+
+ -- Kari Pahula <kaol@debian.org>  Thu, 13 Jul 2006 01:07:28 +0300
+
+tntnet (1.5.1+1.5.2pre3-1) unstable; urgency=low
+
+  * Initial release (Closes: #361010)
+
+ -- Kari Pahula <kaol@debian.org>  Wed, 12 Jul 2006 11:03:28 +0300
+
--- tntnet-1.6.3.orig/debian/control
+++ tntnet-1.6.3/debian/control
@@ -0,0 +1,206 @@
+Source: tntnet
+Section: web
+Priority: extra
+Maintainer: Kari Pahula <kaol@debian.org>
+Build-Depends: cdbs, debhelper (>= 5), libcxxtools-dev (>= 1.4.8), quilt, libgnutls-dev, libltdl3-dev, zip, pkg-config, automake, autoconf, libtool
+Standards-Version: 3.8.3
+Homepage: http://www.tntnet.org/
+
+Package: tntnet
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, net-tools, tntnet-runtime (= ${binary:Version})
+Provides: httpd, httpd-cgi
+Suggests: tntnet-doc, libtntnet-dev
+Description: modular, multithreaded web application server for C++
+ Tntnet has a template-language called ecpp similar to PHP, JSP or
+ Mason, where you can embed c++ code inside a HTML page to generate
+ active content. The ecpp files are precompiled to C++ classes called
+ components and compiled and linked into a shared library. This process
+ is done at compiletime. The web server Tntnet needs only the compiled
+ component library.
+ .
+ Because the web applications are compiled into native code, they are
+ very fast and compact.
+ .
+ Components can call other components. So you can create building blocks
+ of HTML parts and call them in other pages like subprocesses.
+ .
+ Requests are parsed by tntnet and the request information is easily
+ accessible to the components. It supports GET and POST parameters and
+ MIME multipart requests for file upload.
+ .
+ The template language has also support for internationalized
+ applications. You can easily create web applications for different
+ languages.
+ .
+ Other features are: cookies, HTTP upload, automatic request parameter
+ parsing and conversion, automatic session management, scoped variables
+ (application, request and session), internationalisation and keep-alive.
+ .
+ Logging is done through cxxtools, which provides a unique API for
+ log4cpp, log4cxx or simple logging to files or console.
+ .
+ Tntnet is fully multithreaded and much work has been gone into making
+ it scalable. It uses a dynamic pool of worker threads, which answer
+ requests from HTTP clients.
+
+Package: tntnet-doc
+Architecture: all
+Section: doc
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: tntnet-demos
+Description: documentation for Tntnet
+ Tntnet has a template-language called ecpp similar to PHP, JSP or
+ Mason, where you can embed c++ code inside a HTML page to generate
+ active content. The ecpp files are precompiled to C++ classes called
+ components and compiled and linked into a shared library. This process
+ is done at compiletime. The web server Tntnet needs only the compiled
+ component library.
+ .
+ Because the web applications are compiled into native code, they are
+ very fast and compact.
+ .
+ Components can call other components. So you can create building blocks
+ of HTML parts and call them in other pages like subprocesses.
+ .
+ Requests are parsed by tntnet and the request information is easily
+ accessible to the components. It supports GET and POST parameters and
+ MIME multipart requests for file upload.
+ .
+ The template language has also support for internationalized
+ applications. You can easily create web applications for different
+ languages.
+ .
+ Other features are: cookies, HTTP upload, automatic request parameter
+ parsing and conversion, automatic session management, scoped variables
+ (application, request and session), internationalisation and keep-alive.
+ .
+ Logging is done through cxxtools, which provides a unique API for
+ log4cpp, log4cxx or simple logging to files or console.
+ .
+ Tntnet is fully multithreaded and much work has been gone into making
+ it scalable. It uses a dynamic pool of worker threads, which answer
+ requests from HTTP clients.
+
+Package: tntnet-demos
+Architecture: any
+Section: doc
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: tntnet
+Description: demo web applications for Tntnet
+ Tntnet has a template-language called ecpp similar to PHP, JSP or
+ Mason, where you can embed c++ code inside a HTML page to generate
+ active content. The ecpp files are precompiled to C++ classes called
+ components and compiled and linked into a shared library. This process
+ is done at compiletime. The web server Tntnet needs only the compiled
+ component library.
+ .
+ Because the web applications are compiled into native code, they are
+ very fast and compact.
+ .
+ Components can call other components. So you can create building blocks
+ of HTML parts and call them in other pages like subprocesses.
+ .
+ Requests are parsed by tntnet and the request information is easily
+ accessible to the components. It supports GET and POST parameters and
+ MIME multipart requests for file upload.
+ .
+ The template language has also support for internationalized
+ applications. You can easily create web applications for different
+ languages.
+ .
+ Other features are: cookies, HTTP upload, automatic request parameter
+ parsing and conversion, automatic session management, scoped variables
+ (application, request and session), internationalisation and keep-alive.
+ .
+ Logging is done through cxxtools, which provides a unique API for
+ log4cpp, log4cxx or simple logging to files or console.
+ .
+ Tntnet is fully multithreaded and much work has been gone into making
+ it scalable. It uses a dynamic pool of worker threads, which answer
+ requests from HTTP clients.
+
+Package: libtntnet8
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: tntnet-runtime
+Description: Tntnet libraries
+ Tntnet has a template-language called ecpp similar to PHP, JSP or
+ Mason, where you can embed c++ code inside a HTML page to generate
+ active content. The ecpp files are precompiled to C++ classes called
+ components and compiled and linked into a shared library. This process
+ is done at compiletime. The web server Tntnet needs only the compiled
+ component library.
+ .
+ Because the web applications are compiled into native code, they are
+ very fast and compact.
+ .
+ Components can call other components. So you can create building blocks
+ of HTML parts and call them in other pages like subprocesses.
+ .
+ Requests are parsed by tntnet and the request information is easily
+ accessible to the components. It supports GET and POST parameters and
+ MIME multipart requests for file upload.
+ .
+ The template language has also support for internationalized
+ applications. You can easily create web applications for different
+ languages.
+ .
+ Other features are: cookies, HTTP upload, automatic request parameter
+ parsing and conversion, automatic session management, scoped variables
+ (application, request and session), internationalisation and keep-alive.
+ .
+ Logging is done through cxxtools, which provides a unique API for
+ log4cpp, log4cxx or simple logging to files or console.
+ .
+ Tntnet is fully multithreaded and much work has been gone into making
+ it scalable. It uses a dynamic pool of worker threads, which answer
+ requests from HTTP clients.
+
+Package: libtntnet-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, libcxxtools-dev, libtntnet8
+Conflicts: tntnet-dev (<< 1.6.3-3)
+Replaces: tntnet-dev (<< 1.6.3-3)
+Description: Tntnet library development headers
+ Tntnet has a template-language called ecpp similar to PHP, JSP or
+ Mason, where you can embed c++ code inside a HTML page to generate
+ active content. The ecpp files are precompiled to C++ classes called
+ components and compiled and linked into a shared library. This process
+ is done at compiletime. The web server Tntnet needs only the compiled
+ component library.
+ .
+ Because the web applications are compiled into native code, they are
+ very fast and compact.
+ .
+ Components can call other components. So you can create building blocks
+ of HTML parts and call them in other pages like subprocesses.
+ .
+ Requests are parsed by tntnet and the request information is easily
+ accessible to the components. It supports GET and POST parameters and
+ MIME multipart requests for file upload.
+ .
+ The template language has also support for internationalized
+ applications. You can easily create web applications for different
+ languages.
+ .
+ Other features are: cookies, HTTP upload, automatic request parameter
+ parsing and conversion, automatic session management, scoped variables
+ (application, request and session), internationalisation and keep-alive.
+ .
+ Logging is done through cxxtools, which provides a unique API for
+ log4cpp, log4cxx or simple logging to files or console.
+ .
+ Tntnet is fully multithreaded and much work has been gone into making
+ it scalable. It uses a dynamic pool of worker threads, which answer
+ requests from HTTP clients.
+
+Package: tntnet-runtime
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: tntnet (<< 1.6.3-3)
+Replaces: tntnet-dev (<< 1.6.3-3)
+Description: Tntnet runtime system
+ This package has the runtime system for tntnet web server.
--- tntnet-1.6.3.orig/debian/libtntnet-dev.install
+++ tntnet-1.6.3/debian/libtntnet-dev.install
@@ -0,0 +1,7 @@
+debian/tmp/usr/bin/ecpp*		usr/bin
+debian/tmp/usr/bin/tntnet-config	usr/bin
+debian/tmp/usr/lib/*.so			usr/lib
+debian/tmp/usr/lib/*.la			usr/lib
+debian/tmp/usr/include/			usr
+debian/tmp/usr/share/man/man1/		usr/share/man/
+debian/tmp/usr/share/man/man7/ecpp*	usr/share/man/man7/
--- tntnet-1.6.3.orig/debian/tntnet.init
+++ tntnet-1.6.3/debian/tntnet.init
@@ -0,0 +1,59 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          tntnet.org
+# Required-Start:    $local_fs $remote_fs $time $network
+# Required-Stop:     $local_fs $remote_fs $time $network
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: modular, multithreaded web application server for C++
+# Description:       web server in which dynamic content can be written in
+#                    ecpp, where C++ code can be embedded in HTML layout.
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/tntnet
+NAME=tntnet
+DESC=tntnet
+
+test -x $DAEMON || exit 0
+
+# Include tntnet defaults if available
+if [ -f /etc/default/tntnet ] ; then
+	. /etc/default/tntnet
+fi
+
+set -e
+
+case "$1" in
+  start)
+	echo -n "Starting $DESC: "
+	if netstat -ln --tcp | grep -c ':80 ' > /dev/null ; then
+		echo "failed, socket in use."
+	else
+		start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+		echo "$NAME."
+	fi
+	;;
+  stop)
+	echo -n "Stopping $DESC: "
+	start-stop-daemon --stop --oknodo --pidfile /var/run/$NAME.pid --retry 20 --quiet --exec $DAEMON
+	echo "$NAME."
+	;;
+  reload|force-reload)
+	echo "Reloading $DESC configuration files."
+	start-stop-daemon --stop --signal 1 --pidfile /var/run/$NAME.pid --quiet --exec $DAEMON
+	;;
+  restart)
+	echo -n "Restarting $DESC: "
+	start-stop-daemon --stop --oknodo --pidfile /var/run/$NAME.pid --quiet --retry 20 --exec $DAEMON
+	start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+	echo "$NAME."
+	;;
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- tntnet-1.6.3.orig/debian/docs
+++ tntnet-1.6.3/debian/docs
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO
--- tntnet-1.6.3.orig/debian/demos.html
+++ tntnet-1.6.3/debian/demos.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<title>Tntnet demos</title>
+</head>
+<body>
+<h1>Tntnet demo applications</h1>
+<ul>
+<li><a href="calc">calc</a>
+<li><a href="calcajax">calcajax</a>
+<li><a href="calcmvc">calcmvc</a>
+<li><a href="calci18n">calci18n</a>
+<li><a href="chat">chat</a>
+<li><a href="comp">comp</a>
+<li><a href="config">config</a>
+<li><a href="controls">controls</a>
+<li><a href="cookie">cookie</a>
+<li><a href="hello">hello</a>
+<li><a href="savepoint">savepoint</a>
+<li><a href="session">session</a>
+<li><a href="sprintf">sprintf</a>
+<li><a href="strings">strings</a>
+<li><a href="upload">upload</a>
+</ul>
+<p>Source code for these demos can be found in
+<tt>/usr/share/doc/tntnet-doc/demos/</tt> on Debian systems.
+</body>
+</html>
--- tntnet-1.6.3.orig/debian/tntnet-demos.install
+++ tntnet-1.6.3/debian/tntnet-demos.install
@@ -0,0 +1,21 @@
+debian/tmp/usr/lib/tntnet/alldemos.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/calc.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/calcajax.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/calcmvc.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/calci18n.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/chat.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/comp.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/config.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/controls.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/cookie.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/extlib.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/hello.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/savepoint.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/session.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/sprintf.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/strings.so*	usr/lib/tntnet/
+debian/tmp/usr/lib/tntnet/upload.so*	usr/lib/tntnet/
+debian/demos.html			usr/share/tntnet/
+sdk/demos/chat/*.png			usr/share/tntnet/
+sdk/demos/chat/*.js			usr/share/tntnet/
+sdk/demos/calcajax/*.js			usr/share/tntnet/
--- tntnet-1.6.3.orig/debian/copyright
+++ tntnet-1.6.3/debian/copyright
@@ -0,0 +1,51 @@
+This package was debianized by Kari Pahula <kaol@debian.org> on
+Sat,  1 Jul 2006 23:10:35 +0300.
+
+It was downloaded from http://www.tntnet.org/download.hms
+
+Upstream Authors: Tommi Mäkitalo <tommi@tntnet.org>
+		  Andreas Welchlin
+
+Copyright: 2003-2008 Tommi Mäkitalo
+
+License:
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+tntnet includes unzip decryption code
+Copyright (C) 1998-2003 Gilles Vollant
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+
+
+The Debian packaging is (C) 2006-2008, Kari Pahula <kaol@debian.org> and
+is licensed under the GPLv2 or later
--- tntnet-1.6.3.orig/debian/tntnet-doc.install
+++ tntnet-1.6.3/debian/tntnet-doc.install
@@ -0,0 +1,47 @@
+sdk/demos/calc/README			usr/share/doc/tntnet-doc/demos/calc
+sdk/demos/calc/*.ecpp			usr/share/doc/tntnet-doc/demos/calc
+sdk/demos/calc/tntnet.*			usr/share/doc/tntnet-doc/demos/calc
+sdk/demos/calcajax/*.ecpp		usr/share/doc/tntnet-doc/demos/calcajax
+sdk/demos/calcajax/tntnet.*		usr/share/doc/tntnet-doc/demos/calcajax
+sdk/demos/calcajax/*.js			usr/share/doc/tntnet-doc/demos/calcajax
+sdk/demos/calcmvc/*.ecpp		usr/share/doc/tntnet-doc/demos/calcmvc
+sdk/demos/calcmvc/tntnet.*		usr/share/doc/tntnet-doc/demos/calcmvc
+sdk/demos/chat/*.png			usr/share/doc/tntnet-doc/demos/chat
+sdk/demos/chat/*.js			usr/share/doc/tntnet-doc/demos/chat
+sdk/demos/chat/*.ecpp			usr/share/doc/tntnet-doc/demos/chat
+sdk/demos/chat/tntnet.*			usr/share/doc/tntnet-doc/demos/chat
+sdk/demos/comp/README			usr/share/doc/tntnet-doc/demos/comp
+sdk/demos/comp/*.ecpp			usr/share/doc/tntnet-doc/demos/comp
+sdk/demos/comp/tntnet.*			usr/share/doc/tntnet-doc/demos/comp
+sdk/demos/config/*.ecpp			usr/share/doc/tntnet-doc/demos/config
+sdk/demos/config/tntnet.*		usr/share/doc/tntnet-doc/demos/config
+sdk/demos/controls/*.ecpp		usr/share/doc/tntnet-doc/demos/controls
+sdk/demos/controls/*.png		usr/share/doc/tntnet-doc/demos/controls
+sdk/demos/controls/tntnet.*		usr/share/doc/tntnet-doc/demos/controls
+sdk/demos/cookie/README			usr/share/doc/tntnet-doc/demos/cookie
+sdk/demos/cookie/*.ecpp			usr/share/doc/tntnet-doc/demos/cookie
+sdk/demos/cookie/tntnet.*		usr/share/doc/tntnet-doc/demos/cookie
+sdk/demos/hello/README			usr/share/doc/tntnet-doc/demos/hello
+sdk/demos/hello/*.ecpp			usr/share/doc/tntnet-doc/demos/hello
+sdk/demos/hello/tntnet.*		usr/share/doc/tntnet-doc/demos/hello
+sdk/demos/newsdb/README			usr/share/doc/tntnet-doc/demos/newsdb
+sdk/demos/newsdb/newsdata.sh		usr/share/doc/tntnet-doc/demos/newsdb
+sdk/demos/newsdb/newsdb.sql		usr/share/doc/tntnet-doc/demos/newsdb
+sdk/demos/newsdb/*.ecpp			usr/share/doc/tntnet-doc/demos/newsdb
+sdk/demos/newsdb/*.css			usr/share/doc/tntnet-doc/demos/newsdb
+sdk/demos/newsdb/tntnet.*		usr/share/doc/tntnet-doc/demos/newsdb
+sdk/demos/savepoint/*.ecpp		usr/share/doc/tntnet-doc/demos/savepoint
+sdk/demos/savepoint/tntnet.*		usr/share/doc/tntnet-doc/demos/savepoint
+sdk/demos/session/*.ecpp		usr/share/doc/tntnet-doc/demos/session
+sdk/demos/session/tntnet.*		usr/share/doc/tntnet-doc/demos/session
+sdk/demos/sprintf/README		usr/share/doc/tntnet-doc/demos/sprintf
+sdk/demos/sprintf/*.ecpp		usr/share/doc/tntnet-doc/demos/sprintf
+sdk/demos/sprintf/tntnet.*		usr/share/doc/tntnet-doc/demos/sprintf
+sdk/demos/strings/*.ecpp		usr/share/doc/tntnet-doc/demos/strings
+sdk/demos/strings/tntnet.*		usr/share/doc/tntnet-doc/demos/strings
+sdk/demos/upload/README			usr/share/doc/tntnet-doc/demos/upload
+sdk/demos/upload/*.ecpp			usr/share/doc/tntnet-doc/demos/upload
+sdk/demos/upload/tntnet.*		usr/share/doc/tntnet-doc/demos/upload
+doc/*.pdf				usr/share/doc/tntnet-doc
+doc/*.odt				usr/share/doc/tntnet-doc
+# openoffice failed to open doc/tntnet_doku.doc. I'll leave it uninstalled.
--- tntnet-1.6.3.orig/debian/tntnet.default
+++ tntnet-1.6.3/debian/tntnet.default
@@ -0,0 +1,10 @@
+# Defaults for tntnet initscript
+# sourced by /etc/init.d/tntnet
+# installed at /etc/default/tntnet by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
--- tntnet-1.6.3.orig/debian/tntnet.postinst
+++ tntnet-1.6.3/debian/tntnet.postinst
@@ -0,0 +1,44 @@
+#!/bin/sh
+# postinst script for tntnet
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+    configure)
+	mkdir -p /var/log/tntnet/
+	chmod 0750 /var/log/tntnet/
+	chown www-data:adm /var/log/tntnet/
+	;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- tntnet-1.6.3.orig/debian/libtntnet8.install
+++ tntnet-1.6.3/debian/libtntnet8.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/lib*.so.*		usr/lib
--- tntnet-1.6.3.orig/debian/patches/conf_in_fixes
+++ tntnet-1.6.3/debian/patches/conf_in_fixes
@@ -0,0 +1,23 @@
+Index: tntnet-1.6.0/etc/tntnet/tntnet.conf.in
+===================================================================
+--- tntnet-1.6.0.orig/etc/tntnet/tntnet.conf.in	2007-05-29 22:57:26.000000000 +0300
++++ tntnet-1.6.0/etc/tntnet/tntnet.conf.in	2007-05-29 23:01:30.000000000 +0300
+@@ -40,11 +40,14 @@
+ MapUrl  ^/demos/controls/(.*)\..*    $1@controls
+ MapUrl  ^/demos/controls/$           index@controls  index
+ MapUrl  ^/demos/controls/(.*)        index@controls  $1
+-MapUrl  ^/demos/(.*)\..*             $1@$1    $1
+-MapUrl  ^/demos/(.*)                 $1@$1
++MapUrl  ^/demos/(.+)\..*             $1@$1    $1
++MapUrl  ^/demos/(.+)                 $1@$1
+ MapUrl  ^/demos/tntnet.jpg           tntnet@hello
++MapUrl  ^/demos/$                    static@tntnet /usr/share/tntnet/demos.html
++MapUrl  ^/demos/(.*)\.png$           static@tntnet /usr/share/tntnet/$1.png
++MapUrl  ^/demos/(.*)\.js$            static@tntnet /usr/share/tntnet/$1.js
+ 
+ # configure tntnet as a simple webserver
+-DocumentRoot /var/www
+-MapUrl  (.*)/$  static@tntnet /$1/index.html
++#DocumentRoot /var/www
++MapUrl  ^/(.*/)?$ static@tntnet /var/www/$1index.html
+ MapUrl  ^/(.*)$ static@tntnet /$1
--- tntnet-1.6.3.orig/debian/patches/tntnet_conf_7_clean
+++ tntnet-1.6.3/debian/patches/tntnet_conf_7_clean
@@ -0,0 +1,13 @@
+Index: tntnet-1.6.0/doc/man/tntnet.conf.7
+===================================================================
+--- tntnet-1.6.0.orig/doc/man/tntnet.conf.7	2007-04-07 17:03:56.000000000 +0300
++++ tntnet-1.6.0/doc/man/tntnet.conf.7	2007-05-29 20:02:50.000000000 +0300
+@@ -101,7 +101,7 @@
+ .SS EnableCompression \fIyes|no\fP
+ Specifies, if Tntnet should use gzip-compression at http-level.
+ By default Tntnet use compression.
+-A http-client like a web browser can send a header “Accept-Encoding”, to tell Tntnet, that it would accept compressed data.
++A http-client like a web browser can send a header "Accept-Encoding", to tell Tntnet, that it would accept compressed data.
+ Tntnet then can decide, if it use compression.
+ When the body is complete, Tntnet tries to compress the body.
+ If the data can be compressed by more than 10%, Tntnet sends this compressed data.
--- tntnet-1.6.3.orig/debian/patches/gcc43_header_fixes
+++ tntnet-1.6.3/debian/patches/gcc43_header_fixes
@@ -0,0 +1,12 @@
+Index: tntnet-1.6.3/sdk/tools/ecppc/scopevar.cpp
+===================================================================
+--- tntnet-1.6.3.orig/sdk/tools/ecppc/scopevar.cpp	2008-06-06 09:27:30.000000000 +0300
++++ tntnet-1.6.3/sdk/tools/ecppc/scopevar.cpp	2008-06-06 09:28:19.000000000 +0300
+@@ -22,6 +22,7 @@
+ #include <tnt/stringescaper.h>
+ #include <iterator>
+ #include <iostream>
++#include <algorithm>
+ 
+ namespace tnt
+ {
--- tntnet-1.6.3.orig/debian/patches/series
+++ tntnet-1.6.3/debian/patches/series
@@ -0,0 +1,5 @@
+conf_in_fixes
+tntnet_conf_7_clean
+demo_url_suffixes
+gcc43_header_fixes
+use_pkg-config
--- tntnet-1.6.3.orig/debian/patches/demo_url_suffixes
+++ tntnet-1.6.3/debian/patches/demo_url_suffixes
@@ -0,0 +1,39 @@
+Index: tntnet-1.5.2/sdk/demos/chat/chat.ecpp
+===================================================================
+--- tntnet-1.5.2.orig/sdk/demos/chat/chat.ecpp	2006-09-14 09:01:48.000000000 +0300
++++ tntnet-1.5.2/sdk/demos/chat/chat.ecpp	2006-09-14 10:03:18.000000000 +0300
+@@ -1,7 +1,7 @@
+ <html>
+  <head>
+   <title>ecpp-application chat</title>
+-  <script src="ajax" type="text/javascript"></script>
++  <script src="ajax.js" type="text/javascript"></script>
+   <script type="text/javascript">
+ 
+    window.setInterval("updateChat()", 1000);
+@@ -72,9 +72,9 @@
+     </tr>
+    </table>
+    <input type="button" value="talk" onClick="sendMessage()">
+-   <img src="smile" onClick='addText(" :) ")'>
+-   <img src="sad" onClick='addText(" :( ")'>
+-   <img src="wink" onClick='addText(" ;) ")'>
++   <img src="smile.png" onClick='addText(" :) ")'>
++   <img src="sad.png" onClick='addText(" :( ")'>
++   <img src="wink.png" onClick='addText(" ;) ")'>
+   </form>
+   <script type="text/javascript">
+    document.getElementById("person").focus();
+Index: tntnet-1.5.2/sdk/demos/calcajax/calcajax.ecpp
+===================================================================
+--- tntnet-1.5.2.orig/sdk/demos/calcajax/calcajax.ecpp	2006-09-14 10:02:49.000000000 +0300
++++ tntnet-1.5.2/sdk/demos/calcajax/calcajax.ecpp	2006-09-14 10:03:55.000000000 +0300
+@@ -1,7 +1,7 @@
+ <html>
+  <head>
+   <title>Calculator</title>
+-  <script src="calcajax_js" type="text/javascript">
++  <script src="calcajax_js.js" type="text/javascript">
+   </script>
+   <script type="text/javascript">
+     function calc(op)
--- tntnet-1.6.3.orig/debian/patches/use_pkg-config
+++ tntnet-1.6.3/debian/patches/use_pkg-config
@@ -0,0 +1,15 @@
+Index: tntnet-1.6.3/framework/common/Makefile.am
+===================================================================
+--- tntnet-1.6.3.orig/framework/common/Makefile.am	2009-08-19 09:22:07.000000000 +0300
++++ tntnet-1.6.3/framework/common/Makefile.am	2009-08-19 09:22:44.000000000 +0300
+@@ -117,8 +117,8 @@
+ 	tnt/gcryptinit.h \
+ 	tnt/gnutls.h
+ 
+-libtntnet_la_LDFLAGS += `libgnutls-config --libs`
+-libtntnet_la_CXXFLAGS += `libgnutls-config --cflags`
++libtntnet_la_LDFLAGS += `pkg-config gnutls --libs`
++libtntnet_la_CXXFLAGS += `pkg-config gnutls --cflags`
+ endif
+ 
+ if MAKE_OPENSSL
