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.

75 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2006-2015 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:=chrony
  9. PKG_VERSION:=3.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://download.tuxfamily.org/chrony/
  13. PKG_HASH:=329f6718dd8c3ece3eee78be1f4821cbbeb62608e7d23f25da293cfa433c4116
  14. PKG_MAINTAINER:=Miroslav Lichvar <mlichvar0@gmail.com>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_DEPENDS:=+pps-tools
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/chrony
  20. SUBMENU:=Time Synchronization
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+libcap +libpthread
  24. USERID:=chrony=323:chrony=323
  25. TITLE:=A versatile NTP client and server
  26. URL:=http://chrony.tuxfamily.org/
  27. endef
  28. define Package/chrony/description
  29. An NTP client and server designed to perform well in a wide range
  30. of conditions. It can synchronize the system clock with NTP servers,
  31. reference clocks, and manual input using wristwatch and keyboard.
  32. endef
  33. define Package/chrony/conffiles
  34. /etc/chrony/chrony.conf
  35. /etc/config/chrony
  36. endef
  37. CONFIGURE_ARGS+= \
  38. --host-machine=$(shell echo $(GNU_TARGET_NAME) | sed -e 's/-.*//') \
  39. --host-release="" \
  40. --host-system=Linux \
  41. --sysconfdir=/etc/chrony \
  42. --prefix=/usr \
  43. --chronyrundir=/var/run/chrony \
  44. --disable-readline \
  45. --disable-rtc \
  46. --with-user=chrony
  47. CONFIGURE_VARS+=CPPFLAGS=-DNDEBUG
  48. define Package/chrony/install
  49. $(INSTALL_DIR) $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/usr/sbin/
  51. $(INSTALL_BIN) $(PKG_BUILD_DIR)/chronyd $(1)/usr/sbin
  52. $(INSTALL_BIN) $(PKG_BUILD_DIR)/chronyc $(1)/usr/bin
  53. $(INSTALL_DIR) $(1)/etc/init.d
  54. $(INSTALL_DIR) $(1)/etc/config
  55. $(INSTALL_DIR) $(1)/etc/chrony
  56. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  57. $(INSTALL_BIN) ./files/chrony.hotplug $(1)/etc/hotplug.d/iface/20-chrony
  58. $(INSTALL_BIN) ./files/chronyd.init $(1)/etc/init.d/chronyd
  59. $(INSTALL_CONF) ./files/chrony.config $(1)/etc/config/chrony
  60. $(INSTALL_CONF) ./files/chrony.conf $(1)/etc/chrony/chrony.conf
  61. endef
  62. $(eval $(call BuildPackage,chrony))