From 1f06ef539a288baba5868a96cd7c6eb0a9bfe36f Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 11:08:53 +0000 Subject: auto-import changelog data from rdist-6.1.5-14.src.rpm Wed Jul 12 2000 Prospector - automatic rebuild Sun Jun 18 2000 Jeff Johnson - FHS packaging. - exclude ia64 for now. Sat Feb 05 2000 Cristian Gafton - include new license package - man pages are compressed - fix description Tue Jul 20 1999 Jeff Johnson - re-release latest rdist package. Thu Jun 03 1999 Jeff Johnson - permit rdist to distribute hard links (#3228) Tue Apr 13 1999 Jeff Johnson - add /usr/bin/rdistd symlink (#2154) - update docs to reflect /usr/bin/oldrdist change. Mon Apr 12 1999 Jeff Johnson - use /usr/bin/oldrdist for old rdist compatibility path (#2044). Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 5) Wed Feb 17 1999 Jeff Johnson - dynamic allocation for link info (#1046) Thu Nov 12 1998 Jeff Johnson - update to 6.1.5 Sun Aug 16 1998 Jeff Johnson - build root Tue May 05 1998 Prospector System - translations modified for de, fr, tr Mon Oct 20 1997 Otto Hammersmith - fixed the url to the source - fixed the copyright field Mon Jul 21 1997 Erik Troan - built against glibc --- diff --git a/.cvsignore b/.cvsignore index e69de29..17e9f4b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +rdist-6.1.5.tar.gz diff --git a/rdist-6.1.5-hardlink.patch b/rdist-6.1.5-hardlink.patch new file mode 100644 index 0000000..5eeebc1 --- /dev/null +++ b/rdist-6.1.5-hardlink.patch @@ -0,0 +1,20 @@ +--- rdist-6.1.5/src/client.c.hardlink Thu Jun 3 13:56:31 1999 ++++ rdist-6.1.5/src/client.c Thu Jun 3 14:00:06 1999 +@@ -348,7 +348,7 @@ + lp->target = strdup(Tdest); + else + lp->target = NULL; +- if (!lp->pathname || !lp->src || !(Tdest && lp->target)) ++ if (!lp->pathname || !lp->src || (Tdest && !lp->target)) + fatalerr("Cannot malloc memory in linkinfo."); + + return((struct linkbuf *) NULL); +@@ -370,7 +370,7 @@ + "sendhardlink: rname='%s' pathname='%s' src='%s' target='%s'\n", + rname, lp->pathname, lp->src, lp->target); + +- if (*lp->target == CNULL) ++ if (lp->target == NULL || *lp->target == CNULL) + (void) sendcmd(C_RECVHARDLINK, "%o %s %s", + opts, lp->pathname, rname); + else { diff --git a/rdist-6.1.5-links.patch b/rdist-6.1.5-links.patch new file mode 100644 index 0000000..187dce4 --- /dev/null +++ b/rdist-6.1.5-links.patch @@ -0,0 +1,74 @@ +--- rdist-6.1.5/src/client.c.links Wed Feb 17 17:46:09 1999 ++++ rdist-6.1.5/src/client.c Wed Feb 17 17:51:15 1999 +@@ -309,6 +309,18 @@ + return(0); + } + ++void freelinkinfo(lp) ++ struct linkbuf *lp; ++{ ++ if (lp->pathname) ++ free(lp->pathname); ++ if (lp->src) ++ free(lp->src); ++ if (lp->target) ++ free(lp->target); ++ free(lp); ++} ++ + /* + * Save and retrieve hard link info + */ +@@ -317,6 +329,7 @@ + { + struct linkbuf *lp; + ++ /* xxx: linear search doesn't scale with many links */ + for (lp = ihead; lp != NULL; lp = lp->nextp) + if (lp->inum == statp->st_ino && lp->devnum == statp->st_dev) { + lp->count--; +@@ -329,12 +342,14 @@ + lp->inum = statp->st_ino; + lp->devnum = statp->st_dev; + lp->count = statp->st_nlink - 1; +- (void) strcpy(lp->pathname, target); +- (void) strcpy(lp->src, source); ++ lp->pathname = strdup(target); ++ lp->src = strdup(source); + if (Tdest) +- (void) strcpy(lp->target, Tdest); ++ lp->target = strdup(Tdest); + else +- *lp->target = CNULL; ++ lp->target = NULL; ++ if (!lp->pathname || !lp->src || !(Tdest && lp->target)) ++ fatalerr("Cannot malloc memory in linkinfo."); + + return((struct linkbuf *) NULL); + } +--- rdist-6.1.5/src/docmd.c.links Wed Feb 17 17:51:23 1999 ++++ rdist-6.1.5/src/docmd.c Wed Feb 17 17:52:44 1999 +@@ -586,7 +586,7 @@ + if (!nflag) { + register struct linkbuf *nextl, *l; + +- for (l = ihead; l != NULL; free((char *)l), l = nextl) { ++ for (l = ihead; l != NULL; freelinkinfo(l), l = nextl) { + nextl = l->nextp; + if (contimedout || IS_ON(opts, DO_IGNLNKS) || + l->count == 0) +--- rdist-6.1.5/include/defs.h.links Wed Feb 17 17:52:58 1999 ++++ rdist-6.1.5/include/defs.h Wed Feb 17 17:53:47 1999 +@@ -276,9 +276,9 @@ + ino_t inum; + dev_t devnum; + int count; +- char pathname[BUFSIZ]; +- char src[BUFSIZ]; +- char target[BUFSIZ]; ++ char *pathname; ++ char *src; ++ char *target; + struct linkbuf *nextp; + }; + diff --git a/rdist-6.1.5-linux.patch b/rdist-6.1.5-linux.patch new file mode 100644 index 0000000..1f9fb82 --- /dev/null +++ b/rdist-6.1.5-linux.patch @@ -0,0 +1,23 @@ +diff: rdist-6.1.5/config/mf: No such file or directory +--- rdist-6.1.5/config/os-linux.h.linux Mon Nov 9 22:59:59 1998 ++++ rdist-6.1.5/config/os-linux.h Thu Nov 12 14:50:35 1998 +@@ -58,7 +58,7 @@ + /* + * Select the type of executable file format. + */ +-#define EXE_TYPE EXE_AOUT ++#define EXE_TYPE EXE_ELF + + /* + * Select the type of statfs() system call (if any). +--- rdist-6.1.5/mf/Makefile.var.linux Tue Nov 10 00:02:11 1998 ++++ rdist-6.1.5/mf/Makefile.var Thu Nov 12 14:50:35 1998 +@@ -67,7 +67,7 @@ + # + # Name of YACC. + # +-#YACC = bison -y ++YACC = bison -y + + OPT = -g + RM = rm diff --git a/rdist-6.1.5-oldpath.patch b/rdist-6.1.5-oldpath.patch new file mode 100644 index 0000000..556e050 --- /dev/null +++ b/rdist-6.1.5-oldpath.patch @@ -0,0 +1,45 @@ +--- rdist-6.1.5/config/config.h.oldpath Mon Nov 9 22:59:48 1998 ++++ rdist-6.1.5/config/config.h Tue Apr 13 15:09:55 1999 +@@ -39,7 +39,7 @@ + * don't have the old rdist, then uncomment the "#undef" line. + */ + #ifndef _PATH_OLDRDIST +-#define _PATH_OLDRDIST "/usr/ucb/oldrdist" /* Enable compat */ ++#define _PATH_OLDRDIST "/usr/bin/oldrdist" /* Enable compat */ + #endif + /*#undef _PATH_OLDRDIST*/ /* Disable compat */ + +--- rdist-6.1.5/doc/rdist.man.oldpath Tue Apr 13 15:11:33 1999 ++++ rdist-6.1.5/doc/rdist.man Tue Apr 13 15:13:42 1999 +@@ -170,10 +170,9 @@ + This option will only work if + .I rdist + was compiled with the location of the old rdist +-(usually either +-.I /usr/ucb/oldrdist +-or +-.I /usr/old/rdist) ++(the path ++.I/usr/bin/oldrdist ++is used on Red Hat linux) + and that program is available at run time. + .PP + .I Rdist +--- rdist-6.1.5/README.oldpath Tue Apr 13 15:14:07 1999 ++++ rdist-6.1.5/README Tue Apr 13 15:15:42 1999 +@@ -65,12 +65,12 @@ + + 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 ++will exec a copy of the old rdist (the path /usr/bin/oldrdist in Red ++Hat linux). 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). ++(/usr/bin/oldrdist in Red Hat linux). + + The definition _PATH_OLDRDIST in "config/config.h" controls the + location of the old rdist. If this is not defined, or the defined diff --git a/rdist-eu-license.txt b/rdist-eu-license.txt new file mode 100644 index 0000000..7ae1591 --- /dev/null +++ b/rdist-eu-license.txt @@ -0,0 +1,118 @@ + MagniComp - End User License Agreement + + www.MagniComp.com + + RDist Version 6.1 + + Version of This Document: 19990724 + +GRANT. + +MagniComp grants you a non-exclusive license to use RDist version 6.1 and +all subsequent versions called 6.1.X software (the "Software") free of +charge. + +This license does not entitle you to hard-copy documentation, support or +telephone assistance. MagniComp reserves the right at any time to alter +prices, features, specifications, capabilities, functions, licensing terms, +general availability of the Software. + +SCOPE OF GRANT. + +You may: + + * use the Software in any way you wish on any computer regardless of + ownership of said computer; + * redistribute the Software in any form, including source and binary, to + any party with or without charging a fee; + * copy the Software for any purpose. + +You may not: + + * remove or alter this notice; + * remove or alter any proprietary notices or labels on the Software. + +REQUIREMENTS. + + * All advertising materials mentioning features or use of this software + must display the following acknowledgement: + + This product includes software developed by MagniComp + (www.MagniComp.com) and its contributors. + + * Redistributions in binary form must reproduce this copyright notice, + this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither name of MagniComp nor the names of its contributors may be used + to endorse or promote products derived from this software without + specific prior written permission. + +TITLE. + +Title, ownership rights, and intellectual property rights in the Software +shall remain in MagniComp and/or its suppliers. The Software is protected by +copyright and other intellectual property laws and by international +treaties. Title and related rights in the content accessed through the +Software is the property of the applicable content owner and may be +protected by applicable law. This license gives you no rights to such +content. + +TERMINATION. + +The license will terminate automatically if you fail to comply with the +limitations described herein. Upon termination of this license, you agree to +destroy all copies of the Software. + +DISCLAIMER OF WARRANTY. + +The Software is provided on an "AS IS" basis, without warranty of any kind, +including without limitation the warranties of merchantability, fitness for +a particular purpose and non-infringement. The entire risk as to the quality +and performance of the Software is borne by you. Should the Software prove +defective, you and not MagniComp or its suppliers assume the entire cost of +any service and repair. In addition, the security mechanisms implemented by +MagniComp software have inherent limitations, and you must determine that +the Software sufficiently meets your requirements. This disclaimer of +warranty constitutes an essential part of the agreement. SOME JURISDICTIONS +DO NOT ALLOW EXCLUSIONS OF AN IMPLIED WARRANTY, SO THIS DISCLAIMER MAY NOT +APPLY TO YOU AND YOU MAY HAVE OTHER LEGAL RIGHTS THAT VARY BY JURISDICTION. + +LIMITATION OF LIABILITY. + +UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, TORT, CONTRACT, OR +OTHERWISE, SHALL MAGNICOMP OR ITS SUPPLIERS OR RESELLERS BE LIABLE TO YOU OR +ANY OTHER PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF +GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL +OTHER COMMERCIAL DAMAGES OR LOSSES. IN NO EVENT WILL MAGNICOMP BE LIABLE FOR +ANY DAMAGES, EVEN IF MAGNICOMP SHALL HAVE BEEN INFORMED OF THE POSSIBILITY +OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY. THIS LIMITATION OF +LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY TO THE +EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. FURTHERMORE, SOME +JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR +CONSEQUENTIAL DAMAGES, SO THIS LIMITATION AND EXCLUSION MAY NOT APPLY TO +YOU. + +HIGH RISK ACTIVITIES. + +The Software is not fault-tolerant and is not designed, manufactured or +intended for use or resale as on-line control equipment in hazardous +environments requiring fail-safe performance, such as in the operation of +nuclear facilities, aircraft navigation or communication systems, air +traffic control, direct life support machines, or weapons systems, in which +the failure of the Software could lead directly to death, personal injury, +or severe physical or environmental damage ("High Risk Activities"). +MagniComp and its suppliers specifically disclaim any express or implied +warranty of fitness for High Risk Activities. + +MISCELLANEOUS. + +This Agreement represents the complete agreement concerning this license and +may amended only by a writing executed by both parties. If any provision of +this Agreement is held to be unenforceable, such provision shall be reformed +only to the extent necessary to make it enforceable. This Agreement shall be +governed by California law (except for conflict of law provisions). The +application the United Nations Convention of Contracts for the International +Sale of Goods is expressly excluded. + + END diff --git a/rdist.spec b/rdist.spec new file mode 100644 index 0000000..265119f --- /dev/null +++ b/rdist.spec @@ -0,0 +1,110 @@ +Summary: Maintains identical copies of files on multiple machines. +Name: rdist +Version: 6.1.5 +Release: 14 +Epoch: 1 +Copyright: BSD +Group: Applications/System +Source0: http://www.MagniComp.com/download/rdist/rdist-%{version}.tar.gz +Source1: http://www.magnicomp.com/rdist/rdist-eu-license.txt +Patch0: rdist-6.1.5-linux.patch +Patch1: rdist-6.1.5-links.patch +Patch2: rdist-6.1.5-oldpath.patch +Patch3: rdist-6.1.5-hardlink.patch +URL: http://www.MagniComp.comA/rdist +ExcludeArch: ia64 +BuildRoot: %{_tmppath}/%{name}-root + +%description +The RDist program maintains identical copies of files on multiple +hosts. If possible, RDist will preserve the owner, group, mode and +mtime of files and it can update programs that are executing. + +Install rdist if you need to maintain identical copies of files on +multiple hosts. + +%prep +%setup -q + +cp %{SOURCE1} . + +%patch0 -p1 -b .linux +%patch1 -p1 -b .links +%patch2 -p1 -b .oldpath +%patch3 -p1 -b .hardlink + +%build +make + +%install +rm -rf ${RPM_BUILD_ROOT} +mkdir -p ${RPM_BUILD_ROOT}%{_bindir} +mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} +mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8} + +install -s -m755 src/rdist ${RPM_BUILD_ROOT}%{_bindir} +install -s -m755 src/rdistd ${RPM_BUILD_ROOT}%{_sbindir} +ln -sf ../sbin/rdistd ${RPM_BUILD_ROOT}%{_bindir}/rdistd + +install -m644 doc/rdist.man ${RPM_BUILD_ROOT}%{_mandir}/man1/rdist.1 +install -m644 doc/rdistd.man ${RPM_BUILD_ROOT}%{_mandir}/man8/rdist.8 + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%doc README rdist-eu-license.txt +%{_bindir}/rdist +%{_bindir}/rdistd +%{_sbindir}/rdistd +%{_mandir}/man1/rdist.1* +%{_mandir}/man8/rdist.8* + +%changelog +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Sun Jun 18 2000 Jeff Johnson +- FHS packaging. +- exclude ia64 for now. + +* Sat Feb 05 2000 Cristian Gafton +- include new license package +- man pages are compressed +- fix description + +* Tue Jul 20 1999 Jeff Johnson +- re-release latest rdist package. + +* Thu Jun 3 1999 Jeff Johnson +- permit rdist to distribute hard links (#3228) + +* Tue Apr 13 1999 Jeff Johnson +- add /usr/bin/rdistd symlink (#2154) +- update docs to reflect /usr/bin/oldrdist change. + +* Mon Apr 12 1999 Jeff Johnson +- use /usr/bin/oldrdist for old rdist compatibility path (#2044). + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 5) + +* Wed Feb 17 1999 Jeff Johnson +- dynamic allocation for link info (#1046) + +* Thu Nov 12 1998 Jeff Johnson +- update to 6.1.5 + +* Sun Aug 16 1998 Jeff Johnson +- build root + +* Tue May 05 1998 Prospector System +- translations modified for de, fr, tr + +* Mon Oct 20 1997 Otto Hammersmith +- fixed the url to the source +- fixed the copyright field + +* Mon Jul 21 1997 Erik Troan +- built against glibc diff --git a/sources b/sources index e69de29..a3736a0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +546779700af70aa5f9103e08782cdcac rdist-6.1.5.tar.gz