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.

76 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:=2.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.tuxfamily.org/chrony/
  13. PKG_MD5SUM:=17bc77d3d2ce942675f9600b60452717
  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
  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. --chronysockdir=/var/run/chrony \
  44. --disable-readline \
  45. --disable-rtc \
  46. --disable-asyncdns \
  47. --with-user=chrony
  48. CONFIGURE_VARS+=CPPFLAGS=-DNDEBUG
  49. define Package/chrony/install
  50. $(INSTALL_DIR) $(1)/usr/bin/
  51. $(INSTALL_DIR) $(1)/usr/sbin/
  52. $(INSTALL_BIN) $(PKG_BUILD_DIR)/chronyd $(1)/usr/sbin
  53. $(INSTALL_BIN) $(PKG_BUILD_DIR)/chronyc $(1)/usr/bin
  54. $(INSTALL_DIR) $(1)/etc/init.d
  55. $(INSTALL_DIR) $(1)/etc/config
  56. $(INSTALL_DIR) $(1)/etc/chrony
  57. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  58. $(INSTALL_BIN) ./files/chrony.hotplug $(1)/etc/hotplug.d/iface/20-chrony
  59. $(INSTALL_BIN) ./files/chronyd.init $(1)/etc/init.d/chronyd
  60. $(INSTALL_CONF) ./files/chrony.config $(1)/etc/config/chrony
  61. $(INSTALL_CONF) ./files/chrony.conf $(1)/etc/chrony/chrony.conf
  62. endef
  63. $(eval $(call BuildPackage,chrony))