summaryrefslogtreecommitdiff
path: root/net/rdist6
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-02-04 01:56:42 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-02-04 01:56:42 +0000
commit28a54d3d140592ba01a54e5ca0b9850ab476ad09 (patch)
treeb99dbc824226f6de13cdb6182c5d1dcafba01906 /net/rdist6
parentActivate the mirrormagic port. (diff)
Unbreak for >= 3.0.
Diffstat (limited to 'net/rdist6')
-rw-r--r--net/rdist6/Makefile6
-rw-r--r--net/rdist6/files/patch-aj23
2 files changed, 24 insertions, 5 deletions
diff --git a/net/rdist6/Makefile b/net/rdist6/Makefile
index 33ed73ecd96d..14dd2a4fbcac 100644
--- a/net/rdist6/Makefile
+++ b/net/rdist6/Makefile
@@ -3,7 +3,7 @@
# Date created: 19 August 1995
# Whom: peter
#
-# $Id: Makefile,v 1.15 1998/10/14 00:10:17 jseger Exp $
+# $Id: Makefile,v 1.16 1998/11/11 05:37:29 asami Exp $
#
DISTNAME= rdist-6.1.4
@@ -16,10 +16,6 @@ MAINTAINER= peter@FreeBSD.org
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 300000
-BROKEN= MOUNT_NFS undeclared
-.endif
-
# To avoid confusion with /usr/bin/rdist, you may prefer otherwise.
RDIST_NAME?= rdist6
diff --git a/net/rdist6/files/patch-aj b/net/rdist6/files/patch-aj
new file mode 100644
index 000000000000..b289d18983e8
--- /dev/null
+++ b/net/rdist6/files/patch-aj
@@ -0,0 +1,23 @@
+--- src/filesys-os.c.dist Fri Feb 16 03:01:04 1996
++++ src/filesys-os.c Wed Feb 3 23:38:46 1999
+@@ -180,4 +180,5 @@
+ mntstruct.me_flags |= MEFLAG_READONLY;
+ #endif
++#ifdef MOUNT_NFS
+ switch ((ulong)((struct statfs*)mnt)->f_type) {
+ case MOUNT_NFS:
+@@ -191,4 +192,14 @@
+ break;
+ }
++#else
++ if ((((struct statfs*)mnt)->f_flags & MNT_LOCAL) == 0) {
++ (void) sprintf(remote_dev, "%s", mnt->f_mntfromname);
++ mntstruct.me_path = remote_dev;
++ mntstruct.me_type = METYPE_NFS;
++ } else {
++ mntstruct.me_path = mnt->f_mntonname;
++ mntstruct.me_type = METYPE_OTHER;
++ }
++#endif
+
+ mnt++;