treewide: clean up download hashes
[openwrt/staging/chunkeey.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_VERSION:=2016-10-24
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE_URL=$(LEDE_GIT)/project/ugps.git
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_VERSION:=32a6b2b702c3b9f8c425f3d9dc9f4273e276029c
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
19 PKG_MIRROR_HASH:=43fc66422dc73ab6cc0af9586ecba2cc8bc465e1e43073c6c3d434a5049bf748
20
21 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
22 PKG_LICENSE:=GPL-2.0+
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 define Package/ugps
28 SECTION:=utils
29 CATEGORY:=Utilities
30 TITLE:=OpenWrt GPS Daemon
31 DEPENDS:=+libubox +libubus
32 endef
33
34 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
35
36 ifneq ($(CONFIG_USE_GLIBC),)
37 TARGET_CFLAGS += -D_DEFAULT_SOURCE
38 endif
39
40 define Package/ugps/conffiles
41 /etc/config/gps
42 endef
43
44 define Package/ugps/install
45 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
47 $(INSTALL_BIN) ./files/ugps.init $(1)/etc/init.d/ugps
48 $(INSTALL_CONF) ./files/gps.config $(1)/etc/config/gps
49 endef
50
51 $(eval $(call BuildPackage,ugps))