1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Caudium is the name of a free webserver which is based on the Roxen Challenger

1.3 code base. It is an attractive alternative to servers like Apache,
Netscape and Zeus due to its strength in dynamic page and data generation.

WWW: http://www.caudium.net/
This commit is contained in:
Johan van Selst 2009-11-21 16:30:59 +00:00
parent 488b9776da
commit c863040736
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244609
6 changed files with 610 additions and 686 deletions

View File

@ -75,6 +75,7 @@
SUBDIR += campsite
SUBDIR += castget
SUBDIR += caudium12
SUBDIR += caudium14
SUBDIR += cgi-lib
SUBDIR += cgi-lib.pl
SUBDIR += cgic

View File

@ -5,61 +5,56 @@
# $FreeBSD$
#
PORTNAME= caudium12
PORTVERSION= 1.2.34
PORTREVISION= 3
PORTNAME= caudium14
PORTVERSION= 1.4.14
CATEGORIES= www
MASTER_SITES= ftp://ftp.caudium.net/caudium/source/ \
ftp://ftp.oav.net/caudium/source/
DISTNAME= caudium-${PORTVERSION}
MAINTAINER= johans@stack.nl
COMMENT= A free webserver which is based on the Roxen Challenger 1.3 code base
COMMENT= A free webserver based on the Roxen Challenger 1.3 code base
BUILD_DEPENDS= pike:${PORTSDIR}/lang/pike72/ \
pexts>0:${PORTSDIR}/lang/pexts/
BUILD_DEPENDS= pike76:${PORTSDIR}/lang/pike76/
LIB_DEPENDS= sablot.70:${PORTSDIR}/textproc/sablotron/
RUN_DEPENDS= lsof:${PORTSDIR}/sysutils/lsof/ \
pexts>0:${PORTSDIR}/lang/pexts/
RUN_DEPENDS= lsof:${PORTSDIR}/sysutils/lsof/
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_BZIP2= yes
USE_GMAKE= yes
PIKEVERSION= 7.2.570
PIKEVERSION= 7.6.112
SUB_LIST+= PIKEVERSION="${PIKEVERSION}"
# bash:${PORTSDIR}/shells/bash2/
#SH= ${PREFIX}/bin/bash
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-debug --with-PiXSL --prefix=${PREFIX} \
--with-pike=${LOCALBASE}/pike/${PIKEVERSION}/bin/pike
USE_GMAKE= yes
PLIST_SUB+= PIKEVERSION=${PIKEVERSION}
CONFLICTS+= caudium12-[0-9]*
pre-configure:
@${ECHO} ${CONFIGURE_ENV}
@${ECHO} ${CONFIGURE_ARGS}
post-configure:
@cd ${WRKSRC}/src/cmods; \
(for a in Caudium PiXSL UltraLog;do cd $$a; ${SED} s/"INSTALL=..\/"/"INSTALL=\/usr\/bin\/install -c"/ Makefile > Makefile.tmp; ${MV} -f Makefile.tmp Makefile; cd ..; done)
@cd ${WRKSRC}/src/tools; ${SED} s/"INSTALL=..\/"/"INSTALL=\/usr\/bin\/install -c"/ Makefile > Makefile.tmp; ${MV} -f Makefile.tmp Makefile
@cd ${WRKSRC}/src/fast_cgi; ${SED} s/"INSTALL=..\/"/"INSTALL=\/usr\/bin\/install -c"/ Makefile > Makefile.tmp; ${MV} -f Makefile.tmp Makefile
post-build:
@${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/caudium.sh >${WRKDIR}/caudium.sh
post-patch:
@${SED} -e 's:@CAUDIUM_SERVERDIR@:${PREFIX}/caudium/server:' \
-e 's:^#############$$:${ECHO} "$${caudium_enable}" | ${EGREP} -iq "^yes|^true" || exit:' \
-e 's:/tmp/caudium_pid:/var/run/caudium.pid:' \
-e '/flags=--with-threads/s:^# ::' \
-e 's:-www:-${WWWOWN}:' \
${WRKSRC}/tools/caudium-rc_script.in > ${WRKDIR}/caudium
post-install:
# @${RM} ${PREFIX}/caudium/server/base_server/caudium.pike.orig
@${CHOWN} -R www:www ${PREFIX}/caudium
@${INSTALL_SCRIPT} ${WRKDIR}/caudium.sh ${PREFIX}/etc/rc.d/caudium.sh.sample
@${INSTALL_SCRIPT} ${WRKDIR}/caudium ${PREFIX}/etc/rc.d/
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/caudium
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
# is this really only true for sparc64?
.if ${ARCH} == sparc64
BROKEN= does not install due to dependency error
post-configure:
.if ${ARCH} != i386
. for m in Mhash PCRE PiXSL UltraLog _Caudium
@${REINPLACE_CMD} -e 's/^LD=.*/LD= ld -shared/' \
-e '/^CFLAGS=/s/$$/ -fPIC/' \
-e 's/^LIBGCC=.*/LIBGCC=/' \
${WRKSRC}/src/cmods/$m/Makefile
. endfor
.endif
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (caudium-1.2.34.tar.gz) = e376073e7a881e7482a383ce8ecee3cf
SHA256 (caudium-1.2.34.tar.gz) = 548c035d9fe848f02ea2224b0478955d4479f597dbc1bad049dec86d0ffe85f1
SIZE (caudium-1.2.34.tar.gz) = 3816353
MD5 (caudium-1.4.14.tar.bz2) = 62d3eab3d986c4a11283d1d35a440fee
SHA256 (caudium-1.4.14.tar.bz2) = 043d51ce529d12c5782d020e2ab195ee2331c9dd8a3ca7244e39c8870dcec489
SIZE (caudium-1.4.14.tar.bz2) = 5400998

View File

@ -1,138 +0,0 @@
#!/bin/sh
# init.d script for Caudium. Set the variables below to something fitting..
# This is only an example script.
#############
# The server directory where the 'start' script is located.
#
caudiumhome=@@PREFIX@@/caudium/server/
# Set this to something unique to be able to stop, reload and restart
# with this init script. It will override the setting in the config
# interface. '0' is typically replaced with the uid.
#
pidfile=/tmp/caudium_pid
# Set these to kill all processes owned by wwwuser on stop. Useful to
# reap CGI scripts.
#
# killallwww=yes
# wwwuser=www
umask 022
# If you want to start with another configuration directory:
#
# configdir=dirname
# Here you can add extra flags to the start script, like enabling or
# disabling threads.
#
# flags="--without-threads"
flags="--with-threads"
### Check if that caudium is configured...
if [ ! -f @@PREFIX@@/caudium/configurations/Global_Variables ]
then
echo "This server need some configuration...."
echo "Please login as caudium user and go to @@PREFIX@@/caudium/server"
echo "and type ./install to configure your server...."
exit 0
fi
### You should not _have_ to change anything below here...
test -n "$pidfile" && flags="$flags --pid-file=$pidfile"
test -n "$configdir" && flags="$flags --config-dir=$configdir"
case $1 in
'start')
echo "Starting Caudium from $caudiumhome..."
if [ -z "$pidfile" ]; then
echo "Warning: No pid file set - cannot stop or reload."
elif [ -f "$pidfile" ]; then
read pid < $pidfile
if kill -0 $pid ; then
echo "Caudium is already running."
exit 0
fi
rm -f $pidfile
if [ -f "$pidfile" ]; then
echo Cannot remove pid file $pidfile
exit 1
fi
fi
if [ -x "$caudiumhome/start" ]; then
cd $caudiumhome
./start $flags 2>/dev/null
echo "Done."
else
echo "I cannot find the Caudium dir '('$caudiumhome')'"
fi
;;
'reload')
if [ -z "$pidfile" ] ; then
echo "No pid file set."
exit 1
fi
echo "Reloading configurations..."
if [ -f $pidfile ] ; then
read pid < $pidfile
kill -HUP $pid || kill 1 $pid
exit 0
fi
echo "Caudium doesn't seem to be running."
;;
'restart')
if [ -z "$pidfile" ] ; then
echo "No pid file set."
exit 1
fi
echo Restarting Caudium...
if [ -f "$pidfile" ] ; then
read pid < $pidfile
kill -INT $pid || kill 2 $pid
rm "$pidfile"
echo Done.
exit 0
fi
echo "Caudium doesn't seem to be running."
echo Starting a new Caudium in $caudiumhome...
if [ -x "$caudiumhome/start" ]; then
cd $caudiumhome
./start $flags 2>/dev/null
else
echo "I cannot find the Caudium dir '('$caudiumhome')'"
fi
echo "Done."
;;
'stop')
if [ -z "$pidfile" ] ; then
echo "No pid file set."
exit 1
fi
echo "Stopping Caudium..."
if [ -f $pidfile ] ; then
if kill `cat $pidfile` ; then
echo Caudium stopped.
fi
rm $pidfile
else
echo "Caudium doesn't seem to be running."
fi
# Get all the CGI scripts... :-)
if [ x$killallwww = xyes ] ; then
echo Killing all programs running as the $wwwuser user.
su $wwwuser -c "kill -9 -1"
fi
;;
*)
echo "Syntax: $0 [start|stop|restart|reload]"
;;
esac
exit 0

View File

@ -1,6 +1,5 @@
Caudium is the name of a free webserver which is based on the Roxen Challenger
1.3 code base. It is an attractive alternative to servers like Apache, Netscape
and Zeus due to its strength in dynamic page and data generation, like all the
titles on this site.
1.3 code base. It is an attractive alternative to servers like Apache,
Netscape and Zeus due to its strength in dynamic page and data generation.
WWW: http://caudium.net/
WWW: http://www.caudium.net/

File diff suppressed because it is too large Load Diff