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_HASH
:=0d75f91cb61f8869c8298d198fa52b9a139ae505b366e9d4d331af8bc1c04880
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
>, \
30 Marcin Jurkowski
<marcin1j@gmail.com
>
33 define Package
/htpdate
/description
34 The HTTP Time Protocol
(HTP
) is used to synchronize a computer
's time
35 with web servers as reference time source. Htpdate will synchronize your
36 computer's time by extracting timestamps from HTTP headers found
37 in web server responses. Htpdate can be used
as a daemon
, to keep your
38 computer synchronized.
41 define Package
/htpdate
/conffiles
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 $(TARGET_CONFIGURE_OPTS
) \
48 CFLAGS
="$(TARGET_CFLAGS)"
51 define Package
/htpdate
/install
52 $(INSTALL_DIR
) $(1)/usr
/sbin
53 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/htpdate
$(1)/usr
/sbin
/
54 $(INSTALL_DIR
) $(1)/etc
/config
/
55 $(INSTALL_CONF
) .
/files
/htpdate.conf
$(1)/etc
/config
/htpdate
56 $(INSTALL_DIR
) $(1)/etc
/init.d
/
57 $(INSTALL_BIN
) .
/files
/htpdate.init
$(1)/etc
/init.d
/htpdate
60 $(eval
$(call BuildPackage
,htpdate
))