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.

62 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=netstinky
  3. PKG_VERSION:=1.0.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=nsids-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://github.com/wanduow/netstinky-ids/releases/download/v$(PKG_VERSION)/
  7. PKG_HASH:=143e8d7a9ee7f58893d92b065aed7eca35798f5807b07d9a78f404ea8614e216
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/nsids-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Andrew Mackintosh <amackint@waikato.ac.nz>
  10. PKG_LICENSE:=BSD-2-Clause
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_INSTALL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/netstinky
  16. SECTION:=net
  17. CATEGORY:=Network
  18. DEPENDS:=+libpcap +libuv +libopenssl +umdns
  19. TITLE:=NetStinky IDS for detecting IoCs on an active network
  20. URL:=https://netstinky.wand.net.nz/
  21. endef
  22. define Package/netstinky/description
  23. The NetStinky IDS is a component of the NetStinky suite of tools. It
  24. monitors the traffic on the LAN interfaces of your router for Indications
  25. of Compromise (IoCs), drawn from an auto-updating list of definitions.
  26. IoCs are subsequently reported to the NetStinky smartphone applications.
  27. endef
  28. CONFIGURE_ARGS += \
  29. --enable-mdns=no \
  30. --enable-updates
  31. define Package/netstinky/conffiles
  32. /etc/config/netstinky
  33. endef
  34. define Package/netstinky/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) \
  37. $(PKG_INSTALL_DIR)/usr/bin/nsids \
  38. $(1)/usr/bin
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_BIN) \
  41. ./files/nsids.init \
  42. $(1)/etc/init.d/nsids
  43. $(INSTALL_DIR) $(1)/etc/config
  44. $(INSTALL_CONF) \
  45. ./files/nsids.conf \
  46. $(1)/etc/config/netstinky
  47. endef
  48. $(eval $(call BuildPackage,netstinky))