libfido2: fix license info in Makefile
[feed/packages.git] / utils / pps-tools / 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:=pps-tools
11 PKG_VERSION:=1.0.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=https://codeload.github.com/redlab-i/pps-tools/tar.gz/v$(PKG_VERSION)?
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_HASH:=1a7efd66152e5439b69143f1f380b40ac5decbbbef516b37a017410b8ba7dff4
17
18 PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
19 PKG_LICENSE:=GPL-2.0
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/pps-tools
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=PPS-tools
27 endef
28
29 define Package/pps-tools/description
30 Userland tools for GPS and DCF-77 Clock synchronization. PPS support in Kernel must be enabled.
31 endef
32
33 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
34
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/include/sys
37 $(INSTALL_DATA) $(PKG_BUILD_DIR)/timepps.h $(1)/usr/include/sys/
38 endef
39
40 define Package/pps-tools/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ppsctl $(1)/usr/sbin/
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ppstest $(1)/usr/sbin/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ppswatch $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,pps-tools))