From 0ab297721d6110462f1394d98313d7137c28b1c4 Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Mon, 31 Dec 2007 10:00:01 +0000 Subject: * haserl: added; patch by Tom St git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7673 33e552b5-05e3-0310-8538-816dae2090ed --- rules/haserl.in | 7 +++ rules/haserl.make | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++ rules/networking.in | 1 + rules/sysfsutils.make | 2 +- 4 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 rules/haserl.in create mode 100644 rules/haserl.make (limited to 'rules') diff --git a/rules/haserl.in b/rules/haserl.in new file mode 100644 index 000000000..83e8fabe8 --- /dev/null +++ b/rules/haserl.in @@ -0,0 +1,7 @@ +config HASERL + bool "HASERL" + 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. + diff --git a/rules/haserl.make b/rules/haserl.make new file mode 100644 index 000000000..193304041 --- /dev/null +++ b/rules/haserl.make @@ -0,0 +1,130 @@ +# -*-makefile-*- +# +# Copyright (C) 2007 by University of Illinois +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_HASERL) += haserl + +# +# Paths and names +# +HASERL_VERSION := 0.9.21 +HASERL := haserl-$(HASERL_VERSION) +HASERL_SUFFIX := tar.gz +HASERL_URL := $(PTXCONF_SETUP_SFMIRROR)/haserl/$(HASERL).$(HASERL_SUFFIX) +HASERL_SOURCE := $(SRCDIR)/$(HASERL).$(HASERL_SUFFIX) +HASERL_DIR := $(BUILDDIR)/$(HASERL) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +haserl_get: $(STATEDIR)/haserl.get + +$(STATEDIR)/haserl.get: $(haserl_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(HASERL_SOURCE): + @$(call targetinfo, $@) + @$(call get, HASERL) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +haserl_extract: $(STATEDIR)/haserl.extract + +$(STATEDIR)/haserl.extract: $(haserl_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(HASERL_DIR)) + @$(call extract, HASERL) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +haserl_prepare: $(STATEDIR)/haserl.prepare + +HASERL_PATH := PATH=$(CROSS_PATH) +HASERL_ENV := $(CROSS_ENV) + +# +# autoconf +# +HASERL_AUTOCONF = $(CROSS_AUTOCONF_USR) + +$(STATEDIR)/haserl.prepare: $(haserl_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(HASERL_DIR)/config.cache) + cd $(HASERL_DIR) && \ + $(HASERL_PATH) $(HASERL_ENV) \ + ./configure $(HASERL_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +haserl_compile: $(STATEDIR)/haserl.compile + +$(STATEDIR)/haserl.compile: $(haserl_compile_deps_default) + @$(call targetinfo, $@) + cd $(HASERL_DIR) && $(HASERL_PATH) make + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +haserl_install: $(STATEDIR)/haserl.install + +$(STATEDIR)/haserl.install: $(haserl_install_deps_default) + @$(call targetinfo, $@) + @$(call install, HASERL) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +haserl_targetinstall: $(STATEDIR)/haserl.targetinstall + +$(STATEDIR)/haserl.targetinstall: $(haserl_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, haserl) + @$(call install_fixup,haserl,PACKAGE,haserl) + @$(call install_fixup,haserl,PRIORITY,optional) + @$(call install_fixup,haserl,VERSION,$(HASERL_VERSION)) + @$(call install_fixup,haserl,SECTION,base) + @$(call install_fixup,haserl,AUTHOR,"N. Angelacos; PTXDist rule: Tom St") + @$(call install_fixup,haserl,DEPENDS,) + @$(call install_fixup,haserl,DESCRIPTION,missing) + + @$(call install_copy, haserl, 0, 0, 0755, $(HASERL_DIR)/src/haserl, /usr/bin/haserl) + + @$(call install_finish,haserl) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +haserl_clean: + rm -rf $(STATEDIR)/haserl.* + rm -rf $(IMAGEDIR)/haserl_* + rm -rf $(HASERL_DIR) + +# vim: syntax=make + diff --git a/rules/networking.in b/rules/networking.in index fa41235f1..fd630e976 100644 --- a/rules/networking.in +++ b/rules/networking.in @@ -30,6 +30,7 @@ source "rules/etherwake.in" source "rules/ethtool.in" source "rules/eventlog.in" source "rules/fcgi.in" +source "rules/haserl.in" source "rules/iproute2.in" source "rules/ifplugd.in" source "rules/inetutils.in" diff --git a/rules/sysfsutils.make b/rules/sysfsutils.make index 01dba9684..119836624 100644 --- a/rules/sysfsutils.make +++ b/rules/sysfsutils.make @@ -2,7 +2,7 @@ # $Id: template 1681 2004-09-01 18:12:49Z $ # # Copyright (C) 2004 by Robert Schwebel -# +# # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions -- cgit v1.2.3