summaryrefslogtreecommitdiff
path: root/databases/mysqltcl
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-04-06 04:07:48 +0000
committerWill Andrews <will@FreeBSD.org>2000-04-06 04:07:48 +0000
commitdcc8379ff713ebf6352f4c19c2e56bc494d9391d (patch)
tree89f88122de98a40b3d2ae2c0b6e5dc2bea894375 /databases/mysqltcl
parentThe wildcard removal of config files in post-install was removing (diff)
Add the mysqltcl port, which is a suite that allows manipulation of MySQL
through Tcl. The port installs only the libraries. PR: 13514 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Notes
Notes: svn path=/head/; revision=27353
Diffstat (limited to 'databases/mysqltcl')
-rw-r--r--databases/mysqltcl/Makefile38
-rw-r--r--databases/mysqltcl/distinfo1
-rw-r--r--databases/mysqltcl/files/Makefile.bsd16
-rw-r--r--databases/mysqltcl/files/patch-aa9
-rw-r--r--databases/mysqltcl/files/patch-ab8
-rw-r--r--databases/mysqltcl/pkg-comment1
-rw-r--r--databases/mysqltcl/pkg-descr12
-rw-r--r--databases/mysqltcl/pkg-plist3
8 files changed, 88 insertions, 0 deletions
diff --git a/databases/mysqltcl/Makefile b/databases/mysqltcl/Makefile
new file mode 100644
index 000000000000..7891b3a0db58
--- /dev/null
+++ b/databases/mysqltcl/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: mysqltcl
+# Version required: 1.53
+# Date created: August 31, 1999
+# Whom: Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME= mysqltcl-1.53
+CATEGORIES= databases tcl80
+MASTER_SITES= http://www.mysql.com/Contrib/
+
+MAINTAINER= mi@aldan.algebra.com
+
+LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client \
+ ${TCL_NODOT}:${PORTSDIR}/lang/${TCL_NODOT}
+
+TCL_VERSION?= tcl8.0
+TCL_NODOT= ${TCL_VERSION:S/.//}
+SQL_DIR= ${PREFIX}/lib/${TCL_VERSION}/mysqltcl
+PLIST_SUB+= TCL_VERSION=${TCL_VERSION} LIB_NAME=${LIB_NAME}
+MANN= mysqltcl.n
+
+do-build:
+ cd ${WRKSRC} && ${MAKE} PREFIX="${PREFIX}" \
+ TCL_VERSION=${TCL_VERSION} TCL_NODOT=${TCL_NODOT} \
+ -f ${FILESDIR}/Makefile.bsd ${LIB_NAME}
+
+do-install:
+ ${MKDIR} ${SQL_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/${LIB_NAME} ${SQL_DIR}
+ ${ECHO} "package ifneeded mysql 1.53 {load ${SQL_DIR}/${LIB_NAME}}" \
+ > ${SQL_DIR}/pkgIndex.tcl
+ ${INSTALL_MAN} ${WRKSRC}/${MANN} ${PREFIX}/man/mann
+
+.include <bsd.port.mk>
+
+LIB_NAME!= ${MAKE} -f ${FILESDIR}/Makefile.bsd printname
diff --git a/databases/mysqltcl/distinfo b/databases/mysqltcl/distinfo
new file mode 100644
index 000000000000..36414fe674e2
--- /dev/null
+++ b/databases/mysqltcl/distinfo
@@ -0,0 +1 @@
+MD5 (mysqltcl-1.53.tar.gz) = c8ff173c74dae1abd1b356262e7dda3b
diff --git a/databases/mysqltcl/files/Makefile.bsd b/databases/mysqltcl/files/Makefile.bsd
new file mode 100644
index 000000000000..72cd0fc68909
--- /dev/null
+++ b/databases/mysqltcl/files/Makefile.bsd
@@ -0,0 +1,16 @@
+LIB = mysqltcl
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+
+SRCS = mysqltcl.c
+CFLAGS += -I${PREFIX}/include/${TCL_VERSION}/
+CFLAGS += -I${PREFIX}/include/mysql/
+LDADD += -L${PREFIX}/lib -l${TCL_NODOT}
+LDADD += -L${PREFIX}/lib/mysql -lmysqlclient
+
+all: ${SHLIB_NAME}
+
+printname:
+ @echo ${SHLIB_NAME}
+
+.include <bsd.lib.mk>
diff --git a/databases/mysqltcl/files/patch-aa b/databases/mysqltcl/files/patch-aa
new file mode 100644
index 000000000000..bcc0f0ac8950
--- /dev/null
+++ b/databases/mysqltcl/files/patch-aa
@@ -0,0 +1,9 @@
+--- mysqltcl.c.orig Mon Jul 6 11:35:17 1998
++++ mysqltcl.c Wed Sep 1 01:27:44 1999
+@@ -743,5 +743,5 @@
+ */
+ if (strlen (MysqlHandlePrefix) == MYSQL_HPREFIX_LEN)
+- return TCL_OK;
++ return Tcl_PkgProvide(interp, "mysql", "1.53");
+ else
+ {
diff --git a/databases/mysqltcl/files/patch-ab b/databases/mysqltcl/files/patch-ab
new file mode 100644
index 000000000000..9f8e5dee372f
--- /dev/null
+++ b/databases/mysqltcl/files/patch-ab
@@ -0,0 +1,8 @@
+--- mysqltcl.n.orig Mon Jul 6 12:04:27 1998
++++ mysqltcl.n Wed Sep 1 01:52:23 1999
+@@ -36,2 +36,5 @@
+ MySQLTcl - MySQL server access commands for Tcl
++.SH SYNOPSIS
++.P
++package require mysql
+ .SH "INTRODUCTION"
diff --git a/databases/mysqltcl/pkg-comment b/databases/mysqltcl/pkg-comment
new file mode 100644
index 000000000000..100cd7b0abed
--- /dev/null
+++ b/databases/mysqltcl/pkg-comment
@@ -0,0 +1 @@
+TCL module for accessing MySQL databases based on msqltcl
diff --git a/databases/mysqltcl/pkg-descr b/databases/mysqltcl/pkg-descr
new file mode 100644
index 000000000000..bdc1aaccd8a8
--- /dev/null
+++ b/databases/mysqltcl/pkg-descr
@@ -0,0 +1,12 @@
+From the package man-page:
+
+ MySQLTcl is a collection of Tcl commands and a Tcl global
+ array that provide access to one or more mysql database
+ servers.
+
+ MySQLTcl is nothing more than a patched version of a
+ patched version of Hakan Soderstrom's patch of Tom
+ Poindexter's Sybtcl. Most of the documentention has been
+ left as it was when I started to work with this interface
+ (a patch of msqltcl-1.50). However, I have tried to
+ replace appropriate occurrences of msql by MySQL.
diff --git a/databases/mysqltcl/pkg-plist b/databases/mysqltcl/pkg-plist
new file mode 100644
index 000000000000..caa203b4ee43
--- /dev/null
+++ b/databases/mysqltcl/pkg-plist
@@ -0,0 +1,3 @@
+lib/%%TCL_VERSION%%/mysqltcl/%%LIB_NAME%%
+lib/%%TCL_VERSION%%/mysqltcl/pkgIndex.tcl
+@dirrm lib/%%TCL_VERSION%%/mysqltcl