From 9a1fba4a4bd22e3446a4dfee4578bd64affe19a9 Mon Sep 17 00:00:00 2001 From: jwise Date: Sun, 15 Apr 2001 02:56:38 +0000 Subject: 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 ). --- www/hiawatha/Makefile | 56 +++++++++++++++++++++++ www/hiawatha/files/hiawatha.cfg | 43 ++++++++++++++++++ www/hiawatha/files/hiawatha.sh | 57 ++++++++++++++++++++++++ www/hiawatha/files/index.xml | 12 +++++ www/hiawatha/files/index.xsl | 47 +++++++++++++++++++ www/hiawatha/files/md5 | 4 ++ www/hiawatha/pkg/DESCR | 3 ++ www/hiawatha/pkg/MESSAGE | 22 +++++++++ www/hiawatha/pkg/PLIST | 99 +++++++++++++++++++++++++++++++++++++++++ 9 files changed, 343 insertions(+) create mode 100644 www/hiawatha/Makefile create mode 100644 www/hiawatha/files/hiawatha.cfg create mode 100644 www/hiawatha/files/hiawatha.sh create mode 100644 www/hiawatha/files/index.xml create mode 100644 www/hiawatha/files/index.xsl create mode 100644 www/hiawatha/files/md5 create mode 100644 www/hiawatha/pkg/DESCR create mode 100644 www/hiawatha/pkg/MESSAGE create mode 100644 www/hiawatha/pkg/PLIST 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 @@ + + + + + 8080 + 10 + true + true + /var/log/hiawatha.log + + @PREFIX@/share/examples/hiawatha/WEBROOT + + $R$/images/$2$.gif + $R$/images/$2$.jpg + $R$/css/$2$.css + + $R$$0$ + + +$R$$1$-plain $R$$1$.xml + + + +$R$$1$/index-plain $R$$1$/index.xml + + + + +$R$$1$ $R$$1$.xml + + + +$R$$1$/index $R$$1$/index.xml + + + + + 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 @@ + + + + + + + +

+ Hiawatha has been successfully installed via the NetBSD package system. +

+ +
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 @@ + + + + + + + + + <xsl:value-of select="@title" /> + + + +


+ + + + + +
+ + + + + + + + + + +
+
+

+
+ +
+ Site Driven by NetBSD! +
+
+ + +
+ + + + + +
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 -- cgit v1.2.3