From 1ad9598c9056b850cc039f8e898b6f5d51335b4f Mon Sep 17 00:00:00 2001 From: Stefanos Harhalakis Date: Thu, 24 Jun 2010 16:17:59 +0000 Subject: [PATCH] --- debian/changelog | 2 +- debian/drlaunch.postinst | 40 ---------------------------------------- debian/drlaunch.postinst.no | 40 ++++++++++++++++++++++++++++++++++++++++ debian/rules | 37 ++++++++++++++++++++++++++++++++----- 4 files changed, 73 insertions(+), 46 deletions(-) delete mode 100644 debian/drlaunch.postinst create mode 100644 debian/drlaunch.postinst.no diff --git a/debian/changelog b/debian/changelog index 27aad5e..e229b38 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -actman (0.1-1) unstable; urgency=low +drlaunch (0.1-1) unstable; urgency=low * Initial release diff --git a/debian/drlaunch.postinst b/debian/drlaunch.postinst deleted file mode 100644 index 7dc71f0..0000000 --- a/debian/drlaunch.postinst +++ /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: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# 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 index 0000000..7dc71f0 --- /dev/null +++ b/debian/drlaunch.postinst.no @@ -0,0 +1,40 @@ +#!/bin/sh +# postinst script for wifieye +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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/rules b/debian/rules index 3f0b243..1806884 100755 --- a/debian/rules +++ b/debian/rules @@ -1,10 +1,37 @@ #!/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/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 -- 1.7.9.5