noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / net / kismet / Makefile
1 #
2 # Copyright (C) 2006-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=kismet
11 PKG_VERSION:=2016-07-R1
12 PKG_RELEASE:=1
13
14 PKG_LICENSE:=LGPLv2.1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_URL:=http://www.kismetwireless.net/code
18 PKG_MD5SUM:=7fa6e86c5078a0e7d91fc9bf954c5107
19
20 PKG_BUILD_DEPENDS:=libpcap libncurses libpcre
21
22 include $(INCLUDE_DIR)/uclibc++.mk
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/kismet/Default
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Kismet
29 MAINTAINER:=Jean-Michel lacroix <lacroix@lepine-lacroix.info>
30 DEPENDS:= $(CXX_DEPENDS) +libnl
31 URL:=http://www.kismetwireless.net/
32 SUBMENU:=wireless
33 endef
34
35 define Package/kismet/Default/description
36 An 802.11 layer2 wireless network detector, sniffer, and intrusion
37 detection system.
38 endef
39
40 define Package/kismet-client/conffiles
41 /etc/kismet/kismet.conf
42 endef
43
44 define Package/kismet-drone/conffiles
45 /etc/kismet/kismet_drone.conf
46 endef
47
48 define Package/kismet-server/conffiles
49 /etc/kismet/kismet.conf
50 endef
51
52 define Package/kismet-client
53 $(call Package/kismet/Default)
54 TITLE+= client
55 DEPENDS+= +libncurses
56 endef
57
58 define Package/kismet-client/description
59 $(call Package/kismet/Default/description)
60 This package contains the kismet text interface client.
61 endef
62
63 define Package/kismet-drone
64 $(call Package/kismet/Default)
65 DEPENDS+= +libpcap +libpcre +libcap +wireless-tools
66 TITLE+= drone
67 endef
68
69 define Package/kismet-drone/description
70 $(call Package/kismet/Default/description)
71 This package contains the kismet remote sniffing.and monitoring drone.
72 endef
73
74 define Package/kismet-server
75 $(call Package/kismet/Default)
76 DEPENDS+= +libpcap +libpcre +libcap +wireless-tools
77 TITLE+= server
78 endef
79
80 define Package/kismet-server/description
81 $(call Package/kismet/Default/description)
82 This package contains the kismet server.
83 endef
84
85 CONFIGURE_ARGS += \
86 --sysconfdir=/etc/kismet \
87
88 CONFIGURE_VARS += \
89 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
90 LIBS="-lm" \
91 CLIENTCLIBS="-lm"
92
93 define Build/Compile
94 $(MAKE) -C $(PKG_BUILD_DIR) \
95 LD="$(TARGET_CXX)" \
96 all
97 endef
98
99 define Package/kismet/install
100 $(INSTALL_DIR) $(1)/usr/bin/
101 $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/kismet $(1)/usr/bin/kismet
102 endef
103
104 define Package/kismet-client/install
105 $(INSTALL_DIR) $(1)/usr/bin
106 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/
107
108 $(INSTALL_DIR) $(1)/etc/kismet/
109 $(INSTALL_CONF) ./files/kismet.conf $(1)/etc/kismet/
110 endef
111
112 define Package/kismet-drone/install
113 $(INSTALL_DIR) $(1)/usr/bin
114 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/
115
116 $(INSTALL_DIR) $(1)/etc/kismet/
117 $(INSTALL_CONF) ./files/kismet_drone.conf $(1)/etc/kismet/
118
119 $(INSTALL_DIR) $(1)/etc/config
120 $(INSTALL_CONF) ./files/kismet_drone.config $(1)/etc/config/kismet_drone
121
122 $(INSTALL_DIR) $(1)/etc/init.d
123 $(INSTALL_BIN) ./files/kismet_drone.init $(1)/etc/init.d/kismet_drone
124 endef
125
126 define Package/kismet-server/install
127 $(INSTALL_DIR) $(1)/usr/bin
128 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/
129
130 $(INSTALL_DIR) $(1)/etc/kismet/
131 $(INSTALL_CONF) ./files/kismet.conf $(1)/etc/kismet/
132
133 $(INSTALL_DIR) $(1)/etc/config
134 $(INSTALL_CONF) ./files/kismet_server.config $(1)/etc/config/kismet_server
135
136 $(INSTALL_DIR) $(1)/etc/init.d
137 $(INSTALL_BIN) ./files/kismet_server.init $(1)/etc/init.d/kismet_server
138 endef
139
140 $(eval $(call BuildPackage,kismet-client))
141 $(eval $(call BuildPackage,kismet-drone))
142 $(eval $(call BuildPackage,kismet-server))