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.94.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 5fcf59a554eb3e72a09cc49c8dba5db8ad6dced07315ed775c4b8b2b81b603e4 2152992 freetds-1.00.94.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:420: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 +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
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:666:patches/patch-src_tds_tls.c]
159 --- src/tds/tls.c.orig 2017-11-30 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 +#if LIBRESSL_VERSION_NUMBER < 0x2070000FL
178 +static pthread_mutex_t *openssllocks;
179 +#undef OPENSSL_VERSION_NUMBER
180 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
182 +#define TLS_ST_OK SSL_ST_OK
185 /* some compatibility layer */
186 #if OPENSSL_VERSION_NUMBER < 0x1010000FL