postinst and postrm scripts added into the debian tree
authoruzakmat <uzakmat@localhost>
Mon, 25 Jan 2010 10:03:13 +0000 (10:03 +0000)
committeruzakmat <uzakmat@localhost>
Mon, 25 Jan 2010 10:03:13 +0000 (10:03 +0000)
data/Makefile
debian/changelog
debian/control
debian/postinst [new file with mode: 0755]
debian/postrm [new file with mode: 0755]
debian/rules

index 3b0c9e0..5e6ab6c 100644 (file)
@@ -3,7 +3,7 @@
 PKG            = fosdem
 PREFIX         = $(INSTALL_ROOT)/usr/share
 INSTALL_FILE   = install -m 644 -p
-CHK_DIR        = test -d
+CHK_DIR                = test -d
 MKDIR          = mkdir -p
 
 .PHONY: install uninstall clean distclean
index e0f68be..f14db61 100644 (file)
@@ -1,4 +1,4 @@
-fosdem-schedtool (0.1) unstable; urgency=low
+fosdem-schedule (0.1) unstable; urgency=low
 
   * Initial release
 
index a557620..032adc7 100644 (file)
@@ -1,11 +1,11 @@
-Source: fosdem-maemo
+Source: fosdem-schedule
 Section: user/support
 Priority: optional
 Maintainer: Matus Uzak <matus.uzak@ixonos.com>
 Build-Depends: debhelper (>= 5) libqt4-dev (>= 4.5)
 Standards-Version: 3.7.2
 
-Package: fosdem-schedtool
+Package: fosdem-schedule
 Architecture: armel
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: FOSDEM 2010 scheduler 
diff --git a/debian/postinst b/debian/postinst
new file mode 100755 (executable)
index 0000000..4341d68
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+# postinst script for helloworld
+#
+# see: dh_installdeb(1)
+
+set -e
+DIR_NAME=.fosdem
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+
+    if test -d ~/$DIR_NAME; then       
+       echo "postinst: removing ~/$DIR_NAME"
+       rm -rf ~/$DIR_NAME      
+    fi
+    if test -d ~user/$DIR_NAME; then                   
+       echo "postinst: removing ~user/$DIR_NAME"
+       rm -rf ~user/$DIR_NAME
+    fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/postrm b/debian/postrm
new file mode 100755 (executable)
index 0000000..75aa83d
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/sh
+# postrm script for helloworld
+#
+# see: dh_installdeb(1)
+
+set -e
+DIR_NAME=.fosdem
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+    if test -d ~/$DIR_NAME; then       
+       echo "postrm: removing ~/$DIR_NAME"
+       rm -rf ~/$DIR_NAME      
+    fi
+    if test -d ~user/$DIR_NAME; then                   
+       echo "postrm: removing ~user/$DIR_NAME"
+       rm -rf ~user/$DIR_NAME
+    fi
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
index 1851f5f..a4a8ba4 100755 (executable)
@@ -9,7 +9,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PKG_NAME = fosdem-schedtool
+PKG_NAME = fosdem-schedule
 
 CFLAGS = -Wall -g