1 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
13 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
14 PKG_SOURCE_URL:=http://github.com/downloads/ryd/chaosvpn/
15 PKG_MD5SUM:=4263202d65bf4ab0d1356b149d7c53af
17 include $(INCLUDE_DIR)/package.mk
19 define Package/chaosvpn
22 TITLE:=Config generator for chaos vpn
23 DEPENDS:=+ip +tinc +kmod-tun +libopenssl
24 URL:=https://wiki.hamburg.ccc.de/index.php/ChaosVPN::DebianHowto
25 MAINTAINER:=Christopher J. Pilkington <cjp@0x1.net>
28 define Package/chaosvpn/description
29 Configure tincd for the chaosvpn network
33 COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
35 define Package/chaosvpn/install
36 $(INSTALL_DIR) $(1)/etc/tinc/chaos/ $(1)/usr/sbin/ $(1)/etc/init.d/ $(1)/etc/hotplug.d/iface/
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/chaosvpn $(1)/usr/sbin/
38 #$(INSTALL_DATA) $(PKG_BUILD_DIR)/chaosvpn.conf $(1)/etc/tinc/
39 sed -e 's/"\/sbin\/ip /"\/usr\/sbin\/ip /' <$(PKG_BUILD_DIR)/chaosvpn.conf >$(1)/etc/tinc/chaosvpn.conf
40 $(INSTALL_BIN) ./files/chaosvpn_config.sh $(1)/usr/sbin/
41 $(INSTALL_BIN) ./files/chaosvpn.init $(1)/etc/init.d/chaosvpn
42 $(INSTALL_BIN) ./files/chaosvpn.hotplug $(1)/etc/hotplug.d/iface/40-chaosvpn
45 $(eval $(call BuildPackage,chaosvpn))