diff options
author | max <max@FreeBSD.org> | 1996-09-29 11:26:48 +0800 |
---|---|---|
committer | max <max@FreeBSD.org> | 1996-09-29 11:26:48 +0800 |
commit | de6ef55292293bedb7837514737f6d2f4735960f (patch) | |
tree | 5a8e930c17c88dcf440663000ae5da9d0b979f54 /mail/mailagent/scripts | |
parent | 8350dacf78d8fc6a965c3c573c2170a91663f716 (diff) | |
download | freebsd-ports-gnome-de6ef55292293bedb7837514737f6d2f4735960f.tar.gz freebsd-ports-gnome-de6ef55292293bedb7837514737f6d2f4735960f.tar.zst freebsd-ports-gnome-de6ef55292293bedb7837514737f6d2f4735960f.zip |
A sophisticated mail processing program.
Diffstat (limited to 'mail/mailagent/scripts')
-rw-r--r-- | mail/mailagent/scripts/pre-configure | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mail/mailagent/scripts/pre-configure b/mail/mailagent/scripts/pre-configure new file mode 100644 index 000000000000..5108d0a87a25 --- /dev/null +++ b/mail/mailagent/scripts/pre-configure @@ -0,0 +1,37 @@ +#!/bin/sh +# Pre-configure script for mailagent. +# This script asks for information specific to the machine and writes +# given values to work/mailagent-3.0/config.sh to set the default +# values for COnfigure script so that Configure doesn't request any +# input. + +while [ X$addr = X ]; do + echo -n "Enter your complete E-mail address> " ; read addr +done + +while [ X$host = X ]; do + echo -n "Enter fully qualified name of this host (`hostname`)>" ; read host + if [ X$host = X ]; then + host=`hostname` + fi +done + +maildomain=`echo $addr | awk -F@ '{printf("%s", $2)}'` +if [ `echo $maildomain | tr A-Z a-z` = `echo $host | tr A-Z a-z` ]; then + d_hidnet=undef + hiddennet='' +else + d_hidnet=define + hiddennet=$maildomain +fi + +echo -n "Enter the name of your organization> "; read orgname + +cat >${WRKSRC}/config.sh <<EOM +#!/bin/sh +cf_email='$addr' +d_flockonly='define' +d_hidnet='$d_hidnet' +hiddennet='$hiddennet' +orgname='$orgname' +EOM |