[packages] ntpclient: mark conffile
[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 define Package/ntpclient/conffiles
36 /etc/config/ntpclient
37 endef
38
39 MAKE_FLAGS += \
40 all adjtimex
41
42 define Package/ntpclient/install
43 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
44 $(INSTALL_DATA) ./files/ntpclient.hotplug $(1)/etc/hotplug.d/iface/20-ntpclient
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_CONF) ./files/ntpclient.config $(1)/etc/config/ntpclient
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/adjtimex $(1)/usr/sbin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rate.awk $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,ntpclient))