浏览代码

ocserv: use freeradius-client library if radius support is requested

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos 9 年前
父节点
当前提交
f9f4ba7d1e
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 4
    0
      net/ocserv/Config.in
  2. 5
    1
      net/ocserv/Makefile

+ 4
- 0
net/ocserv/Config.in 查看文件

@@ -11,6 +11,10 @@ config OCSERV_SECCOMP
11 11
 	bool "enable seccomp"
12 12
 	default n
13 13
 
14
+config OCSERV_RADIUS
15
+	bool "enable radius authentication"
16
+	default n
17
+
14 18
 config OCSERV_PROTOBUF
15 19
 	bool "use external libprotobuf"
16 20
 	default y

+ 5
- 1
net/ocserv/Makefile 查看文件

@@ -38,7 +38,7 @@ define Package/ocserv
38 38
   TITLE:=OpenConnect VPN server
39 39
   URL:=http://www.infradead.org/ocserv/
40 40
   MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
41
-  DEPENDS:= +OCSERV_HTTP_PARSER:libhttp-parser +OCSERV_SECCOMP:libseccomp +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c +kmod-tun
41
+  DEPENDS:= +OCSERV_RADIUS:freeradius-client +OCSERV_HTTP_PARSER:libhttp-parser +OCSERV_SECCOMP:libseccomp +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c +kmod-tun
42 42
   USERID:=ocserv=72:ocserv=72
43 43
 endef
44 44
 
@@ -65,6 +65,10 @@ ifneq ($(CONFIG_OCSERV_PAM),y)
65 65
 CONFIGURE_ARGS += --without-pam
66 66
 endif
67 67
 
68
+ifneq ($(CONFIG_OCSERV_RADIUS),y)
69
+CONFIGURE_ARGS += --without-radius
70
+endif
71
+
68 72
 ifneq ($(CONFIG_OCSERV_SECCOMP),y)
69 73
 CONFIGURE_ARGS += --disable-seccomp
70 74
 endif