[packages] ntpclient: add option to bind ntpclient to a specific interface (#6470)
[openwrt/svn-archive/archive.git] / net / ntpclient / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ntpclient
11 PKG_VERSION:=2007_365
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/
16 PKG_MD5SUM:=cb98711f11769cdd22fc592844cef414
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2007
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ntpclient
23 SUBMENU:=Time Synchronization
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=NTP (Network Time Protocol) client
27 URL:=http://doolittle.icarus.com/ntpclient/
28 DEPENDS:=+librt
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_BIN) $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/adjtimex $(1)/usr/sbin/
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rate.awk $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,ntpclient))