2021-10-23 15:51:14 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2021 Jianhui Zhao <zhaojh329@gmail.com>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ovpn-dco
|
2022-10-22 07:37:09 +02:00
|
|
|
PKG_SOURCE_DATE:=2022-10-23
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=3
|
2021-10-23 15:51:14 +02:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL=https://github.com/OpenVPN/ovpn-dco.git
|
2022-10-22 07:37:09 +02:00
|
|
|
PKG_SOURCE_VERSION:=d1d53564e17d807aed2b945ea3d4ec35bdd9f09b
|
|
|
|
PKG_MIRROR_HASH:=d3152623383676d314cb6e4861cadeebfe75b0cf9b2607c86cce1f3953d906ed
|
2021-10-23 15:51:14 +02:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Jianhui Zhao <zhaojh329@gmail.com>
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/ovpn-dco
|
|
|
|
SUBMENU:=Network Support
|
|
|
|
TITLE:=OpenVPN data channel offload
|
|
|
|
DEPENDS:=+kmod-crypto-aead +kmod-udptunnel4 +kmod-udptunnel6
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/ovpn-dco/ovpn-dco.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,30,ovpn-dco)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/ovpn-dco/description
|
|
|
|
This module enhances the performance of the OpenVPN userspace software
|
|
|
|
by offloading the data channel processing to kernelspace.
|
|
|
|
endef
|
|
|
|
|
|
|
|
NOSTDINC_FLAGS += \
|
2021-11-27 14:51:53 +01:00
|
|
|
$(KERNEL_NOSTDINC_FLAGS) \
|
2021-10-23 15:51:14 +02:00
|
|
|
-I$(PKG_BUILD_DIR)/include \
|
|
|
|
-include $(PKG_BUILD_DIR)/linux-compat.h
|
|
|
|
|
|
|
|
EXTRA_KCONFIG:= \
|
|
|
|
CONFIG_OVPN_DCO=m
|
|
|
|
|
|
|
|
PKG_EXTMOD_SUBDIRS = drivers/net/ovpn-dco
|
|
|
|
|
|
|
|
MAKE_OPTS:= \
|
|
|
|
$(KERNEL_MAKE_FLAGS) \
|
|
|
|
M="$(PKG_BUILD_DIR)/drivers/net/ovpn-dco" \
|
|
|
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
|
|
|
$(EXTRA_KCONFIG)
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
|
|
$(MAKE_OPTS) \
|
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,ovpn-dco))
|