1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00
openmptcprouter-feeds/tracebox/Makefile

62 lines
1.6 KiB
Makefile
Raw Normal View History

2020-05-28 08:09:22 +00:00
#
# 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.
#
2018-08-06 12:09:39 +00:00
include $(TOPDIR)/rules.mk
PKG_NAME:=tracebox
PKG_VERSION:=0.4.4
2018-08-10 15:24:44 +00:00
PKG_RELEASE:=2
2018-08-06 12:09:39 +00:00
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
2020-05-28 08:09:22 +00:00
PKG_MAINTAINER:=Ycarus <ycarus@zugaina.org>
2018-08-06 12:09:39 +00:00
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=4ad40ea43354038a04ad90aedae5874801c223e8
#v0.4.4
2018-08-06 12:09:39 +00:00
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=LICENSE
2018-08-06 12:09:39 +00:00
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
2018-08-06 12:09:39 +00:00
EXTRA_CPPFLAGS += -fpermissive -Wno-variadic-macros -std=c++14
2018-08-06 12:09:39 +00:00
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
2018-08-10 15:24:44 +00:00
$(CP) ./files/* $(1)/
2018-08-06 12:09:39 +00:00
endef
$(eval $(call BuildPackage,tracebox))