include the new ntpclient init script
[openwrt/svn-archive/archive.git] / net / ntpclient / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ntpclient
12 PKG_VERSION:=2003_194
13 PKG_RELEASE:=6
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/
17 PKG_MD5SUM:=94e84d5c6023c5e1f3890b28d0a08c92
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ntpclient
24 SUBMENU:=Time Synchronization
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=NTP (Network Time Protocol) client
28 URL:=http://doolittle.icarus.com/ntpclient/
29 endef
30
31 define Package/ntpclient/description
32 NTP client for setting system time from NTP servers.
33 endef
34
35 MAKE_FLAGS += \
36 all adjtimex
37
38 define Package/ntpclient/install
39 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
40 $(INSTALL_DATA) ./files/ntpclient.hotplug $(1)/etc/hotplug.d/iface/20-ntpclient
41 $(INSTALL_DIR) $(1)/etc/config
42 $(INSTALL_CONF) ./files/ntpclient.config $(1)/etc/config/ntpclient
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/ntpclient.init $(1)/etc/init.d/ntpclient
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/adjtimex $(1)/usr/sbin/
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rate.awk $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,ntpclient))