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