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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://www.clevervest.com
/htp
/archive
/c
/
16 PKG_MD5SUM
:=a13ec89839c33965794ebf53c4e690db
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/htpdate
21 SUBMENU
:=Time Synchronization
24 TITLE
:=an HTP
(Hypertext Time Protocol
) implementation
25 URL
:=http
://www.clevervest.com
/htp
/
28 define Package
/htpdate
/description
29 The HTTP Time Protocol
(HTP
) is used to synchronize a computer
's time
30 with web servers as reference time source. Htpdate will synchronize your
31 computer's time by extracting timestamps from HTTP headers found
32 in web server responses. Htpdate can be used
as a daemon
, to keep your
33 computer synchronized.
36 define Package
/htpdate
/conffiles
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 $(TARGET_CONFIGURE_OPTS
) \
43 CFLAGS
="$(TARGET_CFLAGS)"
46 define Package
/htpdate
/install
47 $(INSTALL_DIR
) $(1)/usr
/sbin
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/htpdate
$(1)/usr
/sbin
/
49 $(INSTALL_DIR
) $(1)/etc
/default
/
50 $(INSTALL_CONF
) .
/files
/htpdate.default
$(1)/etc
/default
/htpdate
51 $(INSTALL_DIR
) $(1)/etc
/init.d
/
52 $(INSTALL_BIN
) .
/files
/htpdate.init
$(1)/etc
/init.d
/htpdate
55 $(eval
$(call BuildPackage
,htpdate
))