From owner-freebsd-ports Tue Aug 31 23:11:40 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4CDC414E7F for ; Tue, 31 Aug 1999 23:11:37 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA44473; Tue, 31 Aug 1999 23:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from kot.ne.mediaone.net (kot.ne.mediaone.net [24.218.15.190]) by hub.freebsd.org (Postfix) with ESMTP id 2512A14C9A for ; Tue, 31 Aug 1999 23:07:19 -0700 (PDT) (envelope-from mi@aldan.algebra.com) Received: from guest.newton (guest.newton [10.10.0.3]) by kot.ne.mediaone.net (8.9.3/8.9.1) with ESMTP id CAA43593 for ; Wed, 1 Sep 1999 02:07:08 -0400 (EDT) Received: (from mi@localhost) by guest.newton (8.9.3/8.9.1) id CAA78010; Wed, 1 Sep 1999 02:06:38 -0400 (EDT) Message-Id: <199909010606.CAA78010@guest.newton> Date: Wed, 1 Sep 1999 02:06:38 -0400 (EDT) From: Mikhail Teterin Reply-To: mi@aldan.algebra.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13514: another TCL interface to MySQL port Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13514 >Category: ports >Synopsis: another TCL interface to MySQL port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 31 23:10:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 3.2-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: This port is an alternative to the tcl-Mysql port submitted earlier. I only discovered this software today... 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. This port does NOT build/install the binary executables -- do a package require mysql to add the mysql* commands to your TCL interpreter. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # mysqltcl # mysqltcl/files # mysqltcl/files/Makefile.bsd # mysqltcl/files/md5 # mysqltcl/pkg # mysqltcl/pkg/COMMENT # mysqltcl/pkg/DESCR # mysqltcl/pkg/PLIST # mysqltcl/patches # mysqltcl/patches/patch-aa # mysqltcl/patches/patch-ab # mysqltcl/Makefile # echo c - mysqltcl mkdir -p mysqltcl > /dev/null 2>&1 echo c - mysqltcl/files mkdir -p mysqltcl/files > /dev/null 2>&1 echo x - mysqltcl/files/Makefile.bsd sed 's/^X//' >mysqltcl/files/Makefile.bsd << 'END-of-mysqltcl/files/Makefile.bsd' XLIB = mysqltcl XSHLIB_MAJOR= 1 XSHLIB_MINOR= 0 X XSRCS = mysqltcl.c XCFLAGS += -I${PREFIX}/include/${TCL_VERSION}/ XCFLAGS += -I${PREFIX}/include/mysql/ XLDADD += -L${PREFIX}/lib -l${TCL_NODOT} XLDADD += -L${PREFIX}/lib/mysql -lmysqlclient X Xall: ${SHLIB_NAME} X Xprintname: X @echo ${SHLIB_NAME} X X.include END-of-mysqltcl/files/Makefile.bsd echo x - mysqltcl/files/md5 sed 's/^X//' >mysqltcl/files/md5 << 'END-of-mysqltcl/files/md5' XMD5 (mysqltcl-1.53.tar.gz) = c8ff173c74dae1abd1b356262e7dda3b END-of-mysqltcl/files/md5 echo c - mysqltcl/pkg mkdir -p mysqltcl/pkg > /dev/null 2>&1 echo x - mysqltcl/pkg/COMMENT sed 's/^X//' >mysqltcl/pkg/COMMENT << 'END-of-mysqltcl/pkg/COMMENT' XTCL module for accessing MySQL databases based on msqltcl END-of-mysqltcl/pkg/COMMENT echo x - mysqltcl/pkg/DESCR sed 's/^X//' >mysqltcl/pkg/DESCR << 'END-of-mysqltcl/pkg/DESCR' XFrom the package man-page: X X MySQLTcl is a collection of Tcl commands and a Tcl global X array that provide access to one or more mysql database X servers. X X MySQLTcl is nothing more than a patched version of a X patched version of Hakan Soderstrom's patch of Tom X Poindexter's Sybtcl. Most of the documentention has been X left as it was when I started to work with this interface X (a patch of msqltcl-1.50). However, I have tried to X replace appropriate occurrences of msql by MySQL. END-of-mysqltcl/pkg/DESCR echo x - mysqltcl/pkg/PLIST sed 's/^X//' >mysqltcl/pkg/PLIST << 'END-of-mysqltcl/pkg/PLIST' Xlib/%%TCL_VERSION%%/mysqltcl/%%LIB_NAME%% Xlib/%%TCL_VERSION%%/mysqltcl/pkgIndex.tcl X@dirrm lib/%%TCL_VERSION%%/mysqltcl END-of-mysqltcl/pkg/PLIST echo c - mysqltcl/patches mkdir -p mysqltcl/patches > /dev/null 2>&1 echo x - mysqltcl/patches/patch-aa sed 's/^X//' >mysqltcl/patches/patch-aa << 'END-of-mysqltcl/patches/patch-aa' X--- mysqltcl.c.orig Mon Jul 6 11:35:17 1998 X+++ mysqltcl.c Wed Sep 1 01:27:44 1999 X@@ -743,5 +743,5 @@ X */ X if (strlen (MysqlHandlePrefix) == MYSQL_HPREFIX_LEN) X- return TCL_OK; X+ return Tcl_PkgProvide(interp, "mysql", "1.53"); X else X { END-of-mysqltcl/patches/patch-aa echo x - mysqltcl/patches/patch-ab sed 's/^X//' >mysqltcl/patches/patch-ab << 'END-of-mysqltcl/patches/patch-ab' X--- mysqltcl.n.orig Mon Jul 6 12:04:27 1998 X+++ mysqltcl.n Wed Sep 1 01:52:23 1999 X@@ -36,2 +36,5 @@ X MySQLTcl - MySQL server access commands for Tcl X+.SH SYNOPSIS X+.P X+package require mysql X .SH "INTRODUCTION" END-of-mysqltcl/patches/patch-ab echo x - mysqltcl/Makefile sed 's/^X//' >mysqltcl/Makefile << 'END-of-mysqltcl/Makefile' X# New ports collection makefile for: mysqltcl X# Version required: 1.53 X# Date created: September 29th 1996 X# Whom: Mikhail Teterin X# X# $Id$ X# X XDISTNAME= mysqltcl-1.53 XCATEGORIES= databases tcl80 XMASTER_SITES= http://www.mysql.com/Contrib/ X XMAINTAINER= mi@aldan.algebra.com X XLIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client \ X ${TCL_NODOT}:${PORTSDIR}/lang/${TCL_NODOT} X XTCL_VERSION?= tcl8.0 XTCL_NODOT= ${TCL_VERSION:S/.//} X Xdo-build: X cd ${WRKSRC} && ${MAKE} PREFIX="${PREFIX}" \ X TCL_VERSION=${TCL_VERSION} TCL_NODOT=${TCL_NODOT} \ X -f ${FILESDIR}/Makefile.bsd ${LIB_NAME} X XSQL_DIR= ${PREFIX}/lib/${TCL_VERSION}/mysqltcl X XMANN=mysqltcl.n X Xdo-install: X ${MKDIR} ${SQL_DIR} X ${INSTALL_DATA} ${WRKSRC}/${LIB_NAME} ${SQL_DIR} X ${ECHO} "package ifneeded mysql 1.53 {load ${SQL_DIR}/${LIB_NAME}}" \ X > ${SQL_DIR}/pkgIndex.tcl X ${INSTALL_MAN} ${WRKSRC}/${MANN} ${PREFIX}/man/mann X X.include X XLIB_NAME!= ${MAKE} -f ${FILESDIR}/Makefile.bsd printname XPLIST_SUB= TCL_VERSION=${TCL_VERSION} LIB_NAME=${LIB_NAME} END-of-mysqltcl/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message