Update deb packaging files:
+ relax dependencies - strict version numbers are not necessary + remove explicitly stated runtime dependencies on libraries + remove unnecessary Replaces + move SO symlinks (without version number) to -dev packages + move org.trinitydesktop.tdebluez.conf to tdebluez package + delete unused tdeblueplugd and tdeblueplugd.desktop + delete unused tdebluez.preinst Signed-off-by: Slávek Banko <slavek.banko@axis.cz>pull/9/head
parent
6740c7de32
commit
15c3dc538b
@ -1,2 +1,3 @@
|
||||
opt/trinity/share/cmake/libtdebluez.cmake
|
||||
opt/trinity/include/tdebluez/*
|
||||
opt/trinity/lib/libtdebluez.so
|
||||
opt/trinity/share/cmake/libtdebluez.cmake
|
||||
|
@ -1,5 +1,2 @@
|
||||
opt/trinity/lib/libtdebluez.so.0
|
||||
opt/trinity/lib/libtdebluez.so.0.0.1
|
||||
opt/trinity/lib/libtdebluez.so
|
||||
opt/trinity/lib/libtdebluez.la
|
||||
/etc/dbus-1/system.d/org.trinitydesktop.tdebluez.conf
|
||||
opt/trinity/lib/libtdebluez.so.*
|
||||
|
@ -1,2 +1,3 @@
|
||||
opt/trinity/share/cmake/libtdeobex.cmake
|
||||
opt/trinity/include/tdeobex/*
|
||||
opt/trinity/lib/libtdeobex.so
|
||||
opt/trinity/share/cmake/libtdeobex.cmake
|
||||
|
@ -1,4 +1,2 @@
|
||||
opt/trinity/lib/libtdeobex.la
|
||||
opt/trinity/lib/libtdeobex.so
|
||||
opt/trinity/lib/libtdeobex.so.0
|
||||
opt/trinity/lib/libtdeobex.so.0.0.1
|
||||
opt/trinity/lib/libtdeobex.so.*
|
||||
|
@ -1,62 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
"""
|
||||
Copyright (C) 2007 Achim Bohnet <allee@kubuntu.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
"""
|
||||
|
||||
import sys
|
||||
from PyQt4 import QtCore, QtGui
|
||||
import dbus
|
||||
#import dbus.mainloop.tqt3
|
||||
import dbus.mainloop.qt
|
||||
import distutils.spawn
|
||||
|
||||
tdebtcmd = [ 'tdebluetooth' ]
|
||||
quitprogs = [ 'tdebluetooth', 'tdebluemon', 'tdeinputwizard' ] # FIXME: quit tdebluelock too?
|
||||
|
||||
|
||||
app = TQtGui.TQApplication(sys.argv)
|
||||
if app.isSessionRestored():
|
||||
sys.exit(1)
|
||||
|
||||
dbus.mainloop.qt.DBusQtMainLoop(set_as_default=True)
|
||||
bus = dbus.SystemBus()
|
||||
|
||||
try:
|
||||
manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
|
||||
except:
|
||||
print "Unable to connect to bluez."
|
||||
sys.exit(1)
|
||||
|
||||
if len(manager.ListAdapters()):
|
||||
print "# of devices at startup:", len(manager.ListAdapters())
|
||||
distutils.spawn.spawn(kbtcmd)
|
||||
else:
|
||||
print "No BT device found"
|
||||
|
||||
|
||||
def slotAdapterAdded(device):
|
||||
print "bt dev added:", device, "# of devices:", len(manager.ListAdapters())
|
||||
distutils.spawn.spawn(kbtcmd)
|
||||
|
||||
def slotAdapterRemoved(device):
|
||||
print "bt dev removed:", device, "# num of devices:", len(manager.ListAdapters())
|
||||
if len(manager.ListAdapters()) == 0:
|
||||
for p in quitprogs:
|
||||
print "exiting:", p, " ..."
|
||||
try:
|
||||
distutils.spawn.spawn(['dcop', p, 'MainApplication-Interface', 'quit'])
|
||||
except:
|
||||
pass
|
||||
|
||||
manager.connect_to_signal("AdapterAdded", slotAdapterAdded)
|
||||
manager.connect_to_signal("AdapterRemoved", slotAdapterRemoved)
|
||||
|
||||
print "waiting for bt device (un)plug events ..."
|
||||
app.exec_()
|
||||
#sys.exit(app.exec_())
|
@ -1,32 +0,0 @@
|
||||
#!/bin/sh
|
||||
exit 0
|
||||
# Remove a no-longer used conffile
|
||||
rm_conffile ()
|
||||
{
|
||||
PKGNAME="$1"
|
||||
CONFFILE="$2"
|
||||
|
||||
if [ -e "$CONFFILE" ]; then
|
||||
md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
|
||||
old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`"
|
||||
if [ "$md5sum" != "$old_md5sum" ]; then
|
||||
echo "Obsolete conffile $CONFFILE has been modified by you."
|
||||
echo "Saving as $CONFFILE.dpkg-bak ..."
|
||||
mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
|
||||
else
|
||||
echo "Removing obsolete conffile $CONFFILE ..."
|
||||
rm -f "$CONFFILE"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Last version that might have the obsolete conffile.
|
||||
LASTVERSION="0.1"
|
||||
case "$1" in install | upgrade)
|
||||
echo "FIXME: tdebluez.preinstall Last version that might have the obsolete conffile"
|
||||
# if dpkg --compare-versions "$2" le "$LASTVERSION"; then
|
||||
# rm_conffile tdebluetooth /etc/kde3/obexrc
|
||||
# fi
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
@ -1,9 +0,0 @@
|
||||
# See uscan(1) for format
|
||||
|
||||
# Compulsory line, this is a version 3 file
|
||||
version=3
|
||||
|
||||
# Uncomment to find new files on sourceforge, for debscripts >= 2.9
|
||||
#opts=uversionmangle=s/_/-/,dversionmangle=s/~/-/ \
|
||||
# http://cryptomilch.de/~dgollub/kdebluetooth/kdebluetooth-(.*)\.tar\.bz2 debian svn-upgrade
|
||||
# http://sf.net/kde-bluetooth/kdebluetooth-(.*)\.tar\.gz debian svn-upgrade
|
Loading…
Reference in New Issue