1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Sybase/Microsoft TDS protocol library
8 HOMEPAGE= http://www.freetds.org/
12 SITES[main]= ftp://ftp.freetds.org/pub/freetds/stable/
13 DISTFILE[1]= freetds-1.00.91.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
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 4218c83dc7d8f8c6e1f53b7d40233226ac5c3cf407de00b21952c0dd3a218311 2152567 freetds-1.00.91.tar.bz2
86 [FILE:747: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
138 share/man/man5/freetds.conf.5.gz
141 [FILE:373:patches/patch-src_tds_sec_negotiate_openssl.h]
142 --- src/tds/sec_negotiate_openssl.h.orig 2017-02-15 09:00:01 UTC
143 +++ src/tds/sec_negotiate_openssl.h
145 #error HAVE_OPENSSL not defines, this file should not be included
148 +#ifdef LIBRESSL_VERSION_NUMBER
149 +#undef OPENSSL_VERSION_NUMBER
150 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
153 static inline const BIGNUM*
154 rsa_get_n(const RSA *rsa)
158 [FILE:586:patches/patch-src_tds_tls.c]
159 --- src/tds/tls.c.orig 2017-02-15 09:00:01 UTC
162 #include <sys/socket.h>
165 +#if defined(__FreeBSD__) || defined(__DragonFly__)
166 +#include <sys/socket.h>
169 #include <freetds/tds.h>
170 #include <freetds/string.h>
171 #include <freetds/tls.h>
176 +#ifdef LIBRESSL_VERSION_NUMBER
177 +static pthread_mutex_t *openssllocks;
178 +#undef OPENSSL_VERSION_NUMBER
179 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
182 /* some compatibility layer */
183 #if OPENSSL_VERSION_NUMBER < 0x1010000FL