Ravenports generated: 25 Nov 2019 17:36
[ravenports.git] / bucket_93 / freetds
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               freetds
4 VERSION=                1.1.21
5 KEYWORDS=               databases
6 VARIANTS=               standard
7 SDESC[standard]=        Sybase/Microsoft TDS protocol library
8 HOMEPAGE=               https://www.freetds.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://www.freetds.org/files/stable/
13 DISTFILE[1]=            freetds-1.1.21.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
28                         pkgconfig readline ssl
29
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
35 LICENSE_SCHEME=         solo
36
37 FPC_EQUIVALENT=         databases/freetds
38
39 INVALID_RPATH=          yes
40 MUST_CONFIGURE=         gnu
41 CONFIGURE_ARGS=         --with-tdsver=7.4
42                         --sysconfdir={{PREFIX}}/etc/freetds
43                         --enable-sybase-compat
44                         --enable-msdblib
45                         --with-openssl={{OPENSSLBASE}}
46                         --with-unixodbc={{LOCALBASE}}
47
48 INSTALL_TARGET=         install-strip
49
50 LDFLAGS=                -lgcrypt
51                         -lpthread
52
53 post-patch:
54         ${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
55                 's|<malloc.h>|<stdlib.h>| ; \
56                  s|/freetds.conf|/freetds.conf.sample|g ; \
57                  s|/locales.conf|/locales.conf.sample|g ; \
58                  s|/pool.conf|/pool.conf.sample|g ; \
59                  s| common.h||g'
60         ${REINPLACE_CMD} -e 's|\(\$with_iodbc/include\)|\1/libiodbc|g' \
61                 ${WRKSRC}/configure.ac
62
63 post-install:
64         ${INSTALL_DATA} ${WRKSRC}/interfaces \
65                 ${STAGEDIR}${PREFIX}/etc/freetds/interfaces.sample
66
67 post-extract:
68         (cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.sample)
69         (cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.sample)
70         (cd ${WRKSRC}/src/pool && ${LN} -s pool.conf pool.conf.sample)
71
72 [FILE:487:descriptions/desc.primary]
73 FreeTDS is a set of libraries for Unix and Linux that allows your
74 programs to natively talk to Microsoft SQL Server and Sybase databases.
75
76 Technically speaking, FreeTDS is an open source implementation of the
77 TDS (Tabular Data Stream) protocol used by these databases for their
78 own clients. It supports many different flavors of the protocol and
79 three APIs to access it. Additionally FreeTDS works with other software
80 such as Perl and PHP, providing access from those languages as well.
81
82
83 [FILE:101:distinfo]
84 e379e7e8c3609bdd3c4f67da497c8e5e7ba74538bbe8c933505c5bf6e2e86032      2259484 freetds-1.1.21.tar.bz2
85
86
87 [FILE:873: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
92 %%EXCLUDE-DARWIN%%lib/
93  libtdsodbc.so.0
94  libtdsodbc.so.0.0.0
95 %%ONLY-DARWIN%%lib/
96  libtdsodbc.0.%%SHARED_OBJECT%%
97  libtdsodbc.0.0.0.%%SHARED_OBJECT%%
98 bin/
99  bsqldb
100  bsqlodbc
101  datacopy
102  defncopy
103  fisql
104  freebcp
105  osql
106  tdspool
107  tsql
108 include/
109  bkpublic.h
110  cspublic.h
111  cstypes.h
112  ctpublic.h
113  odbcss.h
114  sqldb.h
115  sqlfront.h
116  sybdb.h
117  syberror.h
118  sybfront.h
119  tds_sysdep_public.h
120 lib/
121  libct.a
122  libct.la
123  libct.so
124  libct.so.4
125  libct.so.4.0.0
126  libsybdb.a
127  libsybdb.la
128  libsybdb.so
129  libsybdb.so.5
130  libsybdb.so.5.1.0
131  libtdsodbc.%%SHARED_OBJECT%%
132  libtdsodbc.a
133  libtdsodbc.la
134 share/man/man1/
135  bsqldb.1.gz
136  bsqlodbc.1.gz
137  datacopy.1.gz
138  defncopy.1.gz
139  fisql.1.gz
140  freebcp.1.gz
141  osql.1.gz
142  tsql.1.gz
143 share/man/man5/freetds.conf.5.gz
144
145
146 [FILE:420:patches/patch-src_tds_sec__negotiate__openssl.h]
147 --- src/tds/sec_negotiate_openssl.h.orig        2019-02-04 19:03:20 UTC
148 +++ src/tds/sec_negotiate_openssl.h
149 @@ -37,6 +37,11 @@
150  #error HAVE_OPENSSL not defines, this file should not be included
151  #endif
152  
153 +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
154 +#undef OPENSSL_VERSION_NUMBER
155 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
156 +#endif
157 +
158  static inline const BIGNUM*
159  rsa_get_n(const RSA *rsa)
160  {
161
162
163 [FILE:654:patches/patch-src_tds_tls.c]
164 --- src/tds/tls.c.orig  2019-10-17 08:51:16 UTC
165 +++ src/tds/tls.c
166 @@ -53,6 +53,10 @@
167  #include <sys/socket.h>
168  #endif
169  
170 +#if defined(__FreeBSD__) || defined(__DragonFly__)
171 +#include <sys/socket.h>
172 +#endif
173 +
174  #include <freetds/tds.h>
175  #include <freetds/utils/string.h>
176  #include <freetds/tls.h>
177 @@ -75,6 +79,15 @@
178  #define SSL_PTR ptr
179  #else
180  
181 +#ifdef LIBRESSL_VERSION_NUMBER
182 +#if LIBRESSL_VERSION_NUMBER < 0x2070000FL
183 +static pthread_mutex_t *openssllocks;
184 +#undef OPENSSL_VERSION_NUMBER
185 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
186 +#endif
187 +#define TLS_ST_OK SSL_ST_OK
188 +#endif
189 +
190  /* some compatibility layer */
191  #if !HAVE_BIO_GET_DATA
192  static inline void
193