aboutsummaryrefslogtreecommitdiff
path: root/www/xitami/files
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-08-09 00:28:23 +0000
committerSteve Price <steve@FreeBSD.org>1998-08-09 00:28:23 +0000
commit9141fabc31da050f21e33eb503d5bc53dc4ad3a3 (patch)
tree94f51d5b4e587ba9353bfe2fba5106d23a332dfc /www/xitami/files
parent844b59b3c79470ebf77d3ca078557bf79ec462ac (diff)
downloadports-9141fabc31da050f21e33eb503d5bc53dc4ad3a3.tar.gz
ports-9141fabc31da050f21e33eb503d5bc53dc4ad3a3.zip
Notes
Diffstat (limited to 'www/xitami/files')
-rw-r--r--www/xitami/files/default.html14
-rw-r--r--www/xitami/files/defaults.cfg.tmpl7
-rw-r--r--www/xitami/files/patch-aa48
-rw-r--r--www/xitami/files/patch-ab21
-rw-r--r--www/xitami/files/patch-ac40
-rw-r--r--www/xitami/files/xitami.aut9
-rw-r--r--www/xitami/files/xitami.sh.tmpl27
7 files changed, 166 insertions, 0 deletions
diff --git a/www/xitami/files/default.html b/www/xitami/files/default.html
new file mode 100644
index 000000000000..d942a189101a
--- /dev/null
+++ b/www/xitami/files/default.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+
+<HTML>
+
+<HEAD>
+<TITLE>Redirecting to Xitami documentation...</TITLE>
+<META HTTP-EQUIV="REFRESH" CONTENT="0; URL= /xitami/index.htm">
+</HEAD>
+
+<BODY BACKGROUND="" BGCOLOR="#ffffff" TEXT="#000000" LINK="#0000ff" VLINK="#800080" ALINK="#ff0000">
+
+</BODY>
+
+</HTML>
diff --git a/www/xitami/files/defaults.cfg.tmpl b/www/xitami/files/defaults.cfg.tmpl
new file mode 100644
index 000000000000..da7ed9c13c48
--- /dev/null
+++ b/www/xitami/files/defaults.cfg.tmpl
@@ -0,0 +1,7 @@
+#*END
+
+[Alias]
+ Xitami=PREFIX/share/doc/xitami/html
+
+[Ftp]
+ Enabled=0
diff --git a/www/xitami/files/patch-aa b/www/xitami/files/patch-aa
new file mode 100644
index 000000000000..ce02c16fb6e2
--- /dev/null
+++ b/www/xitami/files/patch-aa
@@ -0,0 +1,48 @@
+--- xibuild.orig Sat Aug 8 15:42:27 1998
++++ xibuild Sat Aug 8 15:44:23 1998
+@@ -8,7 +8,6 @@
+ # This script builds the SFL and SMT packages, then installs XITAMI ready
+ # for use. XITAMI is installed in the current directory.
+
+-TOPDIR=$PWD
+ SRCDIR=$TOPDIR/src
+ SFLDIR=$TOPDIR/src/sfl
+ SMTDIR=$TOPDIR/src/smt
+@@ -52,18 +51,13 @@
+ echo "--------------------------------------------------------------------"
+ echo "Welcome to the Xitami web server, copyright (c) 1991-97 iMatix."
+ echo "This script will compile and link XITAMI, ready for use on this"
+-echo "$SYSTEM system. Please confirm this information:"
++echo "$SYSTEM system."
+ echo " System . . . . . .: $SYSTEM"
+ echo " ANSI C compiler. .: $COMPILE"
+ echo ""
+-echo "If the ANSI C compile command is wrong, you will have to modify the"
+-echo "'c' scripts in these directories:"
+-echo " $SFLDIR"
+-echo " $SMTDIR"
+-echo ""
+-echo "If this information looks okay, press [Enter] to start installation."
++echo " SFL Source Path...: $SFLDIR"
++echo " SMT Source Path...: $SMTDIR"
+ echo "--------------------------------------------------------------------"
+-read pause
+
+ # Now, rebuild the SFL package
+
+@@ -103,14 +97,4 @@
+ fi
+ cd $TOPDIR
+
+-# Install XITAMI in its own directory
+-echo xibuild: Installing XITAMI files...
+-test ! -d $CGIBIN && mkdir $CGIBIN
+-cp $SMTDIR/xitami .
+-cp $CGISRC/testcgi $CGIBIN
+-cp $CGISRC/testcgi? $CGIBIN
+-
+-echo xibuild completed. Please see 'readme' file for info on using
+-echo Xitami. The Xitami web pages are the main source of information.
+-echo You can run Xitami now by typing 'xitami' or 'xitami -b 5000'.
+-echo browser and the URL http://hostname or http://hostname:5080.
++echo xibuild completed.
diff --git a/www/xitami/files/patch-ab b/www/xitami/files/patch-ab
new file mode 100644
index 000000000000..ce40b9891bb6
--- /dev/null
+++ b/www/xitami/files/patch-ab
@@ -0,0 +1,21 @@
+--- src/smt/xitami.c.orig Sat Aug 8 15:48:29 1998
++++ src/smt/xitami.c Sat Aug 8 15:50:15 1998
+@@ -163,13 +163,17 @@
+ fclose (stdout); /* Kill standard output */
+ fclose (stderr); /* and standard error */
+ }
+- else
++ else if (*background == '0')
++ {
+ puts (COPYRIGHT);
++ }
+
+ if (*background == '1')
+ {
+ puts ("Moving into the background");
+ process_server (NULL, NULL); /* Put process into background */
++ if (process_server (NULL, "/var/run/xitami.pid") != 0)
++ exit (EXIT_FAILURE);
+ }
+ /* Initialise SMT and run the HTTP agent until it has finished */
+ server_name = "Xitami";
diff --git a/www/xitami/files/patch-ac b/www/xitami/files/patch-ac
new file mode 100644
index 000000000000..2714f4680105
--- /dev/null
+++ b/www/xitami/files/patch-ac
@@ -0,0 +1,40 @@
+--- src/sfl/sflproc.c.orig Tue Sep 30 02:52:30 1997
++++ src/sfl/sflproc.c Sun Oct 12 18:39:01 1997
+@@ -1021,8 +1021,6 @@
+ file_handle;
+ char
+ pid_buffer [10];
+- struct flock
+- lock_file; /* flock() argument block */
+
+ /* We recreate our process as a child of init. The process continues */
+ /* to exit in the background. UNIX calls wait() for all children of */
+@@ -1065,17 +1063,21 @@
+
+ if (lockfile && strused (lockfile))
+ {
+- file_handle = open (lockfile, O_RDWR | O_CREAT, 0640);
+- if (file_handle < 0)
++ if ((file_handle = (open (lockfile, O_RDONLY | O_CREAT, 0640))) == -1)
+ return (-1); /* We could not open lock file */
+- else
++ if (flock(file_handle, LOCK_EX | LOCK_NB) == -1 && errno == EWOULDBLOCK)
+ {
+- lock_file.l_type = F_WRLCK;
+- if (fcntl (file_handle, F_SETLK, &lock_file))
+- return (-1); /* We could not obtain a lock */
++ close (file_handle);
++ return (-1); /* The file is already locked */
+ }
++ close (file_handle);
++
++ if ((file_handle = (open (lockfile, O_RDWR | O_TRUNC, 0640))) == -1)
++ return (-1); /* We could not open lock file */
++ if (flock(file_handle, LOCK_EX | LOCK_NB) == -1)
++ return (-1); /* We could not obtain a lock */
+ /* We record the server's process id in the lock file */
+- sprintf (pid_buffer, "%6d\n", getpid ());
++ sprintf (pid_buffer, "%ld\n", (long)getpid ());
+ write (file_handle, pid_buffer, strlen (pid_buffer));
+ }
+
diff --git a/www/xitami/files/xitami.aut b/www/xitami/files/xitami.aut
new file mode 100644
index 000000000000..b421d43c160d
--- /dev/null
+++ b/www/xitami/files/xitami.aut
@@ -0,0 +1,9 @@
+# Authorization file for XITAMI
+# Each [Entry] defines a protected subdirectory
+# The directory name is followed by user=password pairs
+#
+# A sample entry to control access to the admin pages
+# follows. CHANGE IT AS SOON AS POSSIBLE!
+#
+[admin]
+admin=letmein
diff --git a/www/xitami/files/xitami.sh.tmpl b/www/xitami/files/xitami.sh.tmpl
new file mode 100644
index 000000000000..b1f53c1f5b0e
--- /dev/null
+++ b/www/xitami/files/xitami.sh.tmpl
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+
+case "$1" in
+
+start)
+ if [ -x PREFIX/xitami/xitami ]
+ then
+ cd PREFIX/xitami
+ ./xitami -s && echo -n " xitami"
+ fi
+ ;;
+
+stop)
+ if [ -r /var/run/xitami.pid ]
+ then
+ kill `cat /var/run/xitami.pid` && echo -n " xitami"
+ fi
+ ;;
+
+*)
+ echo "usage: $0 {start|stop}" 1>&2
+ exit 64
+ ;;
+
+esac
+