322f0d210d58bebffe3bef80b21ba034cdfd1804
[openwrt/staging/jow.git] / package / utils / ugps / Makefile
1 #
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ugps
11 PKG_RELEASE:=2
12
13 PKG_SOURCE_URL=$(PROJECT_GIT)/project/ugps.git
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_DATE:=2023-01-27
16 PKG_SOURCE_VERSION:=a8171a07193351a9125024d5c759c0ebd6a6895c
17 PKG_MIRROR_HASH:=9116c9698c15744bb2e36a7cfd0a73f1609b6932f32ca07da57238aea8a2d5cf
18
19 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
20 PKG_LICENSE:=GPL-2.0+
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/ugps
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=OpenWrt GPS Daemon
29 DEPENDS:=+libubox +libubus
30 endef
31
32 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
33
34 define Package/ugps/conffiles
35 /etc/config/gps
36 endef
37
38 define 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
43 endef
44
45 $(eval $(call BuildPackage,ugps))