Update htpdate to 1.0.1 (#3623)
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=htpdate
12 PKG_VERSION:=1.0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://www.clevervest.com/htp/archive/c/
17 PKG_MD5SUM:=a0c2b7a3e89a9fedb1ae8cba17928ec3
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/htpdate
22   SUBMENU:=Time Synchronization
23   SECTION:=net
24   CATEGORY:=Network
25   TITLE:=an HTP (Hypertext Time Protocol) implementation
26   URL:=http://www.clevervest.com/htp/
27 endef
28
29 define Package/htpdate/description
30         The HTTP Time Protocol (HTP) is used to synchronize a computer's time
31         with web servers as reference time source. Htpdate will synchronize your
32         computer's time by extracting timestamps from HTTP headers found
33         in web server responses. Htpdate can be used as a daemon, to keep your
34         computer synchronized.
35 endef
36
37 define Package/htpdate/conffiles
38 /etc/default/htpdate
39 endef
40
41 define Build/Compile    
42         $(MAKE) -C $(PKG_BUILD_DIR) \
43                 $(TARGET_CONFIGURE_OPTS) \
44                 CFLAGS="$(TARGET_CFLAGS)"
45 endef
46
47
48 define Package/htpdate/install  
49         $(INSTALL_DIR) $(1)/usr/sbin
50         $(INSTALL_BIN) $(PKG_BUILD_DIR)/htpdate $(1)/usr/sbin/
51         $(INSTALL_DIR) $(1)/etc/default/
52         $(INSTALL_DATA) ./files/htpdate.default $(1)/etc/default/htpdate
53         $(INSTALL_DIR) $(1)/etc/init.d/
54         $(INSTALL_BIN) ./files/htpdate.init $(1)/etc/init.d/htpdate
55 endef
56
57 $(eval $(call BuildPackage,htpdate))
58