diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-18 19:04:40 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-18 19:04:40 +0000 |
commit | b432ed11ba19c86df023ab59831b3c9f06a92101 (patch) | |
tree | 012a6a8c186ae5da2f98d6feb8a2f5525ee65bbb /security/distcache | |
parent | 4dcc1160bdd473c6bc0db8802fbcf1fe6531c3d9 (diff) |
Notes
Diffstat (limited to 'security/distcache')
-rw-r--r-- | security/distcache/Makefile | 47 | ||||
-rw-r--r-- | security/distcache/distinfo | 2 | ||||
-rw-r--r-- | security/distcache/files/dc_server.sh.in | 32 | ||||
-rw-r--r-- | security/distcache/files/patch-proto_fd.c | 18 | ||||
-rw-r--r-- | security/distcache/pkg-descr | 9 | ||||
-rw-r--r-- | security/distcache/pkg-plist | 26 |
6 files changed, 134 insertions, 0 deletions
diff --git a/security/distcache/Makefile b/security/distcache/Makefile new file mode 100644 index 000000000000..ac804306c5d8 --- /dev/null +++ b/security/distcache/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: distcache +# Date created: 2005-04-13 +# Whom: Marcel Prisi <marcel.prisi@virtua.ch> +# +# $FreeBSD$ +# + +PORTNAME= distcache +PORTVERSION= 1.4.5 +CATEGORIES= security www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + http://osdn.dl.sourceforge.net/sourceforge/${PORTNAME}/ +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= marcel.prisi@virtua.ch +COMMENT= Distributed OpenSSL session caching tools + +CONFLICTS= distcache-devel-* + +USE_BZIP2= yes +USE_RC_SUBR= dc_server.sh +USE_LIBTOOL_VER=15 +USE_OPENSSL= yes +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +INSTALLS_SHLIB= yes + +SUB_LIST+= NAME=dc_server + +.if !defined(NOPORTDOCS) +PORTDOCS= ANNOUNCE BUGS CHANGES FAQ INSTALL LICENSE README +.endif + +MAN1= dc_client.1 dc_server.1 dc_snoop.1 dc_test.1 sslswamp.1 +MAN2= DC_CTX_new.2 DC_PLUG_new.2 DC_PLUG_read.2 DC_SERVER_new.2 \ + NAL_ADDRESS_new.2 NAL_BUFFER_new.2 NAL_CONNECTION_new.2 \ + NAL_LISTENER_new.2 NAL_SELECTOR_new.2 NAL_decode_uint32.2 +MAN8= distcache.8 + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/security/distcache/distinfo b/security/distcache/distinfo new file mode 100644 index 000000000000..70cbb2544732 --- /dev/null +++ b/security/distcache/distinfo @@ -0,0 +1,2 @@ +MD5 (distcache-1.4.5.tar.bz2) = bad485801024f711ad72e83ba1adcd7d +SIZE (distcache-1.4.5.tar.bz2) = 371648 diff --git a/security/distcache/files/dc_server.sh.in b/security/distcache/files/dc_server.sh.in new file mode 100644 index 000000000000..84a871550ea0 --- /dev/null +++ b/security/distcache/files/dc_server.sh.in @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: %%NAME%% +# REQUIRE: LOGIN +# BEFORE: securelevel +# KEYWORD: FreeBSD shutdown + +# Add the following line to /etc/rc.conf to enable `%%NAME%%': +# +#%%NAME%%_enable="YES" +# +# See %%NAME%%(1) +# + +. "%%RC_SUBR%%" + +name="%%NAME%%" +rcvar=`set_rcvar` + +command="%%PREFIX%%/bin/dc_server" +command_args="-daemon -listen IP:9001 -user nobody -pidfile /var/run/$name.pid" +pidfile="/var/run/$name.pid" + +# read configuration and set defaults +load_rc_config "$name" +: ${%%NAME%%_enable="NO"} +: ${%%NAME%%_flags=""} + +run_rc_command "$1" diff --git a/security/distcache/files/patch-proto_fd.c b/security/distcache/files/patch-proto_fd.c new file mode 100644 index 000000000000..a9bbf9a8bba2 --- /dev/null +++ b/security/distcache/files/patch-proto_fd.c @@ -0,0 +1,18 @@ +*** libnal/proto_fd.c.ori Wed Apr 13 19:34:07 2005 +--- libnal/proto_fd.c Wed Apr 13 21:51:20 2005 +*************** +*** 24,29 **** +--- 24,36 ---- + #include <libnal/nal.h> + #include "nal_internal.h" + #include <libsys/post.h> ++ #ifdef __FreeBSD__ ++ #if __FreeBSD_version >= 502010 ++ #include <sys/limits.h> ++ #else ++ #include <machine/limits.h> ++ #endif ++ #endif /* __FreeBSD__ */ + + /**************************/ + /* predeclare our vtables */ diff --git a/security/distcache/pkg-descr b/security/distcache/pkg-descr new file mode 100644 index 000000000000..1498e3ed0d16 --- /dev/null +++ b/security/distcache/pkg-descr @@ -0,0 +1,9 @@ +Distributed session caching tools and APIs, primarily for SSL/TLS servers +though perhaps useful for other (non-SSL/TLS) circumstances. +Also includes a self-contained network abstraction library (libnal), and the +sslswamp SSL/TLS benchmark/test utility. + +WWW: http://www.distcache.org/ + +- Marcel Prisi +marcel.prisi@virtua.ch diff --git a/security/distcache/pkg-plist b/security/distcache/pkg-plist new file mode 100644 index 000000000000..ffc20f75c410 --- /dev/null +++ b/security/distcache/pkg-plist @@ -0,0 +1,26 @@ +bin/dc_client +bin/dc_server +bin/dc_snoop +bin/dc_test +bin/nal_test +bin/piper +bin/sslswamp +include/distcache/dc_client.h +include/distcache/dc_plug.h +include/distcache/dc_server.h +include/libnal/nal.h +include/libnal/nal_devel.h +lib/libdistcache.a +lib/libdistcache.so +lib/libdistcache.so.1 +lib/libdistcacheserver.a +lib/libdistcacheserver.so +lib/libdistcacheserver.so.1 +lib/libnal.a +lib/libnal.so +lib/libnal.so.1 +share/swamp/A-client.pem +share/swamp/CA.pem +@dirrm include/distcache +@dirrm include/libnal +@dirrm share/swamp |