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
:=a0c2b7a3e89a9fedb1ae8cba17928ec3
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)"
47 define Package
/htpdate
/install
48 $(INSTALL_DIR
) $(1)/usr
/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/htpdate
$(1)/usr
/sbin
/
50 $(INSTALL_DIR
) $(1)/etc
/default
/
51 $(INSTALL_DATA
) .
/files
/htpdate.default
$(1)/etc
/default
/htpdate
52 $(INSTALL_DIR
) $(1)/etc
/init.d
/
53 $(INSTALL_BIN
) .
/files
/htpdate.init
$(1)/etc
/init.d
/htpdate
56 $(eval
$(call BuildPackage
,htpdate
))