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.

56 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_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_LICENSE:=Apache-2.0
  18. PKG_MAINTAINER:=Norbert Summer <git@o-g.at>
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/chaosvpn
  21. TITLE:=Config generator for chaos vpn
  22. SECTION:=net
  23. CATEGORY:=Network
  24. URL:=https://wiki.hamburg.ccc.de/index.php/ChaosVPN::DebianHowto
  25. SUBMENU:=VPN
  26. DEPENDS:=+tinc +ip +kmod-tun +libopenssl +zlib
  27. endef
  28. define Package/chaosvpn/description
  29. Configure tincd for the chaosvpn network
  30. endef
  31. define Package/chaosvpn/conffiles
  32. /etc/tinc/chaosvpn.conf
  33. endef
  34. MAKE_FLAGS += \
  35. COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
  36. define 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_BIN) ./files/chaosvpn.init $(1)/etc/init.d/chaosvpn
  40. $(INSTALL_BIN) ./files/chaosvpn.hotplug $(1)/etc/hotplug.d/iface/40-chaosvpn
  41. sed -i -e 's/"\/sbin\/ip /"\/usr\/sbin\/ip /' $(PKG_BUILD_DIR)/chaosvpn.conf
  42. $(INSTALL_CONF) $(PKG_BUILD_DIR)/chaosvpn.conf $(1)/etc/tinc/chaosvpn.conf
  43. endef
  44. $(eval $(call BuildPackage,chaosvpn))