From 855c9921deb8276c842d12da1565b2f511450ea1 Mon Sep 17 00:00:00 2001 From: tnut Date: Thu, 4 Nov 2010 16:22:03 +0100 Subject: wicd, port nettoyé MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extra/wicd/Pkgfile | 2 +- extra/wicd/wicd-locale.patch | 12 --- extra/wicd/wicd.desktop | 13 --- extra/wicd/wicd_in_usr.patch | 208 ------------------------------------------- 4 files changed, 1 insertion(+), 234 deletions(-) delete mode 100644 extra/wicd/wicd-locale.patch delete mode 100644 extra/wicd/wicd.desktop delete mode 100644 extra/wicd/wicd_in_usr.patch (limited to 'extra/wicd') diff --git a/extra/wicd/Pkgfile b/extra/wicd/Pkgfile index 73c7d3fe5..cbbc52853 100644 --- a/extra/wicd/Pkgfile +++ b/extra/wicd/Pkgfile @@ -8,7 +8,7 @@ name=wicd version=1.7.0 release=6 source=(http://downloads.sourceforge.net/$name/wicd-$version.tar.gz \ - wicd_in_usr.patch wicd-locale.patch wicd.desktop ) + http://nutyx.meticul.eu/files/patchs/$name{wicd_in_usr.patch,wicd-locale.patch,wicd.desktop} ) build() { cd $name-$version diff --git a/extra/wicd/wicd-locale.patch b/extra/wicd/wicd-locale.patch deleted file mode 100644 index 7da38b041..000000000 --- a/extra/wicd/wicd-locale.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -aur wicd-old/opt/wicd/gui.py wicd-new/opt/wicd/gui.py ---- wicd-old/opt/wicd/gui.py 2008-01-03 23:18:40.000000000 +0530 -+++ wicd-new/opt/wicd/gui.py 2008-01-09 00:27:29.000000000 +0530 -@@ -44,7 +44,7 @@ - #which is also under GPLv2 - - #Get the local directory since we are not installing anything --local_path = os.path.realpath(os.path.dirname(sys.argv[0])) + '/translations' -+local_path = ('/usr/share/locale') - # Init the list of languages to support - langs = list() - #Check the default locale diff --git a/extra/wicd/wicd.desktop b/extra/wicd/wicd.desktop deleted file mode 100644 index 210d713ee..000000000 --- a/extra/wicd/wicd.desktop +++ /dev/null @@ -1,13 +0,0 @@ -[Desktop Entry] -Categories=Application;Network;Internet; -Encoding=UTF-8 -Exec=wicd-client --no-tray -GenericName=Network Manager -GenericName[fr]=Gestionnaire de réseaux -Icon=wicd-gtk -Comment=Manage Wired/Wireless Networks -Comment[fr]=Gère les réseaux filaires et sans fils -Name=Wicd -Terminal=false -Type=Application -Version=1.0 diff --git a/extra/wicd/wicd_in_usr.patch b/extra/wicd/wicd_in_usr.patch deleted file mode 100644 index 1975c85bb..000000000 --- a/extra/wicd/wicd_in_usr.patch +++ /dev/null @@ -1,208 +0,0 @@ -diff -aur wicd-old/etc/acpi/resume.d/80-wicd-connect.sh wicd-new/etc/acpi/resume.d/80-wicd-connect.sh ---- wicd-old/etc/acpi/resume.d/80-wicd-connect.sh 2007-07-25 20:34:25.000000000 +0530 -+++ wicd-new/etc/acpi/resume.d/80-wicd-connect.sh 2007-12-20 07:19:00.000000000 +0530 -@@ -1,4 +1,4 @@ - #!/bin/sh - # Bring wifi network interface back up. - --/opt/wicd/autoconnect.py -+/usr/lib/wicd/autoconnect.py -diff -aur wicd-old/etc/init.d/wicd wicd-new/etc/init.d/wicd ---- wicd-old/etc/init.d/wicd 2007-07-25 20:34:25.000000000 +0530 -+++ wicd-new/etc/init.d/wicd 2007-12-20 07:19:15.000000000 +0530 -@@ -5,7 +5,7 @@ - echo "Stopping any running daemons..." - killall daemon.py 2> /dev/null - echo "Starting wicd daemon..." -- /opt/wicd/daemon.py 2> /dev/null -+ /usr/lib/wicd/daemon.py 2> /dev/null - fi - - if [[ $1 = "stop" ]] -diff -aur wicd-old/opt/wicd/dapper.py wicd-new/opt/wicd/dapper.py ---- wicd-old/opt/wicd/dapper.py 2007-12-01 19:47:51.000000000 +0530 -+++ wicd-new/opt/wicd/dapper.py 2007-12-20 07:20:35.000000000 +0530 -@@ -76,7 +76,7 @@ - if wired.CheckPluggedIn() == True and wired_ip != None: - # Only set image/tooltip if it hasn't been set already - if stillWired == False: -- pic.set_from_file("images/wired.png") -+ pic.set_from_file("/usr/share/wicd/images/wired.png") - tooltip.set_tip(eb,language['connected_to_wired'].replace('$A', - wired_ip)) - stillWired = True -@@ -85,7 +85,7 @@ - # Check to see if we were using a wired connection that has now become - # unplugged or disabled. - if stillWired == True: -- pic.set_from_file("images/no-signal.png") -+ pic.set_from_file("/usr/share/wicd/images/no-signal.png") - tooltip.set_tip(eb,language['not_connected']) - stillWired = False - -@@ -124,28 +124,28 @@ - - if daemon.GetSignalDisplayType()== 0: - if wireless_signal > 75: -- pic.set_from_file("images/high-signal" + lock + ".png") -+ pic.set_from_file("/usr/share/wicd/images/high-signal" + lock + ".png") - elif wireless_signal > 50: -- pic.set_from_file("images/good-signal" + lock + ".png") -+ pic.set_from_file("/usr/share/wicd/images/good-signal" + lock + ".png") - elif wireless_signal > 25: -- pic.set_from_file("images/low-signal" + lock + ".png") -+ pic.set_from_file("/usr/share/wicd/images/low-signal" + lock + ".png") - elif wireless_signal > 0: -- pic.set_from_file("images/bad-signal" + lock + ".png") -+ pic.set_from_file("/usr/share/wicd/images/bad-signal" + lock + ".png") - elif wireless_signal == 0: -- pic.set_from_file("images/no-signal.png") -+ pic.set_from_file("/usr/share/wicd/images/no-signal.png") - auto_reconnect() - else: - if wireless_signal >= -60: -- pic.set_from_file("images/high-signal" + lock + ".png") -+ pic.set_from_file("/usr/share/wicd/images/high-signal" + lock + ".png") - elif wireless_signal >= -70: -- pic.set_from_file("images/good-signal" + lock + ".png") -+ pic.set_from_file("/usr/share/wicd/images/good-signal" + lock + ".png") - elif wireless_signal >= -80: -- pic.set_from_file("images/low-signal" + lock + ".png") -+ pic.set_from_file("/usr/share/wicd/images/low-signal" + lock + ".png") - else: -- pic.set_from_file("images/bad-signal" + lock + ".png") -+ pic.set_from_file("/usr/share/wicd/images/bad-signal" + lock + ".png") - - elif wireless_ip is None and wired_ip is None: -- pic.set_from_file("images/no-signal") -+ pic.set_from_file("/usr/share/wicd/images/no-signal") - tooltip.set_tip(eb,language['not_connected']) - auto_reconnect() - -@@ -247,7 +247,7 @@ - - gobject.timeout_add(3000,set_signal_image) - tooltip.set_tip(eb, "Wicd Systray") --pic.set_from_file("images/no-signal.png") -+pic.set_from_file("/usr/share/wicd/images/no-signal.png") - - eb.connect('button_press_event',tray_clicked) - eb.add(pic) -diff -aur wicd-old/opt/wicd/edgy.py wicd-new/opt/wicd/edgy.py ---- wicd-old/opt/wicd/edgy.py 2007-12-01 19:47:51.000000000 +0530 -+++ wicd-new/opt/wicd/edgy.py 2007-12-20 07:20:35.000000000 +0530 -@@ -158,7 +158,7 @@ - if wired.CheckPluggedIn() == True and wired_ip != None: - # Only set image/tooltip if it hasn't been set already - if stillWired == False: -- tr.set_from_file("images/wired.png") -+ tr.set_from_file("/usr/share/wicd/images/wired.png") - tr.set_tooltip(language['connected_to_wired'].replace('$A', - wired_ip)) - stillWired = True -@@ -167,7 +167,7 @@ - # Check to see if we were using a wired connection that has now become - # unplugged or disabled. - if stillWired == True: -- tr.set_from_file("images/no-signal.png") -+ tr.set_from_file("/usr/share/wicd/images/no-signal.png") - tr.set_tooltip(language['not_connected']) - stillWired = False - -@@ -209,35 +209,35 @@ - - if daemon.GetSignalDisplayType()== 0: - if wireless_signal > 75: -- tr.set_from_file("images/" + data_string + "high-signal" + lock + ".png") -+ tr.set_from_file("/usr/share/wicd/images/" + data_string + "high-signal" + lock + ".png") - elif wireless_signal > 50: -- tr.set_from_file("images/" + data_string + "good-signal" + lock + ".png") -+ tr.set_from_file("/usr/share/wicd/images/" + data_string + "good-signal" + lock + ".png") - elif wireless_signal > 25: -- tr.set_from_file("images/" + data_string + "low-signal" + lock + ".png") -+ tr.set_from_file("/usr/share/wicd/images/" + data_string + "low-signal" + lock + ".png") - elif wireless_signal > 0: -- tr.set_from_file("images/" + data_string + "bad-signal" + lock + ".png") -+ tr.set_from_file("/usr/share/wicd/images/" + data_string + "bad-signal" + lock + ".png") - elif wireless_signal == 0: -- tr.set_from_file("images/no-signal.png") -+ tr.set_from_file("/usr/share/wicd/images/no-signal.png") - auto_reconnect() - else: - if wireless_signal >= -60: -- tr.set_from_file("images/" + data_string + "high-signal" + lock + ".png") -+ tr.set_from_file("/usr/share/wicd/images/" + data_string + "high-signal" + lock + ".png") - elif wireless_signal >= -70: -- tr.set_from_file("images/" + data_string + "good-signal" + lock + ".png") -+ tr.set_from_file("/usr/share/wicd/images/" + data_string + "good-signal" + lock + ".png") - elif wireless_signal >= -80: -- tr.set_from_file("images/" + data_string + "low-signal" + lock + ".png") -+ tr.set_from_file("/usr/share/wicd/images/" + data_string + "low-signal" + lock + ".png") - else: -- tr.set_from_file("images/bad-signal" + lock + ".png") -+ tr.set_from_file("/usr/share/wicd/images/bad-signal" + lock + ".png") - - elif wireless_ip is None and wired_ip is None: -- tr.set_from_file("images/no-signal.png") -+ tr.set_from_file("/usr/share/wicd/images/no-signal.png") - tr.set_tooltip(language['not_connected']) - auto_reconnect() - - elif tr.current_icon_path.startswith(data_string) == False: - print ":"+tr.current_icon_path - print "|"+data_string+tr.current_icon_path[tr.current_icon_path.find('-')+1:] -- tr.set_from_file("images/"+data_string+tr.current_icon_path[tr.current_icon_path.find('-')+1:]) -+ tr.set_from_file("/usr/share/wicd/images/"+data_string+tr.current_icon_path[tr.current_icon_path.find('-')+1:]) - - if not daemon.GetDebugMode(): - config.EnableLogging() -@@ -301,11 +301,11 @@ - self.manager.add_ui_from_string(menu) - self.menu = self.manager.get_widget('/Menubar/Menu/About').props.parent - self.current_icon_path = '' -- self.set_from_file("images/no-signal.png") -+ self.set_from_file("/usr/share/wicd/images/no-signal.png") - self.set_visible(True) - self.connect('activate', self.on_activate) - self.connect('popup-menu', self.on_popup_menu) -- self.set_from_file("images/no-signal.png") -+ self.set_from_file("/usr/share/wicd/images/no-signal.png") - self.set_tooltip("Initializing wicd...") - - wireless.SetForcedDisconnect(False) -diff -aur wicd-old/opt/wicd/gui.py wicd-new/opt/wicd/gui.py ---- wicd-old/opt/wicd/gui.py 2007-12-01 19:47:51.000000000 +0530 -+++ wicd-new/opt/wicd/gui.py 2007-12-20 07:20:35.000000000 +0530 -@@ -350,24 +350,24 @@ - # "converted" to strength bars, so suggestions from people - # for a better way would be welcome. - if dbm_strength >= -60: -- self.image.set_from_file('images/signal-100.png') -+ self.image.set_from_file('/usr/share/wicd/images/signal-100.png') - elif dbm_strength >= -70: -- self.image.set_from_file('images/signal-75.png') -+ self.image.set_from_file('/usr/share/wicd/images/signal-75.png') - elif dbm_strength >= -80: -- self.image.set_from_file('images/signal-50.png') -+ self.image.set_from_file('/usr/share/wicd/images/signal-50.png') - else: -- self.image.set_from_file('images/signal-25.png') -+ self.image.set_from_file('/usr/share/wicd/images/signal-25.png') - - else: - # Uses normal link quality, should be fine in most cases - if strength > 75: -- self.image.set_from_file('images/signal-100.png') -+ self.image.set_from_file('/usr/share/wicd/images/signal-100.png') - elif strength > 50: -- self.image.set_from_file('images/signal-75.png') -+ self.image.set_from_file('/usr/share/wicd/images/signal-75.png') - elif strength > 25: -- self.image.set_from_file('images/signal-50.png') -+ self.image.set_from_file('/usr/share/wicd/images/signal-50.png') - else: -- self.image.set_from_file('images/signal-25.png') -+ self.image.set_from_file('/usr/share/wicd/images/signal-25.png') - self.expander.setSignalStrength(strength, dbm_strength) - - def setMACAddress(self,address): -- cgit v1.2.3-70-g09d2