wok-6.x rev 3443
Kismet: up to 2009-05-RC2
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Sun Jun 14 12:22:17 2009 +0200 (2009-06-14) |
parents | e43fb2292deb |
children | e4d2da455c55 |
files | kismet/receipt kismet/stuff/kismet.desktop |
line diff
1.1 --- a/kismet/receipt Sun Jun 14 02:47:03 2009 +0200 1.2 +++ b/kismet/receipt Sun Jun 14 12:22:17 2009 +0200 1.3 @@ -1,12 +1,12 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="kismet" 1.7 -VERSION="2008-05-R1" 1.8 +VERSION="2009-05-RC2" 1.9 CATEGORY="network" 1.10 SHORT_DESC="Wireless network monitoring tool" 1.11 MAINTAINER="domcox@users.sourceforge.net" 1.12 -DEPENDS="dbus libpcap ncurses" 1.13 -BUILD_DEPENDS="dbus-dev ncurses-dev" 1.14 +DEPENDS="dbus libnl libpcap ncurses" 1.15 +BUILD_DEPENDS="dbus-dev libnl-dev ncurses-dev" 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 WEB_SITE="http://www.kismetwireless.net" 1.18 WGET_URL="http://www.kismetwireless.net/code/$TARBALL" 1.19 @@ -20,7 +20,6 @@ 1.20 --infodir=/usr/share/info \ 1.21 --mandir=/usr/share/man \ 1.22 --sysconfdir=/etc/kismet \ 1.23 - --disable-gpsmap \ 1.24 $CONFIGURE_ARGS && \ 1.25 make && \ 1.26 make DESTDIR=$PWD/_pkg install 1.27 @@ -37,22 +36,33 @@ 1.28 mv $fs/etc/kismet/kismet.conf $fs/etc/kismet/kismet.conf.new 1.29 mv $fs/etc/kismet/kismet_ui.conf $fs/etc/kismet/kismet_ui.conf.new 1.30 mv $fs/etc/kismet/kismet_drone.conf $fs/etc/kismet/kismet_drone.conf.new 1.31 - # set tux as kismet user 1.32 - sed -i 's/your_user_here/tux/' $fs/etc/kismet/kismet.conf.new 1.33 # disable sound 1.34 sed -i 's/sound=true/sound=false/' $fs/etc/kismet/kismet_ui.conf.new 1.35 } 1.36 1.37 post_install() 1.38 { 1.39 - # configuration files auto overwrite 1.40 + # addgroup kismet if needed 1.41 + if ! grep -q kismet $1/etc/group; then 1.42 + echo -n "Adding group kismet..." 1.43 + chroot $1/ addgroup kismet 1.44 + status 1.45 + fi 1.46 + # Add tux to kismet group 1.47 + chroot $1/ addgroup tux kismet 1.48 + # set Kismet as suid-root 1.49 + echo -n "Set Kismet as suid-root.." 1.50 + chroot $1/ chown root:kismet /usr/bin/kismet_capture && \ 1.51 + chroot $1/ chmod 4550 /usr/bin/kismet_capture 1.52 + status 1.53 + # configuration files update 1.54 create=1 1.55 overwrite=2 1.56 keep=3 1.57 - cd /etc/kismet 1.58 + cd $1/etc/kismet 1.59 for file in "kismet" "kismet_ui" "kismet_drone" 1.60 do 1.61 - # check current configuration files 1.62 + # check current files version 1.63 if [ ! -e $file.conf ]; then 1.64 action=$create 1.65 else 1.66 @@ -64,18 +74,32 @@ 1.67 action=$overwrite 1.68 fi 1.69 fi 1.70 + # update if needed 1.71 case $action in 1.72 $create) 1.73 mv $file.conf.new $file.conf 1.74 ;; 1.75 $keep) 1.76 rm $file.conf.new 1.77 + warning="keep" 1.78 ;; 1.79 $overwrite) 1.80 - mv $file.conf $file.conf.bak 1.81 + mv $file.conf $file.conf.oldpkg 1.82 mv $file.conf.new $file.conf 1.83 - echo "$file.conf new upstream version, please check" 1.84 + warning=$overwrite 1.85 + echo "Warning: /etc/kismet/$file.conf new version from upstream" 1.86 ;; 1.87 esac 1.88 done 1.89 + if [ "$warning" != "keep" ]; then 1.90 + echo "-----" 1.91 + echo "You MUST edit etc/kismet/kismet.conf and configure Kismet" 1.92 + echo "for your system, or it will NOT run properly!" 1.93 + fi 1.94 } 1.95 + 1.96 +post_remove() 1.97 +{ 1.98 + delgroup kismet 1.99 + rm -rf /etc/kismet 1.100 +}
2.1 --- a/kismet/stuff/kismet.desktop Sun Jun 14 02:47:03 2009 +0200 2.2 +++ b/kismet/stuff/kismet.desktop Sun Jun 14 12:22:17 2009 +0200 2.3 @@ -2,7 +2,8 @@ 2.4 Type=Application 2.5 Encoding=UTF-8 2.6 Name=Kismet 802.11b monitoring tool 2.7 -Exec=subox 'xterm -e kismet' 2.8 +Name[fr]=Kismet analyseur de trafic 802.11b 2.9 +Exec=xterm -e kismet 2.10 Icon=kismet.png 2.11 Terminal=true 2.12 Categories=System;Application