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.

52 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:=0.8
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-master.tar.gz
  12. PKG_SOURCE_URL:=https://github.com/fln/addrwatch/releases/download/$(PKG_VERSION)/
  13. PKG_MD5SUM:=8f401415be993005fa5fb58a05e14295
  14. PKG_LICENSE:=GPL-3.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-master
  17. PKG_FIXUP:=autoreconf
  18. PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/addrwatch
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+libpcap +libevent2
  24. TITLE:=IPv4/IPv6 and ethernet address pairing tool
  25. URL:=https://github.com/fln/addrwatch
  26. MAINTAINER:=Ondrej Caletka <ondrej@caletka.cz>
  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/sbin $(1)/etc/config $(1)/etc/init.d
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/addrwatch $(1)/usr/sbin/
  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))