summaryrefslogtreecommitdiff
path: root/net-misc/sslwrap
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/sslwrap
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/sslwrap')
-rw-r--r--net-misc/sslwrap/Manifest6
-rw-r--r--net-misc/sslwrap/files/sslwrap-2.0.6-build.patch147
-rw-r--r--net-misc/sslwrap/metadata.xml5
-rw-r--r--net-misc/sslwrap/sslwrap-2.0.6-r2.ebuild34
4 files changed, 192 insertions, 0 deletions
diff --git a/net-misc/sslwrap/Manifest b/net-misc/sslwrap/Manifest
new file mode 100644
index 000000000000..b3094b50a6dd
--- /dev/null
+++ b/net-misc/sslwrap/Manifest
@@ -0,0 +1,6 @@
+AUX sslwrap-2.0.6-build.patch 3008 SHA256 4b0fac341cb8be7756706d56afe3df47ad593e43227cb315c60ba7becdb87c55 SHA512 fa6fe2bd63c37d772eb7a943558f1d1ef1db4376532467d6c6f6483f94098df8143868d01c16271c4672e6736b627c969eed001da6d492df780c7e6ba41fe937 WHIRLPOOL 9460c0752256f04b338bf4208c00bb3950bfcd2d600fecdcb558075c1f2bb0390936df74b70ef764829b0ef06fb433832ea88dc7ffcec6c6fe38917a486da234
+DIST sslwrap-2.0.6.tar.gz 21170 SHA256 596a1bf61a457662e754b9fcfec6b3df7fb2f6c88498bd76ef8027f08c3af336 SHA512 627c25bdf45245f9b3e8d03272fc46a0ef8d1c356e2b7990898b07267c2bbb28efd13d5ca97d330ce7369eedd2d20b5fa781f2e1a00ac732407e06d0b3a8890d WHIRLPOOL 8d3c6843413d8a77830a3533aa972cc676bf2aa934cb259b3b04a485aedc052551914668efbcff071fcd50fd0f21ea9cd57c702f95d803f06315d92e79fafc89
+EBUILD sslwrap-2.0.6-r2.ebuild 602 SHA256 e4b4e631237c2b075f0f8709bba832c8866dcd46926902b4f15954d49dec42c3 SHA512 42ec94d0a1a8dfaa181ace4c9319f0bdd5bbe35ee205734d06a5bcda9dfbe2eb6d39948897bdc14731f5677badaa8a93e530f80b388e18522337ff7470fad123 WHIRLPOOL 8302ee50af313290d679dde24dd43e407a7ccf37b8f727cfea592ada78118550ed80f1bbe88617b754541049c8212e956c76465744e8341b035c7226df3b1450
+MISC ChangeLog 2562 SHA256 374147d2de54d8138972082a2eae8a89b0b1ecbc17590480133b7c1907b3d83e SHA512 07ec62fa9ad3bd39e4773ea1bb72283adbe56335e691f5ab480bbb5567683101f6392813577a04dc22ff62f6da3d07286a177678a9f361765a66b56c443209c3 WHIRLPOOL 1463619ec1b85bc10378090d22105b9819e67e27d49fbfacc19c88ba2277a967297bce94449b4499ab8814b5e7bae8991794513b31bcf1b971d6c4a82efa0f91
+MISC ChangeLog-2015 3648 SHA256 55989d5e23ad0adca1efee17c80e18c1fcf62a7464a057dfd046a1c1698603e3 SHA512 afaa8ad7960381fa346529a8f60d6a2c080570f98109a8d008698860f31879279d2553aaf33872b2035f73b6fdf9f5ac1712f1b471a64345b42b0956b8b65395 WHIRLPOOL 1accf47fbcaf15c5b3d5f51a3110b4be00d3e8a4751d2fd435bd3b3e36409ac8f54ea7adb86062c6a13df9ca45b9e4b67a5fc364922bd536abac181d038d21d1
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-misc/sslwrap/files/sslwrap-2.0.6-build.patch b/net-misc/sslwrap/files/sslwrap-2.0.6-build.patch
new file mode 100644
index 000000000000..a797c00b152c
--- /dev/null
+++ b/net-misc/sslwrap/files/sslwrap-2.0.6-build.patch
@@ -0,0 +1,147 @@
+http://bugs.gentoo.org/34151
+http://bugs.gentoo.org/146828
+http://bugs.gentoo.org/335001
+
+--- apps.h
++++ apps.h
+@@ -65,9 +65,9 @@
+ #include "../e_os.h"
+ #endif
+
+-#include OPENSSL"buffer.h"
+-#include OPENSSL"bio.h"
+-#include OPENSSL"crypto.h"
++#include "openssl/buffer.h"
++#include "openssl/bio.h"
++#include "openssl/crypto.h"
+ /*#include "progs.h"*/
+
+ #ifdef WIN16
+--- Makefile
++++ Makefile
+@@ -1,28 +1,9 @@
+-
+ SRC = s_server.c s_socket.c s_cb.c
+-
+-# For Solaris2.6
+-#EXTLIBS = -lxnet
+-
+-# Debug/Optimizations
+-#OPT = -g
+-OPT = -O2
+-
+-# Define
++LIBS = `pkg-config --libs openssl`
+ OPENSSL="\"openssl/\""
+-#OPENSSL=""
+
+-all :
+- gcc -o sslwrap ${SRC} ${OPT} -DFLAT_INC -DOPENSSL=${OPENSSL} \
+- -L/usr/local/ssl/lib -lssl -lcrypto \
+- -I/usr/local/ssl/include \
+- ${EXTLIBS}
++all:
++ $(CC) $(LDFLAGS) $(CFLAGS) -o sslwrap ${SRC} -DFLAT_INC -DOPENSSL=${OPENSSL} ${LIBS}
+
+ clean:
+ rm -f sslwrap *.o *~
+-
+-
+-
+-
+-
+-
+--- s_cb.c
++++ s_cb.c
+@@ -63,9 +63,9 @@
+ #include "apps.h"
+ #undef NON_MAIN
+ #undef USE_SOCKETS
+-#include OPENSSL"err.h"
+-#include OPENSSL"x509.h"
+-#include OPENSSL"ssl.h"
++#include "openssl/err.h"
++#include "openssl/x509.h"
++#include "openssl/ssl.h"
+ #include "s_apps.h"
+
+ int verify_depth=0;
+--- s_server.c
++++ s_server.c
+@@ -121,14 +117,14 @@
+ #ifdef WIN16
+ #define APPS_WIN16
+ #endif
+-#include OPENSSL"lhash.h"
+-#include OPENSSL"bn.h"
++#include "openssl/lhash.h"
++#include "openssl/bn.h"
+ #define USE_SOCKETS
+ #include "apps.h"
+-#include OPENSSL"err.h"
+-#include OPENSSL"pem.h"
+-#include OPENSSL"x509.h"
+-#include OPENSSL"ssl.h"
++#include "err.h"
++#include "openssl/pem.h"
++#include "openssl/x509.h"
++#include "openssl/ssl.h"
+ #include "s_apps.h"
+
+ #ifndef NOPROTO
+@@ -468,7 +464,7 @@
+
+ if (bugs) SSL_CTX_set_options(ctx,SSL_OP_ALL);
+ if (hack) SSL_CTX_set_options(ctx,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG);
+- if (hack) SSL_CTX_set_options(ctx,SSL_OP_NON_EXPORT_FIRST);
++ if (hack) SSL_CTX_set_options(ctx,SSL_OP_CIPHER_SERVER_PREFERENCE);
+
+ if (state) SSL_CTX_set_info_callback(ctx,apps_ssl_info_callback);
+
+@@ -622,7 +618,7 @@
+ #endif /*NO_EXEC*/
+ }
+
+- if ((buf=malloc(BUFSIZZ)) == NULL)
++ if ((buf=CRYPTO_malloc(BUFSIZZ,__FILE__,__LINE__)) == NULL)
+ {
+ BIO_printf(bio_err,"out of memory\n");
+ goto err;
+@@ -729,7 +725,7 @@
+ if (buf != NULL)
+ {
+ memset(buf,0,BUFSIZZ);
+- free(buf);
++ CRYPTO_free(buf);
+ }
+
+ return(ret);
+--- s_socket.c
++++ s_socket.c
+@@ -67,7 +67,7 @@
+ #undef USE_SOCKETS
+ #undef NON_MAIN
+ #include "s_apps.h"
+-#include OPENSSL"ssl.h"
++#include "openssl/ssl.h"
+
+ #ifndef NOPROTO
+ static struct hostent *GetHostByName(char *name);
+@@ -305,7 +305,7 @@
+ return(0);
+ }
+ i=(*cb)(name,sock, sock);
+- if (name != NULL) free(name);
++ if (name != NULL) CRYPTO_free(name);
+ SHUTDOWN(sock);
+ if (i < 0)
+ {
+@@ -410,7 +410,7 @@
+ }
+ else
+ {
+- if ((*host=(char *)malloc(strlen(h1->h_name)+1)) == NULL)
++ if ((*host=(char *)CRYPTO_malloc(strlen(h1->h_name)+1,__FILE__,__LINE__)) == NULL)
+ {
+ perror("Malloc");
+ return(0);
diff --git a/net-misc/sslwrap/metadata.xml b/net-misc/sslwrap/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-misc/sslwrap/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/net-misc/sslwrap/sslwrap-2.0.6-r2.ebuild b/net-misc/sslwrap/sslwrap-2.0.6-r2.ebuild
new file mode 100644
index 000000000000..609997604369
--- /dev/null
+++ b/net-misc/sslwrap/sslwrap-2.0.6-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="TSL/SSL - Port Wrapper"
+HOMEPAGE="http://www.rickk.com/sslwrap/index.htm"
+SRC_URI="http://www.rickk.com/${PN}/${PN}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="SSLeay"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+RDEPEND="dev-libs/openssl:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}${PV//.}
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_install() {
+ dosbin ${PN}
+ dodoc README
+ dohtml -r .
+}