source: packages/net/kismet/Makefile @ 22122

Last change on this file since 22122 was 22122, checked in by nico, 6 years ago

[packages] replace occurences of -lgcc with $(LIBGCC_S)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 3.1 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=kismet
11PKG_VERSION:=2010-01-R1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.kismetwireless.net/code
16PKG_MD5SUM:=a6d6edcf65d5bb2cb5de6472bcc16f19
17
18PKG_BUILD_DEPENDS:=libpcap libncurses uclibcxx libpcre
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/kismet/Default
23  SECTION:=net
24  CATEGORY:=Network
25  TITLE:=Kismet
26  DEPENDS:= +uclibcxx
27  URL:=http://www.kismetwireless.net/
28  SUBMENU:=wireless
29endef
30
31define Package/kismet/Default/description
32 An 802.11 layer2 wireless network detector, sniffer, and intrusion
33 detection system.
34endef
35
36define Package/kismet-client
37$(call Package/kismet/Default)
38  TITLE+= client
39  DEPENDS+= +libncurses
40endef
41
42define Package/kismet-client/conffiles
43/etc/kismet/kismet.conf
44endef
45
46define Package/kismet-client/description
47$(call Package/kismet/Default/description)
48 This package contains the kismet text interface client.
49endef
50
51define Package/kismet-drone
52$(call Package/kismet/Default)
53  DEPENDS+= +libpcap +libpcre
54  TITLE+= drone
55endef
56
57define Package/kismet-drone/conffiles
58/etc/kismet/kismet_drone.conf
59endef
60
61define Package/kismet-drone/description
62$(call Package/kismet/Default/description)
63 This package contains the kismet remote sniffing.and monitoring drone.
64endef
65
66define Package/kismet-server
67$(call Package/kismet/Default)
68  DEPENDS+= +libpcap +libpcre
69  TITLE+= server
70endef
71
72define Package/kismet-server/conffiles
73/etc/kismet/kismet.conf
74endef
75
76define Package/kismet-server/description
77$(call Package/kismet/Default/description)
78 This package contains the kismet server.
79endef
80
81CONFIGURE_ARGS += \
82        --sysconfdir=/etc/kismet \
83
84CONFIGURE_VARS += \
85        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \
86        CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
87        LDFLAGS="$$$$LDFLAGS" \
88        LIBS="-nodefaultlibs -luClibc++ -lm $(LIBGCC_S)" \
89        CLIENTCLIBS="-nodefaultlibs -luClibc++ -lm $(LIBGCC_S)" \
90
91define Build/Compile
92        $(MAKE) -C $(PKG_BUILD_DIR) \
93                LD="$(TARGET_CXX)" \
94                all
95endef
96
97#FIXME: remove this package?
98define Package/kismet/install
99        $(INSTALL_DIR) $(1)/usr/bin/
100        $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/kismet $(1)/usr/bin/kismet
101endef
102
103define Package/kismet-client/install
104        $(INSTALL_DIR) $(1)/etc/kismet/
105        $(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet.conf $(1)/etc/kismet/
106        $(INSTALL_DIR) $(1)/usr/bin
107        $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/
108endef
109
110define Package/kismet-drone/install
111        $(INSTALL_DIR) $(1)/etc/kismet/
112        $(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_drone.conf $(1)/etc/kismet/
113        $(INSTALL_DIR) $(1)/usr/bin
114        $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/
115endef
116
117define Package/kismet-server/install
118        $(INSTALL_DIR) $(1)/etc/kismet/
119        $(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet.conf $(1)/etc/kismet/
120        $(INSTALL_DIR) $(1)/usr/bin
121        $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/
122endef
123
124$(eval $(call BuildPackage,kismet-client))
125$(eval $(call BuildPackage,kismet-drone))
126$(eval $(call BuildPackage,kismet-server))
Note: See TracBrowser for help on using the repository browser.