1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00
openmptcprouter-feeds/mptcpd/Makefile

71 lines
1.9 KiB
Makefile
Raw Permalink Normal View History

2020-04-15 08:29:37 +00:00
#
2025-01-31 08:51:59 +00:00
# Copyright (C) 2020-2025 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter project
2020-04-15 08:29:37 +00:00
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mptcpd
2021-07-07 10:14:09 +00:00
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/multipath-tcp/mptcpd.git
2025-01-31 08:51:59 +00:00
PKG_SOURCE_VERSION:=68fd9a156669ca7029a101f32282706df069cb4f
2024-12-06 13:47:31 +00:00
PKG_VERSION:=0.13
2020-04-15 08:29:37 +00:00
PKG_RELEASE:=1
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=COPYING
2020-04-15 08:29:37 +00:00
PKG_FORTIFY_SOURCE:=2
2020-04-16 14:55:52 +00:00
PKG_INSTALL:=1
2020-04-15 08:29:37 +00:00
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
2023-12-23 07:43:04 +00:00
DEPENDS:=+libell @!(LINUX_5_4)
2020-04-15 08:29:37 +00:00
TITLE:=mptcpd
URL:=https://github.com/intel/mptcpd
endef
define Package/$(PKG_NAME)/conffiles
/etc/mptcpd/mptcpd.conf
endef
CONFIGURE_ARGS += \
--disable-doxygen-doc \
2022-07-24 16:32:24 +00:00
--disable-logging \
--with-kernel=upstream
TARGET_CFLAGS += -Wno-unused-result -Wno-format-nonliteral
define Build/Prepare
$(Build/Prepare/Default)
( cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap )
endef
2020-04-15 08:29:37 +00:00
define Build/Compile
+$(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS)
endef
define Package/$(PKG_NAME)/install
2020-04-16 14:55:52 +00:00
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/mptcpd $(1)/usr/bin/mptcpd
2021-07-07 10:14:09 +00:00
$(CP) $(PKG_INSTALL_DIR)/usr/bin/mptcpize $(1)/usr/bin/mptcpize
2020-04-16 14:55:52 +00:00
$(INSTALL_DIR) $(1)/usr/include/mptcpd
$(CP) $(PKG_INSTALL_DIR)/usr/include/mptcpd/*.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib/mptcpd
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/mptcpd/* $(1)/usr/lib/mptcpd/
2020-04-15 08:29:37 +00:00
$(INSTALL_DIR) $(1)/etc/mptcpd
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/mptcpd.conf $(1)/etc/mptcpd/mptcpd.conf
2023-08-11 19:17:49 +00:00
$(CP) ./files/* $(1)/
2020-04-15 08:29:37 +00:00
endef
$(eval $(call BuildPackage,$(PKG_NAME)))