New package: mbedtls-1.3.10 (supersedes polarssl).

This commit is contained in:
Juan RP 2015-02-24 11:27:27 +01:00
parent 4692d8b7c4
commit f71698e46a
3 changed files with 39 additions and 1 deletions

View File

@ -1363,7 +1363,6 @@ libmutter-wayland.so.0 mutter-wayland-3.10.1_1
libgdiplus.so.0 libgdiplus-2.10.9_1 libgdiplus.so.0 libgdiplus-2.10.9_1
libmonosgen-2.0.so.1 mono-3.2.3_1 libmonosgen-2.0.so.1 mono-3.2.3_1
libshout-idjc.so.3 libshout-idjc-2.3.1_1 libshout-idjc.so.3 libshout-idjc-2.3.1_1
libpolarssl.so.7 libpolarssl-1.3.8_1
libmonoboehm-2.0.so.1 mono-3.2.3_1 libmonoboehm-2.0.so.1 mono-3.2.3_1
libglusterfs.so.0 libglusterfs-3.4.1_1 libglusterfs.so.0 libglusterfs-3.4.1_1
libgfrpc.so.0 libglusterfs-3.4.1_1 libgfrpc.so.0 libglusterfs-3.4.1_1
@ -1927,3 +1926,4 @@ librrd_th.so.4 rrdtool-1.4.9_1
libmosquitto.so.1 libmosquitto-1.4_1 libmosquitto.so.1 libmosquitto-1.4_1
libmosquittopp.so.1 libmosquittopp-1.4_1 libmosquittopp.so.1 libmosquittopp-1.4_1
libmpv.so.1 mpv-0.8.0_2 libmpv.so.1 mpv-0.8.0_2
libmbedtls.so.8 mbedtls-1.3.10_1

1
srcpkgs/mbedtls-devel Symbolic link
View File

@ -0,0 +1 @@
mbedtls

37
srcpkgs/mbedtls/template Normal file
View File

@ -0,0 +1,37 @@
# Template file for 'mbedtls'
pkgname=mbedtls
version=1.3.10
revision=1
replaces="polarssl>=0 libpolarssl>=0"
makedepends="zlib-devel libressl-devel"
short_desc="Portable cryptographic TLS library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="https://tls.mbed.org/"
distfiles="https://tls.mbed.org/download/mbedtls-${version}-gpl.tgz"
checksum=746fd88e0c6623691fc56c4eed52e40a57b2da0ac80f6dd8995094aa6adb407e
do_build() {
sed -i -e 's|//\(#define POLARSSL_THREADING_C\)|\1|' \
-e 's|//\(#define POLARSSL_THREADING_PTHREAD\)|\1|' \
include/polarssl/config.h
make CC=$CC SHARED=1 ${makejobs} no_test
}
do_install() {
make DESTDIR=${DESTDIR}/usr install
rm ${DESTDIR}/usr/lib/libmbedtls.so
rm ${DESTDIR}/usr/lib/libpolarssl.so
ln -s libmbedtls.so.8 ${DESTDIR}/usr/lib/libmedtls.so
ln -s libmbedtls.so.8 ${DESTDIR}/usr/lib/libpolarssl.so
}
mbedtls-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
replaces="polarssl-devel>=0"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}