1
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ntpclient
  9. PKG_VERSION:=2010_365
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/
  13. PKG_MD5SUM:=a64689398f2df8933ee0d8da246e9eaa
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2010
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ntpclient
  19. SUBMENU:=Time Synchronization
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=NTP (Network Time Protocol) client
  23. URL:=http://doolittle.icarus.com/ntpclient/
  24. DEPENDS:=+librt
  25. endef
  26. define Package/ntpclient/description
  27. NTP client for setting system time from NTP servers.
  28. endef
  29. define Package/ntpclient/conffiles
  30. /etc/config/ntpclient
  31. endef
  32. MAKE_FLAGS += \
  33. all adjtimex
  34. define Package/ntpclient/install
  35. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  36. $(INSTALL_DATA) ./files/ntpclient.hotplug $(1)/etc/hotplug.d/iface/20-ntpclient
  37. $(INSTALL_DIR) $(1)/etc/config
  38. $(INSTALL_CONF) ./files/ntpclient.config $(1)/etc/config/ntpclient
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpclient $(1)/usr/sbin/
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/adjtimex $(1)/usr/sbin/
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rate.awk $(1)/usr/sbin/
  43. endef
  44. $(eval $(call BuildPackage,ntpclient))