source: packages/net/chaosvpn/Makefile @ 26058

Last change on this file since 26058 was 26058, checked in by cshore, 5 years ago

[net] chaosvpn: Moved chaosvpn to VPN submenu.

File size: 1.4 KB
Line 
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
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=chaosvpn
10PKG_VERSION:=2.0
11PKG_RELEASE:=2
12
13PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
14PKG_SOURCE_URL:=http://github.com/downloads/ryd/chaosvpn/
15PKG_MD5SUM:=4263202d65bf4ab0d1356b149d7c53af
16
17include $(INCLUDE_DIR)/package.mk
18
19define 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>
27endef
28
29define Package/chaosvpn/description
30        Configure tincd for the chaosvpn network
31endef
32
33MAKE_FLAGS += \
34        COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
35
36define 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
44endef
45
46$(eval $(call BuildPackage,chaosvpn))
47
Note: See TracBrowser for help on using the repository browser.