From 861827a58922704a013a462f2df2ce7cf718fac4 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 2 Mar 2009 15:15:43 +0000 Subject: [PATCH] updated : debian package scripts --- debian/canfestival-peak.postinst | 15 +++++++- debian/canfestival-peak.postrm | 60 +++++++++++++++++++++++++++++ debian/canfestival-virtual.postinst | 2 +- debian/canfestival-virtual.postrm | 6 +-- debian/control-peak | 42 -------------------- debian/control-peak_linux | 2 +- debian/control-virtual | 2 +- 7 files changed, 79 insertions(+), 50 deletions(-) create mode 100755 debian/canfestival-peak.postrm delete mode 100644 debian/control-peak diff --git a/debian/canfestival-peak.postinst b/debian/canfestival-peak.postinst index df7817d..669e278 100644 --- a/debian/canfestival-peak.postinst +++ b/debian/canfestival-peak.postinst @@ -17,10 +17,21 @@ set -e # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package - +DLL_LIST= +CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py +CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py case "$1" in configure) - ldconfig + ldconfig + cd /usr/lib + DLL_LIST= + FILES= + for file in libcanfestival_can* + do + DLL_LIST="'$file',""$DLL_LIST" + done + cat $CF_CONFIG_TEMP > $CF_CONFIG + echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/canfestival-peak.postrm b/debian/canfestival-peak.postrm new file mode 100755 index 0000000..eb6363e --- /dev/null +++ b/debian/canfestival-peak.postrm @@ -0,0 +1,60 @@ +#!/bin/sh +# postinst script for canfestival +# +# 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 + +DLL_LIST= +CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py +CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py + +case "$1" in + configure) + ;; + + remove|purge) + ldconfig + cd /usr/lib + cd /usr/lib + DLL_LIST= + FILES= + + for file in libcanfestival_can* + do + DLL_LIST="'$file',""$DLL_LIST" + done + + cat $CF_CONFIG_TEMP > $CF_CONFIG + echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG + ;; + + 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/canfestival-virtual.postinst b/debian/canfestival-virtual.postinst index bafaa3b..669e278 100755 --- a/debian/canfestival-virtual.postinst +++ b/debian/canfestival-virtual.postinst @@ -28,7 +28,7 @@ case "$1" in FILES= for file in libcanfestival_can* do - DLL_LIST="$file,""$DLL_LIST" + DLL_LIST="'$file',""$DLL_LIST" done cat $CF_CONFIG_TEMP > $CF_CONFIG echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG diff --git a/debian/canfestival-virtual.postrm b/debian/canfestival-virtual.postrm index 811a78d..1e81e51 100755 --- a/debian/canfestival-virtual.postrm +++ b/debian/canfestival-virtual.postrm @@ -28,14 +28,14 @@ case "$1" in remove|purge) ldconfig cd /usr/lib - DLL_LIST= + DLL_LIST= FILES= for file in libcanfestival_can* do - DLL_LIST="$file,""$DLL_LIST" + DLL_LIST="'$file',""$DLL_LIST" done cat $CF_CONFIG_TEMP > $CF_CONFIG - echo 'DLL_LIST=["$DLL_LIST"]' >> $CF_CONFIG + echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/control-peak b/debian/control-peak deleted file mode 100644 index 066b88b..0000000 --- a/debian/control-peak +++ /dev/null @@ -1,42 +0,0 @@ -Source: canfestival -Section: devel -Priority: standard -Maintainer: lolitech -Build-Depends: debhelper (>= 5), autotools-dev, libwxgtk2.8-dev -Standards-Version: 3.7.2 - -Package: canfestival -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: - -Package: canfestival-devel -Architecture: all -Description: Canfestival library - This package contains the CanFestival library for unix platform. - -Package: canfestival-examples -Architecture: all -Description: Program's Examples for canfestival - This package contains some test programs you can use as example - for your own developments. - - TestMasterSlave : Two CanOpen nodes in the same process - - TestMasterMicromod : A CanOpen master that control a peak MicroMod module - - DS401_Master : Master Node for the DS401_Slave_Gui - - DS401_Slave_Gui : Simulate an I/O module with GUI - -Package: canfestival-doc -Architecture: all -Description: Documentation for canfestival - -Package: canfestival-peak -Architecture: all -Description: Can Driver Interface for Peak Driver - -Package: canfestival-objdictedit -Architecture: all -Depends: python-wxgtk2.8, xpdf -Description: A CanOpen Node Editor - Objdictedit, the Object Dictionary Editor, is a WxPython based GUI that is used to - create the C file needed to create a new CanOpen node. - diff --git a/debian/control-peak_linux b/debian/control-peak_linux index 67260cb..f5bcd45 100644 --- a/debian/control-peak_linux +++ b/debian/control-peak_linux @@ -2,7 +2,7 @@ Source: canfestival Section: devel Priority: standard Maintainer: lolitech -Build-Depends: debhelper (>= 5), autotools-dev, libwxgtk2.8-dev +Build-Depends: debhelper (>= 5), autotools-dev Standards-Version: 3.7.2 Package: canfestival-peak diff --git a/debian/control-virtual b/debian/control-virtual index 6f0f709..c184b94 100644 --- a/debian/control-virtual +++ b/debian/control-virtual @@ -2,7 +2,7 @@ Source: canfestival Section: devel Priority: standard Maintainer: lolitech -Build-Depends: debhelper (>= 5), autotools-dev, libwxgtk2.8-dev +Build-Depends: debhelper (>= 5), autotools-dev Standards-Version: 3.7.2 Package: canfestival-devel -- 2.39.2