mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
f9380dbe21
o Have it be aware of valid CA certificates by means of security/ca-roots port Approved by: maintainer (timeout 26 Jul 2005)
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# New ports collection makefile for: ucspi-ssl
|
|
# Date created: 2003-07-09
|
|
# Whom: David Thiel <lx@redundancy.redundancy.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ucspi-ssl
|
|
PORTVERSION= 0.70
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.superscript.com/ucspi-ssl/
|
|
|
|
MAINTAINER= lx@redundancy.redundancy.org
|
|
COMMENT= UCSPI tools for building SSL client-server applications
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/certs/ca-root.crt:${PORTSDIR}/security/ca-roots
|
|
RUN_DEPENDS= tcpserver:${PORTSDIR}/sysutils/ucspi-tcp \
|
|
${BUILD_DEPENDS}
|
|
|
|
USE_PERL5= yes
|
|
|
|
NO_PACKAGE= Non-explicit licensing terms
|
|
|
|
DOCS= CHANGES TODO UCSPI-SSL
|
|
|
|
WRKSRC= ${WRKDIR}/host/superscript.com/net/${DISTNAME}
|
|
|
|
SCRIPTS_TO_INSTALL= https@ sslcat sslconnect
|
|
|
|
post-patch:
|
|
.for x in ${SCRIPTS_TO_INSTALL}
|
|
@${PERL} -pi.orig \
|
|
-e 's|HOME/command/|${PREFIX}/bin/|' \
|
|
${WRKSRC}/src/${x}.sh
|
|
.endfor
|
|
|
|
do-configure:
|
|
${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} "/etc/ssl" > ${WRKSRC}/src/conf-cadir
|
|
${ECHO_CMD} "/etc/ssl/cert.pem" > ${WRKSRC}/src/conf-cafile
|
|
${ECHO_CMD} "/etc/ssl/dh1024.pem" > ${WRKSRC}/src/conf-dhfile
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
IGNORE= "requires Perl 5.6.0 or greater. Please install lang/perl5 and retry"
|
|
.endif
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && package/compile
|
|
|
|
do-install:
|
|
.for x in ${SCRIPTS_TO_INSTALL}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/command/${x} ${PREFIX}/bin
|
|
.endfor
|
|
.for x in sslclient sslserver sslperl
|
|
${INSTALL_PROGRAM} ${WRKSRC}/command/${x} ${PREFIX}/bin
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/src && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|