2 # Copyright (C) 2006-2008 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
:= ftp
://chrony.sunsite.dk
/projects
/chrony
/ \
16 http
://chrony.sunsite.dk
/download
/
17 PKG_MD5SUM
:=ffce77695e55d8efda19ab0b78309c23
19 include $(INCLUDE_DIR
)/package.mk
22 SUBMENU
:=Time Synchronization
25 DEPENDS
:=+libreadline
+libncurses @
!TARGET_avr32 @
!powerpc
26 TITLE
:=NTP client
/server for on-demand connections
27 URL
:=http
://chrony.sunsite.dk
/
30 define Package
/chrony
/description
31 A NTP implementation that has been specifically written to work
32 well in the case of an intermittent
(e.g. dial-on-demand
)
33 connection to the network where your NTP servers are.
36 define Package
/chrony
/conffiles
37 /etc
/chrony
/chrony.conf
40 define Build
/Configure
41 $(call Build
/Configure
/Default
, \
42 --target
=$(GNU_TARGET_NAME
) \
44 --with-readline-includes
=$(STAGING_DIR
)/usr
/include \
45 --with-readline-library
=$(STAGING_DIR
)/usr
/lib \
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 $(TARGET_CONFIGURE_OPTS
) \
52 prefix="$(PKG_INSTALL_DIR)/usr"
55 define Package
/chrony
/install
56 $(INSTALL_DIR
) $(1)/usr
/bin
/
57 $(INSTALL_DIR
) $(1)/usr
/sbin
/
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/chronyd
$(1)/usr
/sbin
59 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/chronyc
$(1)/usr
/bin
60 $(INSTALL_DIR
) $(1)/etc
/init.d
61 $(INSTALL_DIR
) $(1)/etc
/config
62 $(INSTALL_DIR
) $(1)/etc
/chrony
63 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
64 $(INSTALL_BIN
) .
/files
/ntpd.hotplug
$(1)/etc
/hotplug.d
/iface
/20-ntpd
65 $(INSTALL_BIN
) .
/files
/ntpd.init
$(1)/etc
/init.d
/ntpd
66 $(INSTALL_CONF
) .
/files
/ntpd.config
$(1)/etc
/config
/ntpd
67 $(INSTALL_CONF
) .
/files
/chrony.conf
$(1)/etc
/chrony
/chrony.conf
68 $(INSTALL_CONF
) .
/files
/chrony.keys
$(1)/etc
/chrony
/chrony.keys
71 $(eval
$(call BuildPackage
,chrony
))