[net] chaosvpn: Moved chaosvpn to VPN submenu.
[openwrt/svn-archive/archive.git] / net / chaosvpn / Makefile
1 # Copyright (C) 2010 OpenWrt.org
2 # All rights reserved.
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=chaosvpn
10 PKG_VERSION:=2.0
11 PKG_RELEASE:=2
12
13 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
14 PKG_SOURCE_URL:=http://github.com/downloads/ryd/chaosvpn/
15 PKG_MD5SUM:=4263202d65bf4ab0d1356b149d7c53af
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/chaosvpn
20 SECTION:=net
21 CATEGORY:=Network
22 TITLE:=Config generator for chaos vpn
23 SUBMENU:=VPN
24 DEPENDS:=+ip +tinc +kmod-tun +libopenssl
25 URL:=https://wiki.hamburg.ccc.de/index.php/ChaosVPN::DebianHowto
26 MAINTAINER:=Christopher J. Pilkington <cjp@0x1.net>
27 endef
28
29 define Package/chaosvpn/description
30 Configure tincd for the chaosvpn network
31 endef
32
33 MAKE_FLAGS += \
34 COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
35
36 define Package/chaosvpn/install
37 $(INSTALL_DIR) $(1)/etc/tinc/chaos/ $(1)/usr/sbin/ $(1)/etc/init.d/ $(1)/etc/hotplug.d/iface/
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/chaosvpn $(1)/usr/sbin/
39 #$(INSTALL_DATA) $(PKG_BUILD_DIR)/chaosvpn.conf $(1)/etc/tinc/
40 sed -e 's/"\/sbin\/ip /"\/usr\/sbin\/ip /' <$(PKG_BUILD_DIR)/chaosvpn.conf >$(1)/etc/tinc/chaosvpn.conf
41 $(INSTALL_BIN) ./files/chaosvpn_config.sh $(1)/usr/sbin/
42 $(INSTALL_BIN) ./files/chaosvpn.init $(1)/etc/init.d/chaosvpn
43 $(INSTALL_BIN) ./files/chaosvpn.hotplug $(1)/etc/hotplug.d/iface/40-chaosvpn
44 endef
45
46 $(eval $(call BuildPackage,chaosvpn))
47