reorder hotplug files fixes #1527
[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:=3
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/
17 PKG_MD5SUM:=94e84d5c6023c5e1f3890b28d0a08c92
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ntpclient
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=NTP (Network Time Protocol) client
28 DESCRIPTION:=\
29 NTP client for setting system time from NTP servers.
30 URL:=http://doolittle.icarus.com/ntpclient/
31 endef
32
33 define Build/Compile
34 $(call Build/Compile/Default,all adjtimex)
35 endef
36
37 define Package/ntpclient/install
38 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
39 $(INSTALL_BIN) ./files/ntpclient.init $(1)/etc/hotplug.d/iface/20-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/
46 endef
47
48 $(eval $(call BuildPackage,ntpclient))