You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

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