summaryrefslogtreecommitdiff
path: root/www/hiawatha
diff options
context:
space:
mode:
authorjwise <jwise@pkgsrc.org>2001-04-15 02:56:38 +0000
committerjwise <jwise@pkgsrc.org>2001-04-15 02:56:38 +0000
commit0ba22eed8c48ccc99cd4683a2e3f6f549baf0da7 (patch)
treecf73e7696ddac977b1de22db324f81ee37cda471 /www/hiawatha
parentc1703b3405c9bd97c0025d8cc77f9fb1d7239a98 (diff)
downloadpkgsrc-0ba22eed8c48ccc99cd4683a2e3f6f549baf0da7.tar.gz
Initial import of hiawatha-0.1, a barebones HTTP server with XML/XSLT
support. From pkg/DESCR: Hiawatha is a standalone webserver with build-in support for XML, XSL, XSLScript, HTTP, and CGI (GET and POST). Hiawatha is written in Java and it is Open Source ( and 100% free ).
Diffstat (limited to 'www/hiawatha')
-rw-r--r--www/hiawatha/Makefile56
-rw-r--r--www/hiawatha/files/hiawatha.cfg43
-rw-r--r--www/hiawatha/files/hiawatha.sh57
-rw-r--r--www/hiawatha/files/index.xml12
-rw-r--r--www/hiawatha/files/index.xsl47
-rw-r--r--www/hiawatha/files/md54
-rw-r--r--www/hiawatha/pkg/DESCR3
-rw-r--r--www/hiawatha/pkg/MESSAGE22
-rw-r--r--www/hiawatha/pkg/PLIST99
9 files changed, 343 insertions, 0 deletions
diff --git a/www/hiawatha/Makefile b/www/hiawatha/Makefile
new file mode 100644
index 00000000000..ebad0cbfa19
--- /dev/null
+++ b/www/hiawatha/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/04/15 02:56:38 jwise Exp $
+#
+
+DISTNAME= hiawatha
+PKGNAME= hiawatha-0.1
+NO_WRKSUBDIR=
+CATEGORIES= textproc www
+MASTER_SITES= ${HOMEPAGE} ${MASTER_SITE_BACKUP}
+EXTRACT_SUFX= .zip
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ sitedrivenby.gif
+
+MAINTAINER= jwise@netbsd.org
+HOMEPAGE= http://www.pault.com/pault/downloads/
+COMMENT= Barebones HTTP server with XML and XSLT support (and more)
+
+DEPENDS+= saxon-*:../../textproc/saxon
+
+NO_PATCH=
+NO_CONFIGURE=
+NO_BUILD=
+
+USE_JAVA= yes
+DIST_SUBDIR= ${PKGNAME}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_CMD= unzip -aq ${DOWNLOADED_DISTFILE}
+
+post-extract:
+ ${SED} -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/hiawatha.sh \
+ > ${WRKDIR}/hiawatha.sh
+ ${SED} -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/hiawatha.cfg \
+ > ${WRKDIR}/hiawatha.cfg
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/lib/java/hiawatha
+ ${INSTALL_DATA} ${WRKSRC}/hiawatha.jar ${PREFIX}/lib/java/hiawatha
+ ${INSTALL_DATA} ${WRKSRC}/xsls.jar ${PREFIX}/lib/java/hiawatha
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/hiawatha
+ ${INSTALL_DATA} ${WRKSRC}/simple.cfg \
+ ${PREFIX}/share/examples/hiawatha
+ ${INSTALL_DATA} ${WRKSRC}/SeeAlso/pault_com.cfg \
+ ${PREFIX}/share/examples/hiawatha
+ if [ ! -f ${PREFIX}/etc/hiawatha.cfg ]; \
+ then \
+ ${INSTALL_DATA} ${WRKDIR}/hiawatha.cfg ${PREFIX}/etc \
+ ; fi
+ ${INSTALL_DATA} ${WRKDIR}/hiawatha.cfg ${PREFIX}/share/examples/hiawatha
+ (cd ${WRKSRC} && ${PAX} -s '/^WEBROOT/pault.com/' -rw WEBROOT ${PREFIX}/share/examples/hiawatha)
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/hiawatha/WEBROOT
+ ${INSTALL_DATA} ${FILESDIR}/index.xml ${PREFIX}/share/examples/hiawatha/WEBROOT
+ ${INSTALL_DATA} ${FILESDIR}/index.xsl ${PREFIX}/share/examples/hiawatha/WEBROOT
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/hiawatha/WEBROOT/images
+ ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/examples/hiawatha/WEBROOT/images
+ ${INSTALL_SCRIPT} ${WRKDIR}/hiawatha.sh ${PREFIX}/etc/rc.d/hiawatha
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/hiawatha/files/hiawatha.cfg b/www/hiawatha/files/hiawatha.cfg
new file mode 100644
index 00000000000..389b1069bef
--- /dev/null
+++ b/www/hiawatha/files/hiawatha.cfg
@@ -0,0 +1,43 @@
+<!--
+ Hiawatha Web-Server. 2000 (c) Paul Tchistopolskii.
+ http://www.pault.com
+
+ Simple Hiawatha config. See also pault_com.cfg.
+-->
+
+<config>
+
+<PORT> 8080 </PORT>
+<WORKERS> 10 </WORKERS>
+<RELOAD-CONFIG> true </RELOAD-CONFIG>
+<DEBUG> true </DEBUG>
+<LOG dest="#file"> /var/log/hiawatha.log </LOG>
+
+<CONST name="R"> @PREFIX@/share/examples/hiawatha/WEBROOT </CONST>
+
+<RULE url="*/*.gif" action="#dump" mime="image/gif"> $R$/images/$2$.gif </RULE>
+<RULE url="*/*.jpg" action="#dump" mime="image/jpeg"> $R$/images/$2$.jpg </RULE>
+<RULE url="*/*.css" action="#dump" mime="text/css"> $R$/css/$2$.css </RULE>
+
+<RULE url="*.html" action="#dump" mime="text/html"> $R$$0$ </RULE>
+
+<RULE url="/plain*.xml" action="#xsl" mime="text/html">
+$R$$1$-plain $R$$1$.xml
+</RULE>
+
+<RULE url="/plain*" action="#xsl" mime="text/html">
+$R$$1$/index-plain $R$$1$/index.xml
+</RULE>
+
+
+<RULE url="*.xml*" action="#xsl" param="$2$" mime="text/html">
+$R$$1$ $R$$1$.xml
+</RULE>
+
+<RULE url="*" action="#xsl" mime="text/html">
+$R$$1$/index $R$$1$/index.xml
+</RULE>
+
+<PERM prefix="$R$" access="#allow"/>
+
+</config>
diff --git a/www/hiawatha/files/hiawatha.sh b/www/hiawatha/files/hiawatha.sh
new file mode 100644
index 00000000000..78701bb3f44
--- /dev/null
+++ b/www/hiawatha/files/hiawatha.sh
@@ -0,0 +1,57 @@
+#! /bin/sh
+#
+# $NetBSD: hiawatha.sh,v 1.1.1.1 2001/04/15 02:56:40 jwise Exp $
+#
+# PROVIDE: hiawatha
+# REQUIRE: DAEMON
+
+PREFIX=@PREFIX@
+
+pidfile=/var/run/hiawatha.pid
+
+if [ -z "${JAVA_HOME}" ]
+then
+ JAVA_HOME=${PREFIX}/java
+ export ${JAVA_HOME}
+fi
+
+CLASSPATH=${PREFIX}/lib/java/hiawatha/hiawatha.jar:${PREFIX}/lib/java/hiawatha/xsls.jar:${PREFIX}/lib/java/saxon.jar:${CLASSPATH}
+export CLASSPATH
+
+name="hiawatha"
+command="${JAVA_HOME}/bin/java com.pault.hiawatha.Server ${PREFIX}/etc/hiawatha.cfg"
+
+if [ ! -d /var/spool/hiawatha ]
+then
+ echo "you must create /var/spool/hiawatha and any needed spool directories therein before starting hiawatha"
+ exit 0
+fi
+
+cmd=${1:-start}
+
+case ${cmd} in
+ start)
+ echo "Starting ${name}."
+ cd /var/spool/hiawatha
+ ${command}&
+ echo $! > ${pidfile}
+ ;;
+
+ stop)
+ echo "Stopping ${name}."
+ kill `cat ${pidfile}`
+ rm ${pidfile}
+ ;;
+
+ restart)
+ ( $0 stop )
+ sleep 5
+ $0 start
+ ;;
+
+ *)
+ echo 1>&2 "Usage: $0 [restart|start|stop]"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/www/hiawatha/files/index.xml b/www/hiawatha/files/index.xml
new file mode 100644
index 00000000000..f37f0c6dec1
--- /dev/null
+++ b/www/hiawatha/files/index.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<?cocoon-process type="xslt"?>
+
+<!-- $NetBSD: index.xml,v 1.1.1.1 2001/04/15 02:56:40 jwise Exp $ -->
+
+<page title="It Worked!">
+
+<p>
+ Hiawatha has been successfully installed via the NetBSD package system.
+</p>
+
+</page>
diff --git a/www/hiawatha/files/index.xsl b/www/hiawatha/files/index.xsl
new file mode 100644
index 00000000000..d2791cec62d
--- /dev/null
+++ b/www/hiawatha/files/index.xsl
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+
+<!-- $NetBSD: index.xsl,v 1.1.1.1 2001/04/15 02:56:38 jwise Exp $ -->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:template match="page">
+<html>
+ <head>
+ <title><xsl:value-of select="@title" /></title>
+ </head>
+ <body bgcolor="#ADCFD4">
+
+ <p><br /></p>
+
+ <table border="0" width="60%" bgcolor="#000000" cellspacing="0" cellpadding="0" align="center">
+ <tr>
+ <td width="80%">
+ <table border="0" width="100%" cellpadding="4">
+ <tr>
+ <td width="80%" bgcolor="#c0c0c0" align="right">
+ <br />
+ <h1><big><xsl:value-of select="@title" /></big></h1>
+ </td>
+ </tr>
+ <tr>
+ <td width="100%" bgcolor="#ffffff" align="left">
+ <xsl:apply-templates/>
+ </td>
+ </tr>
+ <tr>
+ <td width="100%" bgcolor="#ffffff" align="left">
+ <img align="right" src="sitedrivenby.gif" alt="Site Driven by NetBSD!" />
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
+</xsl:template>
+
+<xsl:template match="pre|b|i|p|a|ul|li|img|dl|dt|dd">
+ <xsl:copy-of select="."/>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/www/hiawatha/files/md5 b/www/hiawatha/files/md5
new file mode 100644
index 00000000000..8468a1c544e
--- /dev/null
+++ b/www/hiawatha/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 2001/04/15 02:56:38 jwise Exp $
+
+SHA1 (hiawatha-0.1/hiawatha.zip) = 2a34f6b15c6840615eff70fba60da8f46b08671f
+SHA1 (hiawatha-0.1/sitedrivenby.gif) = 7671e9a8ec2cad3961b268befd33c0920e07c658
diff --git a/www/hiawatha/pkg/DESCR b/www/hiawatha/pkg/DESCR
new file mode 100644
index 00000000000..b940f33c0c8
--- /dev/null
+++ b/www/hiawatha/pkg/DESCR
@@ -0,0 +1,3 @@
+Hiawatha is a standalone webserver with build-in support for XML,
+XSL, XSLScript, HTTP, and CGI (GET and POST). Hiawatha is written
+in Java and it is Open Source ( and 100% free ).
diff --git a/www/hiawatha/pkg/MESSAGE b/www/hiawatha/pkg/MESSAGE
new file mode 100644
index 00000000000..cdae7910599
--- /dev/null
+++ b/www/hiawatha/pkg/MESSAGE
@@ -0,0 +1,22 @@
+===========================================================
+
+ Hiawatha has now been successfully installed.
+
+ In order to use Hiawatha, you will need to create spool
+ directories, named
+
+ /var/spool/hiawatha/SPOOL${PORT}
+
+ for each TCP port on which hiawatha will be listening --
+ for example
+
+ /var/spool/hiawatha/SPOOL8080
+
+ for the example hiawatha.cfg distributed with this
+ package.
+
+ You can start hiawatha by running
+
+ ${PREFIX}/etc/rc.d/hiawatha start
+
+===========================================================
diff --git a/www/hiawatha/pkg/PLIST b/www/hiawatha/pkg/PLIST
new file mode 100644
index 00000000000..fbcad81d643
--- /dev/null
+++ b/www/hiawatha/pkg/PLIST
@@ -0,0 +1,99 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/15 02:56:41 jwise Exp $
+lib/java/hiawatha/hiawatha.jar
+lib/java/hiawatha/xsls.jar
+etc/rc.d/hiawatha
+share/examples/hiawatha/simple.cfg
+share/examples/hiawatha/pault_com.cfg
+share/examples/hiawatha/hiawatha.cfg
+share/examples/hiawatha/pault.com/css/home-page.css
+share/examples/hiawatha/pault.com/css/resume.css
+share/examples/hiawatha/pault.com/css/xslscript.css
+share/examples/hiawatha/pault.com/images/connector.gif
+share/examples/hiawatha/pault.com/images/dtdgen1.gif
+share/examples/hiawatha/pault.com/images/dtdgen2.gif
+share/examples/hiawatha/pault.com/images/fish.gif
+share/examples/hiawatha/pault.com/images/hiawatha.gif
+share/examples/hiawatha/pault.com/images/hiawatha.jpeg
+share/examples/hiawatha/pault.com/images/kay.gif
+share/examples/hiawatha/pault.com/images/pagebg.gif
+share/examples/hiawatha/pault.com/images/paultlogo.gif
+share/examples/hiawatha/pault.com/images/pxsl.gif
+share/examples/hiawatha/pault.com/images/resume.jpg
+share/examples/hiawatha/pault.com/images/some2xml.gif
+share/examples/hiawatha/pault.com/images/ux.gif
+share/examples/hiawatha/pault.com/images/w3cval.gif
+share/examples/hiawatha/pault.com/index-plain.xsls
+share/examples/hiawatha/pault.com/index.xml
+share/examples/hiawatha/pault.com/index.xsls
+share/examples/hiawatha/pault.com/prod/Hiawatha/index-plain.xsls
+share/examples/hiawatha/pault.com/prod/Hiawatha/index.xml
+share/examples/hiawatha/pault.com/prod/Hiawatha/index.xsls
+share/examples/hiawatha/pault.com/prod/Hiawatha/common.xsls
+share/examples/hiawatha/pault.com/prod/Ux/index-plain.xsls
+share/examples/hiawatha/pault.com/prod/Ux/index.xml
+share/examples/hiawatha/pault.com/prod/Ux/index.xsls
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/aliases.xml
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/commands.xml
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/concepts.xml
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/history.xml
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/index.xml
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/index.xsls
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/kernel.xml
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/links.xsls
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/master.xsl
+share/examples/hiawatha/pault.com/prod/Ux/uxdoc/ux-beans.xml
+share/examples/hiawatha/pault.com/prod/XSLScript/common.xsls
+share/examples/hiawatha/pault.com/prod/XSLScript/index-plain.xsls
+share/examples/hiawatha/pault.com/prod/XSLScript/index.xml
+share/examples/hiawatha/pault.com/prod/XSLScript/index.xsls
+share/examples/hiawatha/pault.com/resume-plain.xsls
+share/examples/hiawatha/pault.com/resume.xml
+share/examples/hiawatha/pault.com/resume.xsls
+share/examples/hiawatha/pault.com/unsup/Phttpd/index-plain.xsls
+share/examples/hiawatha/pault.com/unsup/Phttpd/index.xml
+share/examples/hiawatha/pault.com/unsup/Phttpd/index.xsls
+share/examples/hiawatha/pault.com/unsup/PJC/index-plain.xsls
+share/examples/hiawatha/pault.com/unsup/PJC/index.xml
+share/examples/hiawatha/pault.com/unsup/PJC/index.xsls
+share/examples/hiawatha/pault.com/unsup/Pxsl/index-plain.xsls
+share/examples/hiawatha/pault.com/unsup/Pxsl/index.xml
+share/examples/hiawatha/pault.com/unsup/Pxsl/index.xsls
+share/examples/hiawatha/pault.com/unsup/Some2XML/index-plain.xsls
+share/examples/hiawatha/pault.com/unsup/Some2XML/index.xml
+share/examples/hiawatha/pault.com/unsup/Some2XML/index.xsls
+share/examples/hiawatha/pault.com/xsl-bin/cat.xsls
+share/examples/hiawatha/pault.com/xsl-include/dbg.xsls
+share/examples/hiawatha/pault.com/xsl-include/font.xsls
+share/examples/hiawatha/pault.com/xsl-include/htmlpage.xsls
+share/examples/hiawatha/pault.com/xsl-include/link.xsls
+share/examples/hiawatha/pault.com/xsl-include/page-data.xsls
+share/examples/hiawatha/pault.com/xsl-include/page-footer.xsls
+share/examples/hiawatha/pault.com/xsl-include/page-logo.xsls
+share/examples/hiawatha/pault.com/xsl-include/page-menu.xsls
+share/examples/hiawatha/pault.com/xsl-include/page.xsls
+share/examples/hiawatha/pault.com/xsl-include/plain-htmlpage.xsls
+share/examples/hiawatha/pault.com/xsl-include/render-product.xsl
+share/examples/hiawatha/pault.com/xsl-include/table.xsls
+share/examples/hiawatha/pault.com/xsl-include/widget.xsls
+share/examples/hiawatha/WEBROOT/index.xml
+share/examples/hiawatha/WEBROOT/index.xsl
+share/examples/hiawatha/WEBROOT/images/sitedrivenby.gif
+@dirrm share/examples/hiawatha/pault.com/xsl-include
+@dirrm share/examples/hiawatha/pault.com/xsl-bin
+@dirrm share/examples/hiawatha/pault.com/unsup/Some2XML
+@dirrm share/examples/hiawatha/pault.com/unsup/Pxsl
+@dirrm share/examples/hiawatha/pault.com/unsup/Phttpd
+@dirrm share/examples/hiawatha/pault.com/unsup/PJC
+@dirrm share/examples/hiawatha/pault.com/unsup
+@dirrm share/examples/hiawatha/pault.com/prod/XSLScript
+@dirrm share/examples/hiawatha/pault.com/prod/Ux/uxdoc
+@dirrm share/examples/hiawatha/pault.com/prod/Ux
+@dirrm share/examples/hiawatha/pault.com/prod/Hiawatha
+@dirrm share/examples/hiawatha/pault.com/prod
+@dirrm share/examples/hiawatha/pault.com/images
+@dirrm share/examples/hiawatha/pault.com/css
+@dirrm share/examples/hiawatha/pault.com
+@dirrm share/examples/hiawatha/WEBROOT/images
+@dirrm share/examples/hiawatha/WEBROOT
+@dirrm share/examples/hiawatha
+@dirrm lib/java/hiawatha