From owner-freebsd-ports Tue Sep 3 15:21:10 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA29703 for ports-outgoing; Tue, 3 Sep 1996 15:21:10 -0700 (PDT) Received: from nwnexus.wa.com (nwnexus.wa.com [192.135.191.1]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA29697 for ; Tue, 3 Sep 1996 15:21:02 -0700 (PDT) Received: from main.statsci.com by nwnexus.wa.com with SMTP id AA05395 (5.65c/IDA-1.4.4 for ); Tue, 3 Sep 1996 15:20:44 -0700 Received: from statsci.com [206.63.206.4] with smtp by main.statsci.com with smtp (/\oo/\ Smail3.1.29.1 #29.3 #3) id m0uy3pj-0003xQC; Tue, 3 Sep 96 15:20 PDT Message-Id: X-Mailer: exmh version 1.6.9 8/22/96 To: Tom Samplonius Cc: Tom Torrance , ports@freebsd.org Subject: Re: smail install problems References: In-Reply-To: Your message of "Sat, 31 Aug 1996 10:09:29 -0700." Reply-To: scott@statsci.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Sep 1996 15:20:35 -0700 From: Scott Blachowicz Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Tom Samplonius wrote: > I wouln't want to see the Smail port remove or move system binaries. A > small note on making symlinks for sendmail/rmail/mailq should be > sufficient. Possibly along with providing a script that can be used to do the symlinks. Locally, I've got a script that I use to setup a newly acquired system. A [hand-edited to remove some localisms] copy of it is appended to this message. The basic upshot is that a new system gets a /usr/adm/smail/ tree copied to it, then the install.smail script backs up the previous versions of some files and installs symlinks to the smail equivalents in their place. (No, it is not a drop-in solution for a FreeBSD smail port, but it might provide thought fodder). Scott Blachowicz Ph: 206/283-8802x240 Mathsoft (Data Analysis Products Div) 1700 Westlake Ave N #500 scott@statsci.com Seattle, WA USA 98109 Scott.Blachowicz@seaslug.org ---- Excerpt from my 'install.smail' script: #! /bin/sh dbg= smailbin=/usr/adm/smail/bin export smailbin cd $smailbin for f in * sendmail rmail do for d in /bin /usr/bin /usr/lib /usr/sbin do if [ -f $d/$f ]; then n=1 while [ -f $d/$f.orig.$n ]; do n=`expr $n + 1` done if $dbg mv $d/$f $d/$f.orig.$n; then [ "X$dbg" = X ] && echo $d/$f saved to $d/$f.orig.$n else echo "couldn't save $d/$f to .orig.$n" >&2 && exit 1 fi fi done done # $dbg ln -s $smailbin/* /usr/bin/ (cd $smailbin; find . \( -type l -o -type f \) \! -name '*.O' -print) | sed -e "s,^\.,$smailbin," | xargs -t -i ln -s '{}' /usr/bin/ echo ln -s $smailbin/smail /bin/rmail && $dbg ln -s $smailbin/smail /bin/rmail echo ln -s $smailbin/smail /usr/lib/sendmail && $dbg ln -s $smailbin/smail /usr/lib/sendmail echo ln -s $smailbin/smail /usr/sbin/sendmail && $dbg ln -s $smailbin/smail /usr/sbin/sendmail [ -r /usr/spool/smail ] || mkdir /usr/spool/smail [ -r /usr/spool/smail/lib ] || mkdir /usr/spool/smail/lib if [ -f /usr/adm/smail/lib/maps/mkpath.conf ]; then /usr/adm/smail/util/mkpath fi