source: packages/net/vpnc-scripts/Makefile @ 31558

Last change on this file since 31558 was 31558, checked in by juhosg, 5 years ago

Add vpnc-scripts package with up-to-date script

This removes the hard-coded masquerading configuration from vpnc-script.
It's possible to do it in a hook now, but it also shouldn't be necessary,
because we should be invoking the hotplug scripts to plumb the interface
properly anyway.

Signed-off-by: David Woodhouse <David.Woodhouse@…>

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=vpnc-scripts
11PKG_VERSION:=20120423
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/vpnc-scripts/
16PKG_MD5SUM:=3265dc7fe57ae9b4c905961a28699c4c
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/vpnc-scripts
21  SECTION:=net
22  CATEGORY:=Network
23  DEPENDS:=+ip
24  TITLE:=VPN configuration script for vpnc and OpenConnect
25  URL:=http://www.infradead.org/openconnect/vpnc-script.html
26  SUBMENU:=VPN
27endef
28
29define Package/vpnc/vpnc-scripts
30        This package contains the vpnc-script which is used by vpnc
31        and OpenConnect to configure the tunnel interface.
32endef
33
34define Package/vpnc-scripts/conffiles
35/etc/vpnc/connect.d/
36/etc/vpnc/post-connect.d/
37/etc/vpnc/disconnect.d/
38/etc/vpnc/post-connect.d/
39/etc/vpnc/reconnect.d/
40endef
41
42define Build/Compile
43endef
44
45define Package/vpnc-scripts/install
46        $(INSTALL_DIR) $(1)/etc/vpnc
47        $(INSTALL_DIR) $(1)/etc/vpnc/connect.d
48        $(INSTALL_DIR) $(1)/etc/vpnc/post-connect.d
49        $(INSTALL_DIR) $(1)/etc/vpnc/disconnect.d
50        $(INSTALL_DIR) $(1)/etc/vpnc/post-disconnect.d
51        $(INSTALL_DIR) $(1)/etc/vpnc/reconnect.d
52        $(INSTALL_BIN) ./files/etc/vpnc/connect.d/ifstate $(1)/etc/vpnc/connect.d/
53        $(INSTALL_BIN) $(PKG_BUILD_DIR)/vpnc-script $(1)/etc/vpnc/
54endef
55
56$(eval $(call BuildPackage,vpnc-scripts))
Note: See TracBrowser for help on using the repository browser.