From: Nikos Mavrogiannopoulos Date: Sat, 28 Nov 2015 21:57:56 +0000 (+0100) Subject: ocserv: correct md5sum, install ocserv-fw, and eliminate ip dependency X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fe541acd8aed5ecd5b1274a26cb214412194f33c;p=feed%2Fpackages.git ocserv: correct md5sum, install ocserv-fw, and eliminate ip dependency Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/net/ocserv/Makefile b/net/ocserv/Makefile index 8a90a36271..2699427e82 100644 --- a/net/ocserv/Makefile +++ b/net/ocserv/Makefile @@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ocserv PKG_VERSION:=0.10.10 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_USE_MIPS16:=0 PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/ocserv/ -PKG_MD5SUM:=99c75719e02937deb03263f80d29ac1b +PKG_MD5SUM:=1f73ccb66d36cd51279323e95ae99e68 PKG_LICENSE:=GPLv2 PKG_LICENSE_FILES:=COPYING @@ -39,7 +39,7 @@ define Package/ocserv TITLE:=OpenConnect VPN server URL:=http://www.infradead.org/ocserv/ MAINTAINER:=Nikos Mavrogiannopoulos - DEPENDS:= +OCSERV_RADIUS:libradcli +OCSERV_HTTP_PARSER:libhttp-parser +OCSERV_SECCOMP:libseccomp +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c +kmod-tun +ip + DEPENDS:= +OCSERV_RADIUS:libradcli +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 @@ -90,6 +90,7 @@ endef define Package/ocserv/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ocserv $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ocserv-fw $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ocpasswd $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/occtl $(1)/usr/bin/ diff --git a/net/ocserv/files/ocserv.conf.template b/net/ocserv/files/ocserv.conf.template index 69b295e06d..41dec99faa 100644 --- a/net/ocserv/files/ocserv.conf.template +++ b/net/ocserv/files/ocserv.conf.template @@ -343,11 +343,11 @@ config-per-group = /etc/ocserv/config-per-group/ # The following example is from linux systems. %{R} should be something # like 192.168.2.0/24 -route-add-cmd = "/usr/sbin/ip route add %{R} dev %{D}" -route-del-cmd = "/usr/sbin/ip route delete %{R} dev %{D}" +#route-add-cmd = "/usr/sbin/ip route add %{R} dev %{D}" +#route-del-cmd = "/usr/sbin/ip route delete %{R} dev %{D}" -#route-add-cmd = "/sbin/route add -net %{RI} dev %{D}" -#route-del-cmd = "/sbin/route del -net %{RI} dev %{D}" +route-add-cmd = "/sbin/route add -net %{RI} dev %{D}" +route-del-cmd = "/sbin/route del -net %{RI} dev %{D}" # This option allows to forward a proxy. The special strings '%{U}' # and '%{G}', if present will be replaced by the username and group name.