From owner-svn-ports-all@FreeBSD.ORG Mon Sep 30 22:38:42 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D39F02FA; Mon, 30 Sep 2013 22:38:42 +0000 (UTC) (envelope-from jase@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BCD4D2A95; Mon, 30 Sep 2013 22:38:42 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8UMcgRD084464; Mon, 30 Sep 2013 22:38:42 GMT (envelope-from jase@svn.freebsd.org) Received: (from jase@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8UMcgJE084461; Mon, 30 Sep 2013 22:38:42 GMT (envelope-from jase@svn.freebsd.org) Message-Id: <201309302238.r8UMcgJE084461@svn.freebsd.org> From: Jase Thew Date: Mon, 30 Sep 2013 22:38:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r328887 - in head/security/polarssl: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Sep 2013 22:38:43 -0000 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 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 -@dirrm include/polarssl +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrmtry include/polarssl