2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-08-02 09:09:12 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=htpdate
|
2008-07-06 14:19:25 +00:00
|
|
|
PKG_VERSION:=1.0.1
|
2006-08-02 09:09:12 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2008-07-06 14:19:25 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.clevervest.com/htp/archive/c/
|
2008-07-06 14:19:25 +00:00
|
|
|
PKG_MD5SUM:=a0c2b7a3e89a9fedb1ae8cba17928ec3
|
2006-08-02 09:09:12 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/htpdate
|
2007-09-25 18:10:51 +00:00
|
|
|
SUBMENU:=Time Synchronization
|
2006-08-02 09:09:12 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=an HTP (Hypertext Time Protocol) implementation
|
|
|
|
URL:=http://www.clevervest.com/htp/
|
|
|
|
endef
|
|
|
|
|
2008-07-06 14:19:25 +00:00
|
|
|
define Package/htpdate/description
|
|
|
|
The HTTP Time Protocol (HTP) is used to synchronize a computer's time
|
|
|
|
with web servers as reference time source. Htpdate will synchronize your
|
|
|
|
computer's time by extracting timestamps from HTTP headers found
|
|
|
|
in web server responses. Htpdate can be used as a daemon, to keep your
|
|
|
|
computer synchronized.
|
|
|
|
endef
|
|
|
|
|
2006-08-02 09:09:12 +00:00
|
|
|
define Package/htpdate/conffiles
|
|
|
|
/etc/default/htpdate
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/htpdate/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/htpdate $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/default/
|
|
|
|
$(INSTALL_DATA) ./files/htpdate.default $(1)/etc/default/htpdate
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) ./files/htpdate.init $(1)/etc/init.d/htpdate
|
2006-08-02 09:09:12 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,htpdate))
|
|
|
|
|