Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 18:16:39 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307298 - in head/security/xyssl: . files
Message-ID:  <201211101816.qAAIGdII078019@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Nov 10 18:16:38 2012
New Revision: 307298
URL: http://svnweb.freebsd.org/changeset/ports/307298

Log:
  - Update MASTER_SITES and WWW: line
  - Support CFLAGS properly
  - Add MAKE_JOBS_SAFE
  - Don't install license file twice
  
  PR:		ports/172064
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Modified:
  head/security/xyssl/Makefile
  head/security/xyssl/files/patch-Makefile
  head/security/xyssl/pkg-descr
  head/security/xyssl/pkg-plist

Modified: head/security/xyssl/Makefile
==============================================================================
--- head/security/xyssl/Makefile	Sat Nov 10 17:38:33 2012	(r307297)
+++ head/security/xyssl/Makefile	Sat Nov 10 18:16:38 2012	(r307298)
@@ -1,32 +1,39 @@
-# New ports collection makefile for:	xyssl
-# Date created:				2007-04-05
-# Whom:					mdh <mdh@solitox.net>
-#
+# Created by: mdh <mdh@solitox.net>
 # $FreeBSD$
-#
 
 PORTNAME=	xyssl
 PORTVERSION=	0.9
+DISTVERSIONSUFFIX=	-bsd
+PORTREVISION=	1
 CATEGORIES=	security devel
 MASTER_SITES=	http://www.evolane.com/download/mirror/etcl/ \
-		http://www.straightrunning.com/code/
-DISTFILES=	xyssl-${PORTVERSION}-bsd.tgz
+		http://polarssl.org/code/releases/
+EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A lightweight SSL and TLS toolkit for C developers
+COMMENT=	Lightweight SSL and TLS toolkit for C developers
 
 LICENSE=	BSD
 LICENSE_FILE=	${WRKSRC}/BSD.txt
 
-# HAS_CONFIGURE=	no
-# GNU_CONFIGURE=	no
+PORTDOCS=	ChangeLog
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-PORTDOCS=	BSD.txt ChangeLog
+MAKE_JOBS_SAFE=	yes
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.for i in library/Makefile programs/Makefile
+	@${REINPLACE_CMD} -e \
+		'/^CFLAGS/s|[[:space:]]=| +=| ; \
+		 s|^OFLAGS|#OFLAGS| ; \
+		 s|^.SILENT:|#.SILENT:|' ${WRKSRC}/${i}
+.endfor
 
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/BSD.txt ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
 	${INSTALL_MAN} ${WRKSRC}/ChangeLog ${DOCSDIR}
 .endif
 

Modified: head/security/xyssl/files/patch-Makefile
==============================================================================
--- head/security/xyssl/files/patch-Makefile	Sat Nov 10 17:38:33 2012	(r307297)
+++ head/security/xyssl/files/patch-Makefile	Sat Nov 10 18:16:38 2012	(r307298)
@@ -1,6 +1,6 @@
---- Makefile.orig	2008-03-16 14:23:22.000000000 +0000
-+++ Makefile	2009-01-02 23:45:48.380520000 +0000
-@@ -1,6 +1,6 @@
+--- Makefile.orig	2008-03-16 23:23:22.000000000 +0900
++++ Makefile	2012-07-12 22:47:37.000000000 +0900
+@@ -1,26 +1,26 @@
  
 -DESTDIR=/usr/local
 -PREFIX=xyssl_
@@ -9,7 +9,11 @@
  
  .SILENT:
  
-@@ -10,17 +10,17 @@
+ all:
+-	cd library  && make all && cd ..
+-	cd programs && make all && cd ..
++	cd library  && $(MAKE) all && cd ..
++	cd programs && $(MAKE) all && cd ..
  
  install:
  	mkdir -p $(DESTDIR)/include/xyssl

Modified: head/security/xyssl/pkg-descr
==============================================================================
--- head/security/xyssl/pkg-descr	Sat Nov 10 17:38:33 2012	(r307297)
+++ head/security/xyssl/pkg-descr	Sat Nov 10 18:16:38 2012	(r307298)
@@ -4,7 +4,4 @@ and 3DES ciphers, and the MD2, MD4, MD5,
 Support is also included for X.509 certificate structures, 
 as well as an internal PRNG.  
 
-LICENSE: BSD
-Copyright (c) 2006-2008, Christophe Devine.
-
-WWW: http://xyssl.org/
+WWW: http://polarssl.org/

Modified: head/security/xyssl/pkg-plist
==============================================================================
--- head/security/xyssl/pkg-plist	Sat Nov 10 17:38:33 2012	(r307297)
+++ head/security/xyssl/pkg-plist	Sat Nov 10 18:16:38 2012	(r307298)
@@ -1,21 +1,20 @@
-lib/libxyssl.a
 bin/xyssl_aescrypt2
-bin/xyssl_hello
-bin/xyssl_md5sum
-bin/xyssl_sha1sum
-bin/xyssl_sha2sum
+bin/xyssl_benchmark
 bin/xyssl_dh_client
 bin/xyssl_dh_genprime
 bin/xyssl_dh_server
+bin/xyssl_hello
+bin/xyssl_md5sum
 bin/xyssl_mpi_demo
 bin/xyssl_rsa_genkey
 bin/xyssl_rsa_sign
 bin/xyssl_rsa_verify
+bin/xyssl_selftest
+bin/xyssl_sha1sum
+bin/xyssl_sha2sum
 bin/xyssl_ssl_client1
 bin/xyssl_ssl_client2
 bin/xyssl_ssl_server
-bin/xyssl_benchmark
-bin/xyssl_selftest
 bin/xyssl_ssl_test
 include/xyssl/aes.h
 include/xyssl/arc4.h
@@ -41,4 +40,5 @@ include/xyssl/sha4.h
 include/xyssl/ssl.h
 include/xyssl/timing.h
 include/xyssl/x509.h
+lib/libxyssl.a
 @dirrm include/xyssl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211101816.qAAIGdII078019>