mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
commit
01fa54cb57
8 changed files with 112 additions and 21 deletions
58
cryptodev-linux/Makefile
Normal file
58
cryptodev-linux/Makefile
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2014 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
|
PKG_NAME:=cryptodev-linux
|
||||||
|
PKG_VERSION:=1.12
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE_URL:=https://codeload.github.com/$(PKG_NAME)/$(PKG_NAME)/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_HASH:=f51c2254749233b1b1d7ec9445158bd709f124f88e1c650fe2faac83c3a81938
|
||||||
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
|
||||||
|
|
||||||
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define KernelPackage/cryptodev
|
||||||
|
SUBMENU:=Cryptographic API modules
|
||||||
|
TITLE:=Driver for cryptographic acceleration
|
||||||
|
URL:=http://cryptodev-linux.org/
|
||||||
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
||||||
|
DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
|
||||||
|
FILES:=$(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
|
||||||
|
AUTOLOAD:=$(call AutoLoad,50,cryptodev)
|
||||||
|
MODPARAMS.cryptodev:=cryptodev_verbosity=-1
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/cryptodev/description
|
||||||
|
This is a driver for that allows to use the Linux kernel supported
|
||||||
|
hardware ciphers by user-space applications.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
|
$(KERNEL_MAKE_FLAGS) \
|
||||||
|
KERNEL_DIR="$(LINUX_DIR)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,cryptodev))
|
|
@ -82,6 +82,12 @@ return L.view.extend({
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
o.modalonly = true;
|
o.modalonly = true;
|
||||||
|
|
||||||
|
o = s.taboption('advanced', form.Value, 'latency_tolerance', _('Latency tolerance'));
|
||||||
|
o.default = '300';
|
||||||
|
o.datatype = "uinteger";
|
||||||
|
o.rmempty = false;
|
||||||
|
o.modalonly = true;
|
||||||
|
|
||||||
return m.render();
|
return m.render();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,13 +8,13 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=mlvpn
|
PKG_NAME:=mlvpn
|
||||||
PKG_VERSION:=2263bab
|
PKG_VERSION:=8aa1b16
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/zehome/MLVPN.git
|
PKG_SOURCE_URL:=https://github.com/zehome/MLVPN.git
|
||||||
PKG_SOURCE_VERSION:=2263bab7e5f983e1daa33887b53120c12646398f
|
PKG_SOURCE_VERSION:=8aa1b16d843ea68734e2520e39a34cb7f3d61b2b
|
||||||
PKG_SOURCE_DATE:=2020-12-16
|
PKG_SOURCE_DATE:=2021-08-14
|
||||||
#PKG_SOURCE_URL:=https://github.com/markfoodyburton/MLVPN.git
|
#PKG_SOURCE_URL:=https://github.com/markfoodyburton/MLVPN.git
|
||||||
#PKG_SOURCE_VERSION:=8f9720978b28c1954f9f229525333547283316d2
|
#PKG_SOURCE_VERSION:=8f9720978b28c1954f9f229525333547283316d2
|
||||||
#PKG_SOURCE_DATE:=2018-09-03
|
#PKG_SOURCE_DATE:=2018-09-03
|
||||||
|
|
|
@ -8,4 +8,5 @@ config mlvpn 'general'
|
||||||
option host '128.128.128.128'
|
option host '128.128.128.128'
|
||||||
option firstport '65201'
|
option firstport '65201'
|
||||||
option interface_name 'mlvpn0'
|
option interface_name 'mlvpn0'
|
||||||
option loss_tolerance '50'
|
option loss_tolerance '50'
|
||||||
|
option latency_tolerance '300'
|
||||||
|
|
|
@ -33,14 +33,15 @@ interface_multipath_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
local enable timeout mode password reorder_buffer_size interface_name host firstport loss_tolerence
|
local enable timeout mode password reorder_buffer_size interface_name host firstport loss_tolerance latency_tolerance
|
||||||
[ "$(uci -q get mlvpn.general.enable)" = "1" ] || return 1
|
[ "$(uci -q get mlvpn.general.enable)" = "1" ] || return 1
|
||||||
interface_name="$(uci -q get mlvpn.general.interface_name)"
|
interface_name="$(uci -q get mlvpn.general.interface_name)"
|
||||||
timeout="$(uci -q get mlvpn.general.timeout)"
|
timeout="$(uci -q get mlvpn.general.timeout)"
|
||||||
mode="$(uci -q get mlvpn.general.mode)"
|
mode="$(uci -q get mlvpn.general.mode)"
|
||||||
password="$(uci -q get mlvpn.general.password)"
|
password="$(uci -q get mlvpn.general.password)"
|
||||||
reorder_buffer_size="$(uci -q get mlvpn.general.reorder_buffer_size)"
|
reorder_buffer_size="$(uci -q get mlvpn.general.reorder_buffer_size)"
|
||||||
loss_tolerence="$(uci -q get mlvpn.general.loss_tolerence)"
|
loss_tolerance="$(uci -q get mlvpn.general.loss_tolerance)"
|
||||||
|
latency_tolerance="$(uci -q get mlvpn.general.latency_tolerance)"
|
||||||
cleartext_data="$(uci -q get mlvpn.general.cleartext_data)"
|
cleartext_data="$(uci -q get mlvpn.general.cleartext_data)"
|
||||||
[ -z "$cleartext_data" ] && cleartext_data="0"
|
[ -z "$cleartext_data" ] && cleartext_data="0"
|
||||||
host="$(uci -q get mlvpn.general.host)"
|
host="$(uci -q get mlvpn.general.host)"
|
||||||
|
@ -59,7 +60,8 @@ start() {
|
||||||
timeout = ${timeout}
|
timeout = ${timeout}
|
||||||
reorder_buffer = yes
|
reorder_buffer = yes
|
||||||
reorder_buffer_size = ${reorder_buffer_size}
|
reorder_buffer_size = ${reorder_buffer_size}
|
||||||
loss_tolerence = ${loss_tolerence}
|
loss_tolerence = ${loss_tolerance}
|
||||||
|
latency_tolerence = ${latency_tolerance}
|
||||||
cleartext_data = ${cleartext_data}
|
cleartext_data = ${cleartext_data}
|
||||||
password = "${password}"
|
password = "${password}"
|
||||||
mtu = 1452
|
mtu = 1452
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- a/src/privsep.c
|
|
||||||
+++ b/src/privsep.c
|
|
||||||
@@ -778,7 +778,7 @@ sig_got_chld(int sig)
|
|
||||||
pid_t pid;
|
|
||||||
|
|
||||||
do {
|
|
||||||
- pid = waitpid(WAIT_ANY, NULL, WNOHANG);
|
|
||||||
+ pid = waitpid(-1, NULL, WNOHANG);
|
|
||||||
if (pid == child_pid && cur_state < STATE_QUIT)
|
|
||||||
cur_state = STATE_QUIT;
|
|
||||||
} while (pid > 0 || (pid == -1 && errno == EINTR));
|
|
33
mlvpn/patches/020-remove-cdefs.patch
Normal file
33
mlvpn/patches/020-remove-cdefs.patch
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
--- a/src/vis.h.anc 2021-09-24 22:00:03.900321816 +0200
|
||||||
|
+++ b/src/vis.h 2021-09-24 22:00:21.500028958 +0200
|
||||||
|
@@ -79,7 +79,6 @@
|
||||||
|
*/
|
||||||
|
#define UNVIS_END 1 /* no more characters */
|
||||||
|
|
||||||
|
-#include <sys/cdefs.h>
|
||||||
|
|
||||||
|
__BEGIN_DECLS
|
||||||
|
char *vis(char *, int, int, int);
|
||||||
|
--- a/src/vis.h.anc 2021-09-24 22:05:19.543069573 +0200
|
||||||
|
+++ b/src/vis.h 2021-09-24 22:06:00.430389216 +0200
|
||||||
|
@@ -80,7 +80,9 @@
|
||||||
|
#define UNVIS_END 1 /* no more characters */
|
||||||
|
|
||||||
|
|
||||||
|
-__BEGIN_DECLS
|
||||||
|
+#ifdef __cplusplus
|
||||||
|
+extern "C" {
|
||||||
|
+#endif
|
||||||
|
char *vis(char *, int, int, int);
|
||||||
|
int strvis(char *, const char *, int);
|
||||||
|
int stravis(char **, const char *, int);
|
||||||
|
@@ -93,6 +95,8 @@
|
||||||
|
ssize_t strnunvis(char *, const char *, size_t)
|
||||||
|
__attribute__ ((__bounded__(__string__,1,3)));
|
||||||
|
|
||||||
|
-__END_DECLS
|
||||||
|
+#ifdef __cplusplus
|
||||||
|
+}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#endif /* !HAVE_STRNVIS || BROKEN_STRNVIS */
|
|
@ -14,11 +14,13 @@ PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
PKG_SOURCE_URL:=https://github.com/tracebox/tracebox.git
|
PKG_SOURCE_URL:=https://github.com/dreibh/tracebox.git
|
||||||
|
#https://github.com/tracebox/tracebox.git
|
||||||
PKG_MAINTAINER:=Ycarus <ycarus@zugaina.org>
|
PKG_MAINTAINER:=Ycarus <ycarus@zugaina.org>
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=v0.4.4
|
PKG_SOURCE_VERSION:=4ad40ea43354038a04ad90aedae5874801c223e8
|
||||||
|
#v0.4.4
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
|
@ -43,7 +45,7 @@ CONFIGURE_VARS += \
|
||||||
|
|
||||||
CONFIGURE_ARGS += --enable-sniffer --enable-curl --with-libpcap="$(STAGING_DIR)/usr/include/"
|
CONFIGURE_ARGS += --enable-sniffer --enable-curl --with-libpcap="$(STAGING_DIR)/usr/include/"
|
||||||
|
|
||||||
EXTRA_CPPFLAGS += -fpermissive -Wno-variadic-macros
|
EXTRA_CPPFLAGS += -fpermissive -Wno-variadic-macros -std=c++14
|
||||||
|
|
||||||
TARGET_CFLAGS += -D_GNU_SOURCE
|
TARGET_CFLAGS += -D_GNU_SOURCE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue