--- nginx-1.0.14.orig/debian/rules
+++ nginx-1.0.14/debian/rules
@@ -0,0 +1,47 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+%:
+	dh $@ 
+
+override_dh_auto_configure:
+	./configure \
+		--prefix=/etc/nginx/ \
+		--sbin-path=/usr/sbin/nginx \
+		--conf-path=/etc/nginx/nginx.conf \
+		--error-log-path=/var/log/nginx/error.log \
+		--http-log-path=/var/log/nginx/access.log \
+		--pid-path=/var/run/nginx.pid \
+		--lock-path=/var/run/nginx.lock \
+		--http-client-body-temp-path=/var/cache/nginx/client_temp \
+		--http-proxy-temp-path=/var/cache/nginx/proxy_temp \
+		--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
+		--http-uwsgi-temp-path=/var/cache/nginx/uwcgi_temp \
+		--http-scgi-temp-path=/var/cache/nginx/scgi_temp \
+		--user=nginx \
+		--group=nginx \
+		--with-http_ssl_module \
+		--with-http_realip_module \
+		--with-http_addition_module \
+		--with-http_sub_module \
+		--with-http_dav_module \
+		--with-http_flv_module \
+		--with-http_mp4_module \
+		--with-http_gzip_static_module \
+		--with-http_random_index_module \
+		--with-http_secure_link_module \
+		--with-http_stub_status_module \
+		--with-mail \
+		--with-mail_ssl_module \
+		--with-file-aio \
+		--with-ipv6 \
+		--with-debug
+override_dh_auto_install:
+	dh_auto_install
+	rm -f debian/nginx/etc/nginx/*.default
+	rm -f debian/nginx/etc/nginx/fastcgi.conf
+	/usr/bin/install -m 644 debian/nginx.conf debian/nginx/etc/nginx/
+#	/usr/bin/install -m 644 debian/nginx.vh.default.conf debian/nginx/etc/nginx/conf.d/default.conf
+#	/usr/bin/install -m 644 debian/nginx.vh.example_ssl.conf debian/nginx/etc/nginx/conf.d/example_ssl.conf
+	mv debian/nginx/etc/nginx/html debian/nginx/usr/share/nginx
--- nginx-1.0.14.orig/debian/source/format
+++ nginx-1.0.14/debian/source/format
@@ -0,0 +1,1 @@
+3.0 (quilt)
--- nginx-1.0.14.orig/debian/nginx.default
+++ nginx-1.0.14/debian/nginx.default
@@ -0,0 +1,5 @@
+# Defaults for nginx initscript
+# sourced by /etc/init.d/nginx
+
+# Additional options that are passed to nginx
+DAEMON_OPTS=""
--- nginx-1.0.14.orig/debian/compat
+++ nginx-1.0.14/debian/compat
@@ -0,0 +1,1 @@
+7
--- nginx-1.0.14.orig/debian/nginx.vh.example_ssl.conf
+++ nginx-1.0.14/debian/nginx.vh.example_ssl.conf
@@ -0,0 +1,21 @@
+# HTTPS server
+#
+#server {
+#    listen       443;
+#    server_name  localhost;
+
+#    ssl                  on;
+#    ssl_certificate      /etc/nginx/cert.pem;
+#    ssl_certificate_key  /etc/nginx/cert.key;
+
+#    ssl_session_timeout  5m;
+
+#    ssl_protocols  SSLv2 SSLv3 TLSv1;
+#    ssl_ciphers  HIGH:!aNULL:!MD5;
+#    ssl_prefer_server_ciphers   on;
+
+#    location / {
+#        root   /usr/share/nginx/html;
+#        index  index.html index.htm;
+#    }
+#}
--- nginx-1.0.14.orig/debian/nginx.postrm
+++ nginx-1.0.14/debian/nginx.postrm
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    purge)
+        rm -rf /var/cache/nginx /var/log/nginx /etc/nginx
+        ;;
+    remove)
+        rm -rf /var/cache/nginx /var/log/nginx
+        ;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        ;;
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+esac
+
+#DEBHELPER#
+
+exit 0
--- nginx-1.0.14.orig/debian/nginx.preinst
+++ nginx-1.0.14/debian/nginx.preinst
@@ -0,0 +1,38 @@
+#! /bin/sh
+# preinst script for nginx
+
+set -e
+
+case "$1" in
+    install|upgrade)
+        # creating nginx group if he isn't already there
+        if ! getent group nginx >/dev/null; then
+            addgroup --system nginx >/dev/null
+        fi
+
+        # creating nginx user if he isn't already there
+        if ! getent passwd nginx >/dev/null; then
+            adduser \
+              --system \
+              --disabled-login \
+              --ingroup nginx \
+              --no-create-home \
+              --home /nonexistent \
+              --gecos "nginx user" \
+              --shell /bin/false \
+              nginx  >/dev/null
+        fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- nginx-1.0.14.orig/debian/nginx.conf
+++ nginx-1.0.14/debian/nginx.conf
@@ -0,0 +1,32 @@
+
+user  nginx;
+worker_processes  1;
+
+error_log  /var/log/nginx/error.log warn;
+pid        /var/run/nginx.pid;
+
+
+events {
+    worker_connections  1024;
+}
+
+
+http {
+    include       /etc/nginx/mime.types;
+    default_type  application/octet-stream;
+
+    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
+                      '$status $body_bytes_sent "$http_referer" '
+                      '"$http_user_agent" "$http_x_forwarded_for"';
+
+    access_log  /var/log/nginx/access.log  main;
+
+    sendfile        on;
+    #tcp_nopush     on;
+
+    keepalive_timeout  65;
+
+    #gzip  on;
+
+    include /etc/nginx/conf.d/*.conf;
+}
--- nginx-1.0.14.orig/debian/docs
+++ nginx-1.0.14/debian/docs
@@ -0,0 +1,3 @@
+README
+CHANGES
+CHANGES.ru
--- nginx-1.0.14.orig/debian/dirs
+++ nginx-1.0.14/debian/dirs
@@ -0,0 +1,5 @@
+/etc/nginx/conf.d
+/etc/nginx/sites-enabled
+/etc/nginx/sites-available
+/usr/share/nginx
+/var/cache/nginx
--- nginx-1.0.14.orig/debian/logrotate
+++ nginx-1.0.14/debian/logrotate
@@ -0,0 +1,13 @@
+/var/log/nginx/*.log {
+        daily
+        missingok
+        rotate 52
+        compress
+        delaycompress
+        notifempty
+        create 640 root adm
+        sharedscripts
+        postrotate
+                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
+        endscript
+}
--- nginx-1.0.14.orig/debian/nginx.vh.default.conf
+++ nginx-1.0.14/debian/nginx.vh.default.conf
@@ -0,0 +1,44 @@
+server {
+    listen       80;
+    server_name  localhost;
+
+    #charset koi8-r;
+    #access_log  /var/log/nginx/log/host.access.log  main;
+
+    location / {
+        root   /usr/share/nginx/html;
+        index  index.html index.htm;
+    }
+
+    #error_page  404              /404.html;
+
+    # redirect server error pages to the static page /50x.html
+    #
+    error_page   500 502 503 504  /50x.html;
+    location = /50x.html {
+        root   /usr/share/nginx/html;
+    }
+
+    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
+    #
+    #location ~ \.php$ {
+    #    proxy_pass   http://127.0.0.1;
+    #}
+
+    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
+    #
+    #location ~ \.php$ {
+    #    root           html;
+    #    fastcgi_pass   127.0.0.1:9000;
+    #    fastcgi_index  index.php;
+    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
+    #    include        fastcgi_params;
+    #}
+
+    # deny access to .htaccess files, if Apache's document root
+    # concurs with nginx's one
+    #
+    #location ~ /\.ht {
+    #    deny  all;
+    #}
+}
--- nginx-1.0.14.orig/debian/copyright
+++ nginx-1.0.14/debian/copyright
@@ -0,0 +1,43 @@
+This work was packaged by:
+
+    Sergey Budnevitch <sb@nginx.com> on Thu, 11 Aug 2011 12:57:47 +0400
+
+It was downloaded from:
+
+    <http://nginx.org/download/>
+
+Upstream Author(s):
+
+    Igor Sysoev <igor@sysoev.ru>
+
+Copyright:
+
+ Copyright (C) 2002-2011 Igor Sysoev
+
+License:
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. 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.
+
+ THIS SOFTWARE IS PROVIDED BY AUTHOR 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 AUTHOR 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.
+
+The Debian packaging is:
+
+  Copyright (C) 2011 nginx inc.
+  provided under the same license as nginx itself.
--- nginx-1.0.14.orig/debian/control
+++ nginx-1.0.14/debian/control
@@ -0,0 +1,13 @@
+Source: nginx
+Section: httpd
+Priority: optional
+Maintainer: Sergey Budnevitch <sb@nginx.com>
+Build-Depends: debhelper (>= 7.0.50~), libssl-dev (>= 0.9.7), libpcre3-dev, zlib1g-dev
+Standards-Version: 3.8.4
+Homepage: http://nginx.org
+
+Package: nginx
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, lsb-base, adduser
+Description: HTTP and reverse proxy server, as well as a mail proxy server 
+  written by Igor Sysoev
--- nginx-1.0.14.orig/debian/init.d
+++ nginx-1.0.14/debian/init.d
@@ -0,0 +1,104 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          nginx
+# Required-Start:    $network $remote_fs $local_fs 
+# Required-Stop:     $network $remote_fs $local_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Stop/start nginx
+### END INIT INFO
+
+# Author: Sergey Budnevitch <sb@nginx.com>
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC=nginx
+NAME=nginx
+DAEMON=/usr/sbin/nginx
+DAEMON_ARGS=""
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+[ -x $DAEMON ] || exit 0
+
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+. /lib/init/vars.sh
+
+. /lib/lsb/init-functions
+
+do_start()
+{
+	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+		$DAEMON_ARGS \
+		|| return 2
+}
+
+do_stop()
+{
+	# Return
+	#   0 if daemon has been stopped
+	#   1 if daemon was already stopped
+	#   2 if daemon could not be stopped
+	#   other if a failure occurred
+	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+	RETVAL="$?"
+	rm -f $PIDFILE
+	return "$RETVAL"
+}
+
+do_reload() {
+	#
+	start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+	return 0
+}
+
+case "$1" in
+  start)
+    [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
+    do_start
+    case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+  ;;
+  stop)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+	do_stop
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  status)
+       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+       ;;
+  reload|force-reload)
+	log_daemon_msg "Reloading $DESC" "$NAME"
+	do_reload
+	log_end_msg $?
+	;;
+  restart|force-reload)
+	log_daemon_msg "Restarting $DESC" "$NAME"
+	do_stop
+	case "$?" in
+	  0|1)
+		do_start
+		case "$?" in
+			0) log_end_msg 0 ;;
+			1) log_end_msg 1 ;; # Old process is still running
+			*) log_end_msg 1 ;; # Failed to start
+		esac
+		;;
+	  *)
+	  	# Failed to stop
+		log_end_msg 1
+		;;
+	esac
+	;;
+  *)
+	echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload|force-reload}" >&2
+	exit 3
+	;;
+esac
+
+:
--- nginx-1.0.14.orig/debian/changelog
+++ nginx-1.0.14/debian/changelog
@@ -0,0 +1,37 @@
+nginx (1.0.14-1) unstable; urgency=low
+
+  * 1.0.14
+
+ -- Nikita Borzykh <sample.n@gmail.com> Fri, 16 Mar 2012 03:29:34 +0400
+
+nginx (1.0.10-1) unstable; urgency=low
+
+  * 1.0.10
+
+ -- Nikita Borzykh <sample.n@gmail.com>  Wed, 23 Nov 2011 23:18:11 +0400
+
+nginx (1.0.8-1) unstable; urgency=low
+
+  * 1.0.8
+  * built with mp4 module
+
+ -- Sergey Budnevitch <sb@nginx.com>  Sat, 01 Oct 2011 17:22:17 +0400
+
+nginx (1.0.7-1) unstable; urgency=low
+
+  * 1.0.7
+
+ -- Sergey Budnevitch <sb@nginx.com>  Fri, 30 Sep 2011 18:34:17 +0400
+
+nginx (1.0.6-1) unstable; urgency=low
+
+  * 1.0.6
+  * replace "conf.d/*" config include with "conf.d/*.conf" in default nginx.conf  
+
+ -- Sergey Budnevitch <sb@nginx.com>  Tue, 30 Aug 2011 19:27:16 +0400
+
+nginx (1.0.5-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Sergey Budnevitch <sb@nginx.com>  Thu, 11 Aug 2011 12:57:47 +0400
