svn commit: r307295 - in head/security/sslwrap: . files
Pawel Pekala
pawel at FreeBSD.org
Sat Nov 10 17:07:42 UTC 2012
Author: pawel
Date: Sat Nov 10 17:07:42 2012
New Revision: 307295
URL: http://svnweb.freebsd.org/changeset/ports/307295
Log:
- Add LICENSE
- Switch to PLIST_FILES, PORTDOCS
- Remove bunch of patches, replaced by REINPLACE_CMD
PR: ports/172062
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Feature safe: yes
Deleted:
head/security/sslwrap/files/patch-apps.h
head/security/sslwrap/files/patch-s_cb.c
head/security/sslwrap/files/patch-s_server.c
head/security/sslwrap/files/patch-s_socket.c
head/security/sslwrap/pkg-plist
Modified:
head/security/sslwrap/Makefile
Modified: head/security/sslwrap/Makefile
==============================================================================
--- head/security/sslwrap/Makefile Sat Nov 10 16:56:40 2012 (r307294)
+++ head/security/sslwrap/Makefile Sat Nov 10 17:07:42 2012 (r307295)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: sslwrap
-# Date created: 1999 november 7.
-# Whom: Zahemszky, Gabor <ZGabor at CoDe dot HU>
-#
+# Created by: Zahemszky, Gabor <ZGabor at CoDe dot HU>
# $FreeBSD$
-#
PORTNAME= sslwrap
PORTVERSION= 2.0.6
@@ -15,25 +11,27 @@ DISTNAME= ${PORTNAME}
MAINTAINER= ports at FreeBSD.org
COMMENT= Another SSL Wrapper application, which uses SSLEay/OpenSSL
-USE_OPENSSL= YES
-
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//g}
-DOCS= README docs.html
+USE_OPENSSL= yes
+
+PORTDOCS= README docs.html
+PLIST_FILES= bin/sslwrap
+
+.include <bsd.port.options.mk>
post-patch:
- ${REINPLACE_CMD} -e \
- 's/SSL_OP_NON_EXPORT_FIRST/SSL_OP_CIPHER_SERVER_PREFERENCE/g' \
- ${WRKSRC}/s_server.c
- ${REINPLACE_CMD} -e \
- 's,%%OPENSSL%%,openssl/,g' \
- ${WRKSRC}/s_server.c ${WRKSRC}/s_cb.c ${WRKSRC}/apps.h ${WRKSRC}/s_socket.c
+ @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|SSL_OP_NON_EXPORT_FIRST|SSL_OP_CIPHER_SERVER_PREFERENCE|g ; \
+ s|OPENSSL"|"openssl/|g'
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sslwrap ${PREFIX}/bin/sslwrap
-.if !defined(NOPORTDOCS)
+ ${INSTALL_PROGRAM} ${WRKSRC}/sslwrap ${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+.for i in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list