summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-04-10 23:34:06 +0000
committerEric Andersen <andersen@codepoet.org>2006-04-10 23:34:06 +0000
commit126a92177de97294321b989557460df151584dbc (patch)
tree1ec54511eefb80a88156a46242f565c37d9201ca /package
parent9dd69ffbfd8a99c066d84cda4f113fe1c37f3978 (diff)
0000755: New package: haserl: patch from jacmet
This little patch adds a target for haserl to buildroot. Haserl - Html And Shell Embedded Report Language
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/haserl/Config.in9
-rw-r--r--package/haserl/haserl.mk58
3 files changed, 68 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 994248e54..feade4230 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -50,6 +50,7 @@ source "package/file/Config.in"
source "package/freetype/Config.in"
source "package/gettext/Config.in"
source "package/gzip/Config.in"
+source "package/haserl/Config.in"
source "package/hostap/Config.in"
source "package/hotplug/Config.in"
source "package/iostat/Config.in"
diff --git a/package/haserl/Config.in b/package/haserl/Config.in
new file mode 100644
index 000000000..54fe856f0
--- /dev/null
+++ b/package/haserl/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HASERL
+ bool "haserl"
+ default n
+ help
+ Haserl is a small cgi wrapper that enables shell scripts to be
+ embedded into html documents. It is intended for environments
+ where something like PHP is too big.
+
+ http://haserl.sourceforge.net/
diff --git a/package/haserl/haserl.mk b/package/haserl/haserl.mk
new file mode 100644
index 000000000..1e948aa7c
--- /dev/null
+++ b/package/haserl/haserl.mk
@@ -0,0 +1,58 @@
+#############################################################
+#
+# haserl
+#
+#############################################################
+
+HASERL_VERSION=0.8.0
+HASERL_SOURCE=haserl-$(HASERL_VERSION).tar.gz
+HASERL_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/haserl/
+HASERL_DIR=$(BUILD_DIR)/${shell basename $(HASERL_SOURCE) .tar.gz}
+HASERL_WORKDIR=$(BUILD_DIR)/haserl-$(HASERL_VERSION)
+HASERL_CAT:=zcat
+
+$(DL_DIR)/$(HASERL_SOURCE):
+ $(WGET) -P $(DL_DIR) $(HASERL_SITE)/$(HASERL_SOURCE)
+
+$(HASERL_DIR)/.unpacked: $(DL_DIR)/$(HASERL_SOURCE)
+ $(HASERL_CAT) $(DL_DIR)/$(HASERL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(HASERL_DIR)/.unpacked
+
+$(HASERL_DIR)/.configured: $(HASERL_DIR)/.unpacked
+ (cd $(HASERL_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ );
+ touch $(HASERL_DIR)/.configured
+
+$(HASERL_WORKDIR)/src/haserl: $(HASERL_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(HASERL_WORKDIR)
+
+$(HASERL_WORKDIR)/.installed: $(HASERL_WORKDIR)/src/haserl
+ cp $(HASERL_WORKDIR)/src/haserl $(TARGET_DIR)/usr/bin
+ touch $(HASERL_WORKDIR)/.installed
+
+haserl: uclibc $(HASERL_WORKDIR)/.installed
+
+haserl-source: $(DL_DIR)/$(HASERL_SOURCE)
+
+haserl-clean:
+ @if [ -d $(HASERL_WORKDIR)/Makefile ] ; then \
+ $(MAKE) -C $(HASERL_WORKDIR) clean ; \
+ fi;
+
+haserl-dirclean:
+ rm -rf $(HASERL_DIR) $(HASERL_WORKDIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_HASERL)),y)
+TARGETS+=haserl
+endif