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.

57 lines
1.6 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_REV:=2eb24810b5aa0b2d56f21562e52927020dc3090a
  10. PKG_VERSION:=2014-01-24
  11. PKG_RELEASE=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/ryd/chaosvpn.git
  14. PKG_SOURCE_VERSION:=$(PKG_REV)
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
  16. PKG_MIRROR_HASH:=da987a95cb33af730c2b08ceec3af29a61e523625479c7e8b978fad881abbb53
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_LICENSE:=Apache-2.0
  19. PKG_MAINTAINER:=Norbert Summer <git@o-g.at>
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/chaosvpn
  22. TITLE:=Config generator for chaos vpn
  23. SECTION:=net
  24. CATEGORY:=Network
  25. URL:=https://wiki.hamburg.ccc.de/index.php/ChaosVPN::DebianHowto
  26. SUBMENU:=VPN
  27. DEPENDS:=+tinc +ip +kmod-tun +libopenssl +zlib
  28. endef
  29. define Package/chaosvpn/description
  30. Configure tincd for the chaosvpn network
  31. endef
  32. define Package/chaosvpn/conffiles
  33. /etc/tinc/chaosvpn.conf
  34. endef
  35. MAKE_FLAGS += \
  36. COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
  37. define Package/chaosvpn/install
  38. $(INSTALL_DIR) $(1)/etc/tinc/chaos/ $(1)/usr/sbin/ $(1)/etc/init.d/ $(1)/etc/hotplug.d/iface/
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/chaosvpn $(1)/usr/sbin/
  40. $(INSTALL_BIN) ./files/chaosvpn.init $(1)/etc/init.d/chaosvpn
  41. $(INSTALL_BIN) ./files/chaosvpn.hotplug $(1)/etc/hotplug.d/iface/40-chaosvpn
  42. sed -i -e 's/"\/sbin\/ip /"\/usr\/sbin\/ip /' $(PKG_BUILD_DIR)/chaosvpn.conf
  43. $(INSTALL_CONF) $(PKG_BUILD_DIR)/chaosvpn.conf $(1)/etc/tinc/chaosvpn.conf
  44. endef
  45. $(eval $(call BuildPackage,chaosvpn))