2 # Copyright (C) 2010-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_REV
:=2eb24810b5aa0b2d56f21562e52927020dc3090a
13 PKG_VERSION
:=2014-01-24
17 PKG_SOURCE_URL
:=https
://github.com
/ryd
/chaosvpn.git
18 PKG_SOURCE_VERSION
:=$(PKG_REV
)
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_REV
).
tar.gz
20 PKG_MIRROR_HASH
:=da987a95cb33af730c2b08ceec3af29a61e523625479c7e8b978fad881abbb53
21 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_LICENSE
:=Apache-2.0
23 PKG_MAINTAINER
:=Norbert Summer
<git@o-g.at
>
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/chaosvpn
28 TITLE
:=Config generator for chaos vpn
31 URL
:=https
://wiki.hamburg.ccc.de
/index.php
/ChaosVPN
::DebianHowto
33 DEPENDS
:=+tinc
+ip
+kmod-tun
+libopenssl
+zlib
36 define Package
/chaosvpn
/description
37 Configure tincd for the chaosvpn network
40 define Package
/chaosvpn
/conffiles
41 /etc
/tinc
/chaosvpn.conf
45 COPT
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
47 define Package
/chaosvpn
/install
48 $(INSTALL_DIR
) $(1)/etc
/tinc
/chaos
/ $(1)/usr
/sbin
/ $(1)/etc
/init.d
/ $(1)/etc
/hotplug.d
/iface
/
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/chaosvpn
$(1)/usr
/sbin
/
50 $(INSTALL_BIN
) .
/files
/chaosvpn.init
$(1)/etc
/init.d
/chaosvpn
51 $(INSTALL_BIN
) .
/files
/chaosvpn.hotplug
$(1)/etc
/hotplug.d
/iface
/40-chaosvpn
52 sed
-i
-e
's/"\/sbin\/ip /"\/usr\/sbin\/ip /' $(PKG_BUILD_DIR
)/chaosvpn.conf
53 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/chaosvpn.conf
$(1)/etc
/tinc
/chaosvpn.conf
56 $(eval
$(call BuildPackage
,chaosvpn
))