summaryrefslogtreecommitdiff
path: root/net/ucspi-ssl/Makefile
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2006-01-11 20:17:58 +0000
committerschmonz <schmonz@pkgsrc.org>2006-01-11 20:17:58 +0000
commite9e64bb9660163bc6007f766acb78d06c07851fa (patch)
tree6984cc64e4d1e89b574af1fe05017eebef01c462 /net/ucspi-ssl/Makefile
parentc62d942d9b43e8ea8b3f870c36e041f3ce2d8877 (diff)
downloadpkgsrc-e9e64bb9660163bc6007f766acb78d06c07851fa.tar.gz
Initial import of ucspi-ssl, a set of command-line tools for SSL
client-server applications. They conform to the UNIX Client-Server Program Interface, UCSPI. sslserver listens for connections, and runs a program for each connection it accepts. The program environment includes variables that hold the local and remote host names, IP addresses, and port numbers. sslserver offers a concurrency limit on acceptance of new connections, and selective handling of connections based on client identity. sslclient requests a connection to a TCP socket, and runs a program. The program environment includes the same variables as for sslserver. The "tls" option applies Scott Gifford's patch to implement UCSPI-TLS in sslserver.
Diffstat (limited to 'net/ucspi-ssl/Makefile')
-rw-r--r--net/ucspi-ssl/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/net/ucspi-ssl/Makefile b/net/ucspi-ssl/Makefile
new file mode 100644
index 00000000000..e0dc5403025
--- /dev/null
+++ b/net/ucspi-ssl/Makefile
@@ -0,0 +1,59 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/11 20:17:58 schmonz Exp $
+#
+
+DISTNAME= ucspi-ssl-0.70
+CATEGORIES= net
+MASTER_SITES= http://www.superscript.com/ucspi-ssl/
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://www.superscript.com/ucspi-ssl/intro.html
+COMMENT= Command-line tools for SSL client-server applications
+
+DEPENDS+= ucspi-tcp-[0-9]*:../../net/ucspi-tcp
+
+WRKSRC= ${WRKDIR}/host/superscript.com/net/${PKGNAME_NOREV}
+DJB_SLASHPACKAGE= YES
+
+USE_TOOLS+= perl:run
+
+SSL_SCRIPTS= https@ sslcat sslconnect
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= do-configure
+SUBST_FILES.paths= ${SSL_SCRIPTS:S/^/src\//g:S/$/.sh/g}
+SUBST_SED.paths= -e 's|HOME/command/|${PREFIX}/bin/|g'
+SUBST_MESSAGE.paths= "Fixing paths."
+
+DJB_CONFIG_CMDS= \
+ ${ECHO} ${LOCALBASE}/bin > conf-tcpbin; \
+ ${ECHO} > conf-ssl; \
+ ${ECHO} ${PERL5} > conf-perl; \
+ ${ECHO} ${PKG_SYSCONFDIR} > conf-cadir
+
+.include "../../mk/bsd.prefs.mk"
+
+# from ../../security/openssl/Makefile
+.if ${OPSYS} == "NetBSD"
+PKG_SYSCONFDIR.ucspi-ssl?= /etc/openssl
+.endif
+PKG_SYSCONFSUBDIR= openssl
+
+INSTALLATION_DIRS= bin share/doc/ucspi-ssl
+
+do-install:
+. for i in ${SSL_SCRIPTS}
+ ${INSTALL_SCRIPT} ${WRKSRC}/command/${i} ${PREFIX}/bin
+. endfor
+
+. for i in sslclient sslserver sslperl
+ ${INSTALL_PROGRAM} ${WRKSRC}/command/${i} ${PREFIX}/bin
+. endfor
+
+. for i in CHANGES TODO UCSPI-SSL
+ ${INSTALL_DATA} ${WRKSRC}/src/${i} ${PREFIX}/share/doc/ucspi-ssl
+. endfor
+
+.include "../../lang/perl5/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"