Fix/clean several hundred package makefiles
[packages.git] / net / httping / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=httping
11 PKG_VERSION:=1.0.10
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=998b00b8babeb3196d28c20ad87d9c15
14
15 PKG_SOURCE_URL:=http://www.vanheusden.com/httping/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/httping
24   SECTION:=net
25   CATEGORY:=Network
26   DEPENDS:=+libopenssl
27   TITLE:=Httping is like 'ping' but for http-requests
28   DESCRIPTION:=Httping is like 'ping' but for http-requests.\\\
29 Give it an url, and it'll show you how long it takes to connect, send a\\\
30 request and retrieve the reply (only the headers). Be aware that the\\\
31 transmission across the network also takes time!\\\
32   URL:=http://www.vanheusden.com/httping/
33 endef
34
35 define Build/Compile
36   $(call Build/Compile/Default,-f $(PKG_BUILD_DIR)/Makefile$(SSL_ENABLE) STAGING_DIR=$(STAGING_DIR))
37 endef
38
39 define Package/httping/install  
40         mkdir -p $(1)/usr/sbin
41         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
42 endef
43
44 $(eval $(call BuildPackage,httping))