Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=066cc8fae54087ecb28514ccf4e0cb874d74fcfc

commit 066cc8fae54087ecb28514ccf4e0cb874d74fcfc
Author: DeX77 <de...@frugalware.org>
Date:   Thu Oct 13 13:26:03 2016 +0200

mbedtls-2.3.0-1-x86_64

* new package

diff --git a/source/lib/mbedtls/FrugalBuild b/source/lib/mbedtls/FrugalBuild
new file mode 100644
index 0000000..81c6bb8
--- /dev/null
+++ b/source/lib/mbedtls/FrugalBuild
@@ -0,0 +1,30 @@
+# Compiling Time: 26.46 SBU
+# Maintainer: DeX77 <de...@frugalware.org>
+
+pkgname=mbedtls
+pkgver=2.3.0
+pkgextraver="-gpl"
+pkgrel=1
+pkgdesc="Portable cryptographic and SSL/TLS library, aka polarssl"
+archs=('i686' 'x86_64')
+groups=("lib")
+url="https://tls.mbed.org";
+source=("$url/download/$pkgname-$pkgver$pkgextraver.tgz" \
+       non_embedded.patch)
+up2date="Flasttar $url/download"
+sha1sums=('c56d2743a2158fccbf5536d18a11196eca76fc76' \
+          '04ce990f056078cf8ce5134e011b888791e294b1')
+depends=('glibc')
+options=('static')
+_F_archive_ver="$pkgver"
+export  LDFLAGS+=" -fPIC"
+_F_make_opts+=" SHARED=1 no_test"
+
+build() {
+       Fbuild
+       Fmkdir usr/bin/
+       Fmv bin/ usr/
+       Fmv include/ usr/
+       Fmv lib/ usr/
+}
+
diff --git a/source/lib/mbedtls/non_embedded.patch 
b/source/lib/mbedtls/non_embedded.patch
new file mode 100644
index 0000000..5340649
--- /dev/null
+++ b/source/lib/mbedtls/non_embedded.patch
@@ -0,0 +1,20 @@
+--- mbedtls-2.3.0/include/mbedtls/config.h     2016-06-28 14:42:06.000000000 
+0200
++++ mbedtls-2.3.0.new/include/mbedtls/config.h 2016-10-13 13:12:30.000000000 
+0200
+@@ -1293,7 +1293,7 @@
+  *
+  * Uncomment this to enable pthread mutexes.
+  */
+-//#define MBEDTLS_THREADING_PTHREAD
++#define MBEDTLS_THREADING_PTHREAD
+
+ /**
+  * \def MBEDTLS_VERSION_FEATURES
+@@ -2317,7 +2317,7 @@
+  *
+  * Enable this layer to allow use of mutexes within mbed TLS
+  */
+-//#define MBEDTLS_THREADING_C
++#define MBEDTLS_THREADING_C
+
+ /**
+  * \def MBEDTLS_TIMING_C
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to