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.

45 lines
1.4 KiB

  1. #
  2. # Copyright (c) 2015 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.2
  9. PKG_RELEASE:=1
  10. PKG_MAINTAINER:=Mike Maraya <mike.maraya@gmail.com>
  11. PKG_LICENSE:=BSD-2-Clause
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  14. PKG_MIRROR_HASH:=0bffa393e740711db3eb930fc2674843c56b0dc9db15ac1887fec8776401af2a
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_URL:=git://github.com/mmaraya/port-mirroring.git
  17. PKG_SOURCE_PROTO:=git
  18. PKG_SOURCE_VERSION:=f6ead68b7760fa86e8da73ac1e062349f243ac93
  19. PKG_FIXUP:=autoreconf
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/port-mirroring
  23. SECTION:=net
  24. CATEGORY:=Network
  25. DEPENDS:=+libpcap +libpthread
  26. TITLE:=Copy network packets with optional support for TaZmen Sniffer Protocol (TZSP)
  27. URL:=https://github.com/mmaraya/port-mirroring
  28. MENU:=1
  29. endef
  30. define Package/port-mirroring/install
  31. $(INSTALL_DIR) $(1)/usr/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/port-mirroring $(1)/usr/sbin/
  33. $(INSTALL_DIR) $(1)/etc/config
  34. $(INSTALL_CONF) $(PKG_BUILD_DIR)/port-mirroring.conf $(1)/etc/config/port-mirroring
  35. $(INSTALL_DIR) $(1)/etc/init.d
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/port-mirroringd $(1)/etc/init.d/port_mirroring
  37. endef
  38. $(eval $(call BuildPackage,port-mirroring))