1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Sybase/Microsoft TDS protocol library
8 HOMEPAGE= https://www.freetds.org/
12 SITES[main]= http://www.freetds.org/files/stable/
13 DISTFILE[1]= freetds-1.3.3.tar.bz2:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BROKEN_SSL= openssl-devel
24 BUILDRUN_DEPENDS= libgcrypt:single:standard
25 unixODBC:primary:standard
27 USES= autoreconf cpe gettext-tools gmake iconv
28 libtool:keepla pkgconfig readline ssl
30 LICENSE= LGPL20+:primary
31 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
32 LICENSE_FILE= LGPL20+:{{WRKSRC}}/COPYING.LIB
33 LICENSE_AWK= TERMS:"^$$"
34 LICENSE_SOURCE= TERMS:{{WRKSRC}}/include/freetds/tds.h
37 FPC_EQUIVALENT= databases/freetds
40 CONFIGURE_ARGS= --with-tdsver=7.4
41 --sysconfdir={{PREFIX}}/etc/freetds
42 --enable-sybase-compat
44 --with-openssl={{OPENSSLBASE}}
45 --with-unixodbc={{LOCALBASE}}
47 INSTALL_TARGET= install-strip
53 ${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
54 's|<malloc.h>|<stdlib.h>| ; \
55 s|/freetds.conf|/freetds.conf.sample|g ; \
56 s|/locales.conf|/locales.conf.sample|g ; \
57 s|/pool.conf|/pool.conf.sample|g ; \
59 ${REINPLACE_CMD} -e 's|\(\$with_iodbc/include\)|\1/libiodbc|g' \
60 ${WRKSRC}/configure.ac
63 ${INSTALL_DATA} ${WRKSRC}/interfaces \
64 ${STAGEDIR}${PREFIX}/etc/freetds/interfaces.sample
67 (cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.sample)
68 (cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.sample)
69 (cd ${WRKSRC}/src/pool && ${LN} -s pool.conf pool.conf.sample)
71 [FILE:487:descriptions/desc.primary]
72 FreeTDS is a set of libraries for Unix and Linux that allows your
73 programs to natively talk to Microsoft SQL Server and Sybase databases.
75 Technically speaking, FreeTDS is an open source implementation of the
76 TDS (Tabular Data Stream) protocol used by these databases for their
77 own clients. It supports many different flavors of the protocol and
78 three APIs to access it. Additionally FreeTDS works with other software
79 such as Perl and PHP, providing access from those languages as well.
83 dba02e7f0661ff42dc289fc41d7cde7e03089fd326f08ee28c872ac9ff4a1c84 2243425 freetds-1.3.3.tar.bz2
86 [FILE:873:manifests/plist.primary]
87 @sample etc/freetds/freetds.conf.sample
88 @sample etc/freetds/interfaces.sample
89 @sample etc/freetds/locales.conf.sample
90 @sample etc/freetds/pool.conf.sample
91 %%EXCLUDE-DARWIN%%lib/
95 libtdsodbc.0.%%SHARED_OBJECT%%
96 libtdsodbc.0.0.0.%%SHARED_OBJECT%%
130 libtdsodbc.%%SHARED_OBJECT%%
142 share/man/man5/freetds.conf.5.gz
145 [FILE:420:patches/patch-src_tds_sec__negotiate__openssl.h]
146 --- src/tds/sec_negotiate_openssl.h.orig 2021-06-04 12:12:02 UTC
147 +++ src/tds/sec_negotiate_openssl.h
149 #error HAVE_OPENSSL not defines, this file should not be included
152 +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
153 +#undef OPENSSL_VERSION_NUMBER
154 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
157 static inline const BIGNUM*
158 rsa_get_n(const RSA *rsa)
162 [FILE:654:patches/patch-src_tds_tls.c]
163 --- src/tds/tls.c.orig 2021-06-04 12:12:41 UTC
166 #include <sys/socket.h>
169 +#if defined(__FreeBSD__) || defined(__DragonFly__)
170 +#include <sys/socket.h>
173 #include <freetds/tds.h>
174 #include <freetds/utils/string.h>
175 #include <freetds/tls.h>
180 +#ifdef LIBRESSL_VERSION_NUMBER
181 +#if LIBRESSL_VERSION_NUMBER < 0x2070000FL
182 +static pthread_mutex_t *openssllocks;
183 +#undef OPENSSL_VERSION_NUMBER
184 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
186 +#define TLS_ST_OK SSL_ST_OK
189 /* some compatibility layer */
190 #if !HAVE_BIO_GET_DATA