Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import security/distcache version 1.4.5_2
- Loading branch information
DPorts Builder
committed
Aug 18, 2016
1 parent
bdc841f
commit c1c2a34
Showing
10 changed files
with
195 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Created by: Marcel Prisi <marcel.prisi@virtua.ch> | ||
# $FreeBSD$ | ||
|
||
PORTNAME= distcache | ||
PORTVERSION= 1.4.5 | ||
PORTREVISION= 2 | ||
CATEGORIES= security www | ||
MASTER_SITES= SF/${PORTNAME}/2.%20${PORTNAME}-stable/${PORTVERSION} \ | ||
http://osdn.dl.sourceforge.net/sourceforge/${PORTNAME}/ | ||
|
||
MAINTAINER= ports@FreeBSD.org | ||
COMMENT= Distributed OpenSSL session caching tools | ||
|
||
LICENSE= LGPL21 | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
USES= libtool tar:bzip2 | ||
USE_RC_SUBR= dc_server | ||
USE_OPENSSL= yes | ||
USE_LDCONFIG= yes | ||
GNU_CONFIGURE= yes | ||
CONFIGURE_ARGS= --enable-shared | ||
INSTALL_TARGET= install-strip | ||
|
||
SUB_LIST= NAME=dc_server | ||
PORTDOCS= ANNOUNCE BUGS CHANGES FAQ README | ||
|
||
OPTIONS_DEFINE= DOCS | ||
|
||
post-install: | ||
# INSTALL_TARGET=install-strip isn't working! Brute force it | ||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so | ||
|
||
post-install-DOCS-on: | ||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | ||
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SHA256 (distcache-1.4.5.tar.bz2) = 6da656badf49772abeb391e08e63ccbab2b5bedeea94d4483da8a3016e1f7e13 | ||
SIZE (distcache-1.4.5.tar.bz2) = 371648 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Back-pushable | ||
|
||
--- libnal/proto_fd.c.intermediate 2016-08-18 13:53:50 UTC | ||
+++ libnal/proto_fd.c | ||
@@ -24,13 +24,9 @@ | ||
#include <libnal/nal.h> | ||
#include "nal_internal.h" | ||
#include <libsys/post.h> | ||
-#ifdef __FreeBSD__ | ||
-#if __FreeBSD_version >= 502010 | ||
+#if defined(__FreeBSD__) || defined(__DragonFly__) | ||
#include <sys/limits.h> | ||
-#else | ||
-#include <machine/limits.h> | ||
#endif | ||
-#endif /* __FreeBSD__ */ | ||
/**************************/ | ||
/* predeclare our vtables */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
# | ||
# $FreeBSD: head/security/distcache/files/dc_server.in 340872 2014-01-24 00:14:07Z mat $ | ||
# | ||
|
||
# PROVIDE: %%NAME%% | ||
# REQUIRE: LOGIN | ||
# BEFORE: securelevel | ||
# KEYWORD: shutdown | ||
|
||
# Add the following line to /etc/rc.conf to enable `%%NAME%%': | ||
# | ||
# %%NAME%%_enable="YES" | ||
# %%NAME%%_flags="<set as needed>" | ||
# | ||
# See %%NAME%%(1) | ||
# | ||
|
||
. /etc/rc.subr | ||
|
||
name="%%NAME%%" | ||
rcvar=%%NAME%%_enable | ||
|
||
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"} | ||
|
||
run_rc_command "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- ssl/swamp/swamp.c.orig 2004-02-19 15:37:33.000000000 -0500 | ||
+++ ssl/swamp/swamp.c 2015-03-23 19:47:07.787300000 -0400 | ||
@@ -104,8 +104,10 @@ | ||
switch(config->sslmeth) { | ||
case SWAMP_SSLMETH_NORMAL: | ||
sslmethod = SSLv23_client_method(); break; | ||
+#ifndef OPENSSL_NO_SSL2 | ||
case SWAMP_SSLMETH_SSLv2: | ||
sslmethod = SSLv2_client_method(); break; | ||
+#endif | ||
case SWAMP_SSLMETH_SSLv3: | ||
sslmethod = SSLv3_client_method(); break; | ||
case SWAMP_SSLMETH_TLSv1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- ssl/swamp/swamp.h.orig 2004-02-17 15:29:34.000000000 -0500 | ||
+++ ssl/swamp/swamp.h 2015-03-23 19:47:20.490894000 -0400 | ||
@@ -161,7 +161,9 @@ | ||
|
||
typedef enum st_swamp_sslmeth { | ||
SWAMP_SSLMETH_NORMAL, /* SSLv23_client_method() */ | ||
+#ifndef OPENSSL_NO_SSL2 | ||
SWAMP_SSLMETH_SSLv2, /* SSLv2_client_method() */ | ||
+#endif | ||
SWAMP_SSLMETH_SSLv3, /* SSLv3_client_method() */ | ||
SWAMP_SSLMETH_TLSv1 /* TLSv1_client_method() */ | ||
} swamp_sslmeth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- ssl/swamp/utils.c.orig 2004-02-17 15:29:34.000000000 -0500 | ||
+++ ssl/swamp/utils.c 2015-03-23 19:47:34.795067000 -0400 | ||
@@ -269,8 +269,10 @@ | ||
{ | ||
if(!strcmp(str_toconvert, "normal")) | ||
*val = SWAMP_SSLMETH_NORMAL; | ||
+#ifndef OPENSSL_NO_SSL2 | ||
else if(!strcmp(str_toconvert, "sslv2")) | ||
*val = SWAMP_SSLMETH_SSLv2; | ||
+#endif | ||
else if(!strcmp(str_toconvert, "sslv3")) | ||
*val = SWAMP_SSLMETH_SSLv3; | ||
else if(!strcmp(str_toconvert, "tlsv1")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Distributed session caching tools and APIs, primarily for SSL/TLS servers | ||
though perhaps useful for other (non-SSL/TLS) circumstances. This also | ||
includes a self-contained network abstraction library (libnal), and the | ||
sslswamp SSL/TLS benchmark/test utility. | ||
|
||
WWW: http://distcache.sourceforge.net/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
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/libdistcache.so.1.0.1 | ||
lib/libdistcacheserver.a | ||
lib/libdistcacheserver.so | ||
lib/libdistcacheserver.so.1 | ||
lib/libdistcacheserver.so.1.0.1 | ||
lib/libnal.a | ||
lib/libnal.so | ||
lib/libnal.so.1 | ||
lib/libnal.so.1.0.1 | ||
man/man1/dc_client.1.gz | ||
man/man1/dc_server.1.gz | ||
man/man1/dc_snoop.1.gz | ||
man/man1/dc_test.1.gz | ||
man/man1/sslswamp.1.gz | ||
man/man2/DC_CTX_new.2.gz | ||
man/man2/DC_PLUG_new.2.gz | ||
man/man2/DC_PLUG_read.2.gz | ||
man/man2/DC_SERVER_new.2.gz | ||
man/man2/NAL_ADDRESS_new.2.gz | ||
man/man2/NAL_BUFFER_new.2.gz | ||
man/man2/NAL_CONNECTION_new.2.gz | ||
man/man2/NAL_LISTENER_new.2.gz | ||
man/man2/NAL_SELECTOR_new.2.gz | ||
man/man2/NAL_decode_uint32.2.gz | ||
man/man8/distcache.8.gz | ||
share/swamp/A-client.pem | ||
share/swamp/CA.pem |