Ravenports generated: 04 Sep 2021 20:43
[ravenports.git] / bucket_93 / freetds
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               freetds
4 VERSION=                1.3.3
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.3.3.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 cpe gettext-tools gmake iconv
28                         libtool:keepla 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 MUST_CONFIGURE=         gnu
40 CONFIGURE_ARGS=         --with-tdsver=7.4
41                         --sysconfdir={{PREFIX}}/etc/freetds
42                         --enable-sybase-compat
43                         --enable-msdblib
44                         --with-openssl={{OPENSSLBASE}}
45                         --with-unixodbc={{LOCALBASE}}
46
47 INSTALL_TARGET=         install-strip
48
49 LDFLAGS=                -lgcrypt
50                         -lpthread
51
52 post-patch:
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 ; \
58                  s| common.h||g'
59         ${REINPLACE_CMD} -e 's|\(\$with_iodbc/include\)|\1/libiodbc|g' \
60                 ${WRKSRC}/configure.ac
61
62 post-install:
63         ${INSTALL_DATA} ${WRKSRC}/interfaces \
64                 ${STAGEDIR}${PREFIX}/etc/freetds/interfaces.sample
65
66 post-extract:
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)
70
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.
74
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.
80
81
82 [FILE:100:distinfo]
83 dba02e7f0661ff42dc289fc41d7cde7e03089fd326f08ee28c872ac9ff4a1c84      2243425 freetds-1.3.3.tar.bz2
84
85
86 [FILE:873: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
91 %%EXCLUDE-DARWIN%%lib/
92  libtdsodbc.so.0
93  libtdsodbc.so.0.0.0
94 %%ONLY-DARWIN%%lib/
95  libtdsodbc.0.%%SHARED_OBJECT%%
96  libtdsodbc.0.0.0.%%SHARED_OBJECT%%
97 bin/
98  bsqldb
99  bsqlodbc
100  datacopy
101  defncopy
102  fisql
103  freebcp
104  osql
105  tdspool
106  tsql
107 include/
108  bkpublic.h
109  cspublic.h
110  cstypes.h
111  ctpublic.h
112  odbcss.h
113  sqldb.h
114  sqlfront.h
115  sybdb.h
116  syberror.h
117  sybfront.h
118  tds_sysdep_public.h
119 lib/
120  libct.a
121  libct.la
122  libct.so
123  libct.so.4
124  libct.so.4.0.0
125  libsybdb.a
126  libsybdb.la
127  libsybdb.so
128  libsybdb.so.5
129  libsybdb.so.5.1.0
130  libtdsodbc.%%SHARED_OBJECT%%
131  libtdsodbc.a
132  libtdsodbc.la
133 share/man/man1/
134  bsqldb.1.gz
135  bsqlodbc.1.gz
136  datacopy.1.gz
137  defncopy.1.gz
138  fisql.1.gz
139  freebcp.1.gz
140  osql.1.gz
141  tsql.1.gz
142 share/man/man5/freetds.conf.5.gz
143
144
145 [FILE:420:patches/patch-src_tds_sec__negotiate__openssl.h]
146 --- src/tds/sec_negotiate_openssl.h.orig        2021-06-04 12:12:02 UTC
147 +++ src/tds/sec_negotiate_openssl.h
148 @@ -37,6 +37,11 @@
149  #error HAVE_OPENSSL not defines, this file should not be included
150  #endif
151  
152 +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
153 +#undef OPENSSL_VERSION_NUMBER
154 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
155 +#endif
156 +
157  static inline const BIGNUM*
158  rsa_get_n(const RSA *rsa)
159  {
160
161
162 [FILE:654:patches/patch-src_tds_tls.c]
163 --- src/tds/tls.c.orig  2021-06-04 12:12:41 UTC
164 +++ src/tds/tls.c
165 @@ -53,6 +53,10 @@
166  #include <sys/socket.h>
167  #endif
168  
169 +#if defined(__FreeBSD__) || defined(__DragonFly__)
170 +#include <sys/socket.h>
171 +#endif
172 +
173  #include <freetds/tds.h>
174  #include <freetds/utils/string.h>
175  #include <freetds/tls.h>
176 @@ -75,6 +79,15 @@
177  #define SSL_PTR ptr
178  #else
179  
180 +#ifdef LIBRESSL_VERSION_NUMBER
181 +#if LIBRESSL_VERSION_NUMBER < 0x2070000FL
182 +static pthread_mutex_t *openssllocks;
183 +#undef OPENSSL_VERSION_NUMBER
184 +#define OPENSSL_VERSION_NUMBER 0x1000107fL
185 +#endif
186 +#define TLS_ST_OK SSL_ST_OK
187 +#endif
188 +
189  /* some compatibility layer */
190  #if !HAVE_BIO_GET_DATA
191  static inline void
192