summaryrefslogtreecommitdiff
path: root/net
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
commitb1390917fd7d9b012daf40d26792bb7c16040b68 (patch)
tree6984cc64e4d1e89b574af1fe05017eebef01c462 /net
parent14d002a01237bab4a8282f71d8ff6a02dfa99d7e (diff)
downloadpkgsrc-b1390917fd7d9b012daf40d26792bb7c16040b68.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')
-rw-r--r--net/ucspi-ssl/DESCR13
-rw-r--r--net/ucspi-ssl/Makefile59
-rw-r--r--net/ucspi-ssl/PLIST11
-rw-r--r--net/ucspi-ssl/distinfo8
-rw-r--r--net/ucspi-ssl/options.mk13
5 files changed, 104 insertions, 0 deletions
diff --git a/net/ucspi-ssl/DESCR b/net/ucspi-ssl/DESCR
new file mode 100644
index 00000000000..7cb2d13e028
--- /dev/null
+++ b/net/ucspi-ssl/DESCR
@@ -0,0 +1,13 @@
+sslserver and sslclient are command-line tools for building 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.
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"
diff --git a/net/ucspi-ssl/PLIST b/net/ucspi-ssl/PLIST
new file mode 100644
index 00000000000..73d8d363af8
--- /dev/null
+++ b/net/ucspi-ssl/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/11 20:17:58 schmonz Exp $
+bin/https@
+bin/sslcat
+bin/sslclient
+bin/sslconnect
+bin/sslperl
+bin/sslserver
+share/doc/ucspi-ssl/CHANGES
+share/doc/ucspi-ssl/TODO
+share/doc/ucspi-ssl/UCSPI-SSL
+@dirrm share/doc/ucspi-ssl
diff --git a/net/ucspi-ssl/distinfo b/net/ucspi-ssl/distinfo
new file mode 100644
index 00000000000..5594425552a
--- /dev/null
+++ b/net/ucspi-ssl/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/01/11 20:17:58 schmonz Exp $
+
+SHA1 (ucspi-ssl-0.70.tar.gz) = 56466bc4a7272ebd937f4ae20dbdcce30235be27
+RMD160 (ucspi-ssl-0.70.tar.gz) = 68e8118b954e0f626b8fede95f562bdaa1f72659
+Size (ucspi-ssl-0.70.tar.gz) = 85111 bytes
+SHA1 (ucspi-ssl-0.70-ucspitls-0.1.patch) = f49b9363ae69698c925aba4d3eb76ffce58f4e5b
+RMD160 (ucspi-ssl-0.70-ucspitls-0.1.patch) = 83f6dda689d3c5713d034c100dc09d6fc199dc0c
+Size (ucspi-ssl-0.70-ucspitls-0.1.patch) = 11967 bytes
diff --git a/net/ucspi-ssl/options.mk b/net/ucspi-ssl/options.mk
new file mode 100644
index 00000000000..8bfa7c78033
--- /dev/null
+++ b/net/ucspi-ssl/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1.1.1 2006/01/11 20:17:58 schmonz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ucspi-ssl
+PKG_SUPPORTED_OPTIONS+= tls
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtls)
+TLS_PATCH= ucspi-ssl-0.70-ucspitls-0.1.patch
+PATCHFILES+= ${TLS_PATCH}
+SITES_${TLS_PATCH}= http://www.suspectclass.com/~sgifford/ucspi-tls/files/
+PATCH_DIST_STRIP.${TLS_PATCH}= -p1
+.endif