aboutsummaryrefslogtreecommitdiffstats
path: root/comms/conserver-com
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2015-08-23 22:51:08 +0800
committerkuriyama <kuriyama@FreeBSD.org>2015-08-23 22:51:08 +0800
commit83a1051760395534f0a5142e38f2c5543bcc622d (patch)
tree070727ebd5e435f83cc8491fd55fb64465a79245 /comms/conserver-com
parent139e9a37ab380b746670771ed831f9d4068664ae (diff)
downloadfreebsd-ports-gnome-83a1051760395534f0a5142e38f2c5543bcc622d.tar.gz
freebsd-ports-gnome-83a1051760395534f0a5142e38f2c5543bcc622d.tar.zst
freebsd-ports-gnome-83a1051760395534f0a5142e38f2c5543bcc622d.zip
Fix GSSAPI related (wrongly removed in previous commit).
PR: ports/202278 Submitted by: peter
Diffstat (limited to 'comms/conserver-com')
-rw-r--r--comms/conserver-com/Makefile1
-rw-r--r--comms/conserver-com/files/patch-configure26
-rw-r--r--comms/conserver-com/files/patch-conserver__consent.c13
-rw-r--r--comms/conserver-com/files/patch-conserver__group.c28
4 files changed, 68 insertions, 0 deletions
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 <stdio.h>
+ #include <gssapi/gssapi.h>
+
+ 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 <stdio.h>
+ #include <gssapi/gssapi.h>
+
+ 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 <stdio.h>
+ #include <gssapi/gssapi.h>
+
+ 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 <master.h>
+ #include <main.h>
+ #include <version.h>
++#include <stdio.h>
+
+ #if HAVE_PAM
+ #include <security/pam_appl.h>
+@@ -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: