2007-03-17 11:34:51 +00:00
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
2007-07-01 23:09:45 +00:00
# $Id$
2007-03-17 11:34:51 +00:00
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := chrony
PKG_VERSION := 1.21
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := ftp://chrony.sunsite.dk/projects/chrony/ \
http://chrony.sunsite.dk/download/
PKG_MD5SUM := 84f76a73dff5a3c9e9f11f3c29a4e93b
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / c h r o n y
2007-12-28 14:46:37 +00:00
SUBMENU:= Time Synchronization
2007-03-17 11:34:51 +00:00
SECTION:= net
CATEGORY:= Network
2007-03-18 17:33:57 +00:00
DEPENDS:= +libreadline +libncurses
2007-03-17 11:34:51 +00:00
TITLE:= NTP client/server for on-demand connections
URL:= http://chrony.sunsite.dk/
e n d e f
2007-10-14 04:32:56 +00:00
d e f i n e P a c k a g e / c h r o n y / d e s c r i p t i o n
A NTP implementation that has been specifically written to work well in the case of an intermittent \ ( e.g. dial-on-demand) connection to the network where your NTP servers are.
e n d e f
2007-03-17 11:34:51 +00:00
d e f i n e P a c k a g e / c h r o n y / c o n f f i l e s
/ e t c / c h r o n y / c h r o n y . c o n f
e n d e f
d e f i n e B u i l d / C o n f i g u r e
$( call Build/Configure/Default, \
--target= $( GNU_TARGET_NAME) \
--prefix= /usr \
--with-readline-includes= $( STAGING_DIR) /usr/include \
2007-03-18 17:33:57 +00:00
--with-readline-library= $( STAGING_DIR) /usr/lib \
)
2007-03-17 11:34:51 +00:00
e n d e f
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) \
$( TARGET_CONFIGURE_OPTS) \
prefix = " $( PKG_INSTALL_DIR) /usr "
e n d e f
d e f i n e P a c k a g e / c h r o n y / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin/
$( INSTALL_DIR) $( 1) /usr/sbin/
2007-03-18 17:33:57 +00:00
$( INSTALL_BIN) $( PKG_BUILD_DIR) /chronyd $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /chronyc $( 1) /usr/bin
2007-03-17 11:34:51 +00:00
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_DIR) $( 1) /etc/chrony
$( INSTALL_DIR) $( 1) /etc/hotplug.d/iface
$( INSTALL_BIN) ./files/ntpd.hotplug $( 1) /etc/hotplug.d/iface/20-ntpd
$( INSTALL_BIN) ./files/ntpd.init $( 1) /etc/init.d/ntpd
$( INSTALL_CONF) ./files/ntpd.config $( 1) /etc/config/ntpd
$( INSTALL_CONF) ./files/chrony.conf $( 1) /etc/chrony/chrony.conf
$( INSTALL_CONF) ./files/chrony.keys $( 1) /etc/chrony/chrony.keys
e n d e f
$( eval $ ( call BuildPackage ,chrony ) )