1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 13:23:57 +02:00

ocserv: add otp config option

and also fix build error:
Package ocserv is missing dependencies for the following libraries:
liboath.so.0

Signed-off-by: Thlv Alivs <zgmzzzz18@gmail.com>
This commit is contained in:
Thlv Alivs 2023-05-20 12:21:57 +08:00 committed by Tianling Shen
parent 80dad35294
commit 8dd2a6edf2
2 changed files with 10 additions and 2 deletions

View File

@ -16,6 +16,10 @@ config OCSERV_RADIUS
bool "enable radius authentication" bool "enable radius authentication"
default n default n
config OCSERV_LIBOATH
bool "enable OTP"
default n
config OCSERV_PROTOBUF config OCSERV_PROTOBUF
bool "use external libprotobuf" bool "use external libprotobuf"
default y default y

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ocserv PKG_NAME:=ocserv
PKG_VERSION:=1.1.7 PKG_VERSION:=1.1.7
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_BUILD_FLAGS:=no-mips16 PKG_BUILD_FLAGS:=no-mips16
PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@ -39,7 +39,7 @@ define Package/ocserv
TITLE:=OpenConnect VPN server TITLE:=OpenConnect VPN server
URL:=http://www.infradead.org/ocserv/ URL:=http://www.infradead.org/ocserv/
MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
DEPENDS:= +OCSERV_RADIUS:libradcli +OCSERV_HTTP_PARSER:libhttp-parser +OCSERV_SECCOMP:libseccomp +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c +libev +kmod-tun DEPENDS:= +OCSERV_RADIUS:libradcli +OCSERV_HTTP_PARSER:libhttp-parser +OCSERV_SECCOMP:libseccomp +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c +OCSERV_LIBOATH:liboath +libev +kmod-tun
USERID:=ocserv=72:ocserv=72 USERID:=ocserv=72:ocserv=72
endef endef
@ -89,6 +89,10 @@ ifneq ($(CONFIG_OCSERV_HTTP_PARSER),y)
CONFIGURE_ARGS += --without-http-parser CONFIGURE_ARGS += --without-http-parser
endif endif
ifndef CONFIG_OCSERV_LIBOATH
CONFIGURE_ARGS += --without-liboath
endif
define Package/ocserv/conffiles define Package/ocserv/conffiles
/etc/config/ocserv /etc/config/ocserv
endef endef