[package] add pcapsipdump and link it against uclibc++ preferably (#4969)
[openwrt/svn-archive/archive.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.1
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:=a0c2b7a3e89a9fedb1ae8cba17928ec3
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
47 define Package/htpdate/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/htpdate $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc/default/
51 $(INSTALL_DATA) ./files/htpdate.default $(1)/etc/default/htpdate
52 $(INSTALL_DIR) $(1)/etc/init.d/
53 $(INSTALL_BIN) ./files/htpdate.init $(1)/etc/init.d/htpdate
54 endef
55
56 $(eval $(call BuildPackage,htpdate))
57