🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mail.uk-sendmail-workers
Article #91

/etc rather than /usr/lib

#91
From: Jim Crammond
Date: Mon, 29 Apr 1991 16:50
37 lines
1299 bytes
Things like the pathnames of the aliases files changing can be dealt
with in the localise.sh file.  In the localise.sh file I use locally I
also modify Install.sh to include a -d <dir> option to allow the .cf
file to be installed in /etc or elsewhere.  My localise.sh follows:

 #!/bin/sh

 # add option to Install.sh

 ed ../Install.sh <<'EOF'
 /^$/i
 # if -d dir is specified, the cf file is rcp'd to <dir>/sendmail.cf
 .
 /verbose/a
 dir=/usr/lib
 .
 /\*)/i
 -d)	dir=$2
 shift
 ;;
 .
 /usr.lib.sendmail.cf/s/.usr.lib/$dir/
 w Install.sh
 q
 EOF

 #  change /usr/lib paths to /etc in base.m4

 ed base.m4 <<'EOF'
 /^OA/s/usr.lib/etc/p
 /^OF/s/0644/0600/p
 w
 q
 EOF


-Jim.
Technical Details
Message-ID: <10662.9104291650@brodgar.quintus.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!crdgw1!uunet!mcsun!ukc!uos-ee!glasgow!daemon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!crdgw1!uunet!mcsun!ukc!uos-ee!glasgow!daemon
From: jimc@quintus.com (Jim Crammond)
Newsgroups: mail.uk-sendmail-workers,comp.mail.sendmail
Subject: /etc rather than /usr/lib
Message-ID: <10662.9104291650@brodgar.quintus.com>
Date: 29 Apr 91 16:50:38 GMT
Sender: uk-sendmail-workers-request@cs.hw.ac.uk
Organization: Glasgow University Computing Science Dept.
Lines: 37
Approved: usenet@dcs.glasgow.ac.uk
Phone: (415) 813 3848
Original-Sender: jimc%quintus.com%quintus@sun.com
X-Mailer: mail-news 2.0.5