Skip to content

Commit

Permalink
New SAPI module for the WebJames server on RISC OS
Browse files Browse the repository at this point in the history
@- New SAPI module for the WebJames server on RISC OS (Alex Waugh)
  • Loading branch information
Alex Waugh committed Nov 5, 2001
1 parent 9284378 commit e06c1d7
Show file tree
Hide file tree
Showing 7 changed files with 431 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EXTENSIONS
Expand Up @@ -73,6 +73,11 @@ EXTENSION: thttpd
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: webjames
PRIMARY MAINTAINER: Alex Waugh <alex@alexwaugh.com>
MAINTENANCE: Maintained
STATUS: Experimental
-------------------------------------------------------------------------------


== Database extensions ==
Expand Down
2 changes: 2 additions & 0 deletions sapi/webjames/CREDITS
@@ -0,0 +1,2 @@
WebJames
Alex Waugh
5 changes: 5 additions & 0 deletions sapi/webjames/Makefile.in
@@ -0,0 +1,5 @@

LTLIBRARY_NAME = libsapi.la
LTLIBRARY_SOURCES = webjames.c

include $(top_srcdir)/build/ltlib.mk
32 changes: 32 additions & 0 deletions sapi/webjames/README
@@ -0,0 +1,32 @@
README for WebJames SAPI module
by Alex Waugh <alex@alexwaugh.com>

This is a SAPI module for the WebJames HTTP server, which runs on the
RISC OS operating system.


DOWNLOADS

A recent (September 2001 or later) version of the GCCSDK cross compiler
http://www.hard-mofo.dsvr.net/

WebJames 0.31 or later
http://www.webjames.alexwaugh.com/


BUILDING

$ cd webjames

Edit Makefile if nessacery

$ make setup
$ cd ../php4
$ ./configure \
--host=arm-riscos-aof \
--with-webjames=../webjames \
--with-config-file-path=/Choices: \
other PHP options
$ make install
$ cd ../webjames
$ make
20 changes: 20 additions & 0 deletions sapi/webjames/config.m4
@@ -0,0 +1,20 @@
AC_ARG_WITH(webjames,
[ --with-webjames=SRCDIR Build PHP as a WebJames module (RISC OS only)],[
PHP_EXPAND_PATH($withval, WEBJAMES)
INSTALL_IT="\
echo '\\#Created by PHP configure' > $WEBJAMES/build/php; \
echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' >> $WEBJAMES/build/php; \
echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $WEBJAMES/build/php; \
echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(CFLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $WEBJAMES/build/php; \
echo 'WIMPSLOT = \$\$(WIMPSLOT_PHP)' >> $WEBJAMES/build/php; \
echo 'REMOVE_ATTRIBUTE=Action php-script.*' >> $WEBJAMES/build/php;"
PHP_WEBJAMES="yes, using $WEBJAMES"
PHP_ADD_INCLUDE($WEBJAMES)
PHP_BUILD_STATIC
PHP_SAPI=webjames
],[
PHP_WEBJAMES="no"
])

AC_MSG_CHECKING(for webjames)
AC_MSG_RESULT($PHP_WEBJAMES)
28 changes: 28 additions & 0 deletions sapi/webjames/php_webjames.h
@@ -0,0 +1,28 @@
/*
+----------------------------------------------------------------------+
| PHP version 4.0 |
+----------------------------------------------------------------------+
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_02.txt. |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Alex Waugh <alex@alexwaugh.com> |
+----------------------------------------------------------------------+
*/

#ifndef PHP_WEBJAMES_H
#define PHP_WEBJAMES_H

#include "webjames.h"

void webjames_php_shutdown(void);
int webjames_php_init(void);
void webjames_php_request(struct connection *conn);

#endif

0 comments on commit e06c1d7

Please sign in to comment.