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.51.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 pkgconfig readline ssl
29 FPC_EQUIVALENT= databases/freetds
32 CONFIGURE_ARGS= --with-tdsver=7.4
33 --sysconfdir={{PREFIX}}/etc/freetds
34 --enable-sybase-compat
36 --with-openssl={{OPENSSLBASE}}
37 --with-unixodbc={{LOCALBASE}}
39 INSTALL_TARGET= install-strip
45 @${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
46 's|<malloc.h>|<stdlib.h>| ; \
47 s|/freetds.conf|/freetds.conf.sample|g ; \
48 s|/locales.conf|/locales.conf.sample|g ; \
49 s|/pool.conf|/pool.conf.sample|g ; \
51 @${REINPLACE_CMD} -e 's|\(\$with_iodbc/include\)|\1/libiodbc|g' \
52 ${WRKSRC}/configure.ac
55 ${INSTALL_DATA} ${WRKSRC}/interfaces \
56 ${STAGEDIR}${PREFIX}/etc/freetds/interfaces.sample
59 @cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.sample
60 @cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.sample
61 @cd ${WRKSRC}/src/pool && ${LN} -s pool.conf pool.conf.sample
63 [FILE:487:descriptions/desc.primary]
64 FreeTDS is a set of libraries for Unix and Linux that allows your
65 programs to natively talk to Microsoft SQL Server and Sybase databases.
67 Technically speaking, FreeTDS is an open source implementation of the
68 TDS (Tabular Data Stream) protocol used by these databases for their
69 own clients. It supports many different flavors of the protocol and
70 three APIs to access it. Additionally FreeTDS works with other software
71 such as Perl and PHP, providing access from those languages as well.
75 8b4c04809787bd32a8ace7329b99282e02c617f82c02e1e461462e36806f4428 2149742 freetds-1.00.51.tar.bz2
78 [FILE:757: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
124 share/man/man5/freetds.conf.5.gz
135 [FILE:450:patches/patch-include_freetds_tds.h]
136 --- include/freetds/tds.h.orig 2015-06-09 10:34:04 UTC
137 +++ include/freetds/tds.h
138 @@ -144,7 +144,10 @@ typedef struct
139 TDS_INT date; /**< date, 0 = 1900-01-01 */
140 TDS_SMALLINT offset; /**< time offset */
141 TDS_USMALLINT time_prec:3;
142 - TDS_USMALLINT _res:10;
143 +#pragma push_macro("_res")
145 + TDS_USMALLINT _res:10;
146 +#pragma pop_macro("_res")
147 TDS_USMALLINT has_time:1;
148 TDS_USMALLINT has_date:1;
149 TDS_USMALLINT has_offset:1;
152 [FILE:373:patches/patch-src_tds_sec_negotiate_openssl.h]
153 --- src/tds/sec_negotiate_openssl.h.orig 2017-03-06 16:07:14 UTC
154 +++ src/tds/sec_negotiate_openssl.h
156 #error HAVE_OPENSSL not defines, this file should not be included
159 +#ifdef LIBRESSL_VERSION_NUMBER
160 +#undef OPENSSL_VERSION_NUMBER
161 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
164 static inline const BIGNUM*
165 rsa_get_n(const RSA *rsa)
169 [FILE:606:patches/patch-src_tds_tls.c]
170 --- src/tds/tls.c.orig 2015-06-09 10:38:40 UTC
173 #include <sys/stat.h>
174 #endif /* HAVE_SYS_STAT_H */
176 +#if defined(__FreeBSD__) || defined(__DragonFly__)
177 +#include <sys/socket.h>
180 #include <freetds/tds.h>
181 #include <freetds/string.h>
182 #include <freetds/tls.h>
187 +#ifdef LIBRESSL_VERSION_NUMBER
188 +static pthread_mutex_t *openssllocks;
189 +#undef OPENSSL_VERSION_NUMBER
190 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
193 /* some compatibility layer */
194 #if OPENSSL_VERSION_NUMBER < 0x1010000FL