2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=2007-01-R1a
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.kismetwireless.net
/code
17 PKG_MD5SUM
:=5921166366d3f695eeef26121c56a674
19 PKG_BUILD_DEPENDS
:=libnotimpl libpcap libncurses uclibcxx
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/kismet
/Default
28 URL
:=http
://www.kismetwireless.net
/
31 define Package
/kismet
/Default
/description
32 An
802.11 layer2 wireless network detector
, sniffer
, and intrusion
36 define Package
/kismet-client
37 $(call Package
/kismet
/Default
)
42 define Package
/kismet-client
/conffiles
44 /etc
/kismet
/client_manuf
45 /etc
/kismet
/kismet.conf
46 /etc
/kismet
/kismet_ui.conf
49 define Package
/kismet-client
/description
50 $(call Package
/kismet
/Default
/description
)
51 This package contains the kismet text interface client.
54 define Package
/kismet-drone
55 $(call Package
/kismet
/Default
)
60 define Package
/kismet-drone
/conffiles
61 /etc
/kismet
/kismet_drone.conf
64 define Package
/kismet-drone
/description
65 $(call Package
/kismet
/Default
/description
)
66 This package contains the kismet remote sniffing.and monitoring drone.
69 define Package
/kismet-server
70 $(call Package
/kismet
/Default
)
75 define Package
/kismet-server
/conffiles
77 /etc
/kismet
/client_manuf
78 /etc
/kismet
/kismet.conf
81 define Package
/kismet-server
/description
82 $(call Package
/kismet
/Default
/description
)
83 This package contains the kismet server.
87 --enable-syspcap
=yes \
93 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
94 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
95 LDFLAGS
="$$$$LDFLAGS" \
96 LIBS
="-nodefaultlibs -luClibc++ -lm -lnotimpl" \
99 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
104 #FIXME: remove this package?
105 define Package
/kismet
/install
106 $(INSTALL_DIR
) $(1)/usr
/bin
/
107 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/scripts
/kismet
$(1)/usr
/bin
/kismet
110 define Package
/kismet-client
/install
111 $(INSTALL_DIR
) $(1)/etc
/kismet
/
112 $(INSTALL_DATA
) .
/files
/ap_manuf
$(1)/etc
/kismet
/
113 $(INSTALL_DATA
) .
/files
/client_manuf
$(1)/etc
/kismet
/
114 $(INSTALL_DATA
) .
/files
/kismet.conf
$(1)/etc
/kismet
/
115 $(INSTALL_DATA
) .
/files
/kismet_ui.conf
$(1)/etc
/kismet
/
116 $(INSTALL_DIR
) $(1)/usr
/bin
117 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/kismet_client
$(1)/usr
/bin
/
120 define Package
/kismet-drone
/install
121 $(INSTALL_DIR
) $(1)/etc
/kismet
/
122 $(INSTALL_DATA
) .
/files
/kismet_drone.conf
$(1)/etc
/kismet
/
123 $(INSTALL_DIR
) $(1)/usr
/bin
124 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/kismet_drone
$(1)/usr
/bin
/
127 define Package
/kismet-server
/install
128 $(INSTALL_DIR
) $(1)/etc
/kismet
/
129 $(INSTALL_DATA
) .
/files
/ap_manuf
$(1)/etc
/kismet
/
130 $(INSTALL_DATA
) .
/files
/client_manuf
$(1)/etc
/kismet
/
131 $(INSTALL_DATA
) .
/files
/kismet.conf
$(1)/etc
/kismet
/
132 $(INSTALL_DIR
) $(1)/usr
/bin
133 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/kismet_server
$(1)/usr
/bin
/
136 $(eval
$(call BuildPackage
,kismet-client
))
137 $(eval
$(call BuildPackage
,kismet-drone
))
138 $(eval
$(call BuildPackage
,kismet-server
))