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:=2.1.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.tuxfamily.org/chrony/
  13. PKG_MD5SUM:=15e470a51ab6e09e65bc0a2fbc5299af
  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/chrony/chrony.keys
  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. --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. $(INSTALL_CONF) ./files/chrony.keys $(1)/etc/chrony/chrony.keys
  63. endef
  64. $(eval $(call BuildPackage,chrony))