Import of FreeTDS 0.52.

Submitted by Joshua Stein <jcs@rt.fm>.

FreeTDS is a project to document and implement the TDS (Tabular
DataStream) protocol.  TDS is used by Sybase and Microsoft for
client to database server communications.
This commit is contained in:
naddy 2001-08-11 15:31:43 +00:00
parent 91f5f01b44
commit 878bdc4341
12 changed files with 355 additions and 0 deletions

View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
# vim:ts=8
DISTNAME= freetds-0.52
CATEGORIES= databases
NEED_VERSION= 1.433
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
COMMENT= "project to document and implement the TDS protocol"
HOMEPAGE= http://www.freetds.org/
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= ALPHA/freetds
EXTRACT_SUFX= .tgz
MAINTAINER= Joshua Stein <jcs@rt.fm>
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-static \
--enable-dbmfix
MAKE_ENV= RM=rm
post-install:
@mkdir ${PREFIX}/share/examples/freetds
${INSTALL_DATA} ${WRKSRC}/freetds.conf \
${PREFIX}/share/examples/freetds/freetds.conf-sample
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (freetds-0.52.tgz) = a6cf1736705d15165adec67bd5f43612
RMD160 (freetds-0.52.tgz) = 670f3312fe17c2171c985921559c81a7019e16ca
SHA1 (freetds-0.52.tgz) = 84ab9a8c8408292b3a3f1b10e9922aab5492d158

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
--- Makefile.in.orig Mon Jul 2 05:15:54 2001
+++ Makefile.in Sat Aug 11 02:57:59 2001
@@ -80,7 +80,7 @@ smallint = @smallint@
SUBDIRS = include src
-EXTRA_DIST = interfaces freetds.conf samples/debug.c PWD BUGS
+EXTRA_DIST = freetds.conf samples/debug.c PWD BUGS
DEFDIR = $(prefix)
ETC = $(sysconfdir)
@@ -335,17 +335,6 @@ maintainer-clean-generic clean mostlycle
install-data-local:
- $(mkinstalldirs) $(DEFDIR) $(ETC)
- if [ -f $(DEFDIR)/interfaces ]; \
- then :; \
- else \
- $(INSTALL_DATA) interfaces $(DEFDIR); \
- fi
- if [ -f $(ETC)/freetds.conf ]; \
- then :; \
- else \
- $(INSTALL_DATA) freetds.conf $(ETC)/freetds.conf; \
- fi
test:
@echo "The 'make test' option has been replaced with 'make check'";

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-include-sybdb_h,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
--- include/sybdb.h.orig Mon Jul 2 02:57:40 2001
+++ include/sybdb.h Sat Aug 11 02:58:00 2001
@@ -287,6 +287,10 @@ enum {
#define IN 1
#define OUT 2
+#ifndef DBMFIX
+#define DBMFIX
+#endif
+
#define DBSINGLE 0
#define DBDOUBLE 1
#define DBBOTH 2

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-include-tds_h_in,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
--- include/tds.h.in.orig Sun Jun 10 03:35:55 2001
+++ include/tds.h.in Sat Aug 11 02:58:00 2001
@@ -53,7 +53,7 @@ static void *no_unused_tds_h_warn[]={rcs
#include <time.h>
/* FIX ME -- use autoconf for the existance of malloc.h */
#ifndef __APPLE__
-#include <malloc.h>
+/* #include <malloc.h> */
#endif
#include <sys/time.h>
#endif

View File

@ -0,0 +1,52 @@
$OpenBSD: patch-ltconfig,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
--- ltconfig.orig Sun Aug 22 04:19:30 1999
+++ ltconfig Sat Aug 11 02:58:00 2001
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
with_gnu_ld=no
fi
;;
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
@@ -1391,10 +1394,21 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ case "$host_os" in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
+ esac
;;
os2*)
@@ -1955,13 +1969,10 @@ netbsd*)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)

View File

@ -0,0 +1,81 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
--- ltmain.sh.orig Sun Aug 22 04:19:30 1999
+++ ltmain.sh Sat Aug 11 02:58:00 2001
@@ -1080,11 +1080,26 @@ compiler."
# These systems don't actually have math library (as such)
continue
;;
+ *-*-openbsd*)
+ # Do not include libc due to us having libc/libc_r.
+ continue
+ ;;
+ esac
+ elif test "$arg" = "-lc_r"; then
+ case "$host" in
+ *-*-openbsd*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
esac
fi
deplibs="$deplibs $arg"
;;
+ -?thread)
+ deplibs="$deplibs $arg"
+ ;;
+
-module)
module=yes
continue
@@ -1789,6 +1804,9 @@ compiler."
*-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
# these systems don't actually have a c library (as such)!
;;
+ *-*-openbsd*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
*)
# Add libc to deplibs on all other systems.
deplibs="$deplibs -lc"
@@ -3522,40 +3540,6 @@ libdir='$install_libdir'\
# Exit here if they wanted silent mode.
test "$show" = : && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,23 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
#
# freetds de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -f $CONFIG_DIR/freetds.conf"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
exit 0

View File

@ -0,0 +1,5 @@
FreeTDS is a project to document and implement the TDS (Tabular
DataStream) protocol. TDS is used by Sybase and Microsoft for
client to database server communications.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,67 @@
#!/bin/sh
# vim:ts=4:et
# $OpenBSD: INSTALL,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
#
# Pre/post-installation setup of freetds
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/freetds
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration file in $CONFIG_DIR has"
echo "| NOT been changed. You may want to compare it to the current"
echo "| sample file, $SAMPLE_CONFIG_DIR/freetds.conf-sample,"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
do_install()
{
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/freetds.conf-sample \
$CONFIG_DIR/freetds.conf
echo
echo "+---------------"
echo "| The $1 configuration file, $CONFIG_DIR/freetds.conf,"
echo "| has been installed. Please view this file and change"
echo "| the configuration to meet your needs."
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ -f $CONFIG_DIR/freetds.conf ]; then
do_notice $1
else
do_install $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
lib/libct.so.0.0
lib/libsybdb.so.0.0
lib/libtds.so.0.0
lib/libtdssrv.so.0.0
DYNLIBDIR(%B)

View File

@ -0,0 +1,30 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/08/11 15:31:43 naddy Exp $
include/bkpublic.h
include/common.h
include/cspublic.h
include/cstypes.h
include/ctlib.h
include/ctpublic.h
include/dblib.h
include/sqldb.h
include/sqlfront.h
include/sybdb.h
include/syberror.h
include/sybfront.h
include/tds.h
include/tds_configs.h
include/tdsconvert.h
include/tdsodbc.h
include/tdsutil.h
include/tdsver.h
lib/libct.a
lib/libct.la
lib/libsybdb.a
lib/libsybdb.la
lib/libtds.a
lib/libtds.la
lib/libtdssrv.a
lib/libtdssrv.la
share/examples/freetds/freetds.conf-sample
%%SHARED%%
@dirrm share/examples/freetds