diff -Nru uxlaunch-0.50/debian/changelog uxlaunch-0.50/debian/changelog --- uxlaunch-0.50/debian/changelog 2010-06-22 23:41:47.000000000 +0100 +++ uxlaunch-0.50/debian/changelog 2010-08-15 03:33:28.000000000 +0100 @@ -1,4 +1,11 @@ -uxlaunch (0.50-0ubuntu1~asac4) maverick; urgency=low +uxlaunch (0.50-0ubuntu2~asac1) maverick; urgency=low + + * create uxlaunch-set and install it executable to pkglibdir; calling + it updates the session= line in /etc/uxlaunch/uxlaunch with $1 + + -- Alexander Sack Sun, 15 Aug 2010 03:20:55 +0200 + +uxlaunch (0.50-0ubuntu1) maverick; urgency=low * initial packaging for maverick diff -Nru uxlaunch-0.50/debian/control uxlaunch-0.50/debian/control --- uxlaunch-0.50/debian/control 2010-06-22 23:05:44.000000000 +0100 +++ uxlaunch-0.50/debian/control 2010-06-23 00:12:08.000000000 +0100 @@ -7,7 +7,8 @@ libxau-dev Section: x11 Priority: optional -Maintainer: Alexander Sack +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Alexander Sack Standards-Version: 3.8.4 Package: uxlaunch diff -Nru uxlaunch-0.50/debian/patches/debian-changes-0.50-0ubuntu2 uxlaunch-0.50/debian/patches/debian-changes-0.50-0ubuntu2 --- uxlaunch-0.50/debian/patches/debian-changes-0.50-0ubuntu2 1970-01-01 01:00:00.000000000 +0100 +++ uxlaunch-0.50/debian/patches/debian-changes-0.50-0ubuntu2 2010-08-15 03:32:55.000000000 +0100 @@ -0,0 +1,103 @@ +Description: Upstream changes introduced in version 0.50-0ubuntu2 + This patch has been created by dpkg-source during the package build. + Here's the last changelog entry, hopefully it gives details on why + those changes were made: + . + uxlaunch (0.50-0ubuntu2) maverick; urgency=low + . + * create uxlaunch-set and install it executable to pkglibdir; calling + it updates the session= line in /etc/uxlaunch/uxlaunch with $1 + . + The person named in the Author field signed this changelog entry. +Author: Alexander Sack + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +--- /dev/null ++++ uxlaunch-0.50/uxlaunch-set +@@ -0,0 +1,60 @@ ++#!/bin/sh ++# ++# uxlaunch-set: update session= in system conf ++# ++# (C) Copyright 2010 Linaro ++# Authors: ++# Alexander Sack ++# ++# This program 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; version 2 ++# of the License. ++# ++ ++usage(){ ++ echo "Usage: $0 " ++ echo "( operation)" ++ echo " new - only update if no value is set" ++ echo " update - update value" ++ echo " del - update value" ++ echo "( type = parameter )" ++ echo " session = new session command" ++ echo " user = new default user to use" ++} ++ ++if ! [ "$1" ] && [ "$2" ]; then ++ usage; exit 2 ++fi ++ ++operation=$1 ++type=$2 ++parameter=$3 ++ ++if [ $operation = "new" -o $operation = "update" ] && ! [ "$parameter" ]; then ++ usage; exit 2 ++fi ++ ++# if no sessioN= is configured, we go ahead and set this session ++if [ $operation = "new" -o $operation = "update" ] && ! cat /etc/uxlaunch/uxlaunch | grep -q "^$type="; then ++ echo >> /etc/uxlaunch/uxlaunch ++ echo "# begin auto generated $type by uxlaunch-set" >> /etc/uxlaunch/uxlaunch ++ echo "$type=$parameter" >> /etc/uxlaunch/uxlaunch ++ echo "# end auto generated $type by uxlaunch-set" >> /etc/uxlaunch/uxlaunch ++ echo >> /etc/uxlaunch/uxlaunch ++ exit 0 ++elif test "$operation" = "update"; then ++ escp=`echo "$parameter" | sed -e 's/\//\\\\\//g'` ++ esct=`echo "$type" | sed -e 's/\//\\\\\//g'` ++ sed -i "s/^[^#]*$esct=.*$/$esct=$escp/" /etc/uxlaunch/uxlaunch ++ exit 0 ++fi ++ ++if test "$operation" = "del"; then ++ tmpfile=`mktemp -t` ++ cp /etc/uxlaunch/uxlaunch $tmpfile ++ cat $tmpfile | grep -v "^.*begin auto generated $type.*$" | grep -v "^.*end auto generated $type" | grep -v "^$type=.*" > /etc/uxlaunch/uxlaunch ++fi ++ ++exit 1 ++ +--- uxlaunch-0.50.orig/Makefile ++++ uxlaunch-0.50/Makefile +@@ -8,8 +8,10 @@ all: uxlaunch + + install: uxlaunch + mkdir -p $(DESTDIR)/usr/sbin \ +- $(DESTDIR)/usr/share/man/man1/ ++ $(DESTDIR)/usr/share/man/man1/ \ ++ $(DESTDIR)/usr/share/uxlaunch/ + install -m0755 uxlaunch $(DESTDIR)/usr/sbin/ ++ install -m0755 uxlaunch-set $(DESTDIR)/usr/share/uxlaunch/ + install -m0644 uxlaunch.1 $(DESTDIR)/usr/share/man/man1/uxlaunch.1 + mkdir -p $(DESTDIR)$(CONF_DIR) + [ -f $(DESTDIR)$(CONF_DIR)/uxlaunch ] || \ diff -Nru uxlaunch-0.50/debian/patches/series uxlaunch-0.50/debian/patches/series --- uxlaunch-0.50/debian/patches/series 2010-06-22 23:50:19.000000000 +0100 +++ uxlaunch-0.50/debian/patches/series 2010-08-15 02:21:41.000000000 +0100 @@ -1,3 +1,4 @@ config_path_support.patch startx_as_root.patch no_xdg_env_tweaking.patch +debian-changes-0.50-0ubuntu2 diff -Nru uxlaunch-0.50/debian/rules uxlaunch-0.50/debian/rules --- uxlaunch-0.50/debian/rules 2010-06-22 23:05:24.000000000 +0100 +++ uxlaunch-0.50/debian/rules 2010-06-23 00:10:32.000000000 +0100 @@ -1,6 +1,5 @@ #!/usr/bin/make -f -export DISTRO_FLAVOR=debian export CONF_DIR=/etc/uxlaunch/ %: