You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
3.5 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=kismet
  9. PKG_VERSION:=2016-07-R1
  10. PKG_RELEASE:=6
  11. PKG_LICENSE:=LGPLv2.1
  12. PKG_CPE_ID:=cpe:/a:kismet:kismet
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_URL:=http://www.kismetwireless.net/code
  15. PKG_HASH:=bdb21f153311f1ff3b16621bf0d6740f66369bf0982b0a289c9a12af8847e237
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/kismet/Default
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=Kismet
  21. MAINTAINER:=Jean-Michel lacroix <lacroix@lepine-lacroix.info>
  22. DEPENDS:= +libstdcpp +libnl @BROKEN
  23. URL:=http://www.kismetwireless.net/
  24. SUBMENU:=Wireless
  25. endef
  26. define Package/kismet/Default/description
  27. An 802.11 layer2 wireless network detector, sniffer, and intrusion
  28. detection system.
  29. endef
  30. define Package/kismet-client/conffiles
  31. /etc/kismet/kismet.conf
  32. endef
  33. define Package/kismet-drone/conffiles
  34. /etc/config/kismet_drone
  35. /etc/kismet/kismet_drone.conf
  36. endef
  37. define Package/kismet-server/conffiles
  38. /etc/config/kismet_server
  39. /etc/kismet/kismet.conf
  40. endef
  41. define Package/kismet-client
  42. $(call Package/kismet/Default)
  43. TITLE+= client
  44. DEPENDS+= +libncurses
  45. endef
  46. define Package/kismet-client/description
  47. $(call Package/kismet/Default/description)
  48. This package contains the kismet text interface client.
  49. endef
  50. define Package/kismet-drone
  51. $(call Package/kismet/Default)
  52. DEPENDS+= +libpcap +libpcre +libcap +wireless-tools
  53. TITLE+= drone
  54. endef
  55. define Package/kismet-drone/description
  56. $(call Package/kismet/Default/description)
  57. This package contains the kismet remote sniffing.and monitoring drone.
  58. endef
  59. define Package/kismet-server
  60. $(call Package/kismet/Default)
  61. DEPENDS+= +libpcap +libpcre +libcap +wireless-tools
  62. TITLE+= server
  63. endef
  64. define Package/kismet-server/description
  65. $(call Package/kismet/Default/description)
  66. This package contains the kismet server.
  67. endef
  68. CONFIGURE_ARGS += \
  69. --sysconfdir=/etc/kismet \
  70. CONFIGURE_VARS += \
  71. CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
  72. LIBS="-lm" \
  73. CLIENTCLIBS="-lm"
  74. define Build/Compile
  75. $(MAKE) -C $(PKG_BUILD_DIR) \
  76. LD="$(TARGET_CXX)" \
  77. all
  78. endef
  79. define Package/kismet/install
  80. $(INSTALL_DIR) $(1)/usr/bin/
  81. $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/kismet $(1)/usr/bin/kismet
  82. endef
  83. define Package/kismet-client/install
  84. $(INSTALL_DIR) $(1)/usr/bin
  85. $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/
  86. $(INSTALL_DIR) $(1)/etc/kismet/
  87. $(INSTALL_CONF) ./files/kismet.conf $(1)/etc/kismet/
  88. endef
  89. define Package/kismet-drone/install
  90. $(INSTALL_DIR) $(1)/usr/bin
  91. $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/
  92. $(INSTALL_DIR) $(1)/etc/kismet/
  93. $(INSTALL_CONF) ./files/kismet_drone.conf $(1)/etc/kismet/
  94. $(INSTALL_DIR) $(1)/etc/config
  95. $(INSTALL_CONF) ./files/kismet_drone.config $(1)/etc/config/kismet_drone
  96. $(INSTALL_DIR) $(1)/etc/init.d
  97. $(INSTALL_BIN) ./files/kismet_drone.init $(1)/etc/init.d/kismet_drone
  98. endef
  99. define Package/kismet-server/install
  100. $(INSTALL_DIR) $(1)/usr/bin
  101. $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/
  102. $(INSTALL_DIR) $(1)/etc/kismet/
  103. $(INSTALL_CONF) ./files/kismet.conf $(1)/etc/kismet/
  104. $(INSTALL_DIR) $(1)/etc/config
  105. $(INSTALL_CONF) ./files/kismet_server.config $(1)/etc/config/kismet_server
  106. $(INSTALL_DIR) $(1)/etc/init.d
  107. $(INSTALL_BIN) ./files/kismet_server.init $(1)/etc/init.d/kismet_server
  108. endef
  109. $(eval $(call BuildPackage,kismet-client))
  110. $(eval $(call BuildPackage,kismet-drone))
  111. $(eval $(call BuildPackage,kismet-server))