ocserv: use freeradius-client library if radius support is requested
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 28 May 2015 18:02:05 +0000 (20:02 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 28 May 2015 18:02:05 +0000 (20:02 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
net/ocserv/Config.in
net/ocserv/Makefile

index 88c5f5091421a461a88cbf9a3c5806a5d0cdfde7..b6460cd8ee6b3c70f59742c37d51de8c6669a8e5 100644 (file)
@@ -11,6 +11,10 @@ config OCSERV_SECCOMP
        bool "enable seccomp"
        default n
 
+config OCSERV_RADIUS
+       bool "enable radius authentication"
+       default n
+
 config OCSERV_PROTOBUF
        bool "use external libprotobuf"
        default y
index 78e5a132c4e77cf78dafbaaddd29a47d7d625a00..c88e78c5f9a352fb2e3d58686ee95596c4c20f95 100644 (file)
@@ -38,7 +38,7 @@ define Package/ocserv
   TITLE:=OpenConnect VPN server
   URL:=http://www.infradead.org/ocserv/
   MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-  DEPENDS:= +OCSERV_HTTP_PARSER:libhttp-parser +OCSERV_SECCOMP:libseccomp +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c +kmod-tun
+  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
   USERID:=ocserv=72:ocserv=72
 endef
 
@@ -65,6 +65,10 @@ ifneq ($(CONFIG_OCSERV_PAM),y)
 CONFIGURE_ARGS += --without-pam
 endif
 
+ifneq ($(CONFIG_OCSERV_RADIUS),y)
+CONFIGURE_ARGS += --without-radius
+endif
+
 ifneq ($(CONFIG_OCSERV_SECCOMP),y)
 CONFIGURE_ARGS += --disable-seccomp
 endif