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.gz
15 PKG_SOURCE_URL
:=https
://www.vervest.org
/htp
/archive
/c
/
16 PKG_HASH
:=88c52fe475308ee95f560fd7cf68c75bc6e9a6abf56be7fed203a7f762fe7ab2
18 PKG_LICENSE
:=GPL-2.0
-or-later
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/htpdate
24 SUBMENU
:=Time Synchronization
27 TITLE
:=an HTP
(Hypertext Time Protocol
) implementation
28 URL
:=https
://www.vervest.org
/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
))