aboutsummaryrefslogtreecommitdiff
path: root/net/openafs
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2011-10-15 00:37:24 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2011-10-15 00:37:24 +0000
commit7e4996eff458554ee62bdfdc7c053f99bef14dde (patch)
treec1b96fa3a8c81e58090617f1b017687df5a8cdcd /net/openafs
parent94f91e81f7c2bf345aa2ef416f0e21c02b4fc79e (diff)
downloadports-7e4996eff458554ee62bdfdc7c053f99bef14dde.tar.gz
ports-7e4996eff458554ee62bdfdc7c053f99bef14dde.zip
Notes
Diffstat (limited to 'net/openafs')
-rw-r--r--net/openafs/Makefile2
-rw-r--r--net/openafs/files/patch-src__afs__FBSD__osi_groups.c22
-rw-r--r--net/openafs/files/patch-src__afs__afs_pioctl.c16
-rw-r--r--net/openafs/files/patch-src__afs__afs_prototypes.h16
-rw-r--r--net/openafs/files/patch-src__rx__FBSD__rx_knet.c16
5 files changed, 72 insertions, 0 deletions
diff --git a/net/openafs/Makefile b/net/openafs/Makefile
index 4223b4922a93..906b5e8e64ff 100644
--- a/net/openafs/Makefile
+++ b/net/openafs/Makefile
@@ -8,6 +8,7 @@
PORTNAME= openafs
DISTVERSION= ${AFS_DISTVERSION}.${DBVERSION:S/-//g}
+PORTREVISION= 1
CATEGORIES= net kld
MASTER_SITES= http://dl.central.org/dl/openafs/${AFS_DISTVERSION}/:openafs \
http://dl.openafs.org/dl/openafs/${AFS_DISTVERSION}/:openafs \
@@ -37,6 +38,7 @@ PATCH_STRIP= -p1
USE_BZIP2= yes
HAS_CONFIGURE= yes
USE_RC_SUBR= afsd afsserver
+MAKE_JOBS_UNSAFE= yes
ONLY_FOR_ARCHS= i386 amd64
diff --git a/net/openafs/files/patch-src__afs__FBSD__osi_groups.c b/net/openafs/files/patch-src__afs__FBSD__osi_groups.c
new file mode 100644
index 000000000000..25371fec97e3
--- /dev/null
+++ b/net/openafs/files/patch-src__afs__FBSD__osi_groups.c
@@ -0,0 +1,22 @@
+diff --git a/src/afs/FBSD/osi_groups.c b/src/afs/FBSD/osi_groups.c
+index ef62478..e897f46 100644
+--- a/src/afs/FBSD/osi_groups.c
++++ b/src/afs/FBSD/osi_groups.c
+@@ -48,9 +48,17 @@ Afs_xsetgroups(struct thread *td, struct setgroups_args *uap)
+ AFS_GUNLOCK();
+ crfree(cr);
+ if (code)
++#if (__FreeBSD_version >= 900044)
++ return sys_setgroups(td, uap); /* afs has shut down */
++#else
+ return setgroups(td, uap); /* afs has shut down */
++#endif
+
++#if (__FreeBSD_version >= 900044)
++ code = sys_setgroups(td, uap);
++#else
+ code = setgroups(td, uap);
++#endif
+ /* Note that if there is a pag already in the new groups we don't
+ * overwrite it with the old pag.
+ */
diff --git a/net/openafs/files/patch-src__afs__afs_pioctl.c b/net/openafs/files/patch-src__afs__afs_pioctl.c
new file mode 100644
index 000000000000..676f863c16a4
--- /dev/null
+++ b/net/openafs/files/patch-src__afs__afs_pioctl.c
@@ -0,0 +1,16 @@
+diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c
+index cf432d6..2589b79 100644
+--- a/src/afs/afs_pioctl.c
++++ b/src/afs/afs_pioctl.c
+@@ -874,7 +874,11 @@ afs_xioctl(afs_proc_t *p, const struct ioctl_args *uap, register_t *retval)
+
+ if (!ioctlDone) {
+ # if defined(AFS_FBSD_ENV)
++# if (__FreeBSD_version >= 900044)
++ return sys_ioctl(td, uap);
++# else
+ return ioctl(td, uap);
++# endif
+ # elif defined(AFS_OBSD_ENV)
+ code = sys_ioctl(p, uap, retval);
+ # elif defined(AFS_NBSD_ENV)
diff --git a/net/openafs/files/patch-src__afs__afs_prototypes.h b/net/openafs/files/patch-src__afs__afs_prototypes.h
new file mode 100644
index 000000000000..2f033f476305
--- /dev/null
+++ b/net/openafs/files/patch-src__afs__afs_prototypes.h
@@ -0,0 +1,16 @@
+diff --git a/src/afs/afs_prototypes.h b/src/afs/afs_prototypes.h
+index 04f13ad..4135ebb 100644
+--- a/src/afs/afs_prototypes.h
++++ b/src/afs/afs_prototypes.h
+@@ -935,8 +935,9 @@ extern int copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst);
+ #if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
+ #ifdef AFS_DARWIN100_ENV
+ extern int afs3_syscall(afs_proc_t *p, void *args, unsigned int *retval);
+-#elif defined(AFS_FBSD90_ENV) || defined(AFS_FBSD82_ENV)
+-/* afs3_syscall prototype is in sys/sysproto.h */
++#elif (defined(AFS_FBSD90_ENV) || defined(AFS_FBSD82_ENV)) && (__FreeBSD_version < 900044)
++/* afs3_syscall prototype is in sys/sysproto.h
++ Yes, they put it in, then took it out again (renamed with a sys_ prefix) */
+ #elif defined(AFS_FBSD_ENV)
+ extern int afs3_syscall(struct thread *p, void *args);
+ #elif defined(AFS_NBSD50_ENV)
diff --git a/net/openafs/files/patch-src__rx__FBSD__rx_knet.c b/net/openafs/files/patch-src__rx__FBSD__rx_knet.c
new file mode 100644
index 000000000000..8a1b2ed31002
--- /dev/null
+++ b/net/openafs/files/patch-src__rx__FBSD__rx_knet.c
@@ -0,0 +1,16 @@
+diff --git a/src/rx/FBSD/rx_knet.c b/src/rx/FBSD/rx_knet.c
+index c6d2d84..ded3f7c 100644
+--- a/src/rx/FBSD/rx_knet.c
++++ b/src/rx/FBSD/rx_knet.c
+@@ -92,7 +92,11 @@ osi_StopListener(void)
+ p = pfind(rxk_ListenerPid);
+ if (p) {
+ afs_warn("osi_StopListener: rxk_ListenerPid %u\n", rxk_ListenerPid);
++#if (__FreeBSD_version >= 90004)
++ kern_psignal(p, SIGUSR1);
++#else
+ psignal(p, SIGUSR1);
++#endif
+ PROC_UNLOCK(p);
+ } else
+ afs_warn("osi_StopListener: rxk_Listener not found (pid %u)\n",