You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.6 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=htpdate
  9. PKG_VERSION:=1.1.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://www.vervest.org/htp/archive/c/
  13. PKG_HASH:=0d75f91cb61f8869c8298d198fa52b9a139ae505b366e9d4d331af8bc1c04880
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_LICENSE_FILES:=
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/htpdate
  18. SUBMENU:=Time Synchronization
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=an HTP (Hypertext Time Protocol) implementation
  22. URL:=http://www.vervest.com/htp/
  23. MAINTAINER:=Tijs Van Buggenhout <tvbuggen@netzerk.be>
  24. endef
  25. define Package/htpdate/description
  26. The HTTP Time Protocol (HTP) is used to synchronize a computer's time
  27. with web servers as reference time source. Htpdate will synchronize your
  28. computer's time by extracting timestamps from HTTP headers found
  29. in web server responses. Htpdate can be used as a daemon, to keep your
  30. computer synchronized.
  31. endef
  32. define Package/htpdate/conffiles
  33. /etc/default/htpdate
  34. endef
  35. define Build/Compile
  36. $(MAKE) -C $(PKG_BUILD_DIR) \
  37. $(TARGET_CONFIGURE_OPTS) \
  38. CFLAGS="$(TARGET_CFLAGS)"
  39. endef
  40. define Package/htpdate/install
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/htpdate $(1)/usr/sbin/
  43. $(INSTALL_DIR) $(1)/etc/default/
  44. $(INSTALL_CONF) ./files/htpdate.default $(1)/etc/default/htpdate
  45. $(INSTALL_DIR) $(1)/etc/init.d/
  46. $(INSTALL_BIN) ./files/htpdate.init $(1)/etc/init.d/htpdate
  47. endef
  48. $(eval $(call BuildPackage,htpdate))