From 1b8f2a0e2e63b1f881b6ba7b18982353b9c27b19 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 10 Aug 2012 23:52:30 +0200 Subject: fix package upgrade issues --- qtc_packaging/debian_harmattan/postinst | 13 +++++++++++++ qtc_packaging/debian_harmattan/prerm | 13 +++++++++++++ qtc_packaging/debian_harmattan/rules | 6 +----- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 qtc_packaging/debian_harmattan/postinst create mode 100644 qtc_packaging/debian_harmattan/prerm (limited to 'qtc_packaging') diff --git a/qtc_packaging/debian_harmattan/postinst b/qtc_packaging/debian_harmattan/postinst new file mode 100644 index 0000000..c0a1855 --- /dev/null +++ b/qtc_packaging/debian_harmattan/postinst @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +case "$1" in + configure) + start -v apps/sowatchd || : + ;; +esac + +exit 0 diff --git a/qtc_packaging/debian_harmattan/prerm b/qtc_packaging/debian_harmattan/prerm new file mode 100644 index 0000000..5deafcb --- /dev/null +++ b/qtc_packaging/debian_harmattan/prerm @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +case "$1" in + upgrade|remove) + stop -v apps/sowatchd || : + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/qtc_packaging/debian_harmattan/rules b/qtc_packaging/debian_harmattan/rules index 07d6f82..804d37c 100755 --- a/qtc_packaging/debian_harmattan/rules +++ b/qtc_packaging/debian_harmattan/rules @@ -20,7 +20,7 @@ endif configure: configure-stamp configure-stamp: dh_testdir - # qmake PREFIX=/usr# Uncomment this line for use without Qt Creator + # qmake PREFIX=/usr # Uncomment this line for use without Qt Creator touch configure-stamp @@ -30,9 +30,7 @@ build: build-stamp build-stamp: configure-stamp dh_testdir - # Add here commands to compile the package. # $(MAKE) $(PARALLEL) # Uncomment this line for use without Qt Creator - #docbook-to-man debian/sowatch.sgml > sowatch.1 touch $@ @@ -41,7 +39,6 @@ clean: dh_testroot rm -f build-stamp configure-stamp - # Add here commands to clean up after the build process. -$(MAKE) clean dh_clean @@ -52,7 +49,6 @@ install: build dh_clean -k dh_installdirs - # Add here commands to install the package into debian/sowatch. $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/sowatch install -- cgit v1.2.3