kismet: fix dependency issues
[openwrt/svn-archive/archive.git] / net / vpnc-scripts / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=vpnc-scripts
11 PKG_VERSION:=20120423
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/vpnc-scripts/
16 PKG_MD5SUM:=3265dc7fe57ae9b4c905961a28699c4c
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define 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
27 endef
28
29 define Package/vpnc/vpnc-scripts
30 This package contains the vpnc-script which is used by vpnc
31 and OpenConnect to configure the tunnel interface.
32 endef
33
34 define 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/
40 endef
41
42 define Build/Compile
43 endef
44
45 define 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/
54 endef
55
56 $(eval $(call BuildPackage,vpnc-scripts))