On Fri, Jun 08, 2001 at 09:43:15AM -0500, will trillich wrote: > On Fri, Jun 08, 2001 at 12:47:34PM +0200, Joerg Johannes wrote: > > will trillich wrote: > > > okay, i've got cvs working client-side just fine. now i'd like > > > to try setting up a server for a small in-house project, mostly > > > to see if it can be done... > > Not Debian-specific at all, but may help you > > > > http://www.idealx.org/prj/idx-chrooted-ssh-cvs/dist/chrooted-ssh-cvs-server.html > > it looks promising -- geared to openbsd, but promising > nonetheless... > > they refer to "smrsh" which they say is related to (comes with) > the sendmail distribution:
okay, i'll worry about smrsh (sendmail retricted shell) later; for now-- to work in the chrooted jail, cvs has to be compiled statically. instrux at "www.idealx.org" say to ./configure --disable-client which is understandable, and worked seamlessly; then after a "make" i check the file via # file src/cvs cvs: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), not stripped as expected. and to get rid of the "shared libs" (there'll be none in the chroot jail) i am spozd to take the last compile command from the output of "make", adding "-static". the last command is a doozy-- gcc add.o admin.o buffer.o checkin.o checkout.o classify.o client.o commit.o create_adm.o cvsrc.o diff.o edit.o entries.o expand_path.o fileattr.o find_names.o hardlink.o hash.o history.o ignore.o import.o lock.o log.o login.o logmsg.o main.o mkmodules.o modules.o myndbm.o no_diff.o parseinfo.o patch.o rcs.o rcscmds.o recurse.o release.o remove.o repos.o root.o rtag.o scramble.o server.o status.o tag.o update.o watch.o wrapper.o vers_ts.o subr.o filesubr.o run.o version.o error.o zlib.o ../lib/libcvs.a ../diff/libdiff.a -l z -lcrypt -o cvs if i reissue that command verbatim, allgoes well. if i append "-static" to the end of the command (as last arg), or put it right after "gcc" (making it the first argument instead of the last) i get /usr/lib/libc.a(regex.o)(.data+0x4): multiple definition of `re_max_failures' ../lib/libcvs.a(regex.o):/usr/src/cvs-1.10.7/lib/regex.c:115: first defined here collect2: ld returned 1 exit status suggestions? [is there an apt-gettable debian cvs-server gizmo?] -- DEBIAN NEWBIE TIP #39 from Roy Culley <[EMAIL PROTECTED]> : Wondering why the pundits say that CSH SCRIPTS ARE CONSIDERED HARMFUL? Although "tcsh" has improved on "csh" there are still issues. For the full scoop, read http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ Also see http://newbieDoc.sourceForge.net/ ...