summaryrefslogtreecommitdiff
path: root/package/httping
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/httping
Initial import
Diffstat (limited to 'package/httping')
-rw-r--r--package/httping/Config.in21
-rw-r--r--package/httping/Makefile34
-rw-r--r--package/httping/ipkg/httping.control4
-rw-r--r--package/httping/patches/patch-Makefile14
-rw-r--r--package/httping/patches/patch-io_c12
5 files changed, 85 insertions, 0 deletions
diff --git a/package/httping/Config.in b/package/httping/Config.in
new file mode 100644
index 000000000..10c77aea7
--- /dev/null
+++ b/package/httping/Config.in
@@ -0,0 +1,21 @@
+#menu "httping........................... Httping is like 'ping' but for http-requests."
+
+config ADK_PACKAGE_HTTPING
+ prompt "httping........................... Httping is like 'ping' but for http-requests."
+ tristate
+ default n
+ 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!
+
+ http://www.vanheusden.com/httping/
+
+config ADK_PACKAGE_HTTPING_WITH_SSL
+ prompt " Enable SSL support"
+ bool
+ default y
+ depends ADK_PACKAGE_HTTPING
+
+#endmenu
diff --git a/package/httping/Makefile b/package/httping/Makefile
new file mode 100644
index 000000000..4a1f76c1b
--- /dev/null
+++ b/package/httping/Makefile
@@ -0,0 +1,34 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= httping
+PKG_VERSION:= 1.2.3
+PKG_RELEASE:= 1
+PKG_MD5SUM:= b257586da8acec18185c134ed86d2fdd
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
+MASTER_SITES:= http://www.vanheusden.com/httping/
+
+PKG_DEPEND=libopenssl
+ifneq (${ADK_PACKAGE_HTTPING_WITH_SSL},y)
+SSL_ENABLE:=".nossl"
+PKG_DEPEND:=""
+endif
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,HTTPING,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+do-build:
+ ${MAKE} -C ${WRKBUILD} -f ${WRKBUILD}/Makefile${SSL_ENABLE} \
+ CC="${TARGET_CC}" STAGING_DIR=${STAGING_DIR}
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_HTTPING}/usr/sbin
+ echo "Depends: ${PKG_DEPEND}" >> ${IDIR_HTTPING}/CONTROL/control
+ ${CP} ${WRKBUILD}/${PKG_NAME} ${IDIR_HTTPING}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/httping/ipkg/httping.control b/package/httping/ipkg/httping.control
new file mode 100644
index 000000000..5ab31d962
--- /dev/null
+++ b/package/httping/ipkg/httping.control
@@ -0,0 +1,4 @@
+Package: httping
+Section: net
+Priority: optional
+Description: Httping is like 'ping' but for http-requests.
diff --git a/package/httping/patches/patch-Makefile b/package/httping/patches/patch-Makefile
new file mode 100644
index 000000000..89099b868
--- /dev/null
+++ b/package/httping/patches/patch-Makefile
@@ -0,0 +1,14 @@
+$Id$
+--- httping-1.2.3.orig/Makefile 2007-05-01 14:05:43.000000000 +0000
++++ httping-1.2.3/Makefile 2007-06-20 14:19:59.000000000 +0000
+@@ -15,8 +15,8 @@
+ include version
+
+ DEBUG=-g # -D_DEBUG
+-LDFLAGS+=-lssl -lcrypto $(DEBUG)
+-CFLAGS+=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
++LDFLAGS+=-lssl -lcrypto $(DEBUG) -L$(STAGING_DIR)/usr/lib
++CFLAGS+=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -I$(STAGING_DIR)/usr/include
+
+ OBJS=mem.o http.o io.o str.o error.o utils.o main.o tcp.o mssl.o res.o
+
diff --git a/package/httping/patches/patch-io_c b/package/httping/patches/patch-io_c
new file mode 100644
index 000000000..b1ac1166b
--- /dev/null
+++ b/package/httping/patches/patch-io_c
@@ -0,0 +1,12 @@
+$Id$
+--- httping-1.2.3.orig/io.c 2007-05-01 14:05:43.000000000 +0000
++++ httping-1.2.3/io.c 2007-06-20 14:19:11.000000000 +0000
+@@ -37,7 +37,7 @@ ssize_t myread(int fd, char *whereto, si
+ struct timeval to;
+ fd_set rfds;
+
+- FD_ZERO(&rfds);
++ //FD_ZERO(&rfds);
+ FD_SET(fd, &rfds);
+
+ to.tv_sec = timeout / 1000;