mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			61 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# Copyright (C) 2018-2020 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter project
 | 
						|
#
 | 
						|
# This is free software, licensed under the GNU General Public License v2.
 | 
						|
# See /LICENSE for more information.
 | 
						|
#
 | 
						|
 | 
						|
 | 
						|
include $(TOPDIR)/rules.mk
 | 
						|
 | 
						|
PKG_NAME:=tracebox
 | 
						|
PKG_VERSION:=0.4.4
 | 
						|
PKG_RELEASE:=2
 | 
						|
 | 
						|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 | 
						|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 | 
						|
PKG_SOURCE_URL:=https://github.com/dreibh/tracebox.git
 | 
						|
#https://github.com/tracebox/tracebox.git
 | 
						|
PKG_MAINTAINER:=Ycarus <ycarus@zugaina.org>
 | 
						|
 | 
						|
PKG_SOURCE_PROTO:=git
 | 
						|
PKG_SOURCE_VERSION:=4ad40ea43354038a04ad90aedae5874801c223e8
 | 
						|
#v0.4.4
 | 
						|
 | 
						|
PKG_LICENSE:=GPL-2.0-only
 | 
						|
PKG_LICENSE_FILES:=LICENSE
 | 
						|
 | 
						|
PKG_FIXUP:=autoreconf
 | 
						|
 | 
						|
include $(INCLUDE_DIR)/package.mk
 | 
						|
 | 
						|
define Package/tracebox
 | 
						|
  SECTION:=net
 | 
						|
  CATEGORY:=Network
 | 
						|
  TITLE:=tracebox
 | 
						|
  DEPENDS:=+liblua +libpcap +libpthread +librt +curl +libjson-c +libnetfilter-queue +libstdcpp
 | 
						|
endef
 | 
						|
 | 
						|
define Package/tracebox/description
 | 
						|
  Tracebox is a tool that allows to detect middleboxes on any paths, i.e.,
 | 
						|
between a source and any destination. Tracebox can be viewed as a tool similar
 | 
						|
to traceroute as it uses ICMP replies to identify changes in the packets.
 | 
						|
endef
 | 
						|
 | 
						|
CONFIGURE_VARS += \
 | 
						|
	ac_cv_header_lua_h=no \
 | 
						|
	ax_header_version_match=yes
 | 
						|
 | 
						|
CONFIGURE_ARGS += --enable-sniffer --enable-curl --with-libpcap="$(STAGING_DIR)/usr/include/" --disable-tests
 | 
						|
 | 
						|
EXTRA_CPPFLAGS += -fpermissive -Wno-variadic-macros -std=c++14
 | 
						|
 | 
						|
TARGET_CFLAGS += -D_GNU_SOURCE
 | 
						|
 | 
						|
define Package/tracebox/install
 | 
						|
	$(INSTALL_DIR) $(1)/usr/sbin
 | 
						|
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tracebox/tracebox $(1)/usr/sbin/tracebox
 | 
						|
	$(CP) ./files/* $(1)/
 | 
						|
endef
 | 
						|
 | 
						|
$(eval $(call BuildPackage,tracebox))
 |