mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add mptcpd
This commit is contained in:
		
							parent
							
								
									310141bc2b
								
							
						
					
					
						commit
						c1063c9177
					
				
					 3 changed files with 117 additions and 0 deletions
				
			
		
							
								
								
									
										44
									
								
								libell/Makefile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								libell/Makefile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,44 @@
 | 
			
		|||
#
 | 
			
		||||
# Copyright (C) 2020 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
 | 
			
		||||
#
 | 
			
		||||
# This is free software, licensed under the GNU General Public License v2.
 | 
			
		||||
# See /LICENSE for more information.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
include $(TOPDIR)/rules.mk
 | 
			
		||||
 | 
			
		||||
PKG_NAME:=ell
 | 
			
		||||
PKG_VERSION:=0.30
 | 
			
		||||
PKG_RELEASE:=1
 | 
			
		||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 | 
			
		||||
PKG_HASH:=51cf8cc66a9d1038e41f7d619ea5660aa4476904496562b2d45ca79370ca4a5e
 | 
			
		||||
PKG_SOURCE_URL:=@KERNEL/linux/libs/ell
 | 
			
		||||
PKG_LICENSE:=GPL-2.0
 | 
			
		||||
PKG_LICENSE_FILES:=GPL
 | 
			
		||||
PKG_INSTALL:=1
 | 
			
		||||
PKG_MAINTAINER:=Ycarus <ycarus@zugaina.org>
 | 
			
		||||
 | 
			
		||||
include $(INCLUDE_DIR)/package.mk
 | 
			
		||||
 | 
			
		||||
define Package/libell
 | 
			
		||||
  SECTION:=libs
 | 
			
		||||
  CATEGORY:=Libraries
 | 
			
		||||
  TITLE:=Embedded Linux library
 | 
			
		||||
  URL:=https://git.kernel.org/pub/scm/libs/ell/ell.git
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
define Package/libell/description
 | 
			
		||||
  Embeded Linux library
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
define Package/libell/install
 | 
			
		||||
	$(INSTALL_DIR) $(1)/usr/lib
 | 
			
		||||
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libell*.so* $(1)/usr/lib
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
define Build/InstallDev
 | 
			
		||||
	$(INSTALL_DIR) $(1)
 | 
			
		||||
	$(CP) $(PKG_INSTALL_DIR)/* $(1)/
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
$(eval $(call BuildPackage,libell))
 | 
			
		||||
							
								
								
									
										49
									
								
								mptcpd/Makefile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								mptcpd/Makefile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,49 @@
 | 
			
		|||
#
 | 
			
		||||
# Copyright (C) 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:=mptcpd
 | 
			
		||||
PKG_VERSION:=0.3
 | 
			
		||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 | 
			
		||||
PKG_SOURCE_URL:=https://github.com/intel/mptcpd/releases/download/v0.3
 | 
			
		||||
PKG_HASH:=c2e1711e01b11f16a0c91dc0f3815b6460e603f52a31225d3a4d4012e858c967
 | 
			
		||||
PKG_RELEASE:=1
 | 
			
		||||
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
 | 
			
		||||
 | 
			
		||||
PKG_FORTIFY_SOURCE:=2
 | 
			
		||||
PKG_BUILD_PARALLEL:=1
 | 
			
		||||
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
 | 
			
		||||
 | 
			
		||||
include $(INCLUDE_DIR)/package.mk
 | 
			
		||||
 | 
			
		||||
define Package/$(PKG_NAME)
 | 
			
		||||
SECTION:=net
 | 
			
		||||
CATEGORY:=Network
 | 
			
		||||
DEPENDS:=+libell
 | 
			
		||||
TITLE:=mptcpd
 | 
			
		||||
URL:=https://github.com/intel/mptcpd
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
define Package/$(PKG_NAME)/conffiles
 | 
			
		||||
/etc/mptcpd/mptcpd.conf
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
TARGET_CFLAGS += -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral
 | 
			
		||||
 | 
			
		||||
define Build/Compile
 | 
			
		||||
	+$(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS)
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
define Package/$(PKG_NAME)/install
 | 
			
		||||
	$(INSTALL_DIR) $(1)/usr/sbin
 | 
			
		||||
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mptcpd $(1)/usr/sbin/$(PKG_NAME)
 | 
			
		||||
	$(INSTALL_DIR) $(1)/etc/mptcpd
 | 
			
		||||
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/mptcpd.conf $(1)/etc/mptcpd/mptcpd.conf
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
$(eval $(call BuildPackage,$(PKG_NAME)))
 | 
			
		||||
							
								
								
									
										24
									
								
								mptcpd/patches/log.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								mptcpd/patches/log.patch
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
--- a/src/configuration.c	2020-04-14 21:31:22.057292953 +0200
 | 
			
		||||
+++ b/src/configuration.c	2020-04-14 21:32:13.712364449 +0200
 | 
			
		||||
@@ -35,10 +35,10 @@
 | 
			
		||||
  */
 | 
			
		||||
 //@{
 | 
			
		||||
 /// Underlying string concatenation macro.
 | 
			
		||||
-#define MPTCPD_CONCAT_IMPL(x, ...) x ## __VA_ARGS__
 | 
			
		||||
+//#define MPTCPD_CONCAT_IMPL(x, ...) x ## __VA_ARGS__
 | 
			
		||||
 
 | 
			
		||||
 /// Concatenate strings using the preprocessor.
 | 
			
		||||
-#define MPTCPD_CONCAT(x, ...) MPTCPD_CONCAT_IMPL(x, __VA_ARGS__)
 | 
			
		||||
+//#define MPTCPD_CONCAT(x, ...) MPTCPD_CONCAT_IMPL(x, __VA_ARGS__)
 | 
			
		||||
 //@}
 | 
			
		||||
 
 | 
			
		||||
 // Compile-time default logging choice
 | 
			
		||||
@@ -47,7 +47,7 @@
 | 
			
		||||
 # error Problem configuring default log message destination.
 | 
			
		||||
 #endif
 | 
			
		||||
 /// Name of the default logging function determined at compile-time.
 | 
			
		||||
-#define MPTCPD_SET_LOG_FUNCTION MPTCPD_CONCAT(l_log_set_, MPTCPD_LOGGER)
 | 
			
		||||
+#define MPTCPD_SET_LOG_FUNCTION l_log_set_stderr
 | 
			
		||||
 
 | 
			
		||||
 /**
 | 
			
		||||
  * @brief Get the function that sets the log message destination.
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue