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.

62 lines
1.5 KiB

  1. #
  2. # Copyright (c) 2016-2021 Dirk Brenken (dev@brenken.org)
  3. # This is free software, licensed under the GNU General Public License v3.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=travelmate
  7. PKG_VERSION:=2.0.7
  8. PKG_RELEASE:=2
  9. PKG_LICENSE:=GPL-3.0-or-later
  10. PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/travelmate
  13. SECTION:=net
  14. CATEGORY:=Network
  15. TITLE:=A wlan connection manager for travel router
  16. DEPENDS:=+iwinfo +jshn +jsonfilter +curl +ca-bundle
  17. PKGARCH:=all
  18. endef
  19. define Package/travelmate/description
  20. A wlan connection manager for travel router.
  21. Please see https://github.com/openwrt/packages/blob/master/net/travelmate/files/README.md for further information.
  22. endef
  23. define Package/travelmate/conffiles
  24. /etc/config/travelmate
  25. endef
  26. define Build/Prepare
  27. endef
  28. define Build/Configure
  29. endef
  30. define Build/Compile
  31. endef
  32. define Package/travelmate/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) ./files/travelmate.sh $(1)/usr/bin
  35. $(INSTALL_DIR) $(1)/etc/init.d
  36. $(INSTALL_BIN) ./files/travelmate.init $(1)/etc/init.d/travelmate
  37. $(INSTALL_DIR) $(1)/etc/hotplug.d/ntp
  38. $(INSTALL_BIN) ./files/travelmate_ntp.hotplug $(1)/etc/hotplug.d/ntp/25-travelmate_ntp
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_CONF) ./files/travelmate.conf $(1)/etc/config/travelmate
  41. $(INSTALL_DIR) $(1)/etc/travelmate
  42. $(INSTALL_BIN) ./files/travelmate.vpn $(1)/etc/travelmate
  43. $(INSTALL_BIN) ./files/travelmate.mail $(1)/etc/travelmate
  44. $(INSTALL_BIN) ./files/*.login $(1)/etc/travelmate
  45. endef
  46. $(eval $(call BuildPackage,travelmate))