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.

55 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2020 Bogdan Shatik <bogdikxxx@mail.ru>
  3. #
  4. # This is free software, licensed under the GNU General Public License v3.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=eoip
  9. PKG_VERSION:=0.5
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Bogdan Shatik <bogdikxxx@mail.ru>
  12. PKG_LICENSE:=GPL-3.0-or-later
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/bogdik/openwrt-linux-eoip/releases/download/0.5/
  15. PKG_HASH:=22f6f3864665adef26c7fbd57543a396108ba2dff1282af8143f18bc2a9912f8
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/eoip
  19. TITLE:=Mikrotik-compatible userspace EoIP tunnel
  20. URL:=https://code.google.com/p/linux-eoip/
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=VPN
  24. DEPENDS:=+kmod-tun +libpthread +liblzo
  25. endef
  26. define Package/eoip/conffiles
  27. /etc/config/eoip
  28. endef
  29. define Package/eoip/description
  30. linux-eoip can create ethernet tunnels compatible with Mikrotik EoIP tunnel.
  31. At current moment it is easiest way to create stateless tunnel with Mikrotik.
  32. endef
  33. CONFIGURE_ARGS += \
  34. --with-kernel="$(LINUX_DIR)" \
  35. --with-zlib="$(STAGING_DIR)/usr" \
  36. --with-lzo-include="$(STAGING_DIR)/usr/include/lzo"
  37. define Package/eoip/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eoip $(1)/usr/bin/
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_DATA) ./files/eoip.config $(1)/etc/config/eoip
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/eoip.init $(1)/etc/init.d/eoip
  44. endef
  45. $(eval $(call BuildPackage,eoip))