2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://doolittle.icarus.com
/ntpclient
/
17 PKG_MD5SUM
:=94e84d5c6023c5e1f3890b28d0a08c92
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/ntpclient
27 TITLE
:=NTP
(Network Time Protocol
) client
29 NTP client for setting system time from NTP servers.
30 URL
:=http
://doolittle.icarus.com
/ntpclient
/
34 $(call Build
/Compile
/Default
,all adjtimex
)
37 define Package
/ntpclient
/install
38 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
39 $(INSTALL_BIN
) .
/files
/ntpclient.init
$(1)/etc
/hotplug.d
/iface
/10-ntpclient
40 $(INSTALL_DIR
) $(1)/etc
/config
41 $(INSTALL_DATA
) .
/files
/ntpclient.config
$(1)/etc
/config
/ntp_client
42 $(INSTALL_DIR
) $(1)/usr
/sbin
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ntpclient
$(1)/usr
/sbin
/
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/adjtimex
$(1)/usr
/sbin
/
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rate.awk
$(1)/usr
/sbin
/
48 $(eval
$(call BuildPackage
,ntpclient
))