From patchwork Sun Jan 13 00:29:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Talis X-Patchwork-Id: 211580 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id AC18B2C0109 for ; Sun, 13 Jan 2013 11:29:52 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B6764A006B; Sun, 13 Jan 2013 00:29:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zHWqrUwUlqfI; Sun, 13 Jan 2013 00:29:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 71E16A0075; Sun, 13 Jan 2013 00:29:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B7DBD8F753 for ; Sun, 13 Jan 2013 00:29:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 641E8814ED for ; Sun, 13 Jan 2013 00:29:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gUcK39zIpgZT for ; Sun, 13 Jan 2013 00:29:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-da0-f48.google.com (mail-da0-f48.google.com [209.85.210.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id 13B88814D8 for ; Sun, 13 Jan 2013 00:29:45 +0000 (UTC) Received: by mail-da0-f48.google.com with SMTP id k18so1295184dae.21 for ; Sat, 12 Jan 2013 16:29:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=1ZUAQCmrzFpyxmOHGMA/oWoiYnc5EyDB34aSWQdTbTg=; b=kQ7uTMJ4fmuqil6ZhSdh67hRSzKv5F7ENL5HrNHJ7IarOqCzi471bGSpa9eWGIYOtd s6m7IHxIovpwtidOqk9SYYePmf3xr6Lob57FH2UqDiIiQGSC8YeLSYeAEvgwWrvKUPxL pdt+5KcveCdDWbEXOY45oI7ZkTLO+rf8/+fLO8mOJWWfPMDnwtcCK9ychOUav5MuZXMF yNAbiDb5KPniqzkkPqLb61aVQ7U7FnSYN79cciYkHxd9/g9A6GEfB6lougOyw9qVdxAC VlgGOlUpprSVVERp8eheIAupTqK1YFqby4Z3Km7eqh13jGbzaIEHmOup/Qganx0a9R1V YLEQ== X-Received: by 10.68.237.42 with SMTP id uz10mr6647825pbc.118.1358036984542; Sat, 12 Jan 2013 16:29:44 -0800 (PST) Received: from localhost.localdomain (c-69-181-251-46.hsd1.ca.comcast.net. [69.181.251.46]) by mx.google.com with ESMTPS id pv8sm5370142pbc.26.2013.01.12.16.29.43 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 12 Jan 2013 16:29:43 -0800 (PST) From: Gilles Talis To: buildroot@busybox.net Date: Sat, 12 Jan 2013 16:29:32 -0800 Message-Id: <1358036972-10406-1-git-send-email-gilles.talis@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 1/1] httping: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Httping is like 'ping' but for http-requests. Fixed commit following review Signed-off-by: Gilles Talis --- package/Config.in | 1 + package/httping/Config.in | 24 ++++++++++++++++++++++++ package/httping/httping.mk | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 0 deletions(-) create mode 100644 package/httping/Config.in create mode 100644 package/httping/httping.mk diff --git a/package/Config.in b/package/Config.in index fcc2480..7c96095 100644 --- a/package/Config.in +++ b/package/Config.in @@ -618,6 +618,7 @@ source "package/ethtool/Config.in" source "package/heirloom-mailx/Config.in" source "package/hiawatha/Config.in" source "package/hostapd/Config.in" +source "package/httping/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/ifplugd/Config.in" endif diff --git a/package/httping/Config.in b/package/httping/Config.in new file mode 100644 index 0000000..46e21f5 --- /dev/null +++ b/package/httping/Config.in @@ -0,0 +1,24 @@ +config BR2_PACKAGE_HTTPING + bool "httping" + help + Httping is like 'ping' but for http-requests. + Give it an url, and it'll show you how long it takes to connect, + send a request and retrieve the reply (only the headers). + Be aware that the transmission across the network also takes time! + So it measures the latency of the webserver + network. + + http://www.vanheusden.com/httping/ + +if BR2_PACKAGE_HTTPING + +config BR2_PACKAGE_HTTPING_OPENSSL + bool "OpenSSL support" + depends on BR2_PACKAGE_OPENSSL + default y + help + Adds openSSL support to httping + +config BR2_PACKAGE_HTTPING_TFO + bool "TCP Fast Open (TFO) support" + +endif diff --git a/package/httping/httping.mk b/package/httping/httping.mk new file mode 100644 index 0000000..6783b79 --- /dev/null +++ b/package/httping/httping.mk @@ -0,0 +1,39 @@ +############################################################# +# +# httping +# +############################################################# +HTTPING_VERSION = 1.5.6 +HTTPING_SOURCE = httping-$(HTTPING_VERSION).tgz +HTTPING_SITE = http://www.vanheusden.com/httping +HTTPING_LICENSE = GPLv3 +HTTPING_LICENSE_FILES = license.txt + +ifeq ($(BR2_PACKAGE_HTTPING_OPENSSL),y) + HTTPING_DEPENDENCIES = openssl +else + HTTPING_SSL = no +endif + +ifeq ($(BR2_PACKAGE_HTTPING_TFO),y) + HTTPING_TFO = yes +endif + +define HTTPING_BUILD_CMDS + $(MAKE) CC="$(TARGET_CC)" \ + LD="$(TARGET_LD)" \ + STRIP="$(TARGET_STRIP)" \ + SSL=$(HTTPING_SSL) \ + DEBUG=no \ + TFO=$(HTTPING_TFO) -C $(@D) +endef + +define HTTPING_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/httping $(TARGET_DIR)/usr/bin/httping +endef + +define HTTPING_CLEAN_CMDS + $(MAKE) -C $(@D) clean +endef + +$(eval $(generic-package))