wok-current rev 3622

kismet: up to 2009-06-R1
author Dominique Corbex <domcox@users.sourceforge.net>
date Tue Jun 30 20:34:35 2009 +0200 (2009-06-30)
parents fcc9f30ddcdf
children f778c92b30d5
files kismet/receipt
line diff
     1.1 --- a/kismet/receipt	Tue Jun 30 14:31:45 2009 +0000
     1.2 +++ b/kismet/receipt	Tue Jun 30 20:34:35 2009 +0200
     1.3 @@ -1,12 +1,12 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="kismet"
     1.7 -VERSION="2009-05-RC2"
     1.8 +VERSION="2009-06-R1"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Wireless network monitoring tool"
    1.11  MAINTAINER="domcox@users.sourceforge.net"
    1.12 -DEPENDS="dbus libnl libpcap ncurses"
    1.13 -BUILD_DEPENDS="dbus-dev libnl-dev ncurses-dev"
    1.14 +DEPENDS="dbus libnl libpcap ncurses pcre"
    1.15 +BUILD_DEPENDS="dbus-dev libnl-dev libpcap linux-headers ncurses-dev pcre-dev pkg-config"
    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,9 +20,10 @@
    1.20  		--infodir=/usr/share/info \
    1.21  		--mandir=/usr/share/man \
    1.22  		--sysconfdir=/etc/kismet \
    1.23 +		--with-suidgroup=tux \
    1.24  	$CONFIGURE_ARGS && \
    1.25  	make && \
    1.26 -	make DESTDIR=$PWD/_pkg install
    1.27 +	make DESTDIR=$PWD/_pkg suidinstall
    1.28  }
    1.29  
    1.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 @@ -32,12 +33,9 @@
    1.32  	cp -a $_pkg/usr/bin $fs/usr
    1.33  	mkdir -p $fs/etc
    1.34  	cp -a $_pkg/etc/kismet $fs/etc
    1.35 -	# not overwrite existing configuration
    1.36 +	# do not overwrite existing configuration
    1.37  	mv $fs/etc/kismet/kismet.conf $fs/etc/kismet/kismet.conf.new
    1.38 -	mv $fs/etc/kismet/kismet_ui.conf $fs/etc/kismet/kismet_ui.conf.new
    1.39  	mv $fs/etc/kismet/kismet_drone.conf $fs/etc/kismet/kismet_drone.conf.new
    1.40 -	# disable sound
    1.41 -	sed -i 's/sound=true/sound=false/' $fs/etc/kismet/kismet_ui.conf.new
    1.42  }
    1.43  
    1.44  post_install()
    1.45 @@ -60,7 +58,11 @@
    1.46  	overwrite=2
    1.47  	keep=3
    1.48  	cd $1/etc/kismet
    1.49 -	for file in "kismet" "kismet_ui" "kismet_drone"
    1.50 +	# kismet_ui.conf doesn't exists anymore
    1.51 +	if [ -e kismet_ui.conf ]; then
    1.52 +		mv kismet_ui.conf kismet_ui.oldpkg
    1.53 +	fi
    1.54 +	for file in "kismet" "kismet_drone"
    1.55  	do
    1.56  		# check current files version
    1.57  		if [ ! -e $file.conf ]; then