1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-03 22:23:24 +00:00
freebsd-ports/news/trn4/scripts/preconf
1998-05-01 18:41:28 +00:00

314 lines
6.8 KiB
Bash

#!/bin/sh
#
# pre-configure script for Trn 4.0 port to FreeBSD
# $Id$
PortsDir=$1
CurDir=$2
WrkSrc=$3
echo ""
echo "Trn comes with a nice Configure script to help you get things setup."
echo "Some of the things this script asks you may be a little misleading."
echo "I (the porter) configured Trn to be as generic as possible."
echo "It assumes a few things."
echo "1. You are accessing news via NNTP, and you set the NNTPSERVER"
echo " environment variable to the name of your news server"
echo "2. You have access to the threads databases (either xover or xthread)"
echo "3. You have a inews program, otherwise you cannot post."
echo " The inews program can be obtained from the inn port."
echo ""
echo ""
echo "You now have two possible choices:"
echo ""
echo " 1) use my configuration as default, run Configure on top of it."
echo " 2) run Configure from scratch."
echo ""
echo "Due to a check done iside the Trn Configure script, I cannot run"
echo "it automagically. If you want to pick up the default configura-"
echo "tion, simply press ENTER each time the script asks you anything,"
echo "EXPECT QUESTION ABOUT USING OLD CONFIG.SH"
echo ""
echo "With either choice, you will want to the the organization to match"
echo "your site. Also you will want to set your distribution codes"
echo ""
echo -n "Your choice [1]: "
read foo
if [ ! ${foo} ] ; then
foo=1
fi
if [ ${foo} -eq 1 ] ; then
ConfigArgs='-f config.sh'
#DON'T ALTER INDENTATION
cat > ${WrkSrc}/config.sh << 'EOF'
#
# This file was produced by running the Configure script. It holds all the
# definitions figured out by Configure. Should you modify one of these values,
# do not forget to propagate your changes by running "Configure -der". You may
# instead choose to run each of the .SH files by yourself, or "Configure -S".
#
# Package name : trn
# Source directory : .
# Configuration time: Fri May 1 13:32:29 EDT 1998
# Configured by : mph
# Target system : freebsd mph124.rh.psu.edu 2.2.6-stable freebsd 2.2.6-stable #3: thu apr 9 10:28:54 edt 1998 mph@mph124.rh.psu.edu:usrsrcsyscompilewopr i386
Id=''
Log=''
Mcc='Mcc'
active='remote'
acttimes='remote'
aphostcmd='/bin/hostname'
archobjs=''
awk='/usr/bin/awk'
basename='/usr/bin/basename'
bash=''
bin='/PREFIX/bin'
binexp='/PREFIX/bin'
byacc=''
c=''
cat='/bin/cat'
cc='__CC__'
ccflags='__CFLAGS__ -I/PREFIX/include'
cf_by='mph'
cf_time='Fri May 1 13:32:29 EDT 1998'
citydist='none'
cntrydist='none'
comm='/usr/bin/comm'
contains='grep'
contdist='none'
cp='/bin/cp'
cpp='/usr/bin/cpp'
cppflags='-I/PREFIX/include'
cpplast='-'
cppminus='-'
cpprun='__CC__ -E'
cppstdin='__CC__ -E'
csh='/bin/csh'
d_acttimes='define'
d_attribut='define'
d_berknames='define'
d_bsd='define'
d_dirnamlen=''
d_eunice='undef'
d_ftime='undef'
d_genauth='define'
d_getcwd='undef'
d_getdname='undef'
d_gethname='define'
d_getpwent='define'
d_gettimeod='define'
d_getwd='define'
d_gnulibc='undef'
d_havetlib='undef'
d_ignoreorg='undef'
d_inews='define'
d_internet='define'
d_libndir='undef'
d_local='undef'
d_memcmp='define'
d_memcpy='define'
d_memset='define'
d_mkdir='define'
d_msdos='undef'
d_newsadm='define'
d_nntp='define'
d_nolnbuf='undef'
d_normsig='define'
d_novoid='undef'
d_passnames='define'
d_phostcmd='define'
d_portable='undef'
d_rdchk='undef'
d_rename='define'
d_resinit='define'
d_sigblock='define'
d_sighold='undef'
d_sizet='undef'
d_strccmp='define'
d_strchr='define'
d_strftime='define'
d_strstr='define'
d_uname='undef'
d_usendir='undef'
d_usgnames='undef'
d_uwait3=''
d_uwait='define'
d_vfork='define'
d_voidsig='define'
d_voidtty=''
d_wifstat='define'
d_xenix='undef'
d_xthread='define'
date='/bin/date'
defeditor='/usr/bin/vi'
diff='/usr/bin/diff'
direntrytype='struct dirent'
echo='/bin/echo'
ed='/bin/ed'
egrep='/usr/bin/egrep'
eunicefix=':'
expr='/bin/expr'
extrainews=''
filexp='/PREFIX/lib/trn/filexp'
find=''
firstmakefile=''
gccversion='2.7.2.1'
glibpth='/shlib /usr/shlib /lib/pa1.1 /usr/lib/large /lib /usr/lib /usr/lib/386 /lib/386 /lib/large /usr/lib/small /lib/small /usr/ccs/lib /usr/ucblib /usr/local/lib'
grep='/usr/bin/grep'
groupdesc=''
hint='recommended'
hostbits='2'
i_bsdioctl=''
i_dirent='define'
i_ptem='undef'
i_sgtty='undef'
i_stdlib='define'
i_string='define'
i_sysdir='define'
i_sysfilio='define'
i_sysioctl='define'
i_sysndir='undef'
i_syssockio=''
i_systime='define'
i_syswait='define'
i_termio='undef'
i_termios='define'
i_time='undef'
i_unistd='define'
i_utime='define'
i_vfork='undef'
incpath=''
inews='/PREFIX/inews'
installbin='/PREFIX/bin'
installinews='/PREFIX/bin'
installmansrc='/PREFIX/man/man1'
installprivlib='/PREFIX/lib/trn'
ispell=''
ispell_options=''
ispell_prg=''
jobslib=''
ksh=''
ldflags=''
less=''
libc='/usr/lib/libc.so.3.1'
libndir=''
libpth='/usr/lib /PREFIX/lib'
libs=' '
lint=''
lns='/bin/ln -s'
locdist='none'
locincpth='/usr/local/include /opt/local/include /usr/gnu/include /opt/gnu/include /usr/GNU/include /opt/GNU/include'
loclibpth='/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib'
mail='/usr/bin/mail'
mailer='/usr/sbin/sendmail'
mailfile='/var/mail/%L'
manext='1'
mansrc='/PREFIX/man/man1'
mansrcexp='/PREFIX/man/man1'
mboxchar='F'
mimecap='/PREFIX/etc/mimecap'
mips=''
mips_type=''
mkdir='/bin/mkdir'
more='/usr/bin/more'
multistatedist='none'
mv='/bin/mv'
myactive='.falseactive'
myuname='freebsd mph124.rh.psu.edu 2.2.6-stable freebsd 2.2.6-stable #3: thu apr 9 10:28:54 edt 1998 mph@mph124.rh.psu.edu:usrsrcsyscompilewopr i386 '
n='-n'
nametype='bsd'
ndirc=''
ndiro=''
newsadmin='news'
newslib='/tmp'
newslibexp='/tmp'
newsspool='none'
nm_opt=''
nm_so_opt=''
nroff='/usr/bin/nroff'
optimize='none'
orgdist='none'
orgname='/etc/organization'
osname='freebsd'
osvers='2.2.6-stable'
overviewdir='remote'
overviewfmt='none'
package='trn'
pager='/usr/bin/more'
perl='/usr/bin/perl'
perlpath='/usr/bin/perl'
pg='pg'
pgp=''
phost='.'
phostcmd='hostname'
plibpth=''
prefix='/PREFIX'
prefixexp='/PREFIX'
prefshell='/bin/csh'
privlib='/PREFIX/lib/trn'
privlibexp='/PREFIX/lib/trn'
rm='/bin/rm'
rmail='/bin/rmail'
rootid='0'
runnm='true'
sed='/usr/bin/sed'
sendmail='/usr/sbin/sendmail'
servername='no default'
sharpbang='#!'
shsharp='true'
signal_t='void'
smail='smail'
so='so'
sort='/usr/bin/sort'
spackage='Trn'
spell='spell'
spitshell='cat'
src='.'
startsh='#!/bin/sh'
statedist='none'
strftimec=''
strftimeo=''
strings='/usr/include/string.h'
strn='define'
subscriptions=''
sysman='/usr/share/man/man1'
tail='/usr/bin/tail'
termlib='-ltermlib'
test='/bin/test'
threaddir='remote'
tk='undef'
tkinc=''
tklibs=''
tr='/usr/bin/tr'
trn_init='FALSE'
trn_select='TRUE'
uname='/usr/bin/uname'
uniq='/usr/bin/uniq'
useinews='/PREFIX/bin/inews'
usenm='true'
usevfork='true'
usrinc='/usr/include'
uuname='/usr/bin/uuname'
vi='/usr/bin/vi'
void=''
vspell=''
who='/usr/bin/who'
xlibpth='/usr/lib/386 /lib/386'
PATCHLEVEL="4.0-test64 (30 April 1998)"
CONFIG=true
EOF
fi # choice = 1
cd ${WrkSrc}
sh Configure ${ConfigArgs}
cd ${CurDir}
exit 0
# END