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.

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