diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-03-28 15:31:06 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-03-31 12:48:02 +0100 |
commit | 456b52654621bca7c427aec49422ee974a530bff (patch) | |
tree | 210f21af56ca29a14f91555eb5c6da005d1fbb32 /network/cadaver | |
parent | 1659b58afb906dffd3cac70c1bf5581e1ca4e292 (diff) | |
download | slackbuilds-456b52654621bca7c427aec49422ee974a530bff.tar.gz |
network/cadaver: Patched to build with openssl-1.0.2g.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/cadaver')
-rw-r--r-- | network/cadaver/cadaver.SlackBuild | 12 | ||||
-rw-r--r-- | network/cadaver/disable-sslv2.patch | 16 |
2 files changed, 24 insertions, 4 deletions
diff --git a/network/cadaver/cadaver.SlackBuild b/network/cadaver/cadaver.SlackBuild index 2decf724ea..63617ee688 100644 --- a/network/cadaver/cadaver.SlackBuild +++ b/network/cadaver/cadaver.SlackBuild @@ -45,10 +45,14 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# Disable SSLv2 (no longer in openssl) +# https://projects.archlinux.org/svntogit/community.git/plain/trunk/disable-sslv2.patch?h=packages/cadaver +patch -p1 < $CWD/disable-sslv2.patch CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/network/cadaver/disable-sslv2.patch b/network/cadaver/disable-sslv2.patch new file mode 100644 index 0000000000..c7a34ed545 --- /dev/null +++ b/network/cadaver/disable-sslv2.patch @@ -0,0 +1,16 @@ +diff -u -r cadaver-0.23.3/lib/neon/ne_openssl.c cadaver-0.23.3-nossl2/lib/neon/ne_openssl.c +--- cadaver-0.23.3/lib/neon/ne_openssl.c 2009-09-13 13:26:52.000000000 +0200 ++++ cadaver-0.23.3-nossl2/lib/neon/ne_openssl.c 2016-03-03 13:13:14.207713538 +0100 +@@ -564,11 +564,8 @@ + /* enable workarounds for buggy SSL server implementations */ + SSL_CTX_set_options(ctx->ctx, SSL_OP_ALL); + SSL_CTX_set_verify(ctx->ctx, SSL_VERIFY_PEER, verify_callback); +- } else if (mode == NE_SSL_CTX_SERVER) { +- ctx->ctx = SSL_CTX_new(SSLv23_server_method()); +- SSL_CTX_set_session_cache_mode(ctx->ctx, SSL_SESS_CACHE_CLIENT); + } else { +- ctx->ctx = SSL_CTX_new(SSLv2_server_method()); ++ ctx->ctx = SSL_CTX_new(SSLv23_server_method()); + SSL_CTX_set_session_cache_mode(ctx->ctx, SSL_SESS_CACHE_CLIENT); + } + return ctx; |