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.

61 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:=4
  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-or-later
  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. Marcin Jurkowski <marcin1j@gmail.com>
  25. endef
  26. define Package/htpdate/description
  27. The HTTP Time Protocol (HTP) is used to synchronize a computer's time
  28. with web servers as reference time source. Htpdate will synchronize your
  29. computer's time by extracting timestamps from HTTP headers found
  30. in web server responses. Htpdate can be used as a daemon, to keep your
  31. computer synchronized.
  32. endef
  33. define Package/htpdate/conffiles
  34. /etc/config/htpdate
  35. endef
  36. define Build/Compile
  37. $(MAKE) -C $(PKG_BUILD_DIR) \
  38. $(TARGET_CONFIGURE_OPTS) \
  39. CFLAGS="$(TARGET_CFLAGS)"
  40. endef
  41. define Package/htpdate/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/htpdate $(1)/usr/sbin/
  44. $(INSTALL_DIR) $(1)/etc/config/
  45. $(INSTALL_CONF) ./files/htpdate.conf $(1)/etc/config/htpdate
  46. $(INSTALL_DIR) $(1)/etc/init.d/
  47. $(INSTALL_BIN) ./files/htpdate.init $(1)/etc/init.d/htpdate
  48. endef
  49. $(eval $(call BuildPackage,htpdate))