1984afe6349407136e1356d0e290177c3d268d4a
[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:=2
14 PKG_MD5SUM:=94e84d5c6023c5e1f3890b28d0a08c92
15
16 PKG_SOURCE_URL:=http://doolittle.faludi.com/ntpclient
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
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:=NTP client for setting system time from NTP servers.
29 URL:=http://doolittle.faludi.com/ntpclient
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" all adjtimex
35 endef
36
37 define Package/ntpclient/install
38 install -d -m0755 $(1)/etc/hotplug.d/iface
39 install -m0755 ./files/ntpclient.init $(1)/etc/hotplug.d/iface/10-ntpclient
40 install -d -m0755 $(1)/usr/sbin
41 install -m0755 $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/
42 install -m0755 $(PKG_BUILD_DIR)/adjtimex $(1)/usr/sbin/
43 install -m0755 $(PKG_BUILD_DIR)/rate.awk $(1)/usr/sbin/
44 endef
45
46 $(eval $(call BuildPackage,ntpclient))