Merge pull request #4825 from nxhack/node-hid_fix_depends
[feed/packages.git] / net / htpdate / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=htpdate
11 PKG_VERSION:=1.1.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://www.vervest.org/htp/archive/c/
16 PKG_HASH:=0d75f91cb61f8869c8298d198fa52b9a139ae505b366e9d4d331af8bc1c04880
17
18 PKG_LICENSE:=GPL-2.0+
19 PKG_LICENSE_FILES:=
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/htpdate
24 SUBMENU:=Time Synchronization
25 SECTION:=net
26 CATEGORY:=Network
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>
31 endef
32
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.
39 endef
40
41 define Package/htpdate/conffiles
42 /etc/config/htpdate
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 $(TARGET_CONFIGURE_OPTS) \
48 CFLAGS="$(TARGET_CFLAGS)"
49 endef
50
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
58 endef
59
60 $(eval $(call BuildPackage,htpdate))
61