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.

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