commit e428fd92f0066430a255b115107720818c7e34b8 parent 5ec2a5e8106b0e8723050f6ae4291e21ffc94f85 Author: Mike Maraya <mike.maraya@gmail.com> Date: Sun, 8 Nov 2015 14:35:44 -0500 port-mirroring: copy network packets with optional support for TaZmen Sniffer Protocol (TZSP) Signed-off-by: Mike Maraya <mike.maraya@gmail.com> Diffstat:
| A | net/port-mirroring/Makefile | | | 44 | ++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 44 insertions(+), 0 deletions(-)
diff --git a/net/port-mirroring/Makefile b/net/port-mirroring/Makefile @@ -0,0 +1,44 @@ +# +# Copyright (c) 2015 OpenWrt.org +# +# This is free software, licensed under the BSD 2-Clause License. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=port-mirroring +PKG_VERSION:=1.4.2 +PKG_RELEASE:=1 +PKG_MAINTAINER:=Mike Maraya <mike.maraya@gmail.com> +PKG_LICENSE:=BSD-2-Clause +PKG_LICENSE_FILES:=LICENSE +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_URL:=git://github.com/mmaraya/port-mirroring.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_VERSION:=f6ead68b7760fa86e8da73ac1e062349f243ac93 +PKG_FIXUP:=autoreconf +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/port-mirroring + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libpcap +libpthread + TITLE:=Copy network packets with optional support for TaZmen Sniffer Protocol (TZSP) + URL:=https://github.com/mmaraya/port-mirroring + MENU:=1 +endef + +define Package/port-mirroring/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/port-mirroring $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc/config + $(INSTALL_CONF) $(PKG_BUILD_DIR)/port-mirroring.conf $(1)/etc/config/port-mirroring + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) $(PKG_BUILD_DIR)/port-mirroringd $(1)/etc/init.d/port_mirroring +endef + +$(eval $(call BuildPackage,port-mirroring)) +