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.

140 lines
3.4 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:=1
  11. PKG_LICENSE:=LGPLv2.1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=http://www.kismetwireless.net/code
  14. PKG_HASH:=bdb21f153311f1ff3b16621bf0d6740f66369bf0982b0a289c9a12af8847e237
  15. include $(INCLUDE_DIR)/uclibc++.mk
  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:= $(CXX_DEPENDS) +libnl
  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/kismet/kismet_drone.conf
  35. endef
  36. define Package/kismet-server/conffiles
  37. /etc/kismet/kismet.conf
  38. endef
  39. define Package/kismet-client
  40. $(call Package/kismet/Default)
  41. TITLE+= client
  42. DEPENDS+= +libncurses
  43. endef
  44. define Package/kismet-client/description
  45. $(call Package/kismet/Default/description)
  46. This package contains the kismet text interface client.
  47. endef
  48. define Package/kismet-drone
  49. $(call Package/kismet/Default)
  50. DEPENDS+= +libpcap +libpcre +libcap +wireless-tools
  51. TITLE+= drone
  52. endef
  53. define Package/kismet-drone/description
  54. $(call Package/kismet/Default/description)
  55. This package contains the kismet remote sniffing.and monitoring drone.
  56. endef
  57. define Package/kismet-server
  58. $(call Package/kismet/Default)
  59. DEPENDS+= +libpcap +libpcre +libcap +wireless-tools
  60. TITLE+= server
  61. endef
  62. define Package/kismet-server/description
  63. $(call Package/kismet/Default/description)
  64. This package contains the kismet server.
  65. endef
  66. CONFIGURE_ARGS += \
  67. --sysconfdir=/etc/kismet \
  68. CONFIGURE_VARS += \
  69. CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
  70. LIBS="-lm" \
  71. CLIENTCLIBS="-lm"
  72. define Build/Compile
  73. $(MAKE) -C $(PKG_BUILD_DIR) \
  74. LD="$(TARGET_CXX)" \
  75. all
  76. endef
  77. define Package/kismet/install
  78. $(INSTALL_DIR) $(1)/usr/bin/
  79. $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/kismet $(1)/usr/bin/kismet
  80. endef
  81. define Package/kismet-client/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/
  84. $(INSTALL_DIR) $(1)/etc/kismet/
  85. $(INSTALL_CONF) ./files/kismet.conf $(1)/etc/kismet/
  86. endef
  87. define Package/kismet-drone/install
  88. $(INSTALL_DIR) $(1)/usr/bin
  89. $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/
  90. $(INSTALL_DIR) $(1)/etc/kismet/
  91. $(INSTALL_CONF) ./files/kismet_drone.conf $(1)/etc/kismet/
  92. $(INSTALL_DIR) $(1)/etc/config
  93. $(INSTALL_CONF) ./files/kismet_drone.config $(1)/etc/config/kismet_drone
  94. $(INSTALL_DIR) $(1)/etc/init.d
  95. $(INSTALL_BIN) ./files/kismet_drone.init $(1)/etc/init.d/kismet_drone
  96. endef
  97. define Package/kismet-server/install
  98. $(INSTALL_DIR) $(1)/usr/bin
  99. $(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/
  100. $(INSTALL_DIR) $(1)/etc/kismet/
  101. $(INSTALL_CONF) ./files/kismet.conf $(1)/etc/kismet/
  102. $(INSTALL_DIR) $(1)/etc/config
  103. $(INSTALL_CONF) ./files/kismet_server.config $(1)/etc/config/kismet_server
  104. $(INSTALL_DIR) $(1)/etc/init.d
  105. $(INSTALL_BIN) ./files/kismet_server.init $(1)/etc/init.d/kismet_server
  106. endef
  107. $(eval $(call BuildPackage,kismet-client))
  108. $(eval $(call BuildPackage,kismet-drone))
  109. $(eval $(call BuildPackage,kismet-server))