You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2010-2015 OpenWrt.org
  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. PKG_NAME:=chaosvpn
  9. PKG_VERSION:=2.19
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/ryd/chaosvpn/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=53625d131140529e88d8a14c34cc4d8d5d0134292d90f4ae55e9df29d3232828
  14. PKG_LICENSE:=Apache-2.0
  15. PKG_MAINTAINER:=Norbert Summer <git@o-g.at>
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/chaosvpn
  18. TITLE:=Config generator for chaos vpn
  19. SECTION:=net
  20. CATEGORY:=Network
  21. URL:=https://wiki.hamburg.ccc.de/index.php/ChaosVPN::DebianHowto
  22. SUBMENU:=VPN
  23. DEPENDS:=+tinc +ip +kmod-tun +libopenssl +zlib
  24. endef
  25. define Package/chaosvpn/description
  26. Configure tincd for the chaosvpn network
  27. endef
  28. define Package/chaosvpn/conffiles
  29. /etc/tinc/chaosvpn.conf
  30. endef
  31. MAKE_FLAGS += \
  32. COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
  33. define Package/chaosvpn/install
  34. $(INSTALL_DIR) $(1)/etc/tinc/chaos/ $(1)/usr/sbin/ $(1)/etc/init.d/ $(1)/etc/hotplug.d/iface/
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/chaosvpn $(1)/usr/sbin/
  36. $(INSTALL_BIN) ./files/chaosvpn.init $(1)/etc/init.d/chaosvpn
  37. $(INSTALL_BIN) ./files/chaosvpn.hotplug $(1)/etc/hotplug.d/iface/40-chaosvpn
  38. $(INSTALL_CONF) $(PKG_BUILD_DIR)/chaosvpn.conf $(1)/etc/tinc/chaosvpn.conf
  39. endef
  40. $(eval $(call BuildPackage,chaosvpn))