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.

44 lines
1.2 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:=2
  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/install
  27. $(INSTALL_DIR) $(1)/usr/sbin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/port-mirroring $(1)/usr/sbin/
  29. $(INSTALL_DIR) $(1)/etc/config
  30. $(INSTALL_CONF) $(PKG_BUILD_DIR)/openwrt/port-mirroring.conf $(1)/etc/config/port-mirroring
  31. $(INSTALL_DIR) $(1)/etc/init.d
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/port-mirroringd $(1)/etc/init.d/port_mirroring
  33. endef
  34. $(eval $(call BuildPackage,port-mirroring))