(no commit message)
authorStefanos Harhalakis <v13@v13.gr>
Thu, 24 Jun 2010 16:17:59 +0000 (16:17 +0000)
committerStefanos Harhalakis <v13@v13.gr>
Sun, 20 Nov 2011 13:05:40 +0000 (13:05 +0000)
debian/changelog
debian/drlaunch.postinst [deleted file]
debian/drlaunch.postinst.no [new file with mode: 0644]
debian/rules

index 27aad5e..e229b38 100644 (file)
@@ -1,4 +1,4 @@
-actman (0.1-1) unstable; urgency=low
+drlaunch (0.1-1) unstable; urgency=low
 
   * Initial release
 
 
   * Initial release
 
diff --git a/debian/drlaunch.postinst b/debian/drlaunch.postinst
deleted file mode 100644 (file)
index 7dc71f0..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-# postinst script for wifieye
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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)
-       LNK="/usr/lib/hildon-desktop/drlaunch.py"
-
-       if ! test -e "$LNK" ; then
-               ln -s  "/usr/shared/pyshared/drlaunch/drlaunch.py" "$LNK"
-       fi
-#      echo "Reloading actman applet"
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-exit 0
-
diff --git a/debian/drlaunch.postinst.no b/debian/drlaunch.postinst.no
new file mode 100644 (file)
index 0000000..7dc71f0
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+# postinst script for wifieye
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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)
+       LNK="/usr/lib/hildon-desktop/drlaunch.py"
+
+       if ! test -e "$LNK" ; then
+               ln -s  "/usr/shared/pyshared/drlaunch/drlaunch.py" "$LNK"
+       fi
+#      echo "Reloading actman applet"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+
index 3f0b243..1806884 100755 (executable)
@@ -1,10 +1,37 @@
 #!/usr/bin/make -f
   
 #!/usr/bin/make -f
   
+#DEB_PYTHON_VERSIONS:=2.5
+DEB_PYTHON_SYSTEM=pysupport
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+PYVERS = $(shell pyversions -vd)
+
+cdbs_python_current_binary := $(shell pyversions -d)
+
+DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0 --install-layout=deb
+
+install/drlaunch::
+       dh_install drlaunch.py usr/lib/hildon-desktop/
+       dh_install misc/drlaunch.desktop usr/share/applications/hildon-home/
+
+python-build-stamp-%:
+ifeq (all, $(cdbs_python_module_arch))
+        cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
+else
+        cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
+endif # archall detection
+        touch $@
 
 
-#install/actman::
-#      dh_install scripts/activity /usr/bin
-#      dh_install applet/actman.py /usr/lib/hildon-desktop
-#      dh_install applet/actman.desktop \
-#              /usr/share/applications/hildon-status-menu
+# install stage
+ifeq (all, $(cdbs_python_module_arch))
+common-install-arch common-install-indep:: python-install-py
+python-install-py:
+        cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
+else
+common-install-arch common-install-indep:: $(addprefix python-install-, $(cdbs_python_build_versions))
+python-install-%:
+        cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
+endif # archall detection