summaryrefslogtreecommitdiff
path: root/www/mod_dtcl
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-01-29 05:51:46 +0000
committerSteve Price <steve@FreeBSD.org>2000-01-29 05:51:46 +0000
commit2afc94ccbe99f9dfabdb754001e892aedee09e09 (patch)
treef43625391e6b2ac52acabbd711ba40632766ed77 /www/mod_dtcl
parentAdding p5-Apache-ASP version 0.17. (diff)
Adding mod_dtcl version 0.6.4.2.
Embeds a TCL8 interpreter in the Apache webserver. PR: 16020 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Notes
Notes: svn path=/head/; revision=25222
Diffstat (limited to 'www/mod_dtcl')
-rw-r--r--www/mod_dtcl/Makefile48
-rw-r--r--www/mod_dtcl/distinfo1
-rw-r--r--www/mod_dtcl/files/Makefile.bsd28
-rw-r--r--www/mod_dtcl/files/patch-aa14
-rw-r--r--www/mod_dtcl/pkg-comment1
-rw-r--r--www/mod_dtcl/pkg-descr12
-rw-r--r--www/mod_dtcl/pkg-message10
-rw-r--r--www/mod_dtcl/pkg-plist11
8 files changed, 125 insertions, 0 deletions
diff --git a/www/mod_dtcl/Makefile b/www/mod_dtcl/Makefile
new file mode 100644
index 000000000000..276f6ed1b8c4
--- /dev/null
+++ b/www/mod_dtcl/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: mod_dtcl
+# Version required: 0.6.4-2
+# Date created: January 9, 1999
+# Whom: Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME= libapache-mod-dtcl_0.6.4-2
+PKGNAME= mod_dtcl-0.6.4.2
+CATEGORIES= www tcl82
+MASTER_SITES= http://master.debian.org/~davidw/mod_dtcl/
+
+MAINTAINER= mi@aldan.algebra.com
+
+BUILD_DEPENDS= ${PREFIX}/sbin/apxs:${PORTSDIR}/www/apache13
+LIB_DEPENDS= tcl82:${PORTSDIR}/lang/tcl82
+
+WRKSRC= ${WRKDIR}/mod_dtcl
+
+MAKEFILE= ${FILESDIR}/Makefile.bsd
+
+MAN1= testdtcl.1
+MANCOMPRESSED= no
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/libmod_dtcl.so.1* \
+ ${PREFIX}/libexec/apache/mod_dtcl.so
+ ${INSTALL_PROGRAM} ${WRKSRC}/testdtcl ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/testdtcl.1 ${PREFIX}/man/man1/
+ ${MKDIR} ${PREFIX}/share/doc/mod_dtcl
+ ${INSTALL_DATA} ${WRKSRC}/dtcl.tcl ${PREFIX}/share/doc/mod_dtcl
+.if !defined(NOPORTDOCS)
+ ${INSTALL_DATA} ${WRKSRC}/*.?tml ${WRKSRC}/*.gif \
+ ${PREFIX}/share/doc/mod_dtcl
+ ${CAT} ${PKGMESSAGE}
+.else
+ # Not installing the documentation. Consult the
+ # file:/${WRKSRC}/INSTALL.html
+ # for information on how to proceed to enable mod_dtcl.
+ # Note, that the dtcl.tcl mentioned there is installed as
+ # ${PREFIX}/share/doc/mod_dtcl/dtcl.tcl
+ # but the comment in it suggests it should not be used
+ # in a "production environment"...
+.endif
+ @ ${SH} ${PKGINSTALL}
+
+.include <bsd.port.mk>
diff --git a/www/mod_dtcl/distinfo b/www/mod_dtcl/distinfo
new file mode 100644
index 000000000000..23635e3dfea6
--- /dev/null
+++ b/www/mod_dtcl/distinfo
@@ -0,0 +1 @@
+MD5 (libapache-mod-dtcl_0.6.4-2.tar.gz) = 2134a0b7ce40fc7bca48262ca6fa2423
diff --git a/www/mod_dtcl/files/Makefile.bsd b/www/mod_dtcl/files/Makefile.bsd
new file mode 100644
index 000000000000..e8d5430e7cab
--- /dev/null
+++ b/www/mod_dtcl/files/Makefile.bsd
@@ -0,0 +1,28 @@
+# If you link against Tcl like so "-ltcl", leave this blank.
+TCL_VERSION?=8.2
+TCL_NDVER?=${TCL_VERSION:S/.//} # same, but without the dot
+
+PREFIX?= /usr/local
+
+INCLUDES=-I${PREFIX}/include/apache -I${PREFIX}/include/tcl${TCL_VERSION}
+
+CC!= ${PREFIX}/sbin/apxs -q CC
+CFLAGS!= ${PREFIX}/sbin/apxs -q CFLAGS CFLAGS_SHLIB
+CFLAGS+= -Wall -DSTATUS -DNO_DBM_REWRITEMAP ${INCLUDES}
+
+LIB= mod_dtcl
+SHLIB_MAJOR=1
+SHLIB_MINOR=0
+
+LDADD= -L${PREFIX}/lib -ltcl${TCL_NDVER}
+LDFLAGS=${LDADD} -lm
+
+NOPROFILE= True # to avoid building profiled library
+INTERNALLIB= True # to avoid building a static version
+
+SRCS= mod_dtcl.c
+NOMAN= True # don't bother with the man-page here, let the port handle it
+
+all: ${SHLIB_NAME} testdtcl
+
+.include <bsd.lib.mk>
diff --git a/www/mod_dtcl/files/patch-aa b/www/mod_dtcl/files/patch-aa
new file mode 100644
index 000000000000..86f3aa87f6cd
--- /dev/null
+++ b/www/mod_dtcl/files/patch-aa
@@ -0,0 +1,14 @@
+--- testdtcl.c.orig Mon Oct 18 10:29:02 1999
++++ testdtcl.c Sun Jan 9 19:13:53 2000
+@@ -14,4 +14,5 @@
+ #include <tcl.h>
+ #include <unistd.h>
++#include <stdlib.h> /* In older FreeBSD, this is where getopt(3) lives */
+
+ #ifndef DEBUG_SCRIPT_DIR
+@@ -229,4 +230,5 @@
+ }
+ }
++ return 0;
+ }
+
diff --git a/www/mod_dtcl/pkg-comment b/www/mod_dtcl/pkg-comment
new file mode 100644
index 000000000000..89634a5a555d
--- /dev/null
+++ b/www/mod_dtcl/pkg-comment
@@ -0,0 +1 @@
+Embeds a TCL8 interpreter in the Apache server
diff --git a/www/mod_dtcl/pkg-descr b/www/mod_dtcl/pkg-descr
new file mode 100644
index 000000000000..af6941b097b8
--- /dev/null
+++ b/www/mod_dtcl/pkg-descr
@@ -0,0 +1,12 @@
+From the software's readme.html:
+
+ mod_dtcl is a free/open source implementation of server parsed
+ Tcl, under Apache, distributed under the terms of the GNU GPL.
+ It allows you to tightly integrate html with Tcl, a widely used
+ scripting language with many years of development invested in
+ it. This is an ideal combination, allowing you to greatly extend
+ what you could do with plain html. Because Tcl is such a widely
+ used language, there is a large amount of documentation for it,
+ both on the net and books. There are also many external Tcl
+ modules that you can load into mod_dtcl, to create images,
+ access databases, etc.
diff --git a/www/mod_dtcl/pkg-message b/www/mod_dtcl/pkg-message
new file mode 100644
index 000000000000..633fb01bb0b1
--- /dev/null
+++ b/www/mod_dtcl/pkg-message
@@ -0,0 +1,10 @@
+-
+ Please, follow the instructions in
+ file:/usr/local/share/doc/mod_dtcl/INSTALL.html
+
+ (where /usr/local may be replaced by your machine's
+ setting for PREFIX) to enable the mod_dtcl's usage.
+
+ Note, that the dtcl.tcl mentioned in the instructions is
+ installed as /usr/local/share/doc/mod_dtcl/dtcl.tcl .
+-
diff --git a/www/mod_dtcl/pkg-plist b/www/mod_dtcl/pkg-plist
new file mode 100644
index 000000000000..4ac8b6ae1b21
--- /dev/null
+++ b/www/mod_dtcl/pkg-plist
@@ -0,0 +1,11 @@
+libexec/apache/mod_dtcl.so
+share/doc/mod_dtcl/INSTALL.html
+share/doc/mod_dtcl/benchmark.html
+share/doc/mod_dtcl/dtcl-tcl.html
+share/doc/mod_dtcl/dtcl.gif
+share/doc/mod_dtcl/dtcl.tcl
+share/doc/mod_dtcl/examples.ttml
+share/doc/mod_dtcl/readme.html
+share/doc/mod_dtcl/table.html
+share/doc/mod_dtcl/use.html
+@dirrm share/doc/mod_dtcl