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