aboutsummaryrefslogtreecommitdiffstats
path: root/www/tclhttpd/Makefile
diff options
context:
space:
mode:
authornbm <nbm@FreeBSD.org>2000-07-20 19:55:59 +0800
committernbm <nbm@FreeBSD.org>2000-07-20 19:55:59 +0800
commitd883c7a9bae18f0f6aa35d1da135d71a561f12e1 (patch)
tree792bef77b332c5a87a2f547bc605509ae1a0994d /www/tclhttpd/Makefile
parentab5ed6f423da80fca2eac82e4b3ce014238e65bc (diff)
downloadfreebsd-ports-gnome-d883c7a9bae18f0f6aa35d1da135d71a561f12e1.tar.gz
freebsd-ports-gnome-d883c7a9bae18f0f6aa35d1da135d71a561f12e1.tar.zst
freebsd-ports-gnome-d883c7a9bae18f0f6aa35d1da135d71a561f12e1.zip
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/Makefile')
-rw-r--r--www/tclhttpd/Makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/www/tclhttpd/Makefile b/www/tclhttpd/Makefile
new file mode 100644
index 000000000000..7e755078f610
--- /dev/null
+++ b/www/tclhttpd/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: thttpd
+# Date created: 27 Apr 2000
+# Whom: Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tclhttpd
+PORTVERSION= 3.0.3
+CATEGORIES= www tcl${TCL_VER}
+MASTER_SITES= ${MASTER_SITE_TCLTK}
+MASTER_SITE_SUBDIR= httpd
+DISTNAME= ${PORTNAME}${PORTVERSION}
+
+MAINTAINER= mi@aldan.algebra.com
+
+RUN_DEPENDS= ${LOCALBASE}/lib/tcllib0.4/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
+LIB_DEPENDS= tcl${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER}
+
+TCL_DVER?= 8.3
+TCL_VER= ${TCL_DVER:S/.//}
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-tcl="${LOCALBASE}/lib/tcl${TCL_DVER}" \
+ --with-tclinclude="${LOCALBASE}/include/tcl${TCL_DVER}"
+
+PLIST_SUB+= TCL_VER=${TCL_VER} PORTVERSION=${PORTVERSION} \
+ "LIBSUF=`echo ${PORTOBJFORMAT} | ${SED} -e s/elf/1/ -e s/aout/1.0/`"
+
+RCD= ${LOCALBASE}/etc/rc.d/tclhttpd.sh
+
+SCRIPTS_ENV+= LOCALBASE=${LOCALBASE} WRKSRC=${WRKSRC}} \
+ CFLAGS="${CFLAGS}" TCL_DVER=${TCL_DVER} \
+ TCL_VER=${TCL_VER}
+
+post-install:
+ test -e ${RCD} || ${SED} \
+ "s%COMMAND_LINE%${LOCALBASE}/bin/tclsh${TCL_DVER} ${PREFIX}/bin/httpd.tcl%" \
+ < ${FILESDIR}/tclhttpd.sh > ${RCD}
+ ${MKDIR} ${LOCALBASE}/${PORTNAME}${PORTVERSION}
+ ${CHOWN} -R nobody ${LOCALBASE}/share/${PORTNAME}${PORTVERSION}
+ #${LN} -sf ${LOCALBASE}/share/${PORTNAME}${PORTVERSION} \
+ # ${LOCALBASE}/${PORTNAME}${PORTVERSION}/htdocs
+ ${CHMOD} +x ${RCD}
+ ${INSTALL_DATA} ${WRKSRC}/src/libcrypt.so.* \
+ ${WRKSRC}/src/liblimit.so.* ${WRKSRC}/src/libsetuid.so.* \
+ ${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/httpd.tcl \
+ ${WRKSRC}/bin/httpdthread.tcl ${LOCALBASE}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/bin/tclhttpd.rc ${LOCALBASE}/etc/
+ ${CAT} ${FILESDIR}/pkgIndex.tcl >> \
+ ${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl
+ for f in ${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/lib*.so.* ; \
+ do \
+ ${LN} -sf `basename $$f` \
+ `echo $$f | ${SED} 's@\(.*\.so\)\..*@\1@'` ; \
+ done
+
+do-build: # empty -- everything done by ${SCRIPTDIR}/pre-build
+
+.include <bsd.port.mk>