mirror of
https://github.com/openwrt/packages.git
synced 2025-12-15 23:21:19 +00:00
* split travelmate.s in a new central travelmate function library (usr/lib/travelmate-functions.sh) plus a smal service script (/usr/bin/travelmate-service.sh) * the vpn-, mail- and login scripts are now using the central function library * rework the ntp hotplug script * harden the config parsing * support the curl interface option to specify which network pathway is used for outgoing requests * the travelmate status now includes the backend- and frontend version information * LuCI: use a special travelmate interface, e.g. trm_wwan or use an existing wwan interface * LuCI: no longer call the logread binary, use rpc / the ubus log object instead * LuCI: various code cleanups * LuCI: various small usability improvements * readme update Signed-off-by: Dirk Brenken <dev@brenken.org>
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
#
|
|
# Copyright (c) 2016-2025 Dirk Brenken (dev@brenken.org)
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=travelmate
|
|
PKG_VERSION:=2.3.0
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/travelmate
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=A wlan connection manager for travel router
|
|
DEPENDS:=+iw +ip +jshn +jsonfilter +curl +ca-bundle +rpcd +rpcd-mod-rpcsys
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/travelmate/description
|
|
A wlan connection manager for travel router.
|
|
Please see https://github.com/openwrt/packages/blob/master/net/travelmate/files/README.md for further information.
|
|
|
|
endef
|
|
|
|
define Package/travelmate/conffiles
|
|
/etc/config/travelmate
|
|
endef
|
|
|
|
define Build/Prepare
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/travelmate/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) ./files/travelmate-service.sh $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/travelmate.init $(1)/etc/init.d/travelmate
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_CONF) ./files/travelmate-functions.sh $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/ntp
|
|
$(INSTALL_BIN) ./files/25-travelmate.hotplug $(1)/etc/hotplug.d/ntp/25-travelmate
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/travelmate.conf $(1)/etc/config/travelmate
|
|
|
|
$(INSTALL_DIR) $(1)/etc/travelmate
|
|
$(INSTALL_CONF) ./files/mail.template $(1)/etc/travelmate
|
|
$(INSTALL_BIN) ./files/travelmate.vpn $(1)/etc/travelmate
|
|
$(INSTALL_BIN) ./files/*.login $(1)/etc/travelmate
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,travelmate))
|