Date: Tue, 03 Sep 1996 15:20:35 -0700 From: Scott Blachowicz <scott@statsci.com> To: Tom Samplonius <tom@sdf.com> Cc: Tom Torrance <tom@tomqnx.com>, ports@freebsd.org Subject: Re: smail install problems Message-ID: <m0uy3pj-0003xQC@main.statsci.com> In-Reply-To: Your message of "Sat, 31 Aug 1996 10:09:29 -0700." <Pine.NEB.3.94.960831100719.2623A-100000@misery.sdf.com> References: <Pine.NEB.3.94.960831100719.2623A-100000@misery.sdf.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Tom Samplonius <tom@sdf.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0uy3pj-0003xQC>