2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://www.clevervest.com/htp/archive/c/
17 PKG_MD5SUM:=a0c2b7a3e89a9fedb1ae8cba17928ec3
19 include $(INCLUDE_DIR)/package.mk
21 define Package/htpdate
22 SUBMENU:=Time Synchronization
25 TITLE:=an HTP (Hypertext Time Protocol) implementation
26 URL:=http://www.clevervest.com/htp/
29 define Package/htpdate/description
30 The HTTP Time Protocol (HTP) is used to synchronize a computer's time
31 with web servers as reference time source. Htpdate will synchronize your
32 computer's time by extracting timestamps from HTTP headers found
33 in web server responses. Htpdate can be used as a daemon, to keep your
34 computer synchronized.
37 define Package/htpdate/conffiles
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 CFLAGS="$(TARGET_CFLAGS)"
48 define Package/htpdate/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/htpdate $(1)/usr/sbin/
51 $(INSTALL_DIR) $(1)/etc/default/
52 $(INSTALL_DATA) ./files/htpdate.default $(1)/etc/default/htpdate
53 $(INSTALL_DIR) $(1)/etc/init.d/
54 $(INSTALL_BIN) ./files/htpdate.init $(1)/etc/init.d/htpdate
57 $(eval $(call BuildPackage,htpdate))