X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Fkismet%2FMakefile;h=1d32e5cc3066c54e9c2ece4e126292e51a514ceb;hp=efeced0c151449a1203922cfa821d5f8587e5fd8;hb=abec59e44fbeed78e19dcf53d48d0f56eb8e5a39;hpb=845576b286f35c46ba1196095be82eb30922277c diff --git a/net/kismet/Makefile b/net/kismet/Makefile index efeced0c15..1d32e5cc30 100644 --- a/net/kismet/Makefile +++ b/net/kismet/Makefile @@ -1,38 +1,42 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id$ include $(TOPDIR)/rules.mk PKG_NAME:=kismet -PKG_VERSION:=2006-04-R1 +PKG_VERSION:=2009-06-R1 PKG_RELEASE:=1 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.kismetwireless.net/code -PKG_MD5SUM:=8ec2de513f2911df1b7edfcba5ad1c26 -PKG_CAT:=zcat +PKG_MD5SUM:=8d77138020ace39f175a906dc0d3b267 -PKG_BUILDDEP:=libpcap libncurses uclibcxx +PKG_BUILD_DEPENDS:=libpcap libncurses uclibcxx include $(INCLUDE_DIR)/package.mk -define Package/kismet-client +define Package/kismet/Default SECTION:=net CATEGORY:=Network - TITLE:=Kismet client - DEPENDS:=+libncurses +uclibcxx - DESCRIPTION:=Kismet client.\\\ - An 802.11 layer2 wireless network detector, sniffer, and intrusion \\\ - detection system.\\\ - \\\ - This package contains the kismet text interface client. + TITLE:=Kismet + DEPENDS:= +uclibcxx URL:=http://www.kismetwireless.net/ + SUBMENU:=wireless +endef + +define Package/kismet/Default/description + An 802.11 layer2 wireless network detector, sniffer, and intrusion + detection system. +endef + +define Package/kismet-client +$(call Package/kismet/Default) + TITLE+= client + DEPENDS+= +libncurses endef define Package/kismet-client/conffiles @@ -42,34 +46,30 @@ define Package/kismet-client/conffiles /etc/kismet/kismet_ui.conf endef +define Package/kismet-client/description +$(call Package/kismet/Default/description) + This package contains the kismet text interface client. +endef + define Package/kismet-drone - SECTION:=net - CATEGORY:=Network - DEPENDS:=+libpcap +uclibcxx - TITLE:=Kismet drone - DESCRIPTION:=Kismet drone.\\\ - An 802.11 layer2 wireless network detector, sniffer, and intrusion \\\ - detection system.\\\ - \\\ - This package contains the kismet remote sniffing.and monitoring drone. - URL:=http://www.kismetwireless.net/ +$(call Package/kismet/Default) + DEPENDS+= +libpcap + TITLE+= drone endef define Package/kismet-drone/conffiles /etc/kismet/kismet_drone.conf endef +define Package/kismet-drone/description +$(call Package/kismet/Default/description) + This package contains the kismet remote sniffing.and monitoring drone. +endef + define Package/kismet-server - SECTION:=net - CATEGORY:=Network - DEPENDS:=+libpcap +uclibcxx - TITLE:=Kismet server - DESCRIPTION:=Kismet server.\\\ - An 802.11 layer2 wireless network detector, sniffer, and intrusion \\\ - detection system.\\\ - \\\ - This package contains the kismet server. - URL:=http://www.kismetwireless.net/ +$(call Package/kismet/Default) + DEPENDS+= +libpcap + TITLE+= server endef define Package/kismet-server/conffiles @@ -78,77 +78,57 @@ define Package/kismet-server/conffiles /etc/kismet/kismet.conf endef -define Build/Configure - (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" \ - CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \ - CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(LINUX_DIR)/include" \ - LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ - LIBS="-luClibc++ -lc -lm -lgcc" \ - ./configure \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --program-prefix="" \ - --program-suffix="" \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --datadir=/usr/share \ - --includedir=/usr/include \ - --infodir=/usr/share/info \ - --libdir=/usr/lib \ - --libexecdir=/usr/lib \ - --localstatedir=/var \ - --mandir=/usr/share/man \ - --sbindir=/usr/sbin \ - --sysconfdir=/etc/kismet \ - $(DISABLE_LARGEFILE) \ - $(DISABLE_NLS) \ - --enable-syspcap=yes \ - --disable-setuid \ - --disable-wsp100 \ - --disable-gpsmap \ - ); +define Package/kismet-server/description +$(call Package/kismet/Default/description) + This package contains the kismet server. endef +CONFIGURE_ARGS += \ + --sysconfdir=/etc/kismet \ + +CONFIGURE_VARS += \ + CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \ + CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \ + LDFLAGS="$$$$LDFLAGS" \ + LIBS="-nodefaultlibs -luClibc++ -lm -lgcc" \ + CLIENTLIBS="-nodefaultlibs -luClibc++ -lm -lgcc" \ + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - LIBS="-luClibc++ -lc -lm -lgcc" \ + LD="$(TARGET_CXX)" \ all endef #FIXME: remove this package? define Package/kismet/install - install -d -m0755 $(1)/usr/bin/ - install -m0755 $(PKG_BUILD_DIR)/scripts/kismet $(1)/usr/bin/kismet + $(INSTALL_DIR) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/kismet $(1)/usr/bin/kismet endef define Package/kismet-client/install - install -d -m0755 $(1)/etc/kismet/ - install -m0644 ./files/ap_manuf $(1)/etc/kismet/ - install -m0644 ./files/client_manuf $(1)/etc/kismet/ - install -m0644 ./files/kismet.conf $(1)/etc/kismet/ - install -m0644 ./files/kismet_ui.conf $(1)/etc/kismet/ - install -d -m0755 $(1)/usr/bin - install -m0755 $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc/kismet/ + $(INSTALL_DATA) ./files/ap_manuf $(1)/etc/kismet/ + $(INSTALL_DATA) ./files/client_manuf $(1)/etc/kismet/ + $(INSTALL_DATA) ./files/kismet.conf $(1)/etc/kismet/ + $(INSTALL_DATA) ./files/kismet_ui.conf $(1)/etc/kismet/ + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/ endef define Package/kismet-drone/install - install -d -m0755 $(1)/etc/kismet/ - install -m0644 ./files/kismet_drone.conf $(1)/etc/kismet/ - install -d -m0755 $(1)/usr/bin - install -m0755 $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc/kismet/ + $(INSTALL_DATA) ./files/kismet_drone.conf $(1)/etc/kismet/ + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/ endef define Package/kismet-server/install - install -d -m0755 $(1)/etc/kismet/ - install -m0644 ./files/ap_manuf $(1)/etc/kismet/ - install -m0644 ./files/client_manuf $(1)/etc/kismet/ - install -m0644 ./files/kismet.conf $(1)/etc/kismet/ - install -d -m0755 $(1)/usr/bin - install -m0755 $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc/kismet/ + $(INSTALL_DATA) ./files/ap_manuf $(1)/etc/kismet/ + $(INSTALL_DATA) ./files/client_manuf $(1)/etc/kismet/ + $(INSTALL_DATA) ./files/kismet.conf $(1)/etc/kismet/ + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/ endef $(eval $(call BuildPackage,kismet-client))