summaryrefslogtreecommitdiff
path: root/net/rdist6
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1995-08-19 13:51:40 +0000
committerPeter Wemm <peter@FreeBSD.org>1995-08-19 13:51:40 +0000
commite61d9ab4bcfe16ffac0a9dc7cc0fd15b648a6b24 (patch)
treeb0aecba41713dee95cfd571d3ed5ed2ff6ef618e /net/rdist6
parentAwww, I meant emulators/tkhfs and utils/tk{info,man}. Good thing these (diff)
Port of rdist-6.1.0
Partly based on work by Deborah Bennett, partly from my version.
Notes
Notes: svn path=/head/; revision=2081
Diffstat (limited to 'net/rdist6')
-rw-r--r--net/rdist6/Makefile22
-rw-r--r--net/rdist6/distinfo1
-rw-r--r--net/rdist6/files/patch-ad28
-rw-r--r--net/rdist6/files/patch-ae60
-rw-r--r--net/rdist6/pkg-comment1
-rw-r--r--net/rdist6/pkg-descr123
-rw-r--r--net/rdist6/pkg-plist5
7 files changed, 240 insertions, 0 deletions
diff --git a/net/rdist6/Makefile b/net/rdist6/Makefile
new file mode 100644
index 000000000000..b0016aab3276
--- /dev/null
+++ b/net/rdist6/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: rdist
+# Version required: rdist-6.1.0
+# Date created: 19 August 1995
+# Whom: peter
+# Bases on patches by: Deborah Bennett <deborah@microunity.com>
+#
+# $Id$
+#
+
+DISTNAME= rdist-6.1.0
+PKGNAME= rdist-6.1.0
+MASTER_SITES= ftp://usc.edu/pub/rdist/
+CATEGORIES+= networking
+
+NO_WRKSUBDIR= yes
+
+# Copy the list of FreeBSD sites
+pre-patch:
+ cp ${FILESDIR}/mf.freebsd2 ${WRKSRC}/config
+ cp ${FILESDIR}/os-freebsd2.h ${WRKSRC}/config
+
+.include <bsd.port.mk>
diff --git a/net/rdist6/distinfo b/net/rdist6/distinfo
new file mode 100644
index 000000000000..94a5901be197
--- /dev/null
+++ b/net/rdist6/distinfo
@@ -0,0 +1 @@
+MD5 (rdist-6.1.0.tar.gz) = 37dfa8a056579db5c50d3b2d312b8909
diff --git a/net/rdist6/files/patch-ad b/net/rdist6/files/patch-ad
new file mode 100644
index 000000000000..74ca9e1fbfe2
--- /dev/null
+++ b/net/rdist6/files/patch-ad
@@ -0,0 +1,28 @@
+*** Makefile.local.orig Fri Feb 18 08:43:55 1994
+--- Makefile.local Sat Aug 19 20:56:46 1995
+***************
+*** 8,17 ****
+ # BIN_DIR variable, you would uncomment the following line
+ # or add your own line.
+ #
+! #BIN_DIR = /usr/bin
+
+ #
+! # Add any local definetions you want pass to the compiler to DEFS_LOCAL
+ # below. This includes those items found in "config/config.h".
+ #
+ DEFS_LOCAL =
+--- 8,20 ----
+ # BIN_DIR variable, you would uncomment the following line
+ # or add your own line.
+ #
+! BIN_DIR = /usr/local/bin
+! OPT = -O -s
+! MAN_1_DIR = /usr/local/man/man1
+! MAN_8_DIR = /usr/local/man/man8
+
+ #
+! # Add any local definitions you want pass to the compiler to DEFS_LOCAL
+ # below. This includes those items found in "config/config.h".
+ #
+ DEFS_LOCAL =
diff --git a/net/rdist6/files/patch-ae b/net/rdist6/files/patch-ae
new file mode 100644
index 000000000000..72b1fd99d753
--- /dev/null
+++ b/net/rdist6/files/patch-ae
@@ -0,0 +1,60 @@
+Index: src/docmd.c
+===================================================================
+RCS file: /src/rdist/src/docmd.c,v
+retrieving revision 1.1.1.1
+retrieving revision 1.2
+diff -c -r1.1.1.1 -r1.2
+*** docmd.c 1995/07/21 09:53:30 1.1.1.1
+--- docmd.c 1995/07/21 10:07:14 1.2
+***************
+*** 251,259 ****
+ char *cmd;
+ {
+ int desc;
+- #if defined(DIRECT_RCMD)
+ static int port = -1;
+- #endif /* DIRECT_RCMD */
+
+ debugmsg(DM_MISC, "local user = %s remote user = %s\n", luser, ruser);
+ debugmsg(DM_MISC, "Remote command = '%s'\n", cmd);
+--- 251,257 ----
+***************
+*** 280,290 ****
+ if (becomeuser() != 0)
+ exit(1);
+ #else /* !DIRECT_RCMD */
+! debugmsg(DM_MISC, "Remote shell command = '%s'\n", path_remsh);
+! (void) signal(SIGPIPE, SIG_IGN);
+! desc = rshrcmd(&rhost, -1, luser, ruser, cmd, 0);
+! if (desc > 0)
+ (void) signal(SIGPIPE, sighandler);
+ #endif /* DIRECT_RCMD */
+
+ (void) alarm(0);
+--- 278,303 ----
+ if (becomeuser() != 0)
+ exit(1);
+ #else /* !DIRECT_RCMD */
+! if (geteuid() == 0) {
+! debugmsg(DM_MISC, "I am root, therefore direct rcmd\n");
+ (void) signal(SIGPIPE, sighandler);
++
++ if (port < 0) {
++ struct servent *sp;
++
++ if ((sp = getservbyname("shell", "tcp")) == NULL)
++ fatalerr("shell/tcp: unknown service");
++ port = sp->s_port;
++ }
++
++ desc = rcmd(&rhost, port, luser, ruser, cmd, 0);
++ } else {
++ debugmsg(DM_MISC, "Remote shell command = '%s'\n", path_remsh);
++ (void) signal(SIGPIPE, SIG_IGN);
++ desc = rshrcmd(&rhost, -1, luser, ruser, cmd, 0);
++ if (desc > 0)
++ (void) signal(SIGPIPE, sighandler);
++ }
+ #endif /* DIRECT_RCMD */
+
+ (void) alarm(0);
diff --git a/net/rdist6/pkg-comment b/net/rdist6/pkg-comment
new file mode 100644
index 000000000000..4f3de99e4f9c
--- /dev/null
+++ b/net/rdist6/pkg-comment
@@ -0,0 +1 @@
+rdist 6.1.0 - A network file distribution utility.
diff --git a/net/rdist6/pkg-descr b/net/rdist6/pkg-descr
new file mode 100644
index 000000000000..3960e480956f
--- /dev/null
+++ b/net/rdist6/pkg-descr
@@ -0,0 +1,123 @@
+ Rdist Version 6.1
+ May 2, 1994
+
+ Michael Cooper
+ University Computing Services
+ University of Southern California
+ mcooper@usc.edu
+
+ GENERAL INFORMATION
+
+This is version 6.1 of Rdist from USC. It is based on rdist from
+4.3BSD (classic). It includes all fixes for all bugs known to the
+CSRG Berkeley folks. It has been running at USC and numerous other
+sites for some time now on a wide variety of platforms.
+
+This version of rdist is not directly compatible with rdist
+distributed with 4.3BSD and subsequent vendor releases, but does
+indirectly provide full backward compatibility.
+
+ CHANGES/FEATURES
+
+This version of rdist does not need to be setuid "root" at all. Rdist
+now uses the rsh(1c) [remote command] program to make connections to
+remote hosts, instead of making the connection directly. This
+eliminates the need to be run as "root". Many thanks to Chris
+Siebenmann <cks@utcc.utoronto.ca> and John DiMarco
+<jdd@cdf.toronto.edu> who came up with an rsh version of rcmd() that
+makes this possible.
+
+This version supports automatic system determination and configuration
+for pre-ported platforms. This means that rdist knows how to
+completely configure and compile itself for a number of platforms.
+Users don't need to worry about modifying any files to compile on a
+supported platform.
+
+A paper titled "Overhauling Rdist for the '90s" from USENIX LISA VI
+is available for anonymous ftp on usc.edu as "/pub/rdist/overhaul.ps.gz".
+
+ PLATFORMS
+
+This version of rdist has been ported to most major and a number of
+not so major platforms. The list below is only a partial list.
+The complete list of supported platforms can be found by looking
+at all the config/os-*.h files.
+
+ MACHINE TYPE OPERATING SYSTEM
+ --------------- ----------------------------------
+ DEC MIPS Ultrix 4.2
+ DG AviiON DG/UX 5.4.x
+ HP 9000/300 HP/UX 7.05 (HP cc)
+ HP 9000/400 HP/UX 7.05 (HP cc)
+ HP 9000/700 HP/UX 8.07 (HP cc, GCC 2.3.1)
+ IBM RS6000 AIX 3.2
+ NeXTStep Mach 3.1
+ Sun-3 SunOS 4.1.1
+ Sun-4/SPARC SunOS 4.1.3, SunOS 5.3 (Solaris 2.3)
+
+
+ COMPATIBILITY
+
+This version of rdist differs greatly from older versions (as
+distributed with 4.3BSD) in that the client and the server portions
+are seperated into two distinct programs, rdist and rdistd,
+respectively. The protocol used to communicate between the client and
+server has also been extensively modified. These two items make
+providing "builtin" compatibility very difficult. However, backwards
+compatibility is possible, provided you have a binary or source copy
+of the old rdist.
+
+The way the old rdist started a server rdist is to run "rdist
+-Server". If the new rdist is run with the "-Server" option, then it
+will exec a copy of the old rdist (usually /usr/old/rdist or
+/usr/ucb/oldrdist). In this way, you get compatibility with hosts
+running the old rdist attempting to rdist to a machine running new
+rdist. If your host running new rdist wants to rdist to a host
+running the old rdist, then it must run the old rdist program
+(/usr/old/rdist or /usr/ucb/oldrdist).
+
+[[ for FreeBSD; /usr/bin/rdist is the "old" rdist, and /usr/local/bin/
+[[ is the location of the "new" rdist and rdistd.
+
+The definition _PATH_OLDRDIST in "config/config.h" controls the
+location of the old rdist. If this is not defined, or the defined
+program does not exist at runtime, then rdist will print an error when
+run with the "-Server" option.
+
+ BUG REPORTS
+
+Bug reports should be sent to "rdist-bugs@usc.edu". All bug reports
+should include:
+
+1) The version of the rdist client and server you are running
+ (use the -V option to rdist and rdistd)
+2) The platform (machine + OS name + OS version)
+3) A full description of the problem, including sample distfiles.
+4) If you have a patch to fix the problem, a context diff (diff -c)
+ of the original files vs. the fixed files
+
+ RDIST MAIL LISTS
+
+There are two rdist mailling lists described below. PLEASE DO NOT SEND
+GENERAL QUESTIONS TO ANY OF THESE LISTS.
+
+LIST NAME SUBSCRIPTION ADDRESS DESCRIPTION
+--------------- ----------------------- ------------------------------------
+rdist-announce rdist-announce-request Announcements about new versions
+ of Rdist.
+
+rdist-dev rdist-dev-request Rdist developers mailling list.
+ Discussion about rdist features,
+ suggestions, bugs, etc. Will also
+ receive all rdist-announce mail.
+ Only those who are _SERIOUS_ about
+ being an rdist developer should be
+ on this list.
+
+To subscribe or unsubscribe, send email to the appropriate
+SUBSCRIPTION ADDRESS from above "@usc.edu". i.e.
+"rdist-dev-request@usc.edu" for the "rdist-dev" list.
+
+Archives are available for anonymous ftp from usc.edu as
+
+ /pub/rdist/<LIST>.archive
diff --git a/net/rdist6/pkg-plist b/net/rdist6/pkg-plist
new file mode 100644
index 000000000000..c32b8d52aeb2
--- /dev/null
+++ b/net/rdist6/pkg-plist
@@ -0,0 +1,5 @@
+@cwd /usr/local
+bin/rdist
+bin/rdistd
+man/man1/rdist.1
+man/man8/rdistd.8