Skip to content

Commit

Permalink
ocserv: add otp config option
Browse files Browse the repository at this point in the history
and also fix build error:
Package ocserv is missing dependencies for the following libraries:
liboath.so.0

Signed-off-by: Thlv Alivs <[email protected]>
  • Loading branch information
THLIVSQAZ authored and 1715173329 committed May 21, 2023
1 parent 80dad35 commit 8dd2a6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions net/ocserv/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ config OCSERV_RADIUS
bool "enable radius authentication"
default n

config OCSERV_LIBOATH
bool "enable OTP"
default n

config OCSERV_PROTOBUF
bool "use external libprotobuf"
default y
Expand Down
8 changes: 6 additions & 2 deletions net/ocserv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=ocserv
PKG_VERSION:=1.1.7
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_BUILD_FLAGS:=no-mips16

PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
Expand Down Expand Up @@ -39,7 +39,7 @@ define Package/ocserv
TITLE:=OpenConnect VPN server
URL:=http://www.infradead.org/ocserv/
MAINTAINER:=Nikos Mavrogiannopoulos <[email protected]>
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
endef

Expand Down Expand Up @@ -89,6 +89,10 @@ ifneq ($(CONFIG_OCSERV_HTTP_PARSER),y)
CONFIGURE_ARGS += --without-http-parser
endif

ifndef CONFIG_OCSERV_LIBOATH
CONFIGURE_ARGS += --without-liboath
endif

define Package/ocserv/conffiles
/etc/config/ocserv
endef
Expand Down

0 comments on commit 8dd2a6e

Please sign in to comment.