c5441c278d75d3cfb3d827dba1315fa538fc7245
[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:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://www.vervest.org/htp/archive/c/
16 PKG_MD5SUM:=c612f63282e3f23b709f37a5c81d4739
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 endef
31
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.
38 endef
39
40 define Package/htpdate/conffiles
41 /etc/default/htpdate
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 $(TARGET_CONFIGURE_OPTS) \
47 CFLAGS="$(TARGET_CFLAGS)"
48 endef
49
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
57 endef
58
59 $(eval $(call BuildPackage,htpdate))
60