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.3 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_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_URL:=git://github.com/mmaraya/port-mirroring.git
  16. PKG_SOURCE_PROTO:=git
  17. PKG_SOURCE_VERSION:=f6ead68b7760fa86e8da73ac1e062349f243ac93
  18. PKG_FIXUP:=autoreconf
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/port-mirroring
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libpcap +libpthread
  25. TITLE:=Copy network packets with optional support for TaZmen Sniffer Protocol (TZSP)
  26. URL:=https://github.com/mmaraya/port-mirroring
  27. MENU:=1
  28. endef
  29. define Package/port-mirroring/install
  30. $(INSTALL_DIR) $(1)/usr/sbin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/port-mirroring $(1)/usr/sbin/
  32. $(INSTALL_DIR) $(1)/etc/config
  33. $(INSTALL_CONF) $(PKG_BUILD_DIR)/port-mirroring.conf $(1)/etc/config/port-mirroring
  34. $(INSTALL_DIR) $(1)/etc/init.d
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/port-mirroringd $(1)/etc/init.d/port_mirroring
  36. endef
  37. $(eval $(call BuildPackage,port-mirroring))