--- lxsession-0.4.0+svn20090905.orig/debian/watch
+++ lxsession-0.4.0+svn20090905/debian/watch
@@ -0,0 +1,11 @@
+# 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
+
+http://sf.net/lxde/lxsession-([\d.]*)\.tar\.gz
+
+
--- lxsession-0.4.0+svn20090905.orig/debian/prerm
+++ lxsession-0.4.0+svn20090905/debian/prerm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = "remove" ] || [ "$1" = upgrade ]; then
+  update-alternatives --remove x-session-manager /usr/bin/lxsession 
+fi
+
+#DEBHELPER#
+
+exit 0
--- lxsession-0.4.0+svn20090905.orig/debian/control
+++ lxsession-0.4.0+svn20090905/debian/control
@@ -0,0 +1,41 @@
+Source: lxsession
+Section: x11
+Priority: optional
+Maintainer: Andrew Lee (李健秋) <ajqlee@debian.org>
+Build-Depends: debhelper (>= 5), autotools-dev, libgtk2.0-dev (>=2.6), libdbus-glib-1-dev (>=0.31), intltool, docbook-to-man, xsltproc, docbook-xml, docbook-xsl
+Standards-Version: 3.8.3
+Homepage: http://lxde.sf.net
+
+Package: lxsession
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: openbox | x-window-manager, hal, openssh-client | rsh-client | ssh-client
+Suggests: lxde-common, lxpanel, pcmanfm, gpicview
+Provides: x-session-manager, lxsession-lite
+Replaces: lxsession-lite, lxde-settings-daemon
+Conflicts: lxsession-lite, lxde-settings-daemon
+Description: a lightweight X11 session manager
+ LXSession is a lightweight X11 session manager with fewer dependencies,
+ designed for use with the LXDE(Lightweight X11 Desktop Environment).
+ It derived from XSM and have following differences:
+  * Removed the session dialog from xsm.
+  * Stripped down without session restore function.
+  * Automaticlly restart specific program if crashes happened.
+  * Use better configuration.
+  * Provide a nice logout-dialog with the ability to 
+    shutdown/reboot/suspend/hibernate via HAL or gdm,
+ and more....
+ .
+ It's desktop-independent and can be used with any window manager.
+ .
+ As "session manager" lxsession used to automatically start a set of
+ applications and set up a working desktop environment
+ .
+ LXSession has also a built-in lightweight Xsettings daemon, which can 
+ configure GTK+ themes, keyboard, and mouse for you on session startup.
+
+Package: lxsession-lite
+Architecture: all
+Depends: lxsession 
+Description: transiational dummy package which can be safely removed
+ Dummy package to upgrade to the new lxsession package.
--- lxsession-0.4.0+svn20090905.orig/debian/copyright
+++ lxsession-0.4.0+svn20090905/debian/copyright
@@ -0,0 +1,77 @@
+This package was debianized by Andrew Lee <andrew@linux.org.tw> on
+Sat, 01 Mar 2008 21:55:45 +0800.
+
+It was downloaded from http://sourceforge.net/projects/lxde/
+
+Upstream Authors:
+
+    Hong Jen Yee (PCMan)  <pcman.tw@gmail.com>
+    Fred Chien <cfsghost@gmail.com>
+
+Copyright Holders: 
+
+    Copyright (C) 2008-2009 Hong Jen Yee (PCMan)  <pcman.tw@gmail.com>
+
+Most of the session manager is based on XSM by The Open Group.
+
+    Copyright 1994, 1998  The Open Group
+
+The GDM support of lxsession-logout is taken from gnome-session.
+    
+    Copyright (C) 2005 Raffaele Sandrini
+    Copyright (C) 2005 Red Hat, Inc.
+    Copyright (C) 2002, 2003 George Lebl
+    Copyright (C) 2001 Queen of England
+
+HAL support of lxsession-logout is taken from xfce4-session.
+    Copyright (c) 2003-2006 Benedikt Meurer <benny@xfce.org>
+
+The XSettings-related parts of lxde-settings-daemon use MIT licensed 
+source code from gnome-settings-daemon:
+
+	Copyright (C) 2001 Owen Taylor, Matthias Clasen, Red Hat, Inc.
+
+Licence for lxsession/xsettings-common.c
+			lxsession/xsettings-common.h
+			lxsession/xsettings-manager.c
+			lxsession/xsettings-manager.h
+			lxsession/xutils.c
+			lxsession/xutils.h
+
+  * Permission to use, copy, modify, distribute, and sell this software and its
+  * documentation for any purpose is hereby granted without fee, provided that
+  * the above copyright notice appear in all copies and that both that
+  * copyright notice and this permission notice appear in supporting
+  * documentation, and that the name of Red Hat not be used in advertising or
+  * publicity pertaining to distribution of the software without specific,
+  * written prior permission.  Red Hat makes no representations about the
+  * suitability of this software for any purpose.  It is provided "as is"
+  * without express or implied warranty.
+  *
+  * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT
+  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
+  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+   
+License for others files:
+
+    This software is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public License. as 
+    published by the Free Software Foundation; either version 2 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
+    General Public License for more details.
+
+    You should have received a copy of the GNU 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.
+
+
+The Debian packaging is (C) 2008, Andrew Lee <andrew@linux.org.tw> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- lxsession-0.4.0+svn20090905.orig/debian/changelog
+++ lxsession-0.4.0+svn20090905/debian/changelog
@@ -0,0 +1,40 @@
+lxsession (0.4.0+svn20090905-1~bpo50+1) lenny-backports; urgency=low
+
+  * Rebuild for lenny-backports.
+
+ -- Andrew Lee (李健秋) <ajqlee@debian.org>  Thu, 03 Dec 2009 14:13:07 +0800
+
+lxsession (0.4.0+svn20090905-1) unstable; urgency=low
+
+  * Merged the update from Julien Lavergne
+    - debian/copyright: Update copyright and licence.
+    - Update description.
+  * Bumped Standards-Version to 3.8.3
+  * lxsession is stripped down without session restore function. Lower its 
+    alternative priority for x-session-manager. (Closes:#554247, #534563)
+  * Added desktop.conf.example
+
+ -- Andrew Lee (李健秋) <ajqlee@debian.org>  Thu, 03 Dec 2009 13:46:00 +0800
+
+lxsession (0.4+svn20090814-1) unstable; urgency=low
+
+  * New upstream release
+    - Built-in settings daemon
+    - Use Docbook-XML instead of SGML manpages
+    - Updated translations
+  * debian/control:
+    - Build-depends on docbook-xml, docbook-xsl, xsltproc
+    - Provides lxde-settings-daemon
+    - Replaces lxde-settings-daemon
+    - Conflicts lxde-settings-daemon
+  * debian/rules:
+    - Added configure options --enable-man, --sysconfdir=/etc
+  * Bumped Standard-version to 3.8.2
+
+ -- Andrew Lee (李健秋) <ajqlee@debian.org>  Fri, 14 Aug 2009 06:06:55 +0800
+
+lxsession (0.3.8+svn20090521-1) unstable; urgency=low
+
+  * Initial release (Closes: #468823)
+
+ -- Andrew Lee <andrew@linux.org.tw>  Wed, 27 May 2009 01:07:28 +0800
--- lxsession-0.4.0+svn20090905.orig/debian/dirs
+++ lxsession-0.4.0+svn20090905/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- lxsession-0.4.0+svn20090905.orig/debian/postinst
+++ lxsession-0.4.0+svn20090905/debian/postinst
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+if [ "$1" = configure ]; then
+  update-alternatives --install /usr/bin/x-session-manager \
+    x-session-manager /usr/bin/lxsession 49 \
+    --slave /usr/share/man/man1/lxsession-manager.1.gz \
+    x-session-manager.1.gz /usr/share/man/man1/lxsession.1.gz 
+
+fi
+
+#DEBHELPER#
+
+exit 0
--- lxsession-0.4.0+svn20090905.orig/debian/compat
+++ lxsession-0.4.0+svn20090905/debian/compat
@@ -0,0 +1 @@
+5
--- lxsession-0.4.0+svn20090905.orig/debian/rules
+++ lxsession-0.4.0+svn20090905/debian/rules
@@ -0,0 +1,110 @@
+#!/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.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# 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)
+
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	./configure --host=$(DEB_HOST_GNU_TYPE) \
+	--enable-man \
+	--build=$(DEB_BUILD_GNU_TYPE) \
+	--prefix=/usr \
+	--sysconfdir=/etc \
+	--mandir=\$${prefix}/share/man \
+	--infodir=\$${prefix}/share/info \
+	CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#docbook-to-man debian/lxsession.sgml > lxsession.1
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.sub config.guess
+	rm -f intltool-merge \
+	      intltool-extract \
+	      intltool-update
+	rm -f man/lxsession-logout.1 \
+	      man/lxsession.1
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/lxsession.
+	$(MAKE) DESTDIR=$(CURDIR)/debian/lxsession install
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples -A desktop.conf.example
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- lxsession-0.4.0+svn20090905.orig/debian/docs
+++ lxsession-0.4.0+svn20090905/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
