2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://chrony-project.org
/releases
/
16 PKG_HASH
:=19fe1d9f4664d445a69a96c71e8fdb60bcd8df24c73d1386e02287f7366ad422
18 PKG_MAINTAINER
:=Miroslav Lichvar
<mlichvar0@gmail.com
>
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:tuxfamily
:chrony
23 PKG_BUILD_DEPENDS
:=pps-tools
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/chrony
/Default
29 SUBMENU
:=Time Synchronization
32 DEPENDS
:=+libcap
+libpthread
33 USERID
:=chrony
=323:chrony
=323
34 TITLE
:=A versatile NTP client and server
35 URL
:=http
://chrony.tuxfamily.org
/
40 $(call Package
/chrony
/Default
)
46 define Package
/chrony-nts
47 $(call Package
/chrony
/Default
)
49 DEPENDS
+= +PACKAGE_chrony-nts
:libgnutls
+PACKAGE_chrony-nts
:ca-bundle
53 define Package
/chrony
/description
54 An NTP client and server designed to perform well in a wide range
55 of conditions. It can synchronize the system clock with NTP servers
,
56 reference clocks
, and manual input using wristwatch and keyboard.
59 Package
/chrony-nts
/description
= $(Package
/chrony
/description
)
61 define Package
/chrony
/conffiles
62 /etc
/chrony
/chrony.conf
66 Package
/chrony-nts
/conffiles
= $(Package
/chrony
/conffiles
)
69 --host-machine
=$(shell echo
$(GNU_TARGET_NAME
) | sed
-e
's/-.*//') \
72 --sysconfdir
=/etc
/chrony \
74 --chronyrundir
=/var
/run
/chrony \
75 $(if
$(findstring normal
,$(BUILD_VARIANT
)),--disable-nts
,--enable
,nts
) \
81 CONFIGURE_VARS
+=CPPFLAGS
=-DNDEBUG
83 define Package
/chrony
/install
84 $(INSTALL_DIR
) $(1)/usr
/bin
/
85 $(INSTALL_DIR
) $(1)/usr
/sbin
/
86 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/chronyd
$(1)/usr
/sbin
87 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/chronyc
$(1)/usr
/bin
88 $(INSTALL_DIR
) $(1)/etc
/init.d
89 $(INSTALL_DIR
) $(1)/etc
/config
90 $(INSTALL_DIR
) $(1)/etc
/chrony
91 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
92 $(INSTALL_BIN
) .
/files
/chrony.hotplug
$(1)/etc
/hotplug.d
/iface
/20-chrony
93 $(INSTALL_BIN
) .
/files
/chronyd.init
$(1)/etc
/init.d
/chronyd
94 $(INSTALL_CONF
) .
/files
/chrony.config
$(1)/etc
/config
/chrony
95 $(INSTALL_CONF
) .
/files
/chrony.conf
$(1)/etc
/chrony
/chrony.conf
98 Package
/chrony-nts
/install= $(Package
/chrony
/install)
100 $(eval
$(call BuildPackage
,chrony
))
101 $(eval
$(call BuildPackage
,chrony-nts
))