summaryrefslogtreecommitdiffstats
path: root/www/tclhttpd/scripts
diff options
context:
space:
mode:
authornbm <nbm@FreeBSD.org>2000-07-20 11:55:59 +0000
committernbm <nbm@FreeBSD.org>2000-07-20 11:55:59 +0000
commitd883c7a9bae18f0f6aa35d1da135d71a561f12e1 (patch)
tree792bef77b332c5a87a2f547bc605509ae1a0994d /www/tclhttpd/scripts
parentab5ed6f423da80fca2eac82e4b3ce014238e65bc (diff)
downloadFreeBSD-ports-d883c7a9bae18f0f6aa35d1da135d71a561f12e1.zip
FreeBSD-ports-d883c7a9bae18f0f6aa35d1da135d71a561f12e1.tar.gz
Add tclhttpd, a pure-Tcl implementation of a HTTP server.
PR: ports/19870 Submitted by: Mikhail Teterin <mi@privatelabs.com>
Diffstat (limited to 'www/tclhttpd/scripts')
-rw-r--r--www/tclhttpd/scripts/post-patch18
-rw-r--r--www/tclhttpd/scripts/pre-build18
2 files changed, 36 insertions, 0 deletions
diff --git a/www/tclhttpd/scripts/post-patch b/www/tclhttpd/scripts/post-patch
new file mode 100644
index 0000000..26de612
--- /dev/null
+++ b/www/tclhttpd/scripts/post-patch
@@ -0,0 +1,18 @@
+if [ ${LOCALBASE} != /usr/local ] ; then
+ for f in `find ${WRKSRC} -type f | xargs grep -l /usr/local`
+ do
+ cp -p $f $f.ul && \
+ sed "s%/usr/local%${LOCALBASE}%g" < $f.ul > $f \
+ && rm -f $f.ul
+ done
+fi
+for f in `find ${WRKSRC} -type f | \
+ xargs grep -l '^exec tclsh.* '`
+do
+ patch --quiet $f << EOP
+@@ -1,1 +1,2 @@
+-#!/bin/sh
++#!${LOCALBASE}/bin/tclsh${TCL_DVER}
++# The ``exec tclsh<whatever>'' below will simply be ignored.
+EOP
+done
diff --git a/www/tclhttpd/scripts/pre-build b/www/tclhttpd/scripts/pre-build
new file mode 100644
index 0000000..3885e7a
--- /dev/null
+++ b/www/tclhttpd/scripts/pre-build
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+crypt_SRCS="crypt.c cryptLib.c"
+setuid_SRCS=setuid.c
+limit_SRCS=limit.c
+
+cd ${WRKSRC}/src
+
+for l in crypt setuid limit
+do
+ make INTERNALLIB=Y NOPROFILE=Y \
+ LIB=${l} SHLIB_MAJOR=1 SHLIB_MINOR=0 \
+ SRCS="`eval echo \\$${l}_SRCS`" -ECFLAGS \
+ CFLAGS="${CFLAGS} -I${PREFIX}/include/tcl${TCL_DVER} -DUSE_TCL_STUBS" \
+ LDADD="-L${PREFIX}/lib -ltclstub${TCL_VER} -lcrypt" \
+ -f bsd.lib.mk \
+ || exit 1
+done
OpenPOWER on IntegriCloud