@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := fastd
PKG_NAME := fastd
PKG_VERSION := 22
PKG_VERSION := 22
PKG_RELEASE = 2
PKG_RELEASE = 3
PKG_MAINTAINER := Matthias Schiffer <mschiffer@universe-factory.net>
PKG_MAINTAINER := Matthias Schiffer <mschiffer@universe-factory.net>
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
@ -39,7 +39,8 @@ PKG_CONFIG_DEPENDS:=\
CONFIG_FASTD_WITH_CMDLINE_OPERATION \
CONFIG_FASTD_WITH_CMDLINE_OPERATION \
CONFIG_FASTD_WITH_CMDLINE_COMMANDS \
CONFIG_FASTD_WITH_CMDLINE_COMMANDS \
CONFIG_FASTD_WITH_DYNAMIC_PEERS \
CONFIG_FASTD_WITH_DYNAMIC_PEERS \
CONFIG_FASTD_WITH_STATUS_SOCKET
CONFIG_FASTD_WITH_STATUS_SOCKET \
CONFIG_FASTD_WITH_OFFLOAD_L2TP
PKG_BUILD_DEPENDS := meson/host nacl
PKG_BUILD_DEPENDS := meson/host nacl
@ -55,14 +56,6 @@ define Package/fastd
TITLE:= Fast and Secure Tunneling Daemon
TITLE:= Fast and Secure Tunneling Daemon
URL:= https://github.com/NeoRaider/fastd/
URL:= https://github.com/NeoRaider/fastd/
SUBMENU:= VPN
SUBMENU:= VPN
VARIANT:= default
e n d e f
d e f i n e P a c k a g e / f a s t d - l 2 t p
$( Package /fastd )
DEPENDS += +kmod-l2tp +kmod-l2tp-eth
TITLE += ( L2TP kernel offloading)
VARIANT:= l2tp
PROVIDES:= fastd
e n d e f
e n d e f
d e f i n e P a c k a g e / f a s t d / c o n f i g
d e f i n e P a c k a g e / f a s t d / c o n f i g
@ -93,32 +86,20 @@ MESON_ARGS += \
-Dmethod_null= $( call feature,ENABLE_METHOD_NULL) \
-Dmethod_null= $( call feature,ENABLE_METHOD_NULL) \
-Dmethod_null_l2tp= $( call feature,ENABLE_METHOD_NULL_L2TP) \
-Dmethod_null_l2tp= $( call feature,ENABLE_METHOD_NULL_L2TP) \
-Dstatus_socket= $( call feature,WITH_STATUS_SOCKET) \
-Dstatus_socket= $( call feature,WITH_STATUS_SOCKET) \
-Doffload_l2tp= disabled \
-Doffload_l2tp= $( call feature,WITH_OFFLOAD_L2TP) \
-Dlibmnl_builtin= true \
-Dlibmnl_builtin= true \
-Dsystemd= disabled \
-Dsystemd= disabled \
-Duse_nacl= true \
-Duse_nacl= true \
-Db_lto= true \
-Db_lto= true \
-Dprefix= /usr
-Dprefix= /usr
i f e q ( $( BUILD_VARIANT ) , l 2 t p )
MESON_ARGS += \
-Dmethod_null_l2tp= enabled \
-Doffload_l2tp= enabled
e n d i f
d e f i n e P a c k a g e / f a s t d / d e s c r i p t i o n
d e f i n e P a c k a g e / f a s t d / d e s c r i p t i o n
F a s t a n d s e c u r e t u n n e l i n g d a e m o n , w h i c h i s o p t i m i z e d o n s m a l l c o d e s i z e a n d f e w d e p e n d e n c i e s
F a s t a n d s e c u r e t u n n e l i n g d a e m o n , w h i c h i s o p t i m i z e d o n s m a l l c o d e s i z e a n d f e w d e p e n d e n c i e s
e n d e f
e n d e f
d e f i n e P a c k a g e / f a s t d - l 2 t p / d e s c r i p t i o n
$( Package /fastd /description )
T h i s v a r i a n t e n a b l e s L 2 T P k e r n e l o f f l o a d i g s u p p o r t .
e n d e f
d e f i n e P a c k a g e / f a s t d / c o n f f i l e s
d e f i n e P a c k a g e / f a s t d / c o n f f i l e s
/ e t c / c o n f i g / f a s t d
/ e t c / c o n f i g / f a s t d
e n d e f
e n d e f
P a c k a g e / f a s t d - l 2 t p / conffiles = $( Package/fastd/conffiles)
d e f i n e P a c k a g e / f a s t d / i n s t a l l
d e f i n e P a c k a g e / f a s t d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
@ -132,7 +113,5 @@ define Package/fastd/install
$( INSTALL_DIR) $( 1) /lib/upgrade/keep.d
$( INSTALL_DIR) $( 1) /lib/upgrade/keep.d
$( INSTALL_DATA) files/fastd.upgrade $( 1) /lib/upgrade/keep.d/fastd
$( INSTALL_DATA) files/fastd.upgrade $( 1) /lib/upgrade/keep.d/fastd
e n d e f
e n d e f
P a c k a g e / f a s t d - l 2 t p / install = $( Package/fastd/install)
$( eval $ ( call BuildPackage ,fastd ) )
$( eval $ ( call BuildPackage ,fastd ) )
$( eval $ ( call BuildPackage ,fastd -l 2tp ) )