[leaf-commits] src/bering-uclibc4/source/kismet buildtool.cfg, NONE, 1.1 buildtool.mk, NONE, 1.1 kismet-2010-07-R1.tar.gz, NONE, 1.1 kismet.conf.patch, NONE, 1.1 kismet_drone.conf.patch, NONE, 1.1 manuf, NONE, 1.1

david M brooke <[email protected]>
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/kismet
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv10032

Added Files:
	buildtool.cfg buildtool.mk kismet-2010-07-R1.tar.gz 
	kismet.conf.patch kismet_drone.conf.patch manuf 
Log Message:
Updated to latest upstream for BuC 4.x

--- NEW FILE: manuf ---
#
#  Dummy /etc/manuf file for LEAF Bering-uClibc kismet package
#
#  Real file will contain many, many lines like the following:
00:00:01	Xerox                  # XEROX CORPORATION
#
#  Recommended source for the full contents is the Wireshark project,
#     http://anonsvn.wireshark.org/wireshark/trunk/manuf
#

--- NEW FILE: kismet-2010-07-R1.tar.gz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: kismet.conf.patch ---
*** kismet.conf.orig	2010-09-27 20:20:28.000000000 +0100
--- kismet.conf	2010-09-27 20:36:25.000000000 +0100
***************
*** 7,16 ****
  version=2009-newcore
  
  # Name of server (Purely for organizational purposes)
! servername=Kismet_2009
  
  # Prefix of where we log (as used in the logtemplate later)
  # logprefix=/some/path/to/logs
  
  # Do we process the contents of data frames?  If this is enabled, data
  # frames will be truncated to the headers only immediately after frame type
--- 7,17 ----
  version=2009-newcore
  
  # Name of server (Purely for organizational purposes)
! servername=LEAF
  
  # Prefix of where we log (as used in the logtemplate later)
  # logprefix=/some/path/to/logs
+ logprefix=/var/log/kismet
  
  # Do we process the contents of data frames?  If this is enabled, data
  # frames will be truncated to the headers only immediately after frame type
***************
*** 29,34 ****
--- 30,36 ----
  # ncsource=wlan0
  # ncsource=wifi0:type=madwifi
  # ncsource=wlan0:name=intel,hop=false,channel=11
+ ncsource=wlan0
  
  # Comma-separated list of sources to enable.  This is only needed if you defined
  # multiple sources and only want to enable some of them.  By default, all defined
***************
*** 122,132 ****
  # IEEE OUI file used to look up manufacturer info.  We default to the
  # wireshark one since most people have that.
  ouifile=/etc/manuf
! ouifile=/usr/share/wireshark/wireshark/manuf
! ouifile=/usr/share/wireshark/manuf
  
  # Do we have a GPS?
! gps=true
  # Do we use a locally serial attached GPS, or use a gpsd server?
  # (Pick only one)
  gpstype=gpsd
--- 124,134 ----
  # IEEE OUI file used to look up manufacturer info.  We default to the
  # wireshark one since most people have that.
  ouifile=/etc/manuf
! #ouifile=/usr/share/wireshark/wireshark/manuf
! #ouifile=/usr/share/wireshark/manuf
  
  # Do we have a GPS?
! gps=false
  # Do we use a locally serial attached GPS, or use a gpsd server?
  # (Pick only one)
  gpstype=gpsd

--- NEW FILE: buildtool.mk ---
#############################################################
#
# kismet
#
#############################################################

include $(MASTERMAKEFILE)

KISMET_DIR:=kismet-2010-07-R1
KISMET_TARGET_DIR:=$(BT_BUILD_DIR)/kismet

# Option settings for 'configure':
#   Move default install from /usr/local to /usr
#   But keep config files in /etc (rather than /usr/etc)
#   And keep state files in /var (rather than /usr/var)
CONFOPTS:=--prefix=/usr --sysconfdir=/etc --localstatedir=/var

export CC=$(TARGET_CC)
export CXX=$(BT_STAGING_DIR)/usr/bin/g++ 
export CFLAGS=$(BT_COPT_FLAGS)
export CXXFLAGS=$(BT_COPT_FLAGS)
# Next line is required to locate the .pc file for libnl
export PKG_CONFIG_PATH=$(BT_STAGING_DIR)/usr/lib/pkgconfig

$(KISMET_DIR)/.source:
	zcat $(KISMET_SOURCE) | tar -xvf - 	
	# Change hard-coded setting of CPPFLAGS for ncurses' panel.h
	( cd $(KISMET_DIR) ; perl -i -p -e "s,-I/usr/include/ncurses,-I$(BT_STAGING_DIR)/usr/include," configure )
	# Prevent attempt to run chmod (as non-root user) at "make install" time
	( cd $(KISMET_DIR) ; perl -i -p -e "s,-m [0-9]*,," Makefile.in )
	touch $(KISMET_DIR)/.source

$(KISMET_DIR)/.configure: $(KISMET_DIR)/.source
	( cd $(KISMET_DIR); ./configure $(CONFOPTS) );
	touch $(KISMET_DIR)/.configure
	
source: $(KISMET_DIR)/.source


