packaging files for QtCreator added
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sun, 14 Aug 2011 08:18:14 +0000 (11:18 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sun, 14 Aug 2011 08:20:47 +0000 (11:20 +0300)
src/qtc_packaging/debian_fremantle/README [new file with mode: 0644]
src/qtc_packaging/debian_fremantle/changelog [new file with mode: 0644]
src/qtc_packaging/debian_fremantle/compat [new file with mode: 0644]
src/qtc_packaging/debian_fremantle/control [new file with mode: 0644]
src/qtc_packaging/debian_fremantle/copyright [new file with mode: 0644]
src/qtc_packaging/debian_fremantle/kitchenalert.dirs [new file with mode: 0644]
src/qtc_packaging/debian_fremantle/kitchenalert.install [new file with mode: 0755]
src/qtc_packaging/debian_fremantle/kitchenalert.postinst [new file with mode: 0644]
src/qtc_packaging/debian_fremantle/kitchenalert.postrm [new file with mode: 0644]
src/qtc_packaging/debian_fremantle/rules [new file with mode: 0755]

diff --git a/src/qtc_packaging/debian_fremantle/README b/src/qtc_packaging/debian_fremantle/README
new file mode 100644 (file)
index 0000000..64dfea2
--- /dev/null
@@ -0,0 +1,6 @@
+The Maemo5 debian package kitchenalert
+----------------------------
+
+KitchenAlert is a timer application that supports multiple timers.
+
+ -- Heli Hyvättinen <heli.hyvattinen@kymp.net>  Sun,  Aug 2011 11:13:00 +0300
diff --git a/src/qtc_packaging/debian_fremantle/changelog b/src/qtc_packaging/debian_fremantle/changelog
new file mode 100644 (file)
index 0000000..702d5e6
--- /dev/null
@@ -0,0 +1,46 @@
+kitchenalert (0.3.1) unstable; urgency=low
+
+  * Attempt to package with Qt Creator - failure guaranteed
+
+ -- Heli Hyvättinen <heli@unknown>  Sat, 05 Mar 2011 17:03:17 +0200
+
+kitchenalert (0.3.0-1) unstable; urgency=low
+
+  * a timer can now be saved to a file and loaded from it
+  * when removing a timer from the list, the selection is cleared ("restart" and "stop" buttons no longer active after last alert has been removed)
+  * "new timer" button now reacts to "clicking" (pressing and releasing) instead of just pressing for consistency with other buttons
+
+ -- Heli Hyvättinen <heli.hyvattinen@kymp.net>  Mon,  9 May 2011 16:40:44 +0300
+
+kitchenalert (0.2.1-1) unstable; urgency=low
+
+  * restored the ability to change the alert sound when there are no alerts in the list (closes #6857)
+  * uses QtMultimedia instead of Phonon (this time for real)
+
+ -- Heli Hyvättinen <heli.hyvattinen@kymp.net>  Tue, 29 Mar 2011 21:09:03 +0300
+
+kitchenalert (0.2.0-1) unstable; urgency=low
+
+  * finger-friendlier alert list
+  * long alert texts now split to multiple lines (no more horizontal scrolling)
+  * the system now treats the alert sound as an "alarm" and thus should no longer block it if MediaPlayer is playing (fixes #6807) (pulseaudio is restarted during installation for this to take effect)
+  * stopping one timer no longer silences all timers if more than one is playing the alert sound
+  * timers can now be removed from the list
+  * a new default sound
+  * alert sound no longer jams when several timers alert close to each other (fixes #6381)
+  * selection no longer lost when re-entering the app (fixes #6346)
+  * "done" button renamed to "stop"
+  * the view now scrolls to the alerting timer
+  * a new icon
+  * uses QtMultimedia instead of Phonon
+  * a decent copyright file included
+  * no longer installs useless doc files
+
+
+ -- Heli Hyvättinen <heli.hyvattinen@kymp.net>  Thu, 24 March 2011 21:28:00 +0300
+
+kitchenalert (0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Heli Hyvättinen <heli.hyvattinen@kymp.net>  Tue, 20 Jul 2010 07:28:36 +0300
diff --git a/src/qtc_packaging/debian_fremantle/compat b/src/qtc_packaging/debian_fremantle/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/src/qtc_packaging/debian_fremantle/control b/src/qtc_packaging/debian_fremantle/control
new file mode 100644 (file)
index 0000000..9f33b0d
--- /dev/null
@@ -0,0 +1,24 @@
+Source: kitchenalert
+Section: user/utilities
+Priority: extra
+Maintainer: Heli Hyvättinen <heli.hyvattinen@kymp.net>
+Build-Depends: debhelper (>= 5), libqt4-dev, libqtm-dev
+Standards-Version: 3.7.3
+Homepage: http://kitchenalert.garage.maemo.org/
+
+Package: kitchenalert
+Architecture: user/utilities
+Depends: ${shlibs:Depends}, ${misc:Depends}
+XSBC-Bugtracker: https://garage.maemo.org/projects/kitchenalert/
+Description: Timer application with multiple timers
+ KitchenAlert is a timer application targeted especially to use in baking and cooking. Supports running multiple timers simultaneously.
+ NOTE: Does not alert during phone calls. Obeys the volume setting of the device. Testing the needed volume for the alert sound used in the location the device will be kept is highly recommended before using the application for a real alert.
+ Pulseaudio (i.e. the sound system) will be restarted during the install.
+XB-Maemo-Upgrade-Description: Timer application with multiple timers
+ KitchenAlert is a timer application targeted especially to use in baking and cooking. Supports running multiple timers simultaneously.
+ NOTE: Does not alert during phone calls. Obeys the volume setting of the device. Testing the needed volume in the location the device will be kept is highly recommended before using the application for a real alert.
+ Pulseaudio (i.e. the sound system) will be restarted during the install.
+ New in this version:
+ Bugfix: restored the ability to change the alert sound when there are no alerts in the list
+XB-Maemo-Icon-26: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAEslJREFUaIGdmnusZVd93z/rsR/ndc+dO3denjvjsRnb2I6xExsQToxFSxMaIhDhFfqARAiHBqdtJNomUAlUqVWbNiiliRVUEkL+aNxGSUiqmFSJIbjYmKg24Ax+ZGzmPffOvTP33vM+e++11q9/rH3uPR4PLuqStvbjHJ39e/++39866oFfkn+QZySiaLuKTALp/v10fCCxFls59NIexJX4IIwEit4WZVEyaHconaPausI4SXECblpQiODw+BBwSuEFgjY475EgBKXw2iNOI6rCVwYxBtFVPFcGSYUAUNXPrEUAimruukBsarC+JOl0yaaa3Fc0vGchb5KrQGIUNs/wY4drZOjLV0hswiRvUUzH0OsjjQamLAmVQ0tAKYUGhASMoERQPqAACfFz5UA04C0qMaAdhByhghyoPMqYKCjAuD4bXr5s1iAH8qJkUWvae5ZZGAw5urBAN8vopBmNhQXKJ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GmuW1OMKwv7mb4DNyRD03qvkxcznx8V/6hdbFtT/7N69mfZjbdTUVMiMLZm58V1y1rzNzwjV2gigscnnjqVvuuP+49dU4NqjZnKfGOTNLRzYpsw+ROGeJ+7EKDuzbQyNP7vx+wk/SeK9nlryGPD/QsjYOXGdYvSq3jx48sE/FicUuQFb1vlK83u0BkQvvKjPzRmJhz9LigZnw/WsID2BnRDnL/j8VKBBau/eu2v7RF1/8Ht57vv7U6R2hfU1FZ3E+o4wzBBsVm8+Hk/jK7Vh+AegDyZzwSYrsBEtxjWaRZbtVyRbItQb1BczLTyeR4/nF51m98DxBwo4CsentNrsdBUKohWenGs2U6VaDnd+dpMi19sbtNZ7tCjePPV7te+WcVbRiqRHNNIPYtQbMzDubZswQ7A7tqKHvzAsNa3aEv/qdyRhhDNb+gB2v+H8oARGvT1T3of91uthDjSgBAmHu/wKg9e47d75Tn/UceSm8citXCZ+MX37/fwEuKZZ3fou1xwAAAABJRU5ErkJggg==
+XB-Maemo-Display-Name: KitchenAlert
diff --git a/src/qtc_packaging/debian_fremantle/copyright b/src/qtc_packaging/debian_fremantle/copyright
new file mode 100644 (file)
index 0000000..e6b7c39
--- /dev/null
@@ -0,0 +1,37 @@
+This version was packaged for Maemo 5 by:
+
+    Heli Hyvättinen <heli.hyvattinen@kymp.net> on Tue, 24 May 2011
+
+It was downloaded from:
+
+    <https://garage.maemo.org/projects/kitchenalert>
+
+Upstream Author(s):
+
+    Heli Hyvättinen <heli.hyvattinen@kymp.net>
+
+
+Copyright:
+
+    Copyright (C) 2010-2011 Heli Hyvättinen <heli.hyvattinen@kymp.net>
+
+
+License:
+
+    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, either version 3 of the License, or
+    (at your option) any later version.
+
+    This package 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.
+
+    For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
+
+
+The Maemo5 packaging is:
+
+    Copyright (C) 2010-2011 Heli Hyvättinen <heli.hyvattinen@kymp.net>
+    and is licensed under the GPL version 3, see above.
diff --git a/src/qtc_packaging/debian_fremantle/kitchenalert.dirs b/src/qtc_packaging/debian_fremantle/kitchenalert.dirs
new file mode 100644 (file)
index 0000000..1f2739b
--- /dev/null
@@ -0,0 +1 @@
+/home/user/KitchenAlert/ 
diff --git a/src/qtc_packaging/debian_fremantle/kitchenalert.install b/src/qtc_packaging/debian_fremantle/kitchenalert.install
new file mode 100755 (executable)
index 0000000..43c2b1d
--- /dev/null
@@ -0,0 +1,3 @@
+src/kitchenalert.png usr/share/icons/hicolor/64x64/apps
+data/DoorbellModifiedFinal.mp3 /opt/KitchenAlert
+
diff --git a/src/qtc_packaging/debian_fremantle/kitchenalert.postinst b/src/qtc_packaging/debian_fremantle/kitchenalert.postinst
new file mode 100644 (file)
index 0000000..aa3a41a
--- /dev/null
@@ -0,0 +1,44 @@
+#! /bin/sh
+
+set -e
+
+gtk-update-icon-cache /usr/share/icons/hicolor
+
+#check whether the needed sound systen settings are already in place
+
+if ! grep -q KitchenAlert /usr/share/policy/etc/current/pulse/xpolicy.conf
+
+then
+
+#checks whether there is a newline at the end of the file and adds one if there is not and then
+#checks if there is an ampty line at the end of the file and add one if there is not
+
+perl -e 'use strict;' \
+-e 'use warnings;' \
+-e 'open(my $in,  "<",  "/usr/share/policy/etc/current/pulse/xpolicy.conf")  or die "Cannot open /usr/share/policy/etc/current/pulse/xpolicy.conf: $!";' \
+-e 'my @lines = <$in>;' \
+-e 'my $lastlineishere = $#lines;' \
+-e 'my $lastline = $lines[$lastlineishere];' \
+-e 'unless ($lastline =~ /\n$/){open(my $log, ">>", "/usr/share/policy/etc/current/pulse/xpolicy.conf") or die "Cannot open /usr/share/policy/etc/current/pulse/xpolicy.conf: $!"; print $log "\n"; }' \
+-e 'unless ($lastline =~ /^\n$/){open(my $log, ">>", "/usr/share/policy/etc/current/pulse/xpolicy.conf") or die "Cannot open /usr/share/policy/etc/current/pulse/xpolicy.conf: $!"; print $log "\n"; }'
+
+#writes the sound system settings needed
+
+echo -e "[stream]\n\
+exe    = KitchenAlert\n\
+group  = alarm" >> /usr/share/policy/etc/current/pulse/xpolicy.conf
+
+#restarts the pulseaudio so that the above changed settings take effect
+#this interrupts all playing sounds (they do not resume play at restart)
+stop pulseaudio
+start pulseaudio
+
+# give the default save directory to user "user" so it can be written to from the application 
+# (autocreating with kitchenalert.dirs gives it to root with no access rights to user)
+chown user /home/user/KitchenAlert
+
+fi
+
+exit 0
diff --git a/src/qtc_packaging/debian_fremantle/kitchenalert.postrm b/src/qtc_packaging/debian_fremantle/kitchenalert.postrm
new file mode 100644 (file)
index 0000000..01e44f4
--- /dev/null
@@ -0,0 +1,34 @@
+#! /bin/sh
+
+set -e
+
+#This checks whether there is a newline at the end of the file and adds one if there was not.
+#Needed because sed deletes the last line if it does not end with a newline 
+
+perl -e 'use strict;' \
+-e 'use warnings;' \
+-e 'open(my $in,  "<",  "/usr/share/policy/etc/current/pulse/xpolicy.conf")  or die "Cannot open /usr/share/policy/etc/current/pulse/xpolicy.conf: $!";' \
+-e 'my @lines = <$in>;' \
+-e 'my $lastlineishere = $#lines;' \
+-e 'my $lastline = $lines[$lastlineishere];' \
+-e 'unless ($lastline =~ /\n$/){open(my $log, ">>", "/usr/share/policy/etc/current/pulse/xpolicy.conf") or die "Cannot open /usr/share/policy/etc/current/pulse/xpolicy.conf: $!"; print $log "\n"; }'
+#This removes three subsequent lines from xpolicy.conf if they all match (the lines added by the postinstall script)
+
+sed -i '
+/'[stream]'/ {
+#append a line
+N
+#search for KitchenAlert on the second line
+/\nexe\t= KitchenAlert/ {
+N
+#searh next line
+/\ngroup\t= alarm/ {
+
+#s/'[stream]'.*alarm//
+d
+}}}' /usr/share/policy/etc/current/pulse/xpolicy.conf 
+
+exit 0
+
+
diff --git a/src/qtc_packaging/debian_fremantle/rules b/src/qtc_packaging/debian_fremantle/rules
new file mode 100755 (executable)
index 0000000..31217c6
--- /dev/null
@@ -0,0 +1,91 @@
+#!/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
+
+
+
+
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp  
+       dh_testdir
+
+       # Add here commands to compile the package.
+       $(MAKE)
+       #docbook-to-man debian/kitchenalert.sgml > kitchenalert.1
+
+       touch $@
+
+clean: 
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+       $(MAKE) clean
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       # Add here commands to install the package into debian/kitchenalert.
+       $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/kitchenalert 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 
+       dh_installdocs
+       dh_installexamples
+#      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                      # Uncomment this line for publishing!
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure