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.70.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 FPC_EQUIVALENT= databases/freetds
33 CONFIGURE_ARGS= --with-tdsver=7.4
34 --sysconfdir={{PREFIX}}/etc/freetds
35 --enable-sybase-compat
37 --with-openssl={{OPENSSLBASE}}
38 --with-unixodbc={{LOCALBASE}}
40 INSTALL_TARGET= install-strip
46 @${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
47 's|<malloc.h>|<stdlib.h>| ; \
48 s|/freetds.conf|/freetds.conf.sample|g ; \
49 s|/locales.conf|/locales.conf.sample|g ; \
50 s|/pool.conf|/pool.conf.sample|g ; \
52 @${REINPLACE_CMD} -e 's|\(\$with_iodbc/include\)|\1/libiodbc|g' \
53 ${WRKSRC}/configure.ac
56 ${INSTALL_DATA} ${WRKSRC}/interfaces \
57 ${STAGEDIR}${PREFIX}/etc/freetds/interfaces.sample
60 @cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.sample
61 @cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.sample
62 @cd ${WRKSRC}/src/pool && ${LN} -s pool.conf pool.conf.sample
64 [FILE:487:descriptions/desc.primary]
65 FreeTDS is a set of libraries for Unix and Linux that allows your
66 programs to natively talk to Microsoft SQL Server and Sybase databases.
68 Technically speaking, FreeTDS is an open source implementation of the
69 TDS (Tabular Data Stream) protocol used by these databases for their
70 own clients. It supports many different flavors of the protocol and
71 three APIs to access it. Additionally FreeTDS works with other software
72 such as Perl and PHP, providing access from those languages as well.
76 f76319f65beadc2a189a99adb79faffef2564f5378aea9b881dc2c9b1003b0f9 2150135 freetds-1.00.70.tar.bz2
79 [FILE:757:manifests/plist.primary]
89 @sample etc/freetds/freetds.conf.sample
90 @sample etc/freetds/interfaces.sample
91 @sample etc/freetds/locales.conf.sample
92 @sample etc/freetds/pool.conf.sample
125 share/man/man5/freetds.conf.5.gz
136 [FILE:373:patches/patch-src_tds_sec_negotiate_openssl.h]
137 --- src/tds/sec_negotiate_openssl.h.orig 2017-02-15 09:00:01 UTC
138 +++ src/tds/sec_negotiate_openssl.h
140 #error HAVE_OPENSSL not defines, this file should not be included
143 +#ifdef LIBRESSL_VERSION_NUMBER
144 +#undef OPENSSL_VERSION_NUMBER
145 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
148 static inline const BIGNUM*
149 rsa_get_n(const RSA *rsa)
153 [FILE:586:patches/patch-src_tds_tls.c]
154 --- src/tds/tls.c.orig 2017-02-15 09:00:01 UTC
157 #include <sys/socket.h>
160 +#if defined(__FreeBSD__) || defined(__DragonFly__)
161 +#include <sys/socket.h>
164 #include <freetds/tds.h>
165 #include <freetds/string.h>
166 #include <freetds/tls.h>
171 +#ifdef LIBRESSL_VERSION_NUMBER
172 +static pthread_mutex_t *openssllocks;
173 +#undef OPENSSL_VERSION_NUMBER
174 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
177 /* some compatibility layer */
178 #if OPENSSL_VERSION_NUMBER < 0x1010000FL