From a904a173edbec28773de2bd9ebb0320d1035902d Mon Sep 17 00:00:00 2001 From: Daniel Gimpelevich Date: Fri, 6 Feb 2015 11:03:56 -0800 Subject: [PATCH] openconnect: separate out vpnc-scripts Signed-off-by: Daniel Gimpelevich --- net/openconnect/Makefile | 5 +-- net/vpnc-scripts/Makefile | 37 +++++++++++++++++++ .../files/vpnc-script | 0 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 net/vpnc-scripts/Makefile rename net/{openconnect => vpnc-scripts}/files/vpnc-script (100%) diff --git a/net/openconnect/Makefile b/net/openconnect/Makefile index 46234cbf6..87ec8a53b 100644 --- a/net/openconnect/Makefile +++ b/net/openconnect/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -29,7 +29,7 @@ endef define Package/openconnect SECTION:=net CATEGORY:=Network - DEPENDS:=+libxml2 +kmod-tun +resolveip +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_GNUTLS:libgnutls +OPENCONNECT_STOKEN:libstoken + DEPENDS:=+libxml2 +kmod-tun +resolveip +vpnc-scripts +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_GNUTLS:libgnutls +OPENCONNECT_STOKEN:libstoken TITLE:=OpenConnect VPN client (Cisco AnyConnect compatible) MAINTAINER:=Nikos Mavrogiannopoulos URL:=http://www.infradead.org/openconnect/ @@ -65,7 +65,6 @@ define Package/openconnect/install $(INSTALL_DIR) $(1)/etc/openconnect/ $(INSTALL_DIR) $(1)/lib/netifd/proto $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/ - $(INSTALL_BIN) ./files/vpnc-script $(1)/lib/netifd/ $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/ $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/ diff --git a/net/vpnc-scripts/Makefile b/net/vpnc-scripts/Makefile new file mode 100644 index 000000000..95948cfdd --- /dev/null +++ b/net/vpnc-scripts/Makefile @@ -0,0 +1,37 @@ +# +# Copyright (C) 2006-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=vpnc-scripts +PKG_VERSION:=20150116 +PKG_RELEASE:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/vpnc-scripts + SECTION:=net + CATEGORY:=Network + TITLE:=VPN configuration script for vpnc and OpenConnect + MAINTAINER:=Nikos Mavrogiannopoulos + SUBMENU:=VPN +endef + +define Package/vpnc-scripts/description + This package contains the vpnc-script which is used by vpnc + and OpenConnect to configure the tunnel interface. +endef + +define Build/Compile +endef + +define Package/vpnc-scripts/install + $(INSTALL_DIR) $(1)/lib/netifd + $(INSTALL_BIN) ./files/vpnc-script $(1)/lib/netifd/ +endef + +$(eval $(call BuildPackage,vpnc-scripts)) diff --git a/net/openconnect/files/vpnc-script b/net/vpnc-scripts/files/vpnc-script similarity index 100% rename from net/openconnect/files/vpnc-script rename to net/vpnc-scripts/files/vpnc-script