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.1.21.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 gettext-tools gmake iconv libtool:keepla
28 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
41 CONFIGURE_ARGS= --with-tdsver=7.4
42 --sysconfdir={{PREFIX}}/etc/freetds
43 --enable-sybase-compat
45 --with-openssl={{OPENSSLBASE}}
46 --with-unixodbc={{LOCALBASE}}
48 INSTALL_TARGET= install-strip
54 ${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
55 's|<malloc.h>|<stdlib.h>| ; \
56 s|/freetds.conf|/freetds.conf.sample|g ; \
57 s|/locales.conf|/locales.conf.sample|g ; \
58 s|/pool.conf|/pool.conf.sample|g ; \
60 ${REINPLACE_CMD} -e 's|\(\$with_iodbc/include\)|\1/libiodbc|g' \
61 ${WRKSRC}/configure.ac
64 ${INSTALL_DATA} ${WRKSRC}/interfaces \
65 ${STAGEDIR}${PREFIX}/etc/freetds/interfaces.sample
68 (cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.sample)
69 (cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.sample)
70 (cd ${WRKSRC}/src/pool && ${LN} -s pool.conf pool.conf.sample)
72 [FILE:487:descriptions/desc.primary]
73 FreeTDS is a set of libraries for Unix and Linux that allows your
74 programs to natively talk to Microsoft SQL Server and Sybase databases.
76 Technically speaking, FreeTDS is an open source implementation of the
77 TDS (Tabular Data Stream) protocol used by these databases for their
78 own clients. It supports many different flavors of the protocol and
79 three APIs to access it. Additionally FreeTDS works with other software
80 such as Perl and PHP, providing access from those languages as well.
84 e379e7e8c3609bdd3c4f67da497c8e5e7ba74538bbe8c933505c5bf6e2e86032 2259484 freetds-1.1.21.tar.bz2
87 [FILE:873:manifests/plist.primary]
88 @sample etc/freetds/freetds.conf.sample
89 @sample etc/freetds/interfaces.sample
90 @sample etc/freetds/locales.conf.sample
91 @sample etc/freetds/pool.conf.sample
92 %%EXCLUDE-DARWIN%%lib/
96 libtdsodbc.0.%%SHARED_OBJECT%%
97 libtdsodbc.0.0.0.%%SHARED_OBJECT%%
131 libtdsodbc.%%SHARED_OBJECT%%
143 share/man/man5/freetds.conf.5.gz
146 [FILE:420:patches/patch-src_tds_sec__negotiate__openssl.h]
147 --- src/tds/sec_negotiate_openssl.h.orig 2019-02-04 19:03:20 UTC
148 +++ src/tds/sec_negotiate_openssl.h
150 #error HAVE_OPENSSL not defines, this file should not be included
153 +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
154 +#undef OPENSSL_VERSION_NUMBER
155 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
158 static inline const BIGNUM*
159 rsa_get_n(const RSA *rsa)
163 [FILE:654:patches/patch-src_tds_tls.c]
164 --- src/tds/tls.c.orig 2019-10-17 08:51:16 UTC
167 #include <sys/socket.h>
170 +#if defined(__FreeBSD__) || defined(__DragonFly__)
171 +#include <sys/socket.h>
174 #include <freetds/tds.h>
175 #include <freetds/utils/string.h>
176 #include <freetds/tls.h>
181 +#ifdef LIBRESSL_VERSION_NUMBER
182 +#if LIBRESSL_VERSION_NUMBER < 0x2070000FL
183 +static pthread_mutex_t *openssllocks;
184 +#undef OPENSSL_VERSION_NUMBER
185 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
187 +#define TLS_ST_OK SSL_ST_OK
190 /* some compatibility layer */
191 #if !HAVE_BIO_GET_DATA