blob: aa91b606dbbfb3218e0d9d51525afc79c4022ae7 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2014 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ugps
11PKG_RELEASE:=1
12
13PKG_SOURCE_URL=$(PROJECT_GIT)/project/ugps.git
14PKG_SOURCE_PROTO:=git
15PKG_SOURCE_DATE:=2024-02-14
16PKG_SOURCE_VERSION:=69561a074d6f50f63b82608b19041e5eb2c605a9
17PKG_MIRROR_HASH:=87f9634c5e940523808391886fde504237ac2f7f62224733120a06fba4f7e952
18
19PKG_MAINTAINER:=John Crispin <john@phrozen.org>
20PKG_LICENSE:=GPL-2.0+
21
22include $(INCLUDE_DIR)/package.mk
23include $(INCLUDE_DIR)/cmake.mk
24
25define Package/ugps
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=OpenWrt GPS Daemon
29 DEPENDS:=+libubox +libubus
30endef
31
32TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
33
34define Package/ugps/conffiles
35/etc/config/gps
36endef
37
38define Package/ugps/install
39 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
41 $(INSTALL_BIN) ./files/ugps.init $(1)/etc/init.d/ugps
42 $(INSTALL_CONF) ./files/gps.config $(1)/etc/config/gps
43endef
44
45$(eval $(call BuildPackage,ugps))