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