1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

security/polarssl: Update to 1.2.12

While I am here:
- Remove fetch wrapper as it is no longer required
- Strip library shared object
- Remove @dirrm* from pkg-plist

Changes:	https://raw.github.com/polarssl/polarssl/polarssl-1.2.12/ChangeLog
This commit is contained in:
Jase Thew 2014-10-27 21:48:42 +00:00
parent c43ea6fe28
commit 2c81672087
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371609
5 changed files with 11 additions and 62 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= polarssl
PORTVERSION= 1.2.10
PORTVERSION= 1.2.12
DISTVERSIONSUFFIX= -gpl
CATEGORIES= security devel
MASTER_SITES= http://polarssl.org/download/
@ -11,10 +11,6 @@ COMMENT= Open Source embedded SSL/TLS cryptographic library
LICENSE= GPLv2
# bypass the HTML "now downloading..." splash site, code below
# .include <bsd.port.pre.mk>
URL_SUFFIX= ?do=yes
FETCH_ARGS= -pRro ${DISTFILES}
ALL_TARGET= no_test
USES= gmake tar:tgz
@ -37,8 +33,9 @@ BINFILES= aescrypt2 benchmark dh_client dh_genprime dh_server hello \
do-install:
@cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include "! -name *.orig"
${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.a ${STAGEDIR}${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.0
cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.0 libpolarssl.so
${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.5
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.5
cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.5 libpolarssl.so
.for i in ${BINFILES}
${INSTALL_PROGRAM} ${WRKSRC}/programs/*/${i} ${STAGEDIR}${PREFIX}/bin/polarssl_${i}
.endfor
@ -55,13 +52,8 @@ post-install:
.endfor
.endif
.include <bsd.port.pre.mk>
FETCH_CMD= ${SH} ${FILESDIR}/fetchwrapper.sh \
${URL_SUFFIX} ${FETCH_BINARY} ${FETCH_ARGS}
.if ${ARCH} == "powerpc"
BROKEN= Does not compile on powerpc
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (polarssl-1.2.10-gpl.tgz) = b45a06b2fdeb0833970e6fb69bc331f2757a1b7e85537b02c1f169434ed888fa
SIZE (polarssl-1.2.10-gpl.tgz) = 999515
SHA256 (polarssl-1.2.12-gpl.tgz) = 63dd60e78d25c438648607bb177b063dcf5fbf3ced9ee794fcb165d101940131
SIZE (polarssl-1.2.12-gpl.tgz) = 1021400

View File

@ -1,41 +0,0 @@
#!/bin/sh
# $FreeBSD$
# This script tacks the first argument onto each URL found in the list,
# discards and then executes the list.
# URL matching is simplistic, a URL is what matches *tp://* (so file:///
# is not matched).
# For instance, calling:
# fetchwrapper.sh '?do=yes' /usr/bin/fetch -pPr http://example.org/file
# will execute:
# /usr/bin/fetch -pPr http://example.org/file?do=yes
# The intention is to work around download splash screens on web servers.
# (C) Copyright 2013 by Matthias Andree.
# Licensed under the 2-clause BSD license.
if [ $# -lt 3 ] ; then
echo >&2 "Usage: $0 URLsuffix fetch-command [options] URL [post-options]"
exit 1
fi
patcharray() {
# based on Rich Felker's "Working with arrays",
# http://www.etalabs.net/sh_tricks.html
for i do
case "$i" in *tp://*) j=$suffix ;; *) j= ;; esac
printf %s%s\\n "$i" "$j" | sed -e "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/"
done
echo " "
}
suffix="$1" ; shift
args=$(patcharray "$@")
eval "set -- $args"
set -x
exec "$@"

View File

@ -1,5 +1,5 @@
--- library/Makefile.orig 2012-11-26 19:20:30.821850410 +0000
+++ library/Makefile 2012-11-26 19:21:01.534380354 +0000
--- library/Makefile.orig 2014-10-24 09:42:52.000000000 +0100
+++ library/Makefile 2014-10-27 20:13:26.522466123 +0000
@@ -18,9 +18,7 @@
# CFLAGS += -D_BSD_EXTENSION
@ -8,7 +8,7 @@
CFLAGS += -fPIC
-endif
SONAME=libpolarssl.so.0
SONAME=libpolarssl.so.5
@@ -53,11 +51,7 @@

View File

@ -65,8 +65,6 @@ include/polarssl/x509write.h
include/polarssl/xtea.h
lib/libpolarssl.a
lib/libpolarssl.so
lib/libpolarssl.so.0
lib/libpolarssl.so.5
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
@dirrmtry include/polarssl