summaryrefslogtreecommitdiff
path: root/package/haserl
diff options
context:
space:
mode:
Diffstat (limited to 'package/haserl')
-rw-r--r--package/haserl/Config.in9
-rw-r--r--package/haserl/Makefile27
-rw-r--r--package/haserl/ipkg/haserl.control4
-rw-r--r--package/haserl/patches/patch-src_haserl_c12
4 files changed, 52 insertions, 0 deletions
diff --git a/package/haserl/Config.in b/package/haserl/Config.in
new file mode 100644
index 000000000..bab5680c9
--- /dev/null
+++ b/package/haserl/Config.in
@@ -0,0 +1,9 @@
+config ADK_PACKAGE_HASERL
+ prompt "haserl............................ A CGI wrapper to embed shell scripts in HTML documents"
+ tristate
+ default n
+ help
+ A CGI wrapper to embed shell scripts in HTML documents.
+
+ http://haserl.sourceforge.net/
+
diff --git a/package/haserl/Makefile b/package/haserl/Makefile
new file mode 100644
index 000000000..f1ed01580
--- /dev/null
+++ b/package/haserl/Makefile
@@ -0,0 +1,27 @@
+# $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:= haserl
+PKG_VERSION:= 0.8.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= bd9195d086566f56634c0bcbbbcbebea
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=haserl/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,HASERL,haserl,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+TCFLAGS+= -DMAX_UPLOAD_KB=8192
+CONFIGURE_STYLE= gnu
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_HASERL}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/haserl ${IDIR_HASERL}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/haserl/ipkg/haserl.control b/package/haserl/ipkg/haserl.control
new file mode 100644
index 000000000..0243b6d75
--- /dev/null
+++ b/package/haserl/ipkg/haserl.control
@@ -0,0 +1,4 @@
+Package: haserl
+Priority: optional
+Section: web
+Description: a CGI wrapper to embed shell scripts in HTML documents
diff --git a/package/haserl/patches/patch-src_haserl_c b/package/haserl/patches/patch-src_haserl_c
new file mode 100644
index 000000000..208f9073b
--- /dev/null
+++ b/package/haserl/patches/patch-src_haserl_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- haserl-0.8.0.orig/src/haserl.c 2004-11-10 18:59:35.000000000 +0100
++++ haserl-0.8.0/src/haserl.c 2008-10-09 14:21:28.000000000 +0200
+@@ -131,7 +131,7 @@ int myputenv (char *newbuf, char *prefix
+ if (strlen(prefix)) { memcpy (entry, prefix, strlen(prefix)); }
+ memcpy ((char *) (entry + strlen(prefix)), newbuf, strlen(newbuf));
+
+- keylen = (size_t) (index (entry, '=') - entry);
++ keylen = (size_t) (strchr (entry, '=') - entry);
+
+ if ( keylen <= 0 ) {
+ free (entry);