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.xz
15 PKG_SOURCE_URL
:=http
://www.vervest.org
/htp
/archive
/c
/
16 PKG_MD5SUM
:=c612f63282e3f23b709f37a5c81d4739
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/htpdate
24 SUBMENU
:=Time Synchronization
27 TITLE
:=an HTP
(Hypertext Time Protocol
) implementation
28 URL
:=http
://www.vervest.com
/htp
/
29 MAINTAINER
:=Tijs Van Buggenhout
<tvbuggen@netzerk.be
>
32 define Package
/htpdate
/description
33 The HTTP Time Protocol
(HTP
) is used to synchronize a computer
's time
34 with web servers as reference time source. Htpdate will synchronize your
35 computer's time by extracting timestamps from HTTP headers found
36 in web server responses. Htpdate can be used
as a daemon
, to keep your
37 computer synchronized.
40 define Package
/htpdate
/conffiles
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 $(TARGET_CONFIGURE_OPTS
) \
47 CFLAGS
="$(TARGET_CFLAGS)"
50 define Package
/htpdate
/install
51 $(INSTALL_DIR
) $(1)/usr
/sbin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/htpdate
$(1)/usr
/sbin
/
53 $(INSTALL_DIR
) $(1)/etc
/default
/
54 $(INSTALL_CONF
) .
/files
/htpdate.default
$(1)/etc
/default
/htpdate
55 $(INSTALL_DIR
) $(1)/etc
/init.d
/
56 $(INSTALL_BIN
) .
/files
/htpdate.init
$(1)/etc
/init.d
/htpdate
59 $(eval
$(call BuildPackage
,htpdate
))