2006-08-06 12:40:15 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ntpclient
|
|
|
|
PKG_VERSION:=2003_194
|
2008-01-14 10:38:27 +00:00
|
|
|
PKG_RELEASE:=6
|
2006-08-06 12:40:15 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
|
2006-11-03 10:42:29 +00:00
|
|
|
PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_MD5SUM:=94e84d5c6023c5e1f3890b28d0a08c92
|
2006-08-06 12:40:15 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ntpclient
|
2007-09-25 18:10:51 +00:00
|
|
|
SUBMENU:=Time Synchronization
|
2006-08-06 12:40:15 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=NTP (Network Time Protocol) client
|
2006-11-03 10:42:29 +00:00
|
|
|
URL:=http://doolittle.icarus.com/ntpclient/
|
2006-08-06 12:40:15 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/ntpclient/description
|
|
|
|
NTP client for setting system time from NTP servers.
|
|
|
|
endef
|
|
|
|
|
2007-07-30 08:34:04 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
all adjtimex
|
2006-08-06 12:40:15 +00:00
|
|
|
|
2008-01-14 10:38:27 +00:00
|
|
|
define Package/ntpclient/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
|
2007-07-30 08:34:04 +00:00
|
|
|
$(INSTALL_DATA) ./files/ntpclient.hotplug $(1)/etc/hotplug.d/iface/20-ntpclient
|
2007-01-17 19:31:22 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2007-07-30 08:34:04 +00:00
|
|
|
$(INSTALL_CONF) ./files/ntpclient.config $(1)/etc/config/ntpclient
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/adjtimex $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/rate.awk $(1)/usr/sbin/
|
2006-08-06 12:40:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ntpclient))
|