source: packages/net/ntpclient/Makefile @ 14400

Last change on this file since 14400 was 14400, checked in by thepeople, 8 years ago

ntpclient depends on librt

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=ntpclient
12PKG_VERSION:=2007_365
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/
17PKG_MD5SUM:=cb98711f11769cdd22fc592844cef414
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2007
20
21include $(INCLUDE_DIR)/package.mk
22
23define 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  DEPENDS:=+librt
30endef
31
32define Package/ntpclient/description
33        NTP client for setting system time from NTP servers.
34endef
35
36MAKE_FLAGS += \
37        all adjtimex
38
39define Package/ntpclient/install
40        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
41        $(INSTALL_DATA) ./files/ntpclient.hotplug $(1)/etc/hotplug.d/iface/20-ntpclient
42        $(INSTALL_DIR) $(1)/etc/config
43        $(INSTALL_CONF) ./files/ntpclient.config $(1)/etc/config/ntpclient
44        $(INSTALL_DIR) $(1)/usr/sbin
45        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/
46        $(INSTALL_BIN) $(PKG_BUILD_DIR)/adjtimex $(1)/usr/sbin/
47        $(INSTALL_BIN) $(PKG_BUILD_DIR)/rate.awk $(1)/usr/sbin/
48endef
49
50$(eval $(call BuildPackage,ntpclient))
Note: See TracBrowser for help on using the repository browser.