[package] update yaddns to 0.1.2, thanks rhk
[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 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>
26 endef
27
28 define Package/chaosvpn/description
29 Configure tincd for the chaosvpn network
30 endef
31
32 MAKE_FLAGS += \
33 COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
34
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
43 endef
44
45 $(eval $(call BuildPackage,chaosvpn))
46