diff options
author | kyechou | 2020-05-28 18:35:41 -0500 |
---|---|---|
committer | kyechou | 2020-05-28 18:35:41 -0500 |
commit | a92b2a881174d26e794730a3d1a7967794720e7d (patch) | |
tree | 3372a21c55f05a31ccc195238c88062de8ac1ba6 | |
download | aur-thrift-0.9.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 67 | ||||
-rw-r--r-- | THRIFT-3576.patch | 23 | ||||
-rw-r--r-- | sslv23.patch | 13 |
4 files changed, 126 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a72cd0c2511 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = thrift-0.9 + pkgdesc = Scalable cross-language services framework for IPC/RPC + pkgver = 0.9.3 + pkgrel = 1 + url = http://thrift.apache.org/ + arch = i686 + arch = x86_64 + license = APACHE + makedepends = qt5-base + makedepends = boost + makedepends = libevent + depends = gcc-libs + depends = openssl + optdepends = qt5-base: TQTcpServer support + source = https://github.com/apache/thrift/archive/0.9.3.tar.gz + source = sslv23.patch + source = THRIFT-3576.patch + sha512sums = 743131b276155c2d178404e190bdebcc12cedf42956f3d83177ebb4e4b85768b111a999dcf054594e92c120431323769a9641fc2ff2efade983191afd0786c2c + sha512sums = bb84c9b14ad01c220c79305ec0661d9a5674a0f98ad0608afa5729b92bea82892c436d09c5e83270a00780b3264260d64b7b49f4ef02fbebc5fc09d4dd2a37c9 + sha512sums = 6a091887f7d9dede834ca8b53af6df44b6dd6c73fc3a8615dc78f3fca405a6c9975d8dd138878603eb9d64350ad81fc08c8719dff3db045363852f57de866587 + +pkgname = thrift-0.9 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f522aa69a939 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com> + +pkgname=thrift-0.9 +pkgver=0.9.3 +pkgrel=1 +pkgdesc='Scalable cross-language services framework for IPC/RPC' +arch=(i686 x86_64) +url='http://thrift.apache.org/' +license=(APACHE) +depends=(gcc-libs openssl) +makedepends=(qt5-base boost libevent) +optdepends=( + 'qt5-base: TQTcpServer support' +) +source=("https://github.com/apache/thrift/archive/$pkgver.tar.gz" + sslv23.patch + THRIFT-3576.patch) +sha512sums=('743131b276155c2d178404e190bdebcc12cedf42956f3d83177ebb4e4b85768b111a999dcf054594e92c120431323769a9641fc2ff2efade983191afd0786c2c' + 'bb84c9b14ad01c220c79305ec0661d9a5674a0f98ad0608afa5729b92bea82892c436d09c5e83270a00780b3264260d64b7b49f4ef02fbebc5fc09d4dd2a37c9' + '6a091887f7d9dede834ca8b53af6df44b6dd6c73fc3a8615dc78f3fca405a6c9975d8dd138878603eb9d64350ad81fc08c8719dff3db045363852f57de866587') + +prepare() { + cd thrift-$pkgver + patch -p2 -i "$srcdir/sslv23.patch" + patch -p1 -i "$srcdir/THRIFT-3576.patch" +} + +build() { + cd thrift-$pkgver + + ./bootstrap.sh + ./configure --prefix=/usr \ + --with-cpp \ + --with-c_glib \ + --with-qt5 \ + --with-libevent \ + --with-csharp \ + --without-java \ + --without-boost \ + --without-haskell \ + --without-php \ + --without-ruby \ + --without-python \ + --without-erlang \ + --without-perl \ + --without-c_sharp \ + --without-d \ + --without-php \ + --without-go \ + --without-lua \ + --without-nodejs + + make +} + +check() { + cd thrift-$pkgver + make check +} + +package() { + cd thrift-$pkgver + make DESTDIR="$pkgdir" install + install -m0644 -D contrib/thrift.vim "$pkgdir"/usr/share/vim/vimfiles/syntax/thrift.vim +} + +# vim: set ts=4 sw=4 et : diff --git a/THRIFT-3576.patch b/THRIFT-3576.patch new file mode 100644 index 000000000000..e9cac3ea0c68 --- /dev/null +++ b/THRIFT-3576.patch @@ -0,0 +1,23 @@ +From c261c69d4e64455b912524b6df603be0f169d29c Mon Sep 17 00:00:00 2001 +From: Nobuaki Sukegawa <nsuke@apache.org> +Date: Sat, 23 Jan 2016 22:45:20 +0900 +Subject: [PATCH] THRIFT-3576 Boost test --log_format arg does not accept + lowercase + +--- + lib/cpp/test/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/cpp/test/Makefile.am b/lib/cpp/test/Makefile.am +index 1895afc..61865de 100755 +--- a/lib/cpp/test/Makefile.am ++++ b/lib/cpp/test/Makefile.am +@@ -101,7 +101,7 @@ endif + TESTS_ENVIRONMENT= \ + BOOST_TEST_LOG_SINK=tests.xml \ + BOOST_TEST_LOG_LEVEL=test_suite \ +- BOOST_TEST_LOG_FORMAT=xml ++ BOOST_TEST_LOG_FORMAT=XML + + TESTS = \ + $(check_PROGRAMS) diff --git a/sslv23.patch b/sslv23.patch new file mode 100644 index 000000000000..bd20e2600a27 --- /dev/null +++ b/sslv23.patch @@ -0,0 +1,13 @@ +diff --git a/thrift-0.9.3/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/thrift-0.9.3/lib/cpp/src/thrift/transport/TSSLSocket.cpp +index 98c5326..cb8ef6e 100644 +--- a/thrift-0.9.3/lib/cpp/src/thrift/transport/TSSLSocket.cpp ++++ b/thrift-0.9.3/lib/cpp/src/thrift/transport/TSSLSocket.cpp +@@ -140,7 +140,7 @@ SSLContext::SSLContext(const SSLProtocol& protocol) { + if (protocol == SSLTLS) { + ctx_ = SSL_CTX_new(SSLv23_method()); + } else if (protocol == SSLv3) { +- ctx_ = SSL_CTX_new(SSLv3_method()); ++ ctx_ = SSL_CTX_new(SSLv23_method()); + } else if (protocol == TLSv1_0) { + ctx_ = SSL_CTX_new(TLSv1_method()); + } else if (protocol == TLSv1_1) { |