1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_MD5SUM:=c612f63282e3f23b709f37a5c81d4739
  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))