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.

48 lines
1.3 KiB

  1. #
  2. # Copyright (c) 2019 OpenWrt.org
  3. #
  4. # This is free software, licensed under the BSD 2-Clause License.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=port-mirroring
  8. PKG_VERSION:=1.4.4
  9. PKG_RELEASE:=4
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://codeload.github.com/mmaraya/port-mirroring/tar.gz/v$(PKG_VERSION)?
  12. PKG_HASH:=9fb259d24cee4fe1bed1a51c49e52a8eb05b692ba1b5debb75fdf54957cc8ed1
  13. PKG_MAINTAINER:=Mike Maraya <mike.maraya@gmail.com>
  14. PKG_LICENSE:=BSD-2-Clause
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/port-mirroring
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+libpcap +libpthread
  22. TITLE:=Copy network packets with optional support for TaZmen Sniffer Protocol (TZSP)
  23. URL:=https://github.com/mmaraya/port-mirroring
  24. MENU:=1
  25. endef
  26. define Package/port-mirroring/conffiles
  27. /etc/config/port-mirroring
  28. endef
  29. define Package/port-mirroring/install
  30. $(INSTALL_DIR) $(1)/usr/sbin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/port-mirroring $(1)/usr/sbin/
  32. $(INSTALL_DIR) $(1)/etc/config
  33. $(INSTALL_CONF) $(PKG_BUILD_DIR)/openwrt/port-mirroring.conf $(1)/etc/config/port-mirroring
  34. $(INSTALL_DIR) $(1)/etc/init.d
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/port-mirroringd $(1)/etc/init.d/port_mirroring
  36. endef
  37. $(eval $(call BuildPackage,port-mirroring))