diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-18 19:05:57 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-18 19:05:57 +0000 |
commit | 23f3100df2ba42611d11ac3528539db74c7ef302 (patch) | |
tree | ecf094e90d3a942e59b6b8b5b043199d71f05da1 /security/distcache-devel | |
parent | b432ed11ba19c86df023ab59831b3c9f06a92101 (diff) |
Notes
Diffstat (limited to 'security/distcache-devel')
-rw-r--r-- | security/distcache-devel/Makefile | 50 | ||||
-rw-r--r-- | security/distcache-devel/distinfo | 2 | ||||
-rw-r--r-- | security/distcache-devel/files/dc_server.sh.in | 32 | ||||
-rw-r--r-- | security/distcache-devel/files/patch-proto_fd.c | 18 | ||||
-rw-r--r-- | security/distcache-devel/pkg-descr | 9 | ||||
-rw-r--r-- | security/distcache-devel/pkg-plist | 35 |
6 files changed, 146 insertions, 0 deletions
diff --git a/security/distcache-devel/Makefile b/security/distcache-devel/Makefile new file mode 100644 index 000000000000..511f0f240c07 --- /dev/null +++ b/security/distcache-devel/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: distcache +# Date created: 2005-04-13 +# Whom: Marcel Prisi <marcel.prisi@virtua.ch> +# +# $FreeBSD$ +# + +PORTNAME= distcache +PORTVERSION= 1.5.1 +CATEGORIES= security www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + http://osdn.dl.sourceforge.net/sourceforge/${PORTNAME}/ +MASTER_SITE_SUBDIR= ${PORTNAME} +PKGNAMESUFFIX= -devel +DISTNAME= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= marcel.prisi@virtua.ch +COMMENT= Distributed OpenSSL session caching tools - development version + +CONFLICTS= distcache-1.4* + +USE_BZIP2= yes +USE_RC_SUBR= dc_server.sh +USE_LIBTOOL_VER=15 +USE_OPENSSL= yes +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +LIBTOOLFILES= configure ssl/configure +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-devel/distinfo b/security/distcache-devel/distinfo new file mode 100644 index 000000000000..47016c3b6aa1 --- /dev/null +++ b/security/distcache-devel/distinfo @@ -0,0 +1,2 @@ +MD5 (distcache-1.5.1.tar.bz2) = 011346e08a617d1cc18746beefe062de +SIZE (distcache-1.5.1.tar.bz2) = 491139 diff --git a/security/distcache-devel/files/dc_server.sh.in b/security/distcache-devel/files/dc_server.sh.in new file mode 100644 index 000000000000..84a871550ea0 --- /dev/null +++ b/security/distcache-devel/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-devel/files/patch-proto_fd.c b/security/distcache-devel/files/patch-proto_fd.c new file mode 100644 index 000000000000..4f37e7a29e1b --- /dev/null +++ b/security/distcache-devel/files/patch-proto_fd.c @@ -0,0 +1,18 @@ +*** libnal/proto_fd.c.ori Wed Apr 13 21:07:10 2005 +--- libnal/proto_fd.c Wed Apr 13 21:55:12 2005 +*************** +*** 26,31 **** +--- 26,38 ---- + #include "nal_internal.h" + #include "ctrl_fd.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-devel/pkg-descr b/security/distcache-devel/pkg-descr new file mode 100644 index 000000000000..1498e3ed0d16 --- /dev/null +++ b/security/distcache-devel/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-devel/pkg-plist b/security/distcache-devel/pkg-plist new file mode 100644 index 000000000000..1c6cb61d7f5b --- /dev/null +++ b/security/distcache-devel/pkg-plist @@ -0,0 +1,35 @@ +bin/dc_client +bin/dc_server +bin/dc_snoop +bin/dc_test +bin/nal_echo +bin/nal_hose +bin/nal_ping +bin/nal_pong +bin/nal_proxy +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 +include/libnal/nal_ssl.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 +lib/libnalssl.a +lib/libnalssl.so +lib/libnalssl.so.1 +share/swamp/A-client.pem +share/swamp/CA.pem +@dirrm share/swamp +@dirrm include/libnal +@dirrm include/distcache |