$(KISMET_DIR)/.build: $(KISMET_DIR)/.configure
	mkdir -p $(KISMET_TARGET_DIR)
	$(MAKE) -C $(KISMET_DIR) dep
	$(MAKE) -C $(KISMET_DIR) all
	# "rpm" target is a wrapper for "install" target, and better for LEAF
	$(MAKE) INSTUSR=`id -u` INSTGRP=`id -g` MANGRP=`id -g` DESTDIR=$(KISMET_TARGET_DIR) -C $(KISMET_DIR) rpm
	$(BT_STRIP) $(BT_STRIP_BINOPTS) $(KISMET_TARGET_DIR)/usr/bin/kismet_client
	$(BT_STRIP) $(BT_STRIP_BINOPTS) $(KISMET_TARGET_DIR)/usr/bin/kismet_drone
	$(BT_STRIP) $(BT_STRIP_BINOPTS) $(KISMET_TARGET_DIR)/usr/bin/kismet_server
	# Patch generated configuration files
	(cd $(KISMET_TARGET_DIR)/etc ; patch < $(BT_SOURCE_DIR)/kismet/$(KISMET_PATCH1) )
	(cd $(KISMET_TARGET_DIR)/etc ; patch < $(BT_SOURCE_DIR)/kismet/$(KISMET_PATCH2) )
	cp -ra $(KISMET_TARGET_DIR)/* $(BT_STAGING_DIR)
	cp -a $(KISMET_MANUF) $(BT_STAGING_DIR)/etc
	touch $(KISMET_DIR)/.build

build: $(KISMET_DIR)/.build

clean:
	-rm $(KISMET_DIR)/.build
	rm -rf $(KISMET_TARGET_DIR)
	$(MAKE) -C $(KISMET_DIR) clean
	
srcclean:
	rm -rf $(KISMET_DIR)


--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
	Server = cvs4-sourceforge
	Revision = HEAD
	Directory = kismet
</File>

<File kismet-2010-07-R1.tar.gz>
	Server = cvs4-sourceforge
	Revision = HEAD  
	Directory = kismet
	Envname = KISMET_SOURCE
</File>

<File kismet.conf.patch>
	Server = cvs4-sourceforge
	Revision = HEAD  
	Directory = kismet
	Envname = KISMET_PATCH1
</File>

<File kismet_drone.conf.patch>
	Server = cvs4-sourceforge
	Revision = HEAD  
	Directory = kismet
	Envname = KISMET_PATCH2
</File>

<File manuf>
	Server = cvs4-sourceforge
	Revision = HEAD  
	Directory = kismet
	Envname = KISMET_MANUF
</File>

<Package>
	<kismet>
		Version = 2010-07-R1
		Revision = 1

		Help <<EOF
		Kismet is an 802.11 layer2 wireless network detector, sniffer, 
		and intrusion detection system
		Homepage: http://www.kismetwireless.net/index.shtml
		Requires: ncurses.lrp, libcxx.lrp, libpcap.lrp, 
		          libnl.lrp, libm.lrp, libpcre.lrp
		LEAF Package by __PACKAGER__, __BUILDDATE__
		EOF

		<Permissions>
			Files = 644
			Directories = 755
		</Permissions>

		<Owner>
			Files = root:root
			Directories = root:root
		</Owner>

		<Contents>
			<File>
				Source		= etc/kismet.conf
				Filename	= etc/kismet.conf
				Type            = conf
				Type            = local
				Type            = binary
			</File>		
			<File>
				Source		= etc/kismet_drone.conf
				Filename	= etc/kismet_drone.conf
				Type            = conf
				Type            = local
				Type            = binary
			</File>		
			<File>
				Source		= etc/manuf
				Filename	= etc/manuf
				Type            = conf
				Type            = local
				Type            = binary
			</File>
			<File>
				Source		= usr/bin/kismet_client
				Filename	= usr/bin/kismet_client
				Permissions	= 755
				Type            = binary
			</File>		
			<File>
				Source		= usr/bin/kismet_server
				Filename	= usr/bin/kismet_server
				Permissions	= 755
				Type            = binary
			</File>		
			<File>
				Source		= usr/bin/kismet
				Filename	= usr/bin/kismet
				Permissions	= 755
				Type            = binary
			</File>	
			<File>
				Source		= usr/bin/kismet_drone
				Filename	= usr/bin/kismet_drone
				Permissions	= 755
				Type            = binary
			</File>
			<File>
				Filename	= var/log/kismet
				Type            = directory
			</File>
		</Contents>
	</kismet>
</Package>

--- NEW FILE: kismet_drone.conf.patch ---
*** kismet_drone.conf.orig	2010-09-27 20:20:28.000000000 +0100
--- kismet_drone.conf	2010-09-27 20:37:35.000000000 +0100
***************
*** 3,9 ****
  version=newcore.1
  
  # Name of drone server (informational)
! servername=Kismet-Drone
  
  # Drone configuration
  # Protocol, interface, and port to listen on
--- 3,9 ----
  version=newcore.1
  
  # Name of drone server (informational)
! servername=LEAF-Drone
  
  # Drone configuration
  # Protocol, interface, and port to listen on
***************
*** 16,22 ****
  droneringlen=65535
  
  # Do we have a GPS?
! gps=true
  # Do we use a locally serial attached GPS, or use a gpsd server?
  # (Pick only one)
  gpstype=gpsd
--- 16,22 ----
  droneringlen=65535
  
  # Do we have a GPS?
! gps=false
  # Do we use a locally serial attached GPS, or use a gpsd server?
  # (Pick only one)
  gpstype=gpsd
***************
*** 35,41 ****
  
  # See the README for full information on the new source format
  # ncsource=interface:options
! ncsource=null
  # for example:
  # ncsource=wlan0
  # ncsource=wifi0:type=madwifi
--- 35,41 ----
  
  # See the README for full information on the new source format
  # ncsource=interface:options
! ncsource=wlan0
  # for example:
  # ncsource=wlan0
  # ncsource=wifi0:type=madwifi


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.