Browse Source

ocserv: correct md5sum, install ocserv-fw, and eliminate ip dependency

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 9 years ago
parent
commit
18595194cf
2 changed files with 8 additions and 7 deletions
  1. +4
    -3
      net/ocserv/Makefile
  2. +4
    -4
      net/ocserv/files/ocserv.conf.template

+ 4
- 3
net/ocserv/Makefile View File

@ -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 <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 +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/


+ 4
- 4
net/ocserv/files/ocserv.conf.template View File

@ -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.


Loading…
Cancel
Save