Ravenports generated: 09 Aug 2017 12:08
[ravenports.git] / bucket_93 / freetds
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               freetds
4 VERSION=                1.00.51
5 KEYWORDS=               databases
6 VARIANTS=               standard
7 SDESC[standard]=        Sybase/Microsoft TDS protocol library
8 HOMEPAGE=               http://www.freetds.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            ftp://ftp.freetds.org/pub/freetds/stable/
13 DISTFILE[1]=            freetds-1.00.51.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         docs
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 BROKEN_SSL=             openssl-devel
23
24 BUILDRUN_DEPENDS=       libgcrypt:single:standard
25                         unixODBC:primary:standard
26
27 USES=                   autoreconf gettext-tools gmake iconv libtool:keepla pkgconfig readline ssl
28
29 FPC_EQUIVALENT=         databases/freetds
30
31 MUST_CONFIGURE=         gnu
32 CONFIGURE_ARGS=         --with-tdsver=7.4
33                         --sysconfdir={{PREFIX}}/etc/freetds
34                         --enable-sybase-compat
35                         --enable-msdblib
36                         --with-openssl={{OPENSSLBASE}}
37                         --with-unixodbc={{LOCALBASE}}
38
39 INSTALL_TARGET=         install-strip
40
41 LDFLAGS=                -lgcrypt
42                         -lpthread
43
44 post-patch:
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 ; \
50                  s| common.h||g'
51         @${REINPLACE_CMD} -e 's|\(\$with_iodbc/include\)|\1/libiodbc|g' \
52                 ${WRKSRC}/configure.ac
53
54 post-install:
55         ${INSTALL_DATA} ${WRKSRC}/interfaces \
56                 ${STAGEDIR}${PREFIX}/etc/freetds/interfaces.sample
57
58 post-extract:
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
62
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.
66
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.
72
73
74 [FILE:102:distinfo]
75 8b4c04809787bd32a8ace7329b99282e02c617f82c02e1e461462e36806f4428      2149742 freetds-1.00.51.tar.bz2
76
77
78 [FILE:757:manifests/plist.primary]
79 bin/
80  bsqldb
81  datacopy
82  defncopy
83  freebcp
84  fisql
85  osql
86  tdspool
87  tsql
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 include/
93  bkpublic.h
94  cspublic.h
95  cstypes.h
96  ctpublic.h
97  odbcss.h
98  sqldb.h
99  sqlfront.h
100  sybdb.h
101  syberror.h
102  sybfront.h
103  tds_sysdep_public.h
104 lib/
105  libct.a
106  libct.la
107  libct.so
108  libct.so.4
109  libct.so.4.0.0
110  libsybdb.a
111  libsybdb.la
112  libsybdb.so
113  libsybdb.so.5
114  libsybdb.so.5.1.0
115 share/man/man1/
116  bsqldb.1.gz
117  bsqlodbc.1.gz
118  datacopy.1.gz
119  defncopy.1.gz
120  fisql.1.gz
121  freebcp.1.gz
122  osql.1.gz
123  tsql.1.gz
124 share/man/man5/freetds.conf.5.gz
125 bin/
126  bsqlodbc
127 lib/
128  libtdsodbc.so
129  libtdsodbc.so.0
130  libtdsodbc.so.0.0.0
131  libtdsodbc.la
132  libtdsodbc.a
133
134
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")
144 +#undef _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;
150
151
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
155 @@ -37,6 +37,11 @@
156  #error HAVE_OPENSSL not defines, this file should not be included
157  #endif
158  
159 +#ifdef LIBRESSL_VERSION_NUMBER
160 +#undef OPENSSL_VERSION_NUMBER
161 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
162 +#endif
163 +
164  static inline const BIGNUM*
165  rsa_get_n(const RSA *rsa)
166  {
167
168
169 [FILE:606:patches/patch-src_tds_tls.c]
170 --- src/tds/tls.c.orig  2015-06-09 10:38:40 UTC
171 +++ src/tds/tls.c
172 @@ -46,6 +46,10 @@
173  #include <sys/stat.h>
174  #endif /* HAVE_SYS_STAT_H */
175  
176 +#if defined(__FreeBSD__) || defined(__DragonFly__)
177 +#include <sys/socket.h>
178 +#endif
179 +
180  #include <freetds/tds.h>
181  #include <freetds/string.h>
182  #include <freetds/tls.h>
183 @@ -72,6 +76,12 @@
184  #define SSL_PTR ptr
185  #else
186  
187 +#ifdef LIBRESSL_VERSION_NUMBER
188 +static pthread_mutex_t *openssllocks;
189 +#undef OPENSSL_VERSION_NUMBER
190 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
191 +#endif
192 +
193  /* some compatibility layer */
194  #if OPENSSL_VERSION_NUMBER < 0x1010000FL
195  static inline void
196