summaryrefslogtreecommitdiff
path: root/www/neowebscript/files/patch-neoscript
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2001-10-28 08:37:27 +0000
committerMikhail Teterin <mi@FreeBSD.org>2001-10-28 08:37:27 +0000
commit40df45352156d24ae7ab2105eaf4b894900455f0 (patch)
tree5f9afb850e66875f994e795c1cb436bef20eb4b3 /www/neowebscript/files/patch-neoscript
parentPrevent build from breaking when the user has incompatible version of (diff)
NeoWebScript[tm] is a module for the Apache webserver that allows you to
embed the Tcl/Tk programming language in your webpages as a scripting tool. It was invented by Karl Lehenbauer, NeoSoft's Chief Technical Officer, and documented, enhanced and extended by NeoSoft's programmers and technical writers. WWW: http://www.sourceforge.net/projects/nws/ The changes: . don't build the Apache, TclX, gd, db, neo-tcl bundled in the tarball, but use those that are installed by their ports . don't generate GIFs -- use PNGs . look in /var/log for Apache's log file . use /var/db/neowebscript for caches and per-user databases . expose some configuration knobs into the neowebscript.conf -- there should be no need to edit init.tcl itself anymore All of the bundled demos work, except for the gd-based banner generator. The demo code uses Gdtclft commands that don't exist in the modern Gdtclft.
Notes
Notes: svn path=/head/; revision=49283
Diffstat (limited to 'www/neowebscript/files/patch-neoscript')
-rw-r--r--www/neowebscript/files/patch-neoscript54
1 files changed, 54 insertions, 0 deletions
diff --git a/www/neowebscript/files/patch-neoscript b/www/neowebscript/files/patch-neoscript
new file mode 100644
index 000000000000..ceca90785f39
--- /dev/null
+++ b/www/neowebscript/files/patch-neoscript
@@ -0,0 +1,54 @@
+--- mod_neoscript.c Fri Jul 21 19:49:29 2000
++++ mod_neoscript.c Fri Aug 17 11:41:58 2001
+@@ -68,1 +68,1 @@
+-#include <db.h>
++#include <db2/db.h>
+@@ -72,3 +72,5 @@
+ #include "tcl.h"
+-#include "tclExtend.h"
++#ifdef STATIC_TCLX
++# include "tclExtend.h"
++#endif
+
+@@ -862,2 +864,3 @@
+
++#ifdef STATIC_TCLX
+ /* Extended Tcl */
+@@ -871,2 +874,3 @@
+ /* Tclx does its own call to Tcl_StaticPackage */
++#endif
+
+@@ -908,6 +908,6 @@
+ #endif
+
+-#ifdef GDTCL
+- /* GIF generation*/
++#ifdef STATIC_GDTCL
++ /* Image generation */
+ if (Gd_Init(interp) == TCL_ERROR) {
+ fprintf(stderr,
+@@ -916,2 +920,3 @@
+
++#ifdef STATIC_NEO
+ /* NeoSoft Extensions */
+@@ -924,2 +929,3 @@
+ Tcl_StaticPackage(interp, "Neo", Neo_Init, NULL);
++#endif
+
+@@ -956 +956 @@
+- ap_server_root_relative(p, "neowebscript/init.tcl"), (char *)NULL)
++ ap_server_root_relative(p, "share/neowebscript/init.tcl"), (char *)NULL)
+@@ -1687,2 +1687,3 @@
+- srand((int)(getpid() * 17 + time((long *) 0)));
+- for (whichLine = rand() % nLines; whichLine-- >= 0; ) {
++ /* Use BSD's random(4) device and the random(3) functions */
++ srandomdev();
++ for (whichLine = random() % nLines; whichLine-- >= 0; ) {
+@@ -2164 +2165,6 @@
+- if (!(ap_allow_options(r) & OPT_INCLUDES)) return DECLINED;
++ if (!(ap_allow_options(r) & OPT_INCLUDES)) {
++ ap_log_rerror(APLOG_MARK, APLOG_ERR, r, "Apache configuration "
++ "does not allow SSI parsing for ``%s''",
++ r->filename, mode);
++ return DECLINED;
++ }