From 83a1051760395534f0a5142e38f2c5543bcc622d Mon Sep 17 00:00:00 2001 From: kuriyama Date: Sun, 23 Aug 2015 14:51:08 +0000 Subject: Fix GSSAPI related (wrongly removed in previous commit). PR: ports/202278 Submitted by: peter --- comms/conserver-com/Makefile | 1 + comms/conserver-com/files/patch-configure | 26 ++++++++++++++++++++ .../conserver-com/files/patch-conserver__consent.c | 13 ++++++++++ comms/conserver-com/files/patch-conserver__group.c | 28 ++++++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 comms/conserver-com/files/patch-configure create mode 100644 comms/conserver-com/files/patch-conserver__consent.c create mode 100644 comms/conserver-com/files/patch-conserver__group.c (limited to 'comms/conserver-com') diff --git a/comms/conserver-com/Makefile b/comms/conserver-com/Makefile index bb06f74d6996..047c64ae4cd7 100644 --- a/comms/conserver-com/Makefile +++ b/comms/conserver-com/Makefile @@ -2,6 +2,7 @@ PORTNAME= conserver PORTVERSION= 8.2.1 +PORTREVISION= 1 CATEGORIES= comms MASTER_SITES= http://www.conserver.com/ \ ftp://ftp.conserver.com/conserver/ diff --git a/comms/conserver-com/files/patch-configure b/comms/conserver-com/files/patch-configure new file mode 100644 index 000000000000..33c251989e5e --- /dev/null +++ b/comms/conserver-com/files/patch-configure @@ -0,0 +1,26 @@ +--- configure.orig 2014-04-17 21:55:40.000000000 -0700 ++++ configure 2015-08-12 13:31:26.015249000 -0700 +@@ -5307,6 +5307,7 @@ + $as_echo_n "checking for gssapi library -lgssapi... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ ++#include + #include + + int +@@ -5332,6 +5333,7 @@ + $as_echo_n "checking for gssapi library -lgssglue... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ ++#include + #include + + int +@@ -5357,6 +5359,7 @@ + $as_echo_n "checking for gssapi library -lgss... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ ++#include + #include + + int diff --git a/comms/conserver-com/files/patch-conserver__consent.c b/comms/conserver-com/files/patch-conserver__consent.c new file mode 100644 index 000000000000..493f486f3391 --- /dev/null +++ b/comms/conserver-com/files/patch-conserver__consent.c @@ -0,0 +1,13 @@ +--- conserver/consent.c.dist 2015-08-12 13:38:39.837321000 -0700 ++++ conserver/consent.c 2015-08-12 13:38:01.860668000 -0700 +@@ -687,6 +687,10 @@ + case INSSLSHUTDOWN: + return "SSL_shutdown"; + #endif ++#if HAVE_GSSAPI ++ case INGSSACCEPT: ++ return "GSSAPI_accept"; ++#endif + case ISFLUSHING: + return "flushing"; + } diff --git a/comms/conserver-com/files/patch-conserver__group.c b/comms/conserver-com/files/patch-conserver__group.c new file mode 100644 index 000000000000..6221166eb162 --- /dev/null +++ b/comms/conserver-com/files/patch-conserver__group.c @@ -0,0 +1,28 @@ +--- ./conserver/group.c.orig 2009-09-26 05:58:05.000000000 -0400 ++++ ./conserver/group.c 2013-02-15 18:34:20.000000000 -0500 +@@ -72,6 +72,7 @@ + #include + #include + #include ++#include + + #if HAVE_PAM + #include +@@ -1930,7 +1931,7 @@ + FileWrite(pCL->fd, FLAGFALSE, sendtok.value, sendtok.length); + FileSetQuoteIAC(pCL->fd, FLAGTRUE); + pCL->iState = S_NORMAL; +- gss_release_buffer(NULL, &sendtok); ++ gss_release_buffer(&stmin, &sendtok); + BuildString((char *)0, pCL->username); + BuildString((char *)0, pCL->acid); + stmaj = gss_display_name(&stmin, user, &dbuf, NULL); +@@ -1940,7 +1941,7 @@ + BuildStringChar('@', pCL->acid); + BuildString(pCL->peername->string, pCL->acid); + gss_release_name(&stmin, &user); +- gss_release_buffer(NULL, &dbuf); ++ gss_release_buffer(&stmin, &dbuf); + ret = 1; + break; + case GSS_S_CREDENTIALS_EXPIRED: -- cgit