Files
openwrt-packages/utils/quectel-timesync/Makefile
Christian Marangi b5bc742731 quectel-timesync: update to Git HEAD (2025-11-19)
ea24eb56dc55 README: fix typo
7b7042cd299f openwrt: add dependency on USB serial driver
5b64bb8f96eb actions: only build quectel-timesync package
0aa5ab8aa9ef Revert "openwrt: add dependency on USB serial driver"
a8ba7674c112 ci: add release tags
514b801694c7 timesync: fix help text
ad425ae6acea openwrt: increase default interval
ce4d4b14284a CMakeLists: bump CMake minimum version to 3.10 (#2)

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-21 20:56:02 +01:00

52 lines
1.6 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-only
include $(TOPDIR)/rules.mk
PKG_NAME:=quectel-timesync
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=https://github.com/freifunk-darmstadt/quectel-timesync.git
PKG_SOURCE_DATE:=2025-11-19
PKG_SOURCE_VERSION:=ce4d4b14284a5b1af79303c7b9a2b85cad90069f
PKG_MIRROR_HASH:=0528d24e5ab4b92605db754491b63e823440d8af5e256e0a5b866333b08270aa
PKG_MAINTAINER:=David Bauer <mail@david-bauer.net>
PKG_LICENSE:=GPL-2.0-only
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/quectel-timesync
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Tool for configuring system clock using Quectel cellular modems
DEPENDS:=+kmod-usb-serial-option
endef
define Package/quectel-timesync/description
This tool allows for acquiring the current time from
the cellular network for configuring the local clock.
Compared to NTP, this has the advantage of nut using up
mobile traffic.
It takes advantage of the AT+QLTS command found on Quectel
modems. This functionality depends on support of the mobile
network.
endef
define Package/quectel-timesync/conffiles
/etc/config/quectel-timesync
endef
define Package/quectel-timesync/install
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
$(CP) $(PKG_BUILD_DIR)/openwrt/quectel-timesync/files/quectel-timesync.config $(1)/etc/config/quectel-timesync
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/quectel-timesync/files/quectel-timesync.init $(1)/etc/init.d/quectel-timesync
$(INSTALL_BIN) $(PKG_BUILD_DIR)/quectel-timesync $(1)/usr/sbin/quectel-timesync
endef
$(eval $(call BuildPackage,quectel-timesync))