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.

54 lines
1.6 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:=addrwatch
  9. PKG_VERSION:=1.0.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/fln/addrwatch/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=f04e143da881cd63c299125b592cfb85e4812abbd146f419a1894c00f2ae6208
  14. PKG_MAINTAINER:=Ondrej Caletka <ondrej@caletka.cz>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/addrwatch
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libpcap +libevent2
  25. TITLE:=IPv4/IPv6 and ethernet address pairing tool
  26. URL:=https://github.com/fln/addrwatch
  27. endef
  28. define Package/addrwatch/description
  29. This is a tool similar to arpwatch. It main purpose is to monitor network and
  30. log discovered ethernet/ip pairings. Addrwatch is extremely useful in networks
  31. with IPv6 autoconfiguration (RFC4862) enabled. It allows to track IPv6
  32. addresses of hosts using IPv6 privacy extensions (RFC4941).
  33. endef
  34. define Package/addrwatch/conffiles
  35. /etc/config/addrwatch
  36. endef
  37. define Package/addrwatch/install
  38. $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/config $(1)/etc/init.d
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/addrwatch $(1)/usr/bin/
  40. $(INSTALL_BIN) ./files/addrwatch.init $(1)/etc/init.d/addrwatch
  41. $(INSTALL_CONF) ./files/addrwatch.config $(1)/etc/config/addrwatch
  42. endef
  43. $(eval $(call BuildPackage,addrwatch))