Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=2cca221d7b31669b59caf50b44d2ee9e4d03845b

commit 2cca221d7b31669b59caf50b44d2ee9e4d03845b
Author: Devil505 <devil505li...@gmail.com>
Date:   Tue Aug 30 12:43:29 2011 +0200

wifi-radar-2.0.s08-2-i686
* removed useless patch
* updating install file
* added gksu-frugalware as rodepend
* closes FS#4570
* Fsed command to use gksu instead of gksudo
(that's avoid desktop user to install and configure sudo)

diff --git a/source/xapps-extra/wifi-radar/FrugalBuild 
b/source/xapps-extra/wifi-radar/FrugalBuild
index 3a48f3e..c6dfe1f 100644
--- a/source/xapps-extra/wifi-radar/FrugalBuild
+++ b/source/xapps-extra/wifi-radar/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=wifi-radar
pkgver=2.0.s08
-pkgrel=1
+pkgrel=2
pkgdesc="WiFi Radar is a PyGTK2 utility for managing WiFi profiles"
_F_berlios_ext=".tar.bz2"
Finclude berlios
@@ -13,7 +13,7 @@ groups=('xapps-extra')
archs=('i686' 'x86_64')
options=('scriptlet')
depends=('pygtk>=2.14.1-2' 'wireless_tools')
-rodepends=('desktop-file-utils')
+rodepends=('desktop-file-utils' 'gksu-frugalware')
backup=(etc/wifi-radar.conf)

build() {
@@ -23,7 +23,7 @@ build() {
Fmake
make DESTDIR=$Fdestdir/usr sysconfdir=$Fdestdir/etc install || Fdie
Fdoc README.Frugalware
-         Fsed "gksudo -S wifi-radar" "gksudo -S /usr/sbin/wifi-radar" 
$Fdestdir/usr/share/applications/${pkgname}.desktop
+         Fsed "gksudo -S wifi-radar" "gksu /usr/sbin/wifi-radar" 
$Fdestdir/usr/share/applications/${pkgname}.desktop
}

sha1sums=('1f8a77ca7abe7f13043737b27f60df012065a4d3' \
diff --git a/source/xapps-extra/wifi-radar/desktop.patch 
b/source/xapps-extra/wifi-radar/desktop.patch
deleted file mode 100644
index d0bb360..0000000
--- a/source/xapps-extra/wifi-radar/desktop.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff -Naurp wifi-radar-1.9.8/wifi-radar.desktop 
wifi-radar-1.9.8-p/wifi-radar.desktop
---- wifi-radar-1.9.8/wifi-radar.desktop        2006-02-08 23:27:46.000000000 
+0100
-+++ wifi-radar-1.9.8-p/wifi-radar.desktop      2007-02-15 22:15:56.000000000 
+0100
-@@ -5,8 +5,9 @@ Type=Application
- Name=Wifi-radar
- GenericName=Wireless tool
- Comment=Tool for connecting to wireless networks
--Icon=wifi-radar.svg
-+Icon=/usr/share/pixmaps/wifi-radar.png
- FilePattern=wifi-radar
- TryExec=wifi-radar
- Exec=gksudo -S wifi-radar
--Categories=Application;Network;
-+Categories=GNOME;Application;Network;
-+OnlyShowIn=GNOME;
-diff -Naurp wifi-radar-1.9.8/wifi-radar.desktop.kde 
wifi-radar-1.9.8-p/wifi-radar.desktop.kde
---- wifi-radar-1.9.8/wifi-radar.desktop.kde    1970-01-01 01:00:00.000000000 
+0100
-+++ wifi-radar-1.9.8-p/wifi-radar.desktop.kde  2007-02-15 22:16:46.000000000 
+0100
-@@ -0,0 +1,13 @@
-+[Desktop Entry]
-+Version=1.0
-+Encoding=UTF-8
-+Type=Application
-+Name=Wifi-radar
-+GenericName=Wireless tool
-+Comment=Tool for connecting to wireless networks
-+Icon=/usr/share/pixmaps/wifi-radar.png
-+FilePattern=wifi-radar
-+TryExec=/usr/sbin/wifi-radar
-+Exec=kdesu /usr/sbin/wifi-radar
-+Categories=Categories=Application;System;X-KDE-System;
-+OnlyShowIn=KDE;
diff --git a/source/xapps-extra/wifi-radar/wifi-radar.install 
b/source/xapps-extra/wifi-radar/wifi-radar.install
index 50857ed..91f62bd 100644
--- a/source/xapps-extra/wifi-radar/wifi-radar.install
+++ b/source/xapps-extra/wifi-radar/wifi-radar.install
@@ -1,18 +1,4 @@
-post_install() {
-       update-desktop-database > /dev/null 2>&1
+post_remove(){
+  rm etc/wifi-radar.conf &> /dev/null
+  rm var/log/wifi-radar.log &> /dev/null
}
-
-post_upgrade() {
-       post_install
-}
-
-post_remove() {
-       post_install
-}
-
-op=$1
-shift
-
-$op $*
-
-# vim: ft=sh
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to