Bug 64386 - update: sysutils/ucspi-ssl 0.50 -> 0.65
Summary: update: sysutils/ucspi-ssl 0.50 -> 0.65
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-17 19:30 UTC by David Thiel
Modified: 2004-04-10 15:19 UTC (History)
0 users

See Also:


Attachments
file.diff (2.11 KB, patch)
2004-03-17 19:30 UTC, David Thiel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Thiel 2004-03-17 19:30:14 UTC
Updating ucspi-ssl from 0.50 to 0.65. This release adds the sslperl
program, a wrapper for serving perl programs over ssl, and also includes
patches to set various TCP environment variables(e.g. TCPREMOTEIP) that
some programs require, notably vpopmail. Updated build/install process to 
handle new slashpackage format.
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2004-03-17 20:01:28 UTC
State Changed
From-To: open->feedback

It doesn't build on 4-x: 
sslperl.o: In function `server': 
sslperl.o(.text+0x31e): undefined reference to `eval_pv'
Comment 2 David Thiel 2004-03-17 23:43:43 UTC
On Wed, Mar 17, 2004 at 12:01:33PM -0800, Kirill Ponomarew wrote:
> It doesn't build on 4-x:
> sslperl.o: In function `server':
> sslperl.o(.text+0x31e): undefined reference to `eval_pv'

My apologies for not testing it on -stable. It would seem eval_pv wasn't
included in the perl API until 5.6. I've added a WITHOUT_SSLPERL knob,
and a PERL_LEVEL check, and I've verified that either installing the perl5
port or building with WITHOUT_SSLPERL will solve the problem. While I was
at it, I changed the packing list to use PORTDOCS properly. Since there
were many changes, I'm resubmitting the whole diff. Thanks for pointing 
this problem out, any other feedback is welcome.


diff -ruN ucspi-ssl/Makefile ucspi-ssl.new/Makefile
--- ucspi-ssl/Makefile	Mon Sep 29 16:56:30 2003
+++ ucspi-ssl.new/Makefile	Wed Mar 17 13:14:56 2004
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	ucspi-ssl
-PORTVERSION=	0.50
+PORTVERSION=	0.65
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.superscript.com/ucspi-ssl/
 
@@ -17,21 +17,46 @@
 
 NO_PACKAGE=     "Non-explicit licensing terms"
 
-ALL_TARGET=	it
-INSTALL_TARGET=	setup check
+DOCS=		CHANGES TODO UCSPI-SSL
 
-DOCS=		CHANGES README TODO UCSPI-SSL
+WRKSRC=		${WRKDIR}/host/superscript.com/net/${DISTNAME}
 
 do-configure:
-	${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
-	${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/conf-home
-	${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-tcpbin
-	${ECHO_CMD} "${PREFIX}/ssl/certs" > ${WRKSRC}/conf-cadir
+	${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
+	${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/src/conf-home
+	${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/src/conf-tcpbin
+	${ECHO_CMD} "${PREFIX}/ssl/certs" > ${WRKSRC}/src/conf-cadir
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_SSLPERL)
+.if ${PERL_LEVEL} < 500600
+IGNORE= "requires Perl 5.6.0 or greater. Please Install lang/perl5 and retry, or define WITHOUT_SSLPERL"
+.endif
+.else
+PLIST_SUB+=	SSLPERL="@comment "
+.endif
+
+do-build:
+.if defined(WITHOUT_SSLPERL)
+	cd ${WRKSRC} && package/compile https@ sslcat sslconnect sslclient sslserver
+.else
+	cd ${WRKSRC} && package/compile
+.endif
 
-post-install:
+do-install:
+.for x in https@ sslcat sslconnect
+	${INSTALL_SCRIPT} ${WRKSRC}/command/${x} ${PREFIX}/bin
+.endfor
+.for x in sslclient sslserver
+	${INSTALL_PROGRAM} ${WRKSRC}/command/${x} ${PREFIX}/bin
+.endfor
+.if !defined(WITHOUT_SSLPERL)
+	${INSTALL_PROGRAM} ${WRKSRC}/command/sslperl ${PREFIX}/bin
+.endif
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+	cd ${WRKSRC}/src && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
 .endif
-
-.include <bsd.port.mk>
+                
+.include <bsd.port.post.mk>
diff -ruN ucspi-ssl/distinfo ucspi-ssl.new/distinfo
--- ucspi-ssl/distinfo	Mon Sep 29 16:56:30 2003
+++ ucspi-ssl.new/distinfo	Wed Mar 17 12:06:14 2004
@@ -1 +1 @@
-MD5 (ucspi-ssl-0.50.tar.gz) = f8c0122aca1cafc5ef8d23ffdf466ccd
+MD5 (ucspi-ssl-0.65.tar.gz) = 5af44ab11d694e2e1d40886ee46f5545
diff -ruN ucspi-ssl/pkg-plist ucspi-ssl.new/pkg-plist
--- ucspi-ssl/pkg-plist	Mon Sep 29 16:56:30 2003
+++ ucspi-ssl.new/pkg-plist	Wed Mar 17 13:09:27 2004
@@ -3,8 +3,8 @@
 bin/sslclient
 bin/sslconnect
 bin/sslserver
-share/doc/ucspi-ssl/CHANGES
-share/doc/ucspi-ssl/README
-share/doc/ucspi-ssl/TODO
-share/doc/ucspi-ssl/UCSPI-SSL
-@dirrm share/doc/ucspi-ssl
+%%SSLPERL%%bin/sslperl
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/UCSPI-SSL
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2004-04-10 15:18:40 UTC
State Changed
From-To: feedback->closed

Committed, thanks! 

I updated it to 0.67 because 0.65 is no longer available 
for download.