svn commit: r328887 - in head/security/polarssl: . files
Jase Thew
jase at FreeBSD.org
Mon Sep 30 22:38:43 UTC 2013
Author: jase
Date: Mon Sep 30 22:38:41 2013
New Revision: 328887
URL: http://svnweb.freebsd.org/changeset/ports/328887
Log:
- Add patch to enable HAVEGE random generator
- While I'm here: enable stage support, replace USE_GMAKE with USES=gmake
PR: ports/182437
Submitted by: martymac
Added:
head/security/polarssl/files/patch-include-polarssl-config_h (contents, props changed)
Modified:
head/security/polarssl/Makefile
head/security/polarssl/pkg-plist
Modified: head/security/polarssl/Makefile
==============================================================================
--- head/security/polarssl/Makefile Mon Sep 30 22:36:19 2013 (r328886)
+++ head/security/polarssl/Makefile Mon Sep 30 22:38:41 2013 (r328887)
@@ -3,6 +3,7 @@
PORTNAME= polarssl
PORTVERSION= 1.2.8
DISTVERSIONSUFFIX= -gpl
+PORTREVISION= 1
CATEGORIES= security devel
MASTER_SITES= http://polarssl.org/download/
EXTRACT_SUFX= .tgz
@@ -18,35 +19,34 @@ URL_SUFFIX= ?do=yes
FETCH_ARGS= -pRro ${DISTFILES}
ALL_TARGET= no_test
-USE_GMAKE= yes
+USES= gmake
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-PORTDOCS= ChangeLog README
+DOCFILES= ChangeLog README
BINFILES= aescrypt2 benchmark dh_client dh_genprime dh_server hello \
md5sum mpi_demo rsa_genkey rsa_sign rsa_verify selftest \
sha1sum sha2sum ssl_cert_test ssl_client1 ssl_client2 \
ssl_server ssl_test
# cmake install is broken, so we do it by hand
-NO_STAGE= yes
do-install:
- @${TAR} -C ${WRKSRC}/include -cf - polarssl | ${TAR} -C ${PREFIX}/include -xf -
- ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.a ${PREFIX}/lib/
- ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so ${PREFIX}/lib/libpolarssl.so.0
- cd ${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.0 libpolarssl.so
+ @${TAR} -C ${WRKSRC}/include -cf - polarssl | ${TAR} -C ${STAGEDIR}${PREFIX}/include -xf -
+ ${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
.for i in ${BINFILES}
- ${INSTALL_PROGRAM} ${WRKSRC}/programs/*/${i} ${PREFIX}/bin/polarssl_${i}
+ ${INSTALL_PROGRAM} ${WRKSRC}/programs/*/${i} ${STAGEDIR}${PREFIX}/bin/polarssl_${i}
.endfor
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
-.for i in ${PORTDOCS}
- ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for i in ${DOCFILES}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
Added: head/security/polarssl/files/patch-include-polarssl-config_h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/polarssl/files/patch-include-polarssl-config_h Mon Sep 30 22:38:41 2013 (r328887)
@@ -0,0 +1,12 @@
+--- include/polarssl/config.h.orig 2013-09-24 16:37:14.000000000 +0200
++++ include/polarssl/config.h 2013-09-24 16:39:22.000000000 +0200
+@@ -627,8 +627,8 @@
+ * Requires: POLARSSL_TIMING_C
+ *
+ * Uncomment to enable the HAVEGE random generator.
+-#define POLARSSL_HAVEGE_C
+ */
++#define POLARSSL_HAVEGE_C
+
+ /**
+ * \def POLARSSL_MD_C
Modified: head/security/polarssl/pkg-plist
==============================================================================
--- head/security/polarssl/pkg-plist Mon Sep 30 22:36:19 2013 (r328886)
+++ head/security/polarssl/pkg-plist Mon Sep 30 22:38:41 2013 (r328887)
@@ -66,4 +66,7 @@ include/polarssl/xtea.h
lib/libpolarssl.a
lib/libpolarssl.so
lib/libpolarssl.so.0
- at dirrm include/polarssl
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
+ at dirrmtry include/polarssl
More information about the svn-ports-head
mailing list