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.

57 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2006-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:=ntpclient
  9. PKG_VERSION:=2015_365
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient
  13. PKG_HASH:=95c3646919a9a2278fa384aa8e37117b250577ff8b09b8c93ba53e04e729b54b
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2015
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ntpclient
  19. SUBMENU:=Time Synchronization
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=NTP (Network Time Protocol) client
  23. URL:=http://doolittle.icarus.com/ntpclient/
  24. DEPENDS:=+librt
  25. endef
  26. define Package/ntpclient/description
  27. NTP client for setting system time from NTP servers.
  28. endef
  29. define Package/ntpclient/conffiles
  30. /etc/config/ntpclient
  31. endef
  32. MAKE_FLAGS += \
  33. all adjtimex
  34. define Package/ntpclient/install
  35. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  36. $(INSTALL_DATA) ./files/ntpclient.hotplug $(1)/etc/hotplug.d/iface/20-ntpclient
  37. $(INSTALL_DIR) $(1)/etc/config
  38. $(INSTALL_CONF) ./files/ntpclient.config $(1)/etc/config/ntpclient
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/adjtimex $(1)/usr/sbin/
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rate.awk $(1)/usr/sbin/
  43. endef
  44. $(eval $(call BuildPackage,ntpclient))