hylafax-v4.0pl1/VERSION000444 004341 000024 00000000007 06246675460 014466 0ustar00samuser000000 000000 4.0pl1 $Xtp$tp8t @j+ +h. 뀈@+)!p% %4 )!p)!p% t=')!p/@J$/usr/lib/libc.sohylafax-v4.0pl1/README000444 004341 000024 00000031111 06246675460 014276 0ustar00samuser000000 000000 $Id: README,v 1.141 1996/10/31 19:10:46 sam Rel $ HylaFAX, Version 4.0 (release) ------------------------------ Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc. HylaFAX is a trademark of Silicon Graphics Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that (i) the above copyright notices and this permission notice appear in all copies of the software and related documentation, and (ii) the names of Sam Leffler and Silicon Graphics may not be used in any advertising or publicity relating to the software without the specific, prior written permission of Sam Leffler and Silicon Graphics. THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. This note is basically just a placeholder. The real documentation is located online at the HylaFAX home page: http://www.vix.com/hylafax/ The online documentation includes the full contents of the documentation as well as an FAQ, archives of the HylaFAX/flexfax mailing list, and associated modem-related documentation. Preformatted copies of this documentation and the reference manual pages is also available by public FTP at ftp://ftp.sgi.com/sgi/fax/doc. You will find a subset of the online documentation in the html subdirectory. Beware however that timely information is usually more up to date online than in the materials in the html directory. You can view the HTML documentation in place and/or configure it for local installation through the configure script. This note has the following sections: Installation Synopsis Use and Copyright Acknowledgements HylaFAX Mailing List and Other Final Words (where to send bugs) Installation Synopsis --------------------- Follow the directions in the online documentation. The main material on configuring, building, and installing the software is given in: http://www.vix.com/hylafax/building.html Server setup information is found at: http://www.vix.com/hylafax/setup.html The documentation is extensive and designed to be used when installing the software. There is also an FAQ that covers (or should cover) common problems. The basic procedure is: % ./configure % make % su # NB: must be root to setup software # make install # faxsetup If this does not work and the problem is not clear, then you will need to look at the documentation and/or the code. Use and Copyright ----------------- There is documentation! There is GOBS of documentation. The HTML materials present information needed to build+setup the software; the manual pages act as a reference guide. There are manual pages for all the programs and for all the files and directories that you may be curious about. Of course there is also source code for everything, but this should (hopefully) not be needed. A useful introduction to the client applications is given in hylafax(1). If you want to learn how the server and spooling system work, look first at hylafax(4F). Remember however that the manual pages are for reference; the HTML documentation is designed to be more introductory in nature and should usually be consulted first when you're looking for general guidance. Please note that unless you are sending me a bug *fix* to this software sending mail directly to me is a waste of your time. The flexfax mailing list (described below) is the place to send your comments and problems. The -request administrative alias (again, see below) is the place to send administrative requests. I IGNORE ALL DIRECT MAIL REGARDING FAX SOFTWARE, FAX MODEMS, FAX PROTOCOLS, FAX ANYTHING, EXCEPTING MAIL THAT CONTAINS BUG FIXES. Silicon Graphics has seen fit to allow me to give this work away. It is free. There is no support or guarantee of any sort as to its operations, correctness, or whatever. If you do anything useful with all or parts of it you need to honor the copyright notices. I would also be interested in knowing about it and, hopefully, be acknowledged. Finally, note that this software is called ``HylaFAX'', not ``Hylafax'', ``hylafax'', and certainly not ``FlexFAX'' (the old name which someone else has a copyright on). If you want to refer to this software use ``HylaFAX (tm)'' and be sure to honor the Silicon Graphics trademark. Sam Leffler (sam@engr.sgi.com) Acknowledgements ---------------- This software is more than 6 years old and is the product of many folks' work. Robin Schaufler did the original scheme for delayed submission and worked on the client-server protocol. More recently, the following people have helped either by testing or by contributing fixes and/or improvements: Matthias Apitz Chris Beekhuis Peter Bentley Marc Boucher Piete Brooks Bill Campbell Brent Chapman Camden Clarke Tom Corson Alan Crosswell Mark Diekhans Greg Ferguson Steve Fine Andrew Ford Nico Garcia Wolfgang Henke Viet Hoang Bert Hooyman Ken Hornstein Dirk Husemann Brian Katzung Masao Kitano Carsten Koch John T Kohl Scott Kramer Rickard Linck Rick Lyons Tom Lislegaard Rob MacKinnon Kevin McManamon Les Mikesell Bill Morrow Andy Moskoff Chris Munonye Rob Newberry Dag Nygren Jonas Olsson Dave Packer Damon Permezel David Pike Amir Plivatsky Andy Rabagliati Eric Rescorla Matthew Rice Tim Rice Marshall Rose Daniel Rosenblatt Joel Rosi-Schwartz Tim Rylance Joseph E. Sacco Thomas A. Szybist Brent Townshend Peter White Steve Williams Scott Woodard David Vrona Paul Vixie Christian Zahl (and surely others). Also, a special thanks to Ed McCreight for helping me understand the stuff "between the lines" that's necessary to make a working Class 1 driver. The regular expression support is based on Henry Spencer's POSIX 1003.2 compliant regex package that has ``Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved.'' Consult regex/COPYRIGHT for the full copyright notice associated with this software. The zlib package used in the client-server protocol is copyright 1995-1996 Jean-loup Gailly and Mark Adler. Consult the file zlib/README for more information on the package. The code to read PCF fonts is distantly related to the X11R5 code that is ``Copyright 1990 Massachusetts Institute of Technology''; consult faxd/PCFFont.c++ for the full copyright notice. The textfmt program is distantly related to the lptops program written by Nelson Beebe; there was no copyright notice on the version of the code that textfmt grew out of. The config.guess and config.sub scripts are part of the GNU autoconf package and covered by the GNU Public License (GPL). Several ideas in the configure script are directly "borrowed" from autoconf (and I have tried to maintain as much compatibility as possible). The PCF font etc/lutRS18.pcf included for use with tag lines is a compiled version of a LucidaTypewriter font that was contributed to X11 by Bigelow & Holmes. Redistribution of this font requires inclusion of this copyright notice: NOTICE TO USER: The source code, including the glyphs or icons forming a par of the OPEN LOOK TM Graphic User Interface, on this tape and in these files is copyrighted under U.S. and international laws. Sun Microsystems, Inc. of Mountain View, California owns the copyright and has design patents pending on many of the icons. AT&T is the owner of the OPEN LOOK trademark associated with the materials on this tape. Users and possessors of this source code are hereby granted a nonexclusive, royalty-free copyright and design patent license to use this code in individual and commercial software. A royalty-free, nonexclusive trademark license to refer to the code and output as "OPEN LOOK" compatible is available from AT&T if, and only if, the appearance of the icons or glyphs is not changed in any manner except as absolutely necessary to accommodate the standard resolution of the screen or other output device, the code and output is not changed except as authorized herein, and the code and output is validated by AT&T. Bigelow & Holmes is the owner of the Lucida (R) trademark for the fonts and bit-mapped images associated with the materials on this tape. Users are granted a royalty-free, nonexclusive license to use the trademark only to identify the fonts and bit-mapped images if, and only if, the fonts and bit-mapped images are not modified in any way by the user. Any use of this source code must include, in the user documentation and internal comments to the code, notices to the end user as follows: (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents pending in the U.S. and foreign countries. OPEN LOOK is a trademark of AT&T. Used by written permission of the owners. (c) Copyright Bigelow & Holmes 1986, 1985. Lucida is a registered trademark of Bigelow & Holmes. Permission to use the Lucida trademark is hereby granted only in association with the images and fonts described in this file. SUN MICROSYSTEMS, INC., AT&T, AND BIGELOW & HOLMES MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOURCE CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. SUN MICROSYSTEMS, INC., AT&T AND BIGELOW & HOLMES, SEVERALLY AND INDIVIDUALLY, DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN MICROSYSTEMS, INC., AT&T OR BIGELOW & HOLMES BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. HylaFAX Mailing List and Other Final Words (where to send bugs) --------------------------------------------------------------- A mailing list for users of this software is accessible through sgi.com. If you want to join this mailing list or have a list-related request such as getting your name removed from it, send your request to flexfax-request@sgi.com (FYI, "flexfax" is the old name for this software). For example, to subscribe, send the line "subscribe" in the body of your message. The line "help" will return a list of the commands understood by the mailing list management software. You can also find information on subscribing to the mailing list at: http://www.vix.com/hylafax/mailing-lists.html Submissions to the mailing list (including bug reports) should be directed to: flexfax@sgi.com Note that the mailing list has many people on it. Please take this into consideration when posting notes to it; i.e. avoid posting large trace logs and the such. Also, when corresponding about this software please always specify: - what version you have (see "How to tell which version you have" above), - what system you're running on, and, - if the problem is modem-related, identify it and the firmware rev For example: "HylaFAX v3.0beta99 under Solaris 2.3 with gcc 2.6.3; ZyXEL 1496E with 6.11a firmware." If you find the flexfax mailing list to have too much traffic for you, there is also an announcements-only mailing list called flexfax-announce. This can be subscribed to by sending mail flexfax-announce-request@sgi.com; include the single line "subscribe" in the body of the message. Note that there is no need to subscribe to both mailing lists; postings to the announcement list are automatically fed to the normal flexfax list. If you have not previously done so, please submit the survey form at http://www.vix.com/hylafax/survey.html This form provides me with information on the modems and systems that HylaFAX is being used with. The information is just to help me diagnose problems; all information is kept strictly private. e single line "subscribe" in the body of the message. Note that there is no need to subscribe to both mailing lists; postings to the announcement list are automatically fed to the normal flexfax list. If you have not previously done so, please submit the survey form at http://www.vix.com/hylafax/survey.html This form provides me with information on the modems and systems that HylaFAX is being used with. The information is justhylafax-v4.0pl1/TODO000444 004341 000024 00000007202 06246675460 014112 0ustar00samuser000000 000000 # $Id: TODO,v 1.159 1996/08/01 03:31:51 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # BH job group support is broken B file write errors during receive are not processed correctly B polling bug in Class 1 driver (reset FCF sndr/rcvr bit at start of Phase B) B no timeout in Class 1 receive if data is received when waiting for OK after transmit of TSI (happens easily if wrong receive baud rate setup) B sloppy processing of +FHNG: response to AT+FDT (extra read+timeout) H faxadduser program equivalent of SITE ADDUSER command H job archival support in faxqclean H revamp modem status to have a fixed format and include useful info like type, manufacturer, etc. H fill-in VRFY op to support least-cost routing over a WAN H use T.30 subaddress routing for received facsimile (needs database) H polled transmission of documents (use SEP and PWD; add registration tools and query status support) H use PWD in TSI qualification H select modems based on criteria such as destination phone number (for locations where some lines are capable of long distance calls while others are not) H voice support integration H VOICE/ANSWER button support for ZyXEL H silent answer support? M optionally replace info directory with a hashed database file to reduce overhead on busy systems M batch multiple jobs to the same destination (important for pages) M bound transmit page count on a per-user basis M add type of call control for CID access control list? M restructure modem classes to support multi-class modems (e.g. class 1+2) M add faxq lock to avoid naive users starting multiple queuers BL race in queuer/Dispatcher collecting child process status (hack sleep in child to give parent time to install SIGCLD handler for now) BL aborted receives get an extra page written (use TIFFUnlinkDirectory) L change receive timeout to be based on seeing EOL code L faxmove program, analogous to lpmove L permit call type deduction logic used when answering an inbound call to be user-configurable (useful for distinctive ring)--not so important now with configurable distinctive ring support builtin O DataPort<->MicroPorte wedges when retraining after EOM X add TOD control to TSI+CID access control lists? (no, can do this with cron job that sends FIFO messages to change control list files) B = outright bug O = observe (seen at least once but cannot reproduce) H = high priority M = medium priority L = low priority X = resolved gic used when answering an inbound call to be user-configurable (useful for distinctive ring)--not so important now with configurable distinctive ring support builtin O DataPort<->MicroPorte wedges when retraining after EOM X add TOD control to TSI+CID access control lists? (no, can do this with cron job that sends FIFO messages to change control list files) B = outrihylafax-v4.0pl1/COPYRIGHT000444 004341 000024 00000002321 06246675461 014713 0ustar00samuser000000 000000 HylaFAX Facsimile Software Copyright (c) 1990-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc. HylaFAX is a trademark of Silicon Graphics, Inc. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that (i) the above copyright notices and this permission notice appear in all copies of the software and related documentation, and (ii) the names of Sam Leffler and Silicon Graphics may not be used in any advertising or publicity relating to the software without the specific, prior written permission of Sam Leffler and Silicon Graphics. THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER REhylafax-v4.0pl1/configure000555 004341 000024 00000341052 06246675461 015336 0ustar00samuser000000 000000 #!/bin/sh # $Id: configure,v 1.401 1996/11/23 17:28:45 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1988-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # Configuration script for HylaFAX (tm) (aka FlexFAX) # # Shell script to setup machine-dependent files in # preparation for building HylaFax source. # # # Setup general configuration parameters. # DIR_BIN=/usr/local/bin DIR_SBIN=/usr/local/sbin DIR_LIBDATA=/usr/local/lib/fax DIR_LIBEXEC=$DIR_SBIN DIR_SPOOL=/var/spool/fax DIR_HTML=/var/httpd/htdocs/hylafax DIR_CGI=/var/httpd/cgi-bin PATH_DPSRIP=$DIR_LIBEXEC/ps2fax.exe PATH_IMPRIP=/usr/lib/print/psrip HTMLPATH=/hylafax CGIPATH=/cgi-bin DEFVRES=98 PAGESIZE="North American Letter" FAXUID=uucp FAXGID= SYSUID=bin SYSGID= DSO=auto AFM=auto GETTY=auto HTML=no PS=auto SYSVINIT=auto SGI2FAX=auto PORT=auto LIBMALLOC=auto LOCKS=auto DPS=no GS=no IMP=no UTMP=auto LIBTIFF="-L/usr/local/lib -ltiff" TIFFINC=/usr/local/include TIFFBIN=/usr/local/bin ZLIB=yes LIBZ='-L${DEPTH}/zlib -lz' ZLIBINC='${DEPTH}/${TOPSRCDIR}/zlib' REGEX=yes LIBREGEX='-L${DEPTH}/regex -lregex' REGEXINC='${DEPTH}/${TOPSRCDIR}/regex' DBLIB=no LIBDB="-L/usr/local/lib -ldb" DBLIBINC=/usr/local/include : ${MAKE=make} # make to use # screws up the test of `-f -' unset MAKEFLAGS RM="rm -f" VAR1="ANSICPP ANSICXXPP AR AROPTS CC CXX CXXFILE DATE DBLIBINC ENVOPTS GCOPTS GCXXOPTS MAKECXXOVERRIDE MAKEDEPINCLUDE MAKEINCLUDE MAKELQUOTE MAKERQUOTE MKDEPCOPTS MKDEPCXXOPTS PROTOTYPES RANLIB REGEXINC SCRIPT_SH SETMAKE SRCDIR TARGET TIFFINC VERSION WARNING ZLIBINC" VAR2="AFM AFMDIR DIR_AFM AWK BIN DIR_BIN CAT CGIDIR DIR_CGI CGIPATH CHGRP CHMOD CHOWN CP CMP COL DBLIB DEFVRES DPSRIP PATH_DPSRIP DSO DSOSUF DSODELAY DSOOPTS DIST_MAJOR DIST_MINOR DIST_ALPHA DIST_TYPE ECHO FAXGID FAXUID FILLORDER GETTY GREP GSRIP PATH_GSRIP HTML HTMLDIR DIR_HTML HTMLPATH IMPRIP PATH_IMPRIP INSTALL LIBDATA DIR_LIBDATA LIBEXEC DIR_LIBEXEC LIBPORT LIBREGEX LIBTIFF LIBZ LIBDB LLDOPTS LN LN_S MACHDEPLIBS MAKEDSOINCLUDE MAN MANDIR DIR_MAN MANAPPS MANCAPPNAME MANCFILENAME MANCVT MANFILES MANSAPPNAME MANSEDLOCAL MANSFILENAME MANSYS MKDEPEND MKDIR MKFIFO MV MV_F PAGESIZE PATHGETTY PATH_GETTY PATHVGETTY PATH_VGETTY PATHEGETTY PATH_EGETTY PORT PORTFUNCS PSPACKAGE PS REGEX RM RMCMD SBIN DIR_SBIN SED SENDMAIL PATH_SENDMAIL SGI2FAX SHDLIBC SPOOL DIR_SPOOL STRIP SYSGID SYSUID SYSVINIT TIFFBIN UTMP UUCP_LOCKDIR DIR_LOCKS UUCP_LOCKTYPE LOCKS ZLIB DPS GENDIST GS IMP PWD SORT" dumpvars() { (for i do echo "$i"; done) | while read a b; do eval c=\$${b:-$a}; echo "/@$a@/s;;$c;g"; done } dumpvals() { (echo "$VAR1"; echo "$VAR2") | while read a b; do eval c=\$${b:-$a}; echo "${b:-$a}='$c'"; done } # # We do this little dance with the search path to insure # that programs that we select for use by installed programs # (which may be run by the super-user) come from trusted # locations before they come from the user's private area. # This should help avoid accidentally configuring some # random version of a program in someone's personal bin. # OPATH=$PATH PATH=/bin:/usr/bin:/etc test -d /usr/ccs/bin && PATH=$PATH:/usr/ccs/bin # SVR4/Solaris2 test -d /usr/sbin && PATH=$PATH:/usr/sbin # SGI and others test -d /usr/bsd && PATH=$PATH:/usr/bsd # SGI test -d /usr/ucb && PATH=$PATH:/usr/ucb # Sun and others test -d /usr/contrib/bin && PATH=$PATH:/usr/contrib/bin # BSDi test -d /usr/5bin && PATH=/usr/5bin:$PATH:/usr/etc # Sun and others test -d /usr/local/bin && PATH=/usr/local/bin:$PATH # for GNU stuff PATH=$PATH:$OPATH POSIXLY_CORRECT=1; export POSIXLY_CORRECT # disable GNU extensions # # Error diagnostics that should go to the terminal are # done with this interface (or cat). # bitch() { echo "$@" 1>&2 } die() { kill -1 $$ # use kill so trap handler is called } # # This is the preferred interface for # configure to terminate abnormally. # boom() { bitch "" bitch "Unrecoverable error! Once you've corrected the problem rerun this script." die } usage() { cat<<'EOF' Usage: configure [options] [host] Options: [defaults in brackets after descriptions] --help print this message --quiet do not print `Using ...' messages --verbose opposite of --quiet --version print the version of autoconf that created configure --target=TARGET configure for TARGET [TARGET=HOST] --srcdir=DIR find the sources in DIR [configure dir or ..] --with-PARAM[=ARG] set configuration PARAM [ARG=yes] EOF } QUIET=no SITE= TARGET= RELEASE= SRCDIR= WITHARGS=no # # Crack command line arguments. We purposely # use syntax and options that are compatible # with GNU autoconf. # ac_prev= for ac_option do if [ -n "$ac_prev" ]; then # assign the argument to previous option eval "$ac_prev=\$ac_option" ac_prev= continue fi case "$ac_option" in # collect optional argument -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'`;; *) ac_optarg=;; esac case "$ac_option" in -with-*|--with-*) ac_with=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if [ -n "`echo $ac_with| sed 's/[-_a-zA-Z0-9]//g'`" ]; then bitch "configure: $ac_with: invalid parameter name." die fi ac_with=`echo $ac_with| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes;; esac eval "${ac_with}='$ac_optarg'" WITHARGS=yes ;; -quiet|--quiet) QUIET=yes;; -verbose|--verbose) QUIET=no;; -site|--site) ac_prev=SITE;; -site=*|--site=*) SITE="$ac_optarg";; -srcdir|--srcdir) ac_prev=SRCDIR;; -srcdir=*|--srcdir=*) SRCDIR="$ac_optarg";; -target|--target) ac_prev=TARGET;; -target=*|--target=*) TARGET="$ac_optarg" ;; -version|--version) echo "This is HylaFAX configure $Revision: 1.401 $" exit 0 ;; -help|--help) usage; exit 0;; -*) bitch "configure: $ac_option: invalid option; use -help for usage." die ;; *) if [ x"$TARGET" != x ]; then bitch "configure: Can only configure for one target at a time." kill -1 $$ fi TARGET="$ac_option" ;; esac done if [ -n "$ac_prev" ]; then bitch "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" die fi # # Locate source directory by looking for the VERSION file. # The directory must either be specified through the # environment or be located in the current directory or a # parent of the current directory. # test "$SRCDIR" || { configure=$0 # NB: don't use dirname since it may not exist SRCDIR=`echo $configure | sed 's;/[^/][^/]*$;;'` if [ @"$SRCDIR" = @"$configure" ]; then SRCDIR=. fi while [ ! -r $SRCDIR/VERSION ]; do # strip last directory from pathname newdir=`echo $SRCDIR | sed 's;/[^/]*$;;'` if [ -z "$newdir" ] || [ "$newdir" = $SRCDIR ]; then break; fi SRCDIR=$newdir done } if [ ! -r $SRCDIR/VERSION ]; then bitch "Can not locate sources in $SRCDIR; the file $SRCDIR/VERSION" bitch "does not exist or is unreadable." boom fi SRCDIR=`echo "$SRCDIR" | sed 's;\([^/]\)/*$;\1;'` # # Descriptor usage: # 1: ??? # 2: messages that should be seen even if we're in the background. # 3: [stdout from test runs] # 4: verbose-style messages (Using ...) # 5: compiler stderr when running tests # if [ $QUIET = yes ]; then exec 4>/dev/null # chuck messages else exec 4>&1 # messages go to stdout fi $RM ./config.log exec 5>./config.log # compiler messages and the like DATE=`date` eval `cat $SRCDIR/VERSION | sed 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\(.*\)/DIST_MAJOR=\1; DIST_MINOR=\2; DIST_TYPE=\3/'` DIST_ALPHA=`awk '{print $3}' $SRCDIR/dist/hylafax.alpha` VERSION="v${DIST_MAJOR}.${DIST_MINOR}${DIST_TYPE}" if [ $DIST_TYPE = beta ]; then VERSION="${VERSION}${DIST_ALPHA}" fi Note() { echo "$@" 1>&4 } capture() { (eval "set -x; $*") >&5 2>&1 return } captureX() { (eval "set -x; $*") 2>&5 return } date >&5 cat 1>&5 <<'EOF' This file contains information that was captured from running the configure script. Lines that begin with a "+" are command lines echoed by the shell. Other lines are the output of commands; usually the contents of test case files or the output from compilers. If configure does the wrong thing, use the information captured here to aid in debugging. EOF Note "" Note "Configuring HylaFAX (tm) (aka FlexFAX) $VERSION." Note "" Note "If configure does the wrong thing, check the file config.log for" Note "information that may help you understand what went wrong." Note "" # # Read site and local configuration parameters. # CONFIG_FILES= if [ -f $SITE/config.site ]; then Note "Reading site-wide parameters from $SITE/config.site." . $SITE/config.site capture . $SITE/config.site CONFIG_FILES=$SITE/config.site elif [ -f $SRCDIR/config.site ]; then Note "Reading site-wide parameters from $SRCDIR/config.site." . $SRCDIR/config.site capture . $SRCDIR/config.site CONFIG_FILES=$SRCDIR/config.site fi if [ -f config.local ]; then Note "Reading local parameters from config.local." . ./config.local capture . ./config.local CONFIG_FILES="$CONFIG_FILES config.local" elif [ -f $SRCDIR/config.local ]; then Note "Reading local parameters from $SRCDIR/config.local." . $SRCDIR/config.local capture . $SRCDIR/config.local CONFIG_FILES="$CONFIG_FILES $SRCDIR/config.local" fi # # Flush cached values if something was specified on the # command line or if the contents of a config parameter # file was changed more recently. # REASON= if [ $WITHARGS = yes ]; then REASON="of command line parameters" elif [ "$CONFIG_FILES" ]; then REASON=`find $CONFIG_FILES -newer config.cache -print 2>/dev/null` test "$REASON" && REASON="$REASON has been updated" fi if [ "$REASON" -a -f config.cache ]; then Note "Flushing cached parameters because $REASON." Note "" rm -f config.cache fi if [ -f config.cache ]; then Note "Reading cached parameters from config.cache." Note "" OPORTFUNCS="$PORTFUNCS"; OMACHDEPLIBS="$MACHDEPLIBS" OTIFFINC="$TIFFINC"; OLIBTIFF="$LIBTIFF" OZLIBINC="$ZLIBINC"; OLIBZ="$LIBZ" OREGEXINC="$REGEXINC"; OLIBREGEX="$LIBREGEX" ODBLIBINC="$DBLIBINC"; OLIBDB="$LIBDB" . ./config.cache capture . ./config.cache # NB: these are calculated each time from scratch MACHDEPLIBS="$OMACHDEPLIBS"; PORTFUNCS="$OPORTFUNCS" # NB: these are relativized each time so beware of cached value TIFFINC="$OTIFFINC"; LIBTIFF="$OLIBTIFF" ZLIBINC="$OZLIBINC"; LIBZ="$OLIBZ" REGEXINC="$OREGEXINC"; LIBREGEX="$OLIBREGEX" DBLIBINC="$ODBLIBINC"; LIBDB="$OLIBDB" fi identifyTarget() { random=`date | awk '{print $4}' | sed -e 's/.*://'` 2>/dev/null case "$random" in *0) Note "Wow, you've got a $1 system!";; *1) Note "Hmm, looks like a $1 system.";; *2) Note "Oh no, not another $1 system...";; *3) Note "Well I'll be, a $1 system.";; *4) Note "Fee, fie, foe, this smells like a $1 system.";; *5) Note "Gosh, aren't you lucky to have a $1 system!";; *6) Note "YOW!! Did something bad happen or am I on a $1 system?";; *7) Note "Do they really still make $1 systems?!";; *8) Note "I'm always happy to encounter another $1 system.";; *9) Note "Here we are again, this time on a $1 system.";; esac } # # If no target is specified, try to deduce the system. # We use the GNU scripts for guessing and canonicalizing # the system identification, if available. # if [ -z "$TARGET" ]; then test -f $SRCDIR/config.guess && TARGET=`sh $SRCDIR/config.guess` 2>/dev/null if [ -z "$TARGET" ]; then bitch "Sorry, no target was specified on the command line and I don't seem to" bitch "have the GNU config.guess script that is used to deduce your system type." boom fi identifyTarget $TARGET elif [ -f $SRCDIR/config.sub ]; then TARGET=`sh $SRCDIR/config.sub "$TARGET"` else Note "WARNING, the GNU config.sub script does not seem to be present. This" Note " script is used to canonicalize your target specification; not" Note " having it may cause problems later on..." fi echo "TARGET: $TARGET" >&5 RELEASE=`(uname -r) 2>/dev/null` || RELEASE=unknown echo "RELEASE: $RELEASE" >&5 # # Find the full pathname of a file # using the specified test operation. # findThing() { t="$1"; app=$2; path=$3; case $app in /*) eval $t $app && { echo $app; return; };; esac IFS=: for i in $path; do eval $t $i/$app && { echo $i/$app; return 0; } done return 1 } # # Find the full pathname of a plain file. # findFile() { findThing "test -f" $1 $2 } # # Find the full pathname of an executable. # findApp() { findThing "test -x" $1 $2 } # # Find the full pathname of an executable; # supply a default if nothing is found. # findAppDef() { app=$1; path=$2; def=$3 case $app in /*) test -x $app && { echo $app; return; };; esac IFS=: for i in $path; do test -x $i/$app && { echo $i/$app; return; } done echo $def } # # Fixup a list of potentially relative pathnames so # that they work when used in a subdirectory. The # string sent to stdout has no extraneous spaces so # it can be used, for example, in building pathnames. # # NB: There's an extra echo done here so we get a # \n-terminated string passed to sed. # relativize() { echo `(for i do case "$i" in /*|-l*|-l[$]{DEPTH}/*) echo "$i" ;; -L|-L/*|-L[$]{DEPTH}/*) echo "$i" ;; -I|-I/*|-I[$]{DEPTH}/*) echo "$i" ;; -R|-R/*|-R[$]{DEPTH}/*) echo "$i" ;; [$][{]DEPTH[}]/*) echo "$i" ;; -L*) echo "$i" | sed 's;^-L;-L../;' ;; -R*) echo "$i" | sed 's;^-R;-R../;' ;; -I*) echo "$i" | sed 's;^-I;-I../;' ;; *) echo "../$i" ;; esac done) | tr '\012' ' '` | \ sed -e 's;/[.]/;/;g' -e 's;[ ][ ]*$;;' -e 's;/[.]$;;' } # # Locate a C and C++ compiler and verify they work and # satisfy our needs (using assorted heuristics). # JUNK=" a.out conffifo confsed1 confsed2 conftestmmap confx confy confMakefile conf.db core dummy dummy.C dummy.a dummy.c dummy.o foo m.c so_locations t.c t.c++ t.o t xMakedepend xdefs xgnu.c xmakeinc xport.h xtermios.h " trap "$RM \$JUNK; exit 1" 1 2 15 $RM $JUNK # # Before we go too far, check some features required by the software # if [ -z "$MKFIFO" ]; then MKFIFO=`findApp mkfifo $PATH` if [ "$MKFIFO" ]; then mkfifo() { $MKFIFO $1 } else MKFIFO=`findApp mknod /sbin:$PATH` if [ -z "$MKFIFO" ]; then cat <xgnu.c<&5 | egrep yes)" } checkGCCVersion() { app=$1; shift eval `$app -v 2>&1 | \ sed -n -e '/version/s/.* [a-z\-]*\([0-9]*\)\.\([0-9]*\).\([0-9]*\).*/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'` GCCversion="${GCCdist}.${GCCmajor}.${GCCminor}"; export GCCversion required="$1$2$3" actual="${GCCdist}${GCCmajor}${GCCminor}" capture test "$actual" -ge "$required" } # # NB: use ANSI C prototype to weed out non-ANSI compilers. # cat>dummy.c< If command line options are required for ANSI C compilation, set the ENVOPTS parameter to these options in a similar way (either through an environment variable or config.local/config.site) and then rerun this script. EOF boom fi Note "Using $CCOMPILER for a C compiler (set CC to override)." test "$ENVOPTS" && { Note "Using $ENVOPTS to get the appropriate compilation environment." } CheckForGandO() { f=$1 if test -s $f; then capture grep -i \(error\|warning\) $f || return 1 fi return 0 } if [ -z "$GCOPTS" ]; then capture $CCOMPILER $ENVOPTS -g -c dummy.c && { Note "Looks like $CCOMPILER supports the -g option." # NB: cannot use captureX here 'cuz we lose stderr if $CCOMPILER $ENVOPTS $GCOPTS -c -g -O dummy.c >t 2>&1 && CheckForGandO t; then GCOPTS="$GCOPTS -g" else Note "... but not together with the -O option, not using it." fi } fi if [ "$GCOPTS" ]; then Note "Using \"$GCOPTS\" for C compiler options." fi # # Figure out if there is an ANSI C-preprocessor and, # if __ANSI_CPP__ is not automatically set, configure # it to be set. # cat>dummy.c<dummy.c<dummy.c<dummy.C< If you are trying to use GNU gcc, but you do not have version 2.6.1 or newer, then you must update your compiler (and probably libg++ as well) before you can compile this software. Consult the documentation for information about obtaining an up-to-date version of gcc. EOF boom fi Note "Using $CXXCOMPILER for a C++ compiler (set CXX to override)." if [ -z "$GCXXOPTS" ]; then case $CXX-$TARGET in *CC-*-irix*) # cfront-based or cfront-compatible GCXXOPTS='+a1 +w +p' ;; xlC-*-aix*) GCXXOPTS='-qlanglvl=compat -I/usr/lpp/xlC/include -I/usr/include' ;; *) GCXXOPTS= ;; esac capture $CXXCOMPILER $ENVOPTS -c -g dummy.C && { Note "Looks like $CXXCOMPILER supports the -g option." # NB: cannot use captureX here 'cuz we lose stderr if $CXXCOMPILER $ENVOPTS -c -g -O dummy.C >t 2>&1 && CheckForGandO t; then GCXXOPTS="$GCXXOPTS -g" else Note "... but not together with the -O option, not using it." fi } fi if [ "$GCXXOPTS" ]; then Note "Using \"$GCXXOPTS\" for C++ compiler options." fi # # Figure out if there is an ANSI preprocessor for the C++ # compiler and, if __ANSI_CPP__ is not automatically set, # configure it to be set. # cat>dummy.C<dummy.C<dummy.C<confMakefile<$INC if CheckForMakeIncludeSyntax "include $INC"; then MAKEINCLUDE="include" MAKELQUOTE= MAKERQUOTE= elif CheckForMakeIncludeSyntax ".include <$INC>"; then MAKEINCLUDE=".include" MAKELQUOTE="<" MAKERQUOTE=">" elif CheckForMakeIncludeSyntax "#include \"$INC\""; then MAKEINCLUDE="#include" MAKELQUOTE='"' MAKERQUOTE='"' else cat 1>&2 < #include "file" If $MAKE does support including files then you should use a different program to build this software; consult the documentation for help in locating a suitable make program. Otherwise if $MAKE supports include files, but using a different syntax, then you can setup the MAKEINCLUDE, MAKELQUOTE, and MAKERQUOTE configuration parameters to define the appropriate syntax. EOF boom fi fi Note "Using \"${MAKEINCLUDE} ${MAKELQUOTE}file${MAKERQUOTE}\" syntax for Makefiles." if [ -z "$MAKEDEPINCLUDE" ]; then if [ "$MKDEPEND" != ":" ]; then $RM xMakedepend if CheckForMakeIncludeSyntax "sinclude xMakedepend"; then Note "Looks like $MAKE supports \"sinclude\" for conditional includes." MAKEDEPINCLUDE="sinclude" else MAKEDEPINCLUDE="$MAKEINCLUDE" fi else MAKEDEPINCLUDE='#' fi fi # # Check whether or not $MAKE automatically sets MAKE # in the Makefiles. If not, we add an explicit define # for places where recursive calls are made. # if [ -z "$SETMAKE" ]; then cat>confMakefile<&5 2>&1 if [ "$M" ]; then SETMAKE= else Note "Looks like $MAKE does not setup MAKE in Makefiles, will compensate." SETMAKE="MAKE = ${MAKE}" fi fi if [ -z "$MAKECXXOVERRIDE" ]; then case $ISGXX-$TARGET in no-*-solaris*|no-*-sunos*) # SunPRO C++ compiler # # Yech, the SunPro C++ compiler has no option to force a source # file w/ a .c++ suffix to be treated as C++ source code; instead one # must specify file.c++=.C. We patch the Makefiles with explicit # construction rules to do this... # MAKECXXOVERRIDE="=.C" ;; esac fi if [ -z "$CXXFILE" ]; then case $CXX-$TARGET in xlC-*-aix*) CXXFILE="-+";; gcc-*) CXXFILE="-x c++";; esac fi test "$AR" || AR=`findApp ar $PATH` if [ -z "$AR" ]; then Note "WARNING, could not locate a suitable ar command; using a default." AR=ar fi test "$AROPTS" || AROPTS=rc test "$RANLIB" || RANLIB=`findApp ranlib $PATH` if [ -z "$RANLIB" ]; then Note "WARNING, no ranlib, assuming it's not needed." RANLIB=":" $RM dummy.a if capture $AR rcs dummy.a; then AROPTS=crs Note "Looks like ar has an s option to build symbol tables." fi fi cat>dummy.C<x = 0; delete a; return 0; } EOF # # Look for appropriate C++ runtime support library. # CXXRUNTIME= capture cat dummy.C capture $CXXCOMPILER $ENVOPTS -o dummy dummy.C || { # # Compiler does not provide it automatically, check known libraries. # if [ "$ISGXX" = yes ]; then capture $CXXCOMPILER $ENVOPTS -o dummy dummy.C -lg++ && \ { CXXRUNTIME="-lg++"; } else capture $CXXCOMPILER $ENVOPTS -o dummy dummy.C -lC && \ { CXXRUNTIME="-lC"; } fi } test "$CXXRUNTIME" && { Note "Using explicit $CXXRUNTIME reference for C++ runtime support." } # # XXX we should deduce the shell bugs that require us to use # bash and ksh instead of sh on certain platforms (notably the # BSD-crowd: Linux, BSDI, FreeBSD, NetBSD) but they are very # hard to isolate. We choose bash over ksh over sh; though # this may be iffy (ksh appears to be just as busted some places). # test "$SCRIPT_SH" || SCRIPT_SH=`findApp bash $PATH` test "$SCRIPT_SH" || SCRIPT_SH=`findApp ksh $PATH` test "$SCRIPT_SH" || SCRIPT_SH=`findApp sh $PATH` if [ -z "$SCRIPT_SH" ]; then Note "" Note "WARNING, could not locate a suitable shell for processing the command" Note " scripts included in this distribution; using a default value" Note " /bin/sh." Note "" SCRIPT_SH=/bin/sh else Note "Using $SCRIPT_SH to process command scripts." fi makeDefs() { $RM confsed1 WARNING="Warning, this file was automatically created by the HylaFAX configure script" dumpvars "$VAR1" CCOMPILER CXXCOMPILER | sort>confsed1 $RM xdefs; sed -f confsed1 $SRCDIR/defs.in>$1 } # NB: save original values for use in checks below OTIFFINC="${TIFFINC}"; x="`relativize ${TIFFINC}`"; TIFFINC="$x" OZLIBINC="${ZLIBINC}"; x="`relativize ${ZLIBINC}`"; ZLIBINC="$x" OREGEXINC="${REGEXINC}"; x="`relativize ${REGEXINC}`"; REGEXINC="$x" ODBLIBINC="${DBLIBINC}"; x="`relativize ${DBLIBINC}`"; DBLIBINC="$x" makeDefs xdefs # # runMake target rules ... # runMakeX() { target="$1"; shift $RM $target (echo DEPTH=.; echo SRCDIR=.; cat xdefs; for i in "$@"; do echo "$i"; done )>confMakefile captureX ${MAKE} -f confMakefile $target return } runMake() { runMakeX "$@" >&5 return } # # Verify everything is setup for the C++ runtime environment. # CheckForCXXRuntime() { cat>t.c++<&2 <&2 if [ $ISGXX = yes ]; then cat 1>&2 <&2 <t.c++<&2 <&2 cat 1>&2 </dev/null 2>&1; then cat 1>&2 <&2 <t.c<t.c++ capture cat t.c++ runMake t "t:; \${C++F} \${C++FILE} -E t.c++${MAKECXXOVERRIDE}" } if [ "$SGI2FAX" = auto ]; then if CheckForLibrary iopen -limage && CheckForIncludeFile gl/image.h; then Note "Looks like there is support for SGI RGB images, configuring sgi2fax." SGI2FAX=yes else SGI2FAX=no fi fi if [ "$LIBMALLOC" = auto ]; then if CheckForLibrary mallopt -lmalloc; then Note "Looks like -lmalloc is here, using it for memory allocation." LIBMALLOC=yes else LIBMALLOC=no fi fi if [ "$LIBSUN" = auto ]; then if CheckForLibrary getpwnam -lsun; then Note "Looks like -lsun is here, using it for NIS passwd & group stuff." LIBSUN=yes else LIBSUN=no fi fi CheckForLibrary crypt -lc || { # # FreeBSD-2.1 in particular needs -lcrypt. # SCO sometime has -lcrypt_d (domestic) and # sometimes -lcrypt_i (import?) # for i in -lcrypt -lcrypt_d -lcrypt_i; do if CheckForLibrary crypt $i; then Note "Looks like $i is needed for crypt." MACHDEPLIBS="$MACHDEPLIBS $i" break; fi done } CheckForLibrary strftime -lc || { # # SCO has strftime in -lintl. # if CheckForLibrary strftime -lintl; then Note "Looks like -lintl is needed for strftime." MACHDEPLIBS="$MACHDEPLIBS -lintl" else cat 1>&2 <&2 <= $1 >/dev/null 2>&1 } # # Emit the port.h definitions that reflect # the system configuration. # EmitConfigurationDefinitions() { # # Select the mode to use when opening FIFO files # in a server process. One should be able to open # them read-only, but on some systems, select will # go into a loop when a client does a close. This # problem can sometimes be avoided by opening the FIFO # read+write on the server side. Otherwise, the # FIFO must be closed after each incoming message # which can lead to delays and/or lost messages # (though we try to compensate by doing some sleeps). # test "$CONFIG_OPENFIFO" || { case $TARGET in *-irix*) if releaseAtLeast 5.2; then CONFIG_OPENFIFO=O_RDWR; else CONFIG_OPENFIFO=O_RDONLY; fi ;; *-ultrix*) CONFIG_OPENFIFO=O_RDWR;; *-solaris*) CONFIG_OPENFIFO=O_RDWR;; *-sco*|*-isc*) CONFIG_OPENFIFO=O_RDWR;; *-aix*|*-hpux*) CONFIG_OPENFIFO=O_RDWR;; alpha-dec*) CONFIG_OPENFIFO=O_RDWR;; *-linux*) if releaseAtLeast 1.3.80; then CONFIG_OPENFIFO=O_RDWR; else CONFIG_OPENFIFO=O_RDONLY; fi ;; *) CONFIG_OPENFIFO=O_RDONLY;; esac } if [ "$CONFIG_OPENFIFO" = "O_RDWR" ]; then Note "... open FIFO files read+write to avoid select bug" else Note "... open FIFO files read-only" fi echo "#define CONFIG_OPENFIFO $CONFIG_OPENFIFO" test "$CONFIG_FIFOBUG" || { case $TARGET in *-solaris*) CONFIG_FIFOBUG=yes;; *-irix5.[01]*) CONFIG_FIFOBUG=yes;; *) CONFIG_FIFOBUG=no;; esac } if [ "$CONFIG_FIFOBUG" = yes ]; then Note "... enable workaround for FIFO select bug" echo '#define FIFOSELECTBUG 1' fi # # On some versions of IRIX 5.x, when FIFOs are # opened read-only in the server, select will # incorrectly return bits set in the select masks # even if the bits were not set on entry. This # will cause the Dispatcher code to croak unless # a workaround is enabled. # test "$CONFIG_SELECTBUG" || { case $TARGET in *-irix5.[01]*) CONFIG_SELECTBUG=yes;; *) CONFIG_SELECTBUG=no;; esac } if [ "$CONFIG_SELECTBUG" = yes ]; then Note "... enable workaround for select bug" echo '#define SGISELECTBUG 1' # NB: select also breaks! fi # # On some systems the argument for ioctl(fd, TIOCMBIS, arg) # is passed by value and some by reference. # This can not be deduced with a dynamic check. # test "$CONFIG_TIOCMBIS_ARG_REF" || { case $TARGET in *-sysv4*) CONFIG_TIOCMBISBYREF=yes;; *-linux*) CONFIG_TIOCMBISBYREF=yes;; *-sunos*) CONFIG_TIOCMBISBYREF=yes;; *) CONFIG_TIOCMBISBYREF=yes;; esac } if [ "$CONFIG_TIOCMBISBYREF" = yes ]; then Note "... using call-by-reference for TIOCMBIS ioctl" else Note "... using call-by-value for TIOCMBIS ioctl" fi echo "#define CONFIG_TIOCMBISBYREF $CONFIG_TIOCMBISBYREF" # # On some systems it's necessary to include # and to get the # necessary definitions for TIOCWINSZ. This # should be deduced with a dynamic check. # test "$CONFIG_WINSZHACK" || { case $TARGET in *-sco*) CONFIG_WINSZHACK=yes;; *-isc*) CONFIG_WINSZHACK=yes;; *) CONFIG_WINSZHACK=no;; esac } if [ "$CONFIG_WINSZHACK" = yes ]; then Note "... enable additional include files for TIOCGWINSZ" echo "#define CONFIG_WINSZHACK" fi # # On some systems the server does not work properly # if a recursive call is made to the dispatcher to # poll for an message on the FIFO file that says to # abort an outbound or inbound job. The only know # workaround for this problem is to ignore messages # while processing a job. # test "$CONFIG_ABORTBUG" || { case $TARGET in *-aix*) CONFIG_ABORTBUG=yes;; *-hpux*) CONFIG_ABORTBUG=yes;; *) CONFIG_ABORTBUG=no;; esac } if [ "$CONFIG_ABORTBUG" = yes ]; then Note "... disable support for aborting sends & receives" echo '#define SERVERABORTBUG' fi # # On some systems redirecting stdout to the controlling # tty causes stty to issue an annoying warning message. # This should probably be deduced with a dynamic test. # test "$CONFIG_NOSTDINDUP" || { case $TARGET in *-freebsd*) CONFIG_NOSTDINDUP=yes;; *) CONFIG_NOSTDINDUP=no;; esac } if [ "$CONFIG_NOSTDINDUP" = yes ]; then Note "... assuming stty bitches when stdout is set to stdin" echo "#define ONDELAY_NOSTDINDUP" fi # # Some systems cannot handle re-opening the tty device # after the modem is reset. This is true for modems # attached to some terminal servers and also on HP-UX # where the modem control state is lost across opens. # Basically if the OS and modem correctly handle toggling # DTR to reset the modem then it's safe to configure # the software to not re-open the device. # test "$CONFIG_NOREOPEN" || { case $TARGET in *-hpux*) CONFIG_NOREOPEN=yes;; *) CONFIG_NOREOPEN=no;; esac } if [ "$CONFIG_NOREOPEN" = yes ]; then Note "... don't reopen the tty device after reset" echo "#define CONFIG_NOREOPEN" fi # # Workarounds for systems with system include files # that have incorrect function declarations (wrong # parameter types that require explicit casts to make # the code compile with certain compilers). # test "$CONFIG_BADEXECVPROTO" || { # char* const* vs. const char** case $TARGET in *-sco*) CONFIG_BADEXECVPROTO=yes;; *) CONFIG_BADEXECVPROTO=no;; esac } if [ "$CONFIG_BADEXECVPROTO" = yes ]; then Note "... workaround incorrect execv function declaration" echo "#define CONFIG_BADEXECVPROTO" fi test "$CONFIG_BADEXECVEPROTO" || { # char* const* vs. const char** case $TARGET in *-sco*) CONFIG_BADEXECVEPROTO=yes;; *) CONFIG_BADEXECVEPROTO=no;; esac } if [ "$CONFIG_BADEXECVEPROTO" = yes ]; then Note "... workaround incorrect execve function declaration" echo "#define CONFIG_BADEXECVEPROTO" fi test "$CONFIG_BADGETOPTPROTO" || { # char* const* vs. char** case $TARGET in *-aix*) CONFIG_BADGETOPTPROTO=yes;; *) CONFIG_BADGETOPTPROTO=no;; esac } if [ "$CONFIG_GETOPTPROTO" = yes ]; then Note "... workaround incorrect getopt function declaration" echo "#define CONFIG_GETOPTPROTO" fi test "$CONFIG_BADSELECTPROTO" || { # int* vs. fd_set* case $TARGET in *-hpux*) CONFIG_BADSELECTPROTO=yes;; *) CONFIG_BADSELECTPROTO=no;; esac } if [ "$CONFIG_BADSELECTPROTO" = yes ]; then Note "... workaround incorrect select function declaration" echo "#define CONFIG_BADSELECTPROTO" fi # # Some vendors have changed the socket API so that # call-by-reference parameters that give buffer # lengths are not int; this must be dealt with to # get the code to compile. Note that we only emit # the define if the type is not an int; we do this # so Socket.h can include code that assumes the # default so folks don't have to rerun configure. # test "$CONFIG_SOCKARGLENTYPE" || { # int vs unsigned long vs ... case $TARGET in # XXX fill in for busted systems *-univel-*) CONFIG_SOCKARGLENTYPE=size_t;; *) CONFIG_SOCKARGLENTYPE=int;; esac } if [ "$CONFIG_SOCKARGLENTYPE" != int ]; then Note "... using $CONFIG_SOCKARGLENTYPE for call-by-reference socket length params" echo "#define CONFIG_SOCKARGLENTYPE $CONFIG_SOCKARGLENTYPE" fi # # Select the maximum fax UID. This value is stored # in the GID of files so must be constrained by any # system limitations. The maximum value is used for # anonymous logins. The default value of 60002 comes # from NFS/nobody usage on various systems. # test "$CONFIG_MAXGID" || { case $TARGET in *-sco*) CONFIG_MAXGID=60000;; *-hpux*) CONFIG_MAXGID=60000;; *) CONFIG_MAXGID=60002;; # default esac } if [ "$CONFIG_MAXGID" ]; then if [ "$CONFIG_MAXGID" -le 60002 ]; then Note "... constrain client IDs to be <= $CONFIG_MAXGID" echo "#define CONFIG_MAXGID $CONFIG_MAXGID" else Note "... max client ID too large ($CONFIG_MAXGID); using default" fi fi } # # Look for a function in one of the standard libraries # or one of the machine-dependent libraries selected above. # CheckForFunc() { echo "extern int $1(); main(){$1();exit(0);}" >t.c capture cat t.c runMake t "t:; \${CC} t.c ${MACHDEPLIBS}" } # # Look for a function declaration in system include files. # AddFuncDecl() { echo "$2"; Note "... add function prototype for $1" } CheckForFuncDecl() { f=$1; shift (for i do echo "#include \"$i\"" done)>t.c++ capture cat t.c++ runMakeX t "t:; \${C++F} \${C++FILE} -E t.c++${MAKECXXOVERRIDE}" |\ stripComments |\ awk '{while($0~/[,(][ \t]*$/){printf"%s",$0;getline}print}' |\ grep "$f[ ]*(.*)" >&5 return } CheckFuncDecl() { f=$1; shift decl=$1; shift CheckForFuncDecl "$f" "$@" || AddFuncDecl "$f" "$decl" } # # Look for a variable declaration in system include files. # CheckForVarDecl() { v="$1"; shift (for i do echo "#include \"$i\"" done)>t.c++ capture cat t.c++ runMakeX t "t:; \${C++F} \${C++FILE} -E t.c++${MAKECXXOVERRIDE}" |\ stripComments |\ grep "$v" >&5 return } CheckVarDecl() { v="$1"; shift decl="$1"; shift CheckForVarDecl "$v" "$@" || \ (echo "$decl"; Note "... add declaration $decl") } # # Look for a #define in system include files. # AddDefine() { echo '#ifndef' $1 echo '#define' "$2" echo '#endif' Note '... add #define for' "$1" } CheckForDefine() { def=$1; shift (for i do echo "#include \"$i\"" done for i in "#ifdef $def" "FOUND" "#endif"; do echo "$i" done )>t.c capture cat t.c runMakeX t 't:; ${CCF} -E t.c' | grep FOUND >&5 } CheckDefine() { def=$1; shift decl=$1; shift CheckForDefine "$def" "$@" || AddDefine "$def" "$decl" } CheckTermioFuncDecls() { CheckFuncDecl cfsetospeed \ 'extern int cfsetospeed(const struct termios*, speed_t);' $@ CheckFuncDecl cfsetispeed \ 'extern int cfsetispeed(const struct termios*, speed_t);' $@ CheckFuncDecl tcgetattr 'extern int tcgetattr(int, struct termios*);' $@ CheckFuncDecl tcsetattr \ 'extern int tcsetattr(int, int, const struct termios*);' $@ CheckFuncDecl tcsendbreak 'extern int tcsendbreak(int, int);' $@ CheckFuncDecl tcdrain 'extern int tcdrain(int);' $@ CheckFuncDecl tcflush 'extern int tcflush(int, int);' $@ CheckFuncDecl tcflow 'extern int tcflow(int, int);' $@ } BuildTermiosDotH() { CheckForIncludeFile termios.h || { CheckForIncludeFile sys/termios.h || { bitch "Cannot locate termios.h or sys/termios.h." boom } Note "" Note "No termios.h found; creating one with necessary definitions." (EmitCPlusPlusPrologue _TERMIOS_ echo '#include "sys/termios.h"' CheckTermioFuncDecls sys/termios.h EmitCPlusPlusEpilogue )>xtermios.h mv xtermios.h termios.h; chmod 444 termios.h } } CheckSigvecHandler() { cat>t.c++< #include void sigHUP(int) {} void f() { struct sigvec sv; sv.sv_handler = $1 (sigHUP); (void) sigvec(SIGHUP, &sv, (struct sigvec*) 0); } int main() { f(); return 0; } EOF capture cat t.c++ runMake t "t:; \${C++F} \${C++FILE} -c t.c++${MAKECXXOVERRIDE}" } CheckSigactionHandler() { cat>t.c++< #include void sigHUP(int) {} void f() { struct sigaction sa; sa.sa_handler = $1 (sigHUP); (void) sigaction(SIGHUP, &sa, (struct sigaction*) 0); } int main() { f(); return 0; } EOF capture cat t.c++ runMake t "t:; \${C++F} \${C++FILE} -c t.c++${MAKECXXOVERRIDE}" } CheckSignalHandler() { cat>t.c++< #include void sigHUP(int) {} void f() { (void) signal(SIGHUP, $1 (sigHUP)); } int main() { f(); return 0; } EOF capture cat t.c++ runMake t "t:; \${C++F} \${C++FILE} -c t.c++${MAKECXXOVERRIDE}" } CheckForMMAP() { (cat<<'EOF' /* part of this was lifted from GNU autoconf */ #include #include #include EOF CheckForFunc getpagesize || { cat<<'EOF' #ifdef BSD # ifndef BSD4_1 # define HAVE_GETPAGESIZE # endif #endif #ifndef HAVE_GETPAGESIZE # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif # else # ifdef NBPC # define getpagesize() NBPC # else # define getpagesize() PAGESIZE /* SVR4 */ # endif # endif # endif #endif EOF } cat<<'EOF' extern char* malloc(); static void boom(const char* msg) { printf("%s.\n", msg); exit(1); } int main() { const char* filename = "conftestmmap"; char* buf; char* addr; int i, fd, cc; cc = getpagesize(); buf = malloc(cc); for (i = 0; i < cc; ++i) buf[i] = rand(); fd = open(filename, O_WRONLY|O_CREAT, 0666); if (fd < 0) boom("Cannot open test file"); if (write(fd, buf, cc) != cc) boom("Write to test file failed"); close(fd); fd = open(filename, O_RDONLY); if (fd < 0) boom("Cannot reopen test file"); addr = (char*) mmap(0, cc, PROT_READ, MAP_SHARED, fd, 0); if (addr == (char*) -1) boom("Cannot mmap test file"); for (i = 0; i < cc; ++i) if (buf[i] != addr[i]) boom("Compare of mmap-file contents failed"); exit(0); } EOF )>m.c capture cat m.c runMake m "m:; \${CC} m.c ${MACHDEPLIBS}" && capture ./a.out } CheckForStructExitStatus() { decl=$1; shift (echo '#include ' for i do echo "$i" done cat<t.c++ capture cat t.c++ runMake t "t:; \${C++F} \${C++FILE} t.c++${MAKECXXOVERRIDE}" } CheckForTimeZoneHandling() { (echo '#include ' cat<t.c++ capture cat t.c++ runMake t "t:; \${C++F} \${C++FILE} t.c++${MAKECXXOVERRIDE}" } CheckForTXCD() { cat>t.c< main() { ioctl(0, TXADDCD, "rts"); ioctl(0, TXDELCD, "rts"); } EOF capture cat t.c runMake t 't:; ${CC} t.c' } # # Check for a function declaration in # and if it is missing emit the appropriate decl # along with an include of (for any # FILE definition). Apparently some combinations # of systems+compilers do not react well to # function declarations w/o various definitions # that appear only in stdio.h. # STDIO_H=no CheckStdio() { f=$1 decl="$2" CheckForFuncDecl $f stdio.h || { if [ $STDIO_H = no ]; then echo '#include ' STDIO_H=yes fi AddFuncDecl $f "$decl" } } getConfigTag() { param=`grep "$1:" $2 | sed -e 's/.*:[ ]*\([^ ]*\).*/\1/'` } # # Check an existing port.h to see if it was created # for the target and compiler we're using. # CheckPortDotH() { getConfigTag TARGET port.h; target="$param" getConfigTag CCOMPILER port.h; ccompiler="$param" getConfigTag CXXCOMPILER port.h; cxxcompiler="$param" CCOMP=$CCOMPILER; test $ISGCC = yes && CCOMP="${CCOMP}-${GCCversion}" CXXCOMP=$CXXCOMPILER; test $ISGXX = yes && CXXCOMP="${CXXCOMP}-${GCCversion}" test "$target" = "$TARGET" && \ test "$ccompiler" = "$CCOMP" && \ test "$cxxcompiler" = "$CXXCOMP" } # # Built port.h and, optionally, termios.h based on # the system and compiler setup. # BuildPortDotH() { Note "" Note "Creating port.h with necessary definitions." (EmitCPlusPlusPrologue _PORT_ EmitConfigurationDefinitions echo '#include ' TYPES_H="sys/types.h" if CheckForIncludeFile sys/bsdtypes.h; then Note "... configure use of " echo '#include ' TYPES_H="$TYPES_H sys/bsdtypes.h" fi CheckVarDecl uid_t 'typedef int uid_t;' $TYPES_H CheckVarDecl gid_t 'typedef int gid_t;' $TYPES_H CheckVarDecl mode_t 'typedef int mode_t;' $TYPES_H stdlib.h CheckVarDecl off_t 'typedef long off_t;' $TYPES_H stdlib.h CheckVarDecl pid_t 'typedef int pid_t;' $TYPES_H stdlib.h CheckVarDecl size_t 'typedef unsigned size_t;' $TYPES_H stdlib.h CheckVarDecl dev_t 'typedef int dev_t;' $TYPES_H stdlib.h if CheckForIncludeFile osfcn.h; then Note "... configure use of " echo '#define HAS_OSFCN_H 1' OSFCNH='osfcn.h' else OSFCNH= fi if CheckForIncludeFile sys/select.h; then Note "... configure use of " echo '#define HAS_SELECT_H 1' SELECTH='sys/select.h' else SELECTH= fi # # Select signal handler type casts. # if [ $ISGXX = yes ]; then # # Must use -pendantic-errors with gcc to insure (sig_t) (...) # is treated as an error instead of a warning when searching # for the proper signal handler types below. # OGCXXOPTS="$GCXXOPTS" GCXXOPTS="$GCXXOPTS -pedantic-errors" makeDefs xdefs fi SIGHANDLERTYPES=" $SIGHANDLERTYPES (sig_t) (SIG_PF) (void(*)(int)) (void(*)()) (int) " for i in $SIGHANDLERTYPES; do CheckSignalHandler "$i" && { echo "#define fxSIGHANDLER $i" Note "... use $i for signal handler type" break; } done for i in $SIGHANDLERTYPES; do CheckSigvecHandler "$i" && { echo "#define fxSIGVECHANDLER $i" Note "... use $i for sigvec handler type" break; } done for i in $SIGHANDLERTYPES; do CheckSigactionHandler "$i" && { echo "#define fxSIGACTIONHANDLER $i" Note "... use $i for sigaction handler type" break; } done if [ $ISGXX = yes ]; then GCXXOPTS="$OGCXXOPTS" makeDefs xdefs fi CheckForMMAP && { echo '#define HAS_MMAP 1' Note "... configure use of mmap for memory-mapped files" CheckFuncDecl mmap \ 'extern void* mmap(void*, size_t, int, int, int, off_t);' sys/mman.h } CheckFuncDecl mkstemp 'extern int mkstemp(char *);' stdio.h unistd.h CheckFuncDecl strerror 'extern char* strerror(int);' string.h CheckFuncDecl strncasecmp \ 'extern int strncasecmp(const char*, const char*, size_t);' string.h CheckFuncDecl strcasecmp \ 'extern int strcasecmp(const char*, const char*);' string.h CheckFuncDecl strdup 'extern char* strdup(const char*);' string.h CheckFuncDecl memset 'extern void* memset(void*, int, size_t);' string.h CheckFuncDecl getpass 'extern char* getpass(const char *);' stdlib.h CheckFuncDecl random 'extern long random(void);' math.h stdlib.h CheckFuncDecl srandom 'extern void srandom(int);' math.h stdlib.h CheckFuncDecl floor 'extern double floor(double);' math.h CheckFuncDecl waitpid 'extern pid_t waitpid(pid_t, int *, int);' sys/wait.h CheckForFunc sysconf && { echo '#define HAS_SYSCONF 1' Note "... configure use of sysconf" CheckFuncDecl sysconf 'extern long sysconf(int);' unistd.h } CheckForFunc ulimit && { echo '#define HAS_ULIMIT 1' Note "... configure use of ulimit" CheckFuncDecl ulimit 'extern long ulimit(int, ...);' ulimit.h } CheckForFunc getdtablesize && { echo '#define HAS_GETDTABLESIZE 1' Note "... configure use of getdtablesize" CheckFuncDecl getdtablesize 'extern int getdtablesize(void);' unistd.h } CheckDefine _POSIX_OPEN_MAX '_POSIX_OPEN_MAX 16' limits.h CheckDefine howmany 'howmany(x, y) (((x)+((y)-1))/(y))' $TYPES_H CheckForFuncDecl sigvec signal.h || { echo 'struct sigvec;' AddFuncDecl sigvec \ 'extern int sigvec(int, const struct sigvec*, struct sigvec*);' } CheckForFuncDecl sigaction signal.h || { echo 'struct sigaction;' AddFuncDecl sigaction \ 'extern int sigaction(int, const struct sigaction*, struct sigaction*);' } CheckFuncDecl kill 'extern int kill(pid_t, int);' signal.h CheckFuncDecl close 'extern int close(int);' unistd.h CheckFuncDecl getuid 'extern uid_t getuid(void);' unistd.h CheckFuncDecl geteuid 'extern uid_t geteuid(void);' unistd.h CheckFuncDecl seteuid 'extern int seteuid(uid_t);' unistd.h CheckFuncDecl setegid 'extern int setegid(gid_t);' unistd.h CheckFuncDecl ftruncate 'extern int ftruncate(int, off_t);' unistd.h CheckFuncDecl getdtablesize 'extern int getdtablesize(void);' unistd.h CheckFuncDecl chroot 'extern int chroot(const char *path);' unistd.h # # unistd.h is where many people put it # sys/select.h is for USL-derived code # sys/time.h is for HP systems (sigh) # sys/types.h is for yet other systems (sigh sigh) # CheckForFuncDecl select unistd.h $SELECTH sys/time.h $TYPES_H || { echo 'struct fd_set;' echo 'struct timeval;' AddFuncDecl select \ 'extern int select(int,struct fd_set*,struct fd_set*,struct fd_set*,struct timeval*);' } CheckFuncDecl unlink 'extern int unlink(const char*);' unistd.h CheckFuncDecl read 'extern int read(int, const void*, unsigned int);' unistd.h CheckFuncDecl ioctl 'extern int ioctl(int, int, ...);' unistd.h sys/ioctl.h CheckForFunc fchown && { echo '#define HAS_FCHOWN 1' Note "... configure use of fchown" CheckFuncDecl fchown 'extern int fchown(int, uid_t, gid_t);' unistd.h } CheckFuncDecl gethostname 'extern int gethostname(char*, int);' unistd.h $OSFCNH CheckFuncDecl malloc 'extern void* malloc(size_t);' stdlib.h CheckFuncDecl realloc 'extern void* realloc(void*, size_t);' stdlib.h CheckFuncDecl free 'extern void free(void*);' stdlib.h CheckFuncDecl strtoul \ 'extern unsigned long strtoul(const char*, char**, int);' stdlib.h CheckFuncDecl cuserid 'extern char* cuserid(char*);' stdio.h # # unistd.h is for sco3.2v4.[0-2] and GNU libc (yech!) # CheckFuncDecl getopt \ 'extern int getopt(int, char* const*, const char*);' stdlib.h unistd.h CheckFuncDecl isatty 'extern int isatty(int);' stdlib.h unistd.h CheckVarDecl 'char.*optarg' 'extern char* optarg;' stdlib.h unistd.h CheckVarDecl 'int.*opterr' 'extern int opterr;' stdlib.h unistd.h CheckVarDecl 'int.*optind' 'extern int optind;' stdlib.h unistd.h CheckFuncDecl system 'extern int system(const char*);' stdlib.h CheckFuncDecl mktemp 'extern char* mktemp(char*);' stdio.h unistd.h CheckStdio popen 'extern FILE* popen(const char *, const char *);' CheckStdio pclose 'extern int pclose(FILE*);' CheckStdio fdopen 'extern FILE* fdopen(int, const char*);' CheckForDefine fileno stdio.h || { CheckStdio fileno 'extern int fileno(FILE*);' } CheckFuncDecl opendir 'extern DIR* opendir(const char*);' dirent.h CheckFuncDecl syslog 'extern void syslog(int, const char*, ...);' syslog.h CheckForFuncDecl vsyslog syslog.h || { echo '#include ' AddFuncDecl vsyslog 'extern void vsyslog(int, const char*, va_list);' } CheckFuncDecl closelog 'extern void closelog(void);' syslog.h CheckFuncDecl openlog 'extern void openlog(const char*, int, int);' syslog.h CheckForFunc fchmod && { echo '#define HAS_FCHMOD 1' Note "... configure use of fchmod" CheckFuncDecl fchmod 'extern int fchmod(int, mode_t);' \ unistd.h libc.h $OSFCNH sys/stat.h } CheckFuncDecl mknod 'extern int mknod(const char*, mode_t, dev_t);' \ unistd.h sys/stat.h CheckForFuncDecl gettimeofday sys/time.h || { echo 'struct timezone;' echo 'struct timeval;' AddFuncDecl gettimeofday \ 'extern int gettimeofday(struct timeval*, struct timezone*);' } CheckForFuncDecl strftime time.h || { echo 'struct tm;' AddFuncDecl strftime \ 'extern size_t strftime(char*,size_t,const char*,const struct tm*);' } CheckForFuncDecl localtime time.h || { echo 'struct tm;' AddFuncDecl localtime 'struct tm* localtime(const time_t* clock);' } CheckForTimeZoneHandling && { echo '#define HAS_TM_ZONE 1' Note "... configure use of struct tm timezone information" } CheckForFuncDecl setitimer sys/time.h || { echo '#ifdef ITIMER_REAL' echo 'struct itimerval;' AddFuncDecl setitimer \ 'extern int setitimer(int,struct itimerval*,struct itimerval*);' echo '#endif' } CheckFuncDecl setpwent 'extern void setpwent(void);' pwd.h CheckFuncDecl endpwent 'extern void endpwent(void);' pwd.h CheckFuncDecl getpwnam 'extern struct passwd* getpwnam(const char*);' pwd.h case "$TARGET" in *-reno*) ;; *) for i in toupper tolower; do CheckFuncDecl $i "extern int $i(int);" ctype.h done ;; esac CheckForIncludeFile net/errno.h && { Note "... configure use of " echo '#define HAS_NETERRNO_H 1' } CheckForFuncDecl getpeername sys/socket.h || { echo 'struct sockaddr;' AddFuncDecl getpeername 'extern int getpeername(int,struct sockaddr*,int*);' } CheckForFuncDecl getsockname sys/socket.h || { echo 'struct sockaddr;' AddFuncDecl getsockname 'extern int getsockname(int,struct sockaddr*,int*);' } CheckFuncDecl socket 'extern int socket(int, int, int);' sys/socket.h CheckFuncDecl connect 'extern int connect(int, const void*, int);' sys/socket.h CheckForFuncDecl bind sys/socket.h || { echo 'struct sockaddr;' AddFuncDecl bind 'extern int bind(int, const struct sockaddr*, int);' } CheckFuncDecl listen 'extern int listen(int, int);' sys/socket.h CheckFuncDecl getsockopt \ 'extern int getsockopt(int, int, int, const char*, int*);' sys/socket.h CheckFuncDecl setsockopt \ 'extern int setsockopt(int, int, int, const char*, int);' sys/socket.h CheckForFuncDecl accept sys/socket.h || { echo 'struct sockaddr;' AddFuncDecl accept 'extern int accept(int, struct sockaddr*, int*);' } CheckFuncDecl send \ 'extern int send(int, const void*, int, int);' sys/socket.h CheckFuncDecl setutent 'extern void setutent(void);' utmp.h CheckFuncDecl endutent 'extern void endutent(void);' utmp.h CheckForFuncDecl getutent utmp.h || { echo 'struct utmp;' AddFuncDecl getutent 'extern struct utmp* getutent(void);' } CheckForFuncDecl pututline utmp.h || { echo 'struct utmp;' AddFuncDecl pututline \ 'extern struct utmp* pututline(const struct utmp*);' } CheckForFuncDecl gethostbyname netdb.h || { echo 'struct hostent;' AddFuncDecl gethostbyname \ 'extern struct hostent* gethostbyname(const char*);' } CheckForFuncDecl gethostbyaddr netdb.h || { echo 'struct hostent;' AddFuncDecl gethostbyaddr \ 'extern struct hostent* gethostbyaddr(const void*, int, int);' } CheckForFuncDecl getservbyname netdb.h || { echo 'struct servent;' AddFuncDecl getservbyname \ 'extern struct servent* getservbyname(const char*, const char*);' } CheckForDefine LOCK_SH sys/file.h || { AddDefine LOCK_SH 'LOCK_SH 1 /* shared lock */' AddDefine LOCK_EX 'LOCK_EX 2 /* exclusive lock */' AddDefine LOCK_NB 'LOCK_NB 4 /* dont block when locking */' AddDefine LOCK_UN 'LOCK_UN 8 /* unlock */' } CheckFuncDecl flock 'extern int flock(int, int);' sys/file.h CheckForFuncDecl sigsetjmp setjmp.h || { echo '#include ' echo '#ifndef sigsetjmp' AddDefine sigjmp_buf 'sigjmp_buf jmp_buf /* hopefully compatible */' AddFuncDecl sigsetjmp 'extern int sigsetjmp(sigjmp_buf, int);' AddFuncDecl siglongjmp 'extern void siglongjmp(sigjmp_buf, int);' echo '#endif' } CheckForFuncDecl inet_ntoa arpa/inet.h || { echo 'struct in_addr;' AddFuncDecl inet_ntoa 'extern char* inet_ntoa(struct in_addr);' } CheckForIncludeFile sys/mkdev.h && { Note "... configure use of (for SVR4-style lock files)" echo '#define HAS_MKDEV 1' } CheckForIncludeFile locale.h && { Note "... configure use of (internationalization support)" echo '#define HAS_LOCALE 1' } CheckForIncludeFile paths.h && { Note "... configure use of " echo '#include ' } CheckForIncludeFile sys/modem.h && { Note "... configure use of " echo '#define HAS_MODEM_H 1' } CheckForIncludeFile sys/termiox.h && { Note "... configure use of SVR4 termiox support" echo '#define HAS_TERMIOX 1' } CheckForFunc flock || { # # Emit the necessary #defines for emulating flock # if CheckForFunc fcntl; then echo '#define HAS_FCNTL 1' fi if CheckForFunc lockf; then echo '#define HAS_LOCKF 1' fi } # NB: logwtmp checked above when looking for -lutil test $HAS_LOGWTMP = yes && { # # Configure use of logwtmp in the BSD getty support and # verify that the accompanying logout function is present # also. Note that we put out proper declarations for the # functions since they don't appear to be declared anywhere. # echo '#define HAS_LOGWTMP 1' Note "... configure use of logwtmp (BSD-style wtmp logging)" AddFuncDecl logwtmp \ 'int logwtmp(const char*, const char*, const char*);' CheckForLibrary logout -lutil && { echo '#define HAS_LOGOUT 1' Note "... configure use of logout (BSD-style utmp support)" AddFuncDecl logout 'int logout(const char*);' } } CheckDefine _PATH_DEV '_PATH_DEV "/dev/"' paths.h CheckDefine _PATH_DEVNULL '_PATH_DEVNULL "/dev/null"' paths.h CheckDefine _PATH_TMP '_PATH_TMP "/tmp/"' paths.h if [ $UTMP = auto ]; then if CheckForIncludeFile utmpx.h; then UTMP=utmpx; else UTMP=utmp; fi fi if [ $UTMP = utmpx ]; then Note "... configure use of (extended utmp interface)" echo '#define HAS_UTMPX 1' CheckForDefine _PATH_WTMPX paths.h utmp.h utmpx.h || { if CheckForDefine WTMPX_FILE utmpx.h; then AddDefine _PATH_WTMPX '_PATH_WTMPX WTMPX_FILE' else PATHWTMPX=`findFile wtmpx /etc:/var/adm:/usr/adm` test "$PATHWTMPX" && { AddDefine _PATH_WTMPX "_PATH_WTMPX \"${PATHWTMPX}\"" } fi } # # struct exit_status is defined for all systems with # utmpx support, but SVR4.0.3 headers define the extended # exit status structure *within* struct utmp and then reuse # it within struct utmpx. This does not work for all # compilers so we must look for this case and, if present, # enable a workaround declaration of struct exit_status (sigh). # if CheckForStructExitStatus utmpx '#include '; then echo '#define HAS_UTEXIT 1' echo '#define HAS_EXIT_STATUS 1' elif CheckForStructExitStatus utmpx \ 'struct exit_status { short e_termination; short e_exit; };' \ '#include '; then Note "... add declaration for struct exit_status" echo '#define HAS_UTEXIT 1' echo '#define HAS_EXIT_STATUS 0' fi else Note "... configure use of (normal utmp interface)" CheckForDefine _PATH_UTMP paths.h utmp.h || { if CheckForDefine UTMP_FILE utmp.h; then AddDefine _PATH_UTMP '_PATH_UTMP UTMP_FILE' else PATHUTMP=`findFile utmp /etc:/var/adm:/usr/adm` test "$PATHUTMP" && { AddDefine _PATH_UTMP "_PATH_UTMP \"${PATHUTMP}\"" } fi } CheckForStructExitStatus utmp && { Note "... configure use of extended exit status in utmp" echo '#define HAS_UTEXIT 1' } CheckForDefine _PATH_WTMP paths.h utmp.h || { if CheckForDefine WTMP_FILE utmp.h; then AddDefine _PATH_WTMP '_PATH_WTMP WTMP_FILE' else PATHWTMP=`findFile wtmp /etc:/var/adm:/usr/adm` test "$PATHWTMP" && { AddDefine _PATH_WTMP "_PATH_WTMP \"${PATHWTMP}\"" } fi } fi CheckForDefine RT_NOCHANGE sys/priocntl.h sys/rtpriocntl.h && \ CheckForDefine TS_NOCHANGE sys/priocntl.h sys/tspriocntl.h && { Note "... configure use of SVR4 realtime process control interface" echo '#define HAS_PRIOCNTL 1' } CheckForDefine NDPRI sys/schedctl.h && { Note "... configure use of IRIX realtime process control interface" echo '#define HAS_SCHEDCTL 1' } CheckForDefine RTPRIO_RTOFF sys/rtprio.h && { Note "... configure use of HP-UX realtime process control interface" echo '#define HAS_RTPRIO 1' } CheckForTXCD && { Note "... configure use of TXADDCD and TXDELCD ioctls" echo '#define HAS_TXCD 1' } if CheckForIncludeFile crypt.h; then Note "... configure use of " echo '#define HAS_CRYPT_H 1' CheckFuncDecl crypt 'extern const char* crypt(const char*, const char*);' unistd.h crypt.h else CheckFuncDecl crypt 'extern const char* crypt(const char*, const char*);' unistd.h stdlib.h fi CheckTermioFuncDecls termios.h EmitCPlusPlusEpilogue )>xport.h mv xport.h port.h; chmod 444 port.h Note "Done creating port.h." } if test -f port.h && CheckPortDotH; then Note "" Note "Using previously created port.h." else $RM xport.h xtermios.h t.c t.c++ a.out port.h termios.h BuildTermiosDotH BuildPortDotH fi Note "" Note "Checking system libraries for functionality to emulate." FUNCS=" cuserid flock ftruncate getopt mkstemp random srandom setegid seteuid setvbuf strcasecmp strtod strtoul writev " for i in $FUNCS; do CheckForFunc $i || { Note "... emulate $i" PORTFUNCS="$PORTFUNCS $i.c" } done # # SCO OS 5 #defines syslog as another function # so it is necessary to include syslog.h when # checking if the function is present in the # library (sigh). # CheckForSyslog() { (echo '#include '; echo '#include "port.h"'; echo 'main(){syslog(0,"foo");exit(0);}') >t.c capture cat t.c runMake t "t:; \${CC} t.c ${MACHDEPLIBS}" } CheckForVSyslog() { (echo '#include '; echo '#include '; echo '#include "port.h"'; echo 'main(){va_list ap; vsyslog(0,"foo", ap);exit(0);}') >t.c capture cat t.c runMake t "t:; \${CC} t.c ${MACHDEPLIBS}" } if CheckForSyslog; then CheckForVSyslog || { Note "... emulate vsyslog" PORTFUNCS="$PORTFUNCS vsyslog.c" } else Note "... emulate syslog&co." PORTFUNCS="$PORTFUNCS syslog.c" fi if [ "$PORTFUNCS" ]; then LIBPORT='${PORT}/libport.a' PORT=yes else PORT=no fi Note "Done checking system libraries." Note "" Note "Checking TIFF support." # # Verify library is compatible. # cat>t.c<&2 <&2 cat 1>&2 <t.c<&2 <&2 cat 1>&2 <t.c< #include #include #include #include "db.h" main() { DBT key, data; const char d[] = "some random string"; const char k[] = "mykey"; DB* db = dbopen("conf.db", O_RDWR|O_CREAT, 0644, DB_HASH, NULL); if (db == NULL) { printf("Cannot create hashed database file conf.db\n"); exit(-1); } key.data = (void*) k; key.size = sizeof (k); data.data = (void*) d; data.size = sizeof (d); if ((*db->put)(db, &key, &data, 0) != 0) { printf("Error writing hashed db record\n"); exit(-1); } (void) (*db->close)(db); db = dbopen("conf.db", O_RDONLY, 0644, DB_HASH, NULL); if (db == NULL) { printf("Cannot reopen hashed database file conf.db\n"); exit(-1); } data.data = (void*) NULL; data.size = 0; if ((*db->get)(db, &key, &data, 0) != 0) { printf("Error reading hashed db record\n"); exit(-1); } if (data.size != sizeof (d) || memcmp(data.data, d, data.size) != 0) { printf("Hashed db record mismatch: size %u data \"%s\"\n", data.size, data.data ? data.data : "(null)"); exit(-1); } (*db->close)(db); exit(0); } EOF capture cat t.c if runMake t "t:; \${CC} \${CVERSION} -I${ODBLIBINC} t.c ${LIBDB} ${MACHDEPLIBS}" && capture ./a.out; then Note "Using LIBDB include files from $ODBLIBINC" Note "Using pre-built LIBDB library $LIBDB" else cat 1>&2 <&2 cat 1>&2 </dev/null 2>&1; then DSOSUF=so DSOOPTS="${CVERSION} -shared -rdata_shared -check_registry \${DEPTH}/${SRCDIR}/port/irix/so_locations -quickstart_info" DSODELAY=-delay_load LLDOPTS='-rpath ${LIBEXEC}' DSO=IRIX CheckCCDSO() { $RM t.c t.o t.${DSOSUF} echo 'int f() { return 0; }'>t.c capture cat t.c runMake t \ 't.o:; ${CCF} -c t.c' \ "t: t.o; \${CCF} ${DSOOPTS} -o t.${DSOSUF} t.o" } CheckCXXDSO() { $RM t.c++ t.o t.${DSOSUF} echo 'int f() { return 0; }'>t.c++ capture cat t.c++ runMake t \ "t.o:; \${C++F} -c \${C++FILE} t.c++${MAKECXXOVERRIDE}" \ "t:t.o; \${C++F} ${DSOOPTS} -o t.${DSOSUF} t.o" } else Note "No runtime loader found, looks like your system does not supports DSOs." DSO=no fi ;; *) Note "There is no support for building HylaFAX as DSOs on your system." DSO=no ;; esac if [ "$DSO" != no ]; then JUNK="$JUNK t.${DSOSUF}" if CheckCCDSO; then if CheckCXXDSO; then Note "Looks like your system supports $DSO-style DSOs." else cat 1>&4 <&4 <&5 2>&1 return } for i in mawk nawk gawk awk; do x=`findApp $i $PATH` if test "$x" && CheckAwk "$x"; then AWK=$x break fi done fi if [ -z "$AWK" ]; then AWK=awk Note "" Note "WARNING, could not locate a suitable AWK for processing the command" Note " scripts included in this software distribution; using $AWK." else Note "Looks like $AWK should be used in command scripts." fi test "$SED" || SED=`findApp sed $PATH` if [ -z "$SED" ]; then SED=sed Note "WARNING, could not locate a suitable SED command; using $SED." fi test "$PATH_SENDMAIL" || \ PATH_SENDMAIL=`findApp sendmail $PATH:/usr/lib:/usr/ucblib` if [ -z "$PATH_SENDMAIL" ]; then cat</dev/null 2>&1; then Note "Looks like $MKFIFO creates FIFO special files." elif test -f conffifo; then # NB: not everyone has test -p Note "Looks like $MKFIFO creates FIFO special files (unable to verify)." else # NB: we can't be certain of this because on some systems # only root can create a FIFO special file Note "WARNING, $MKFIFO may create FIFO special files, but testing failed." fi # # Check if mv -f is supported # if [ -z "$MV_F" ]; then $RM t.c; echo "">t.c if capture $MV -f t.c t.o; then Note "Looks like $MV supports the -f option to force a move." MV_F=-f else Note "WARNING, looks like $MV has no -f option to force move operations;" Note " this may cause problems during installation." MV_F= fi fi # # Check if ln -s creates a symbolic link. # if [ -z "$LN_S" ]; then capture "$RM t.c; $LN -s foo t.c" && LN_S=-s fi if [ -n "$LN_S" ]; then Note "Looks like $LN supports the -s option to create a symbolic link." else Note "WARNING, looks like $LN has no -s option to create symbolic links;" Note " this may cause problems during installation." fi # # Pick install mechanism. # if [ -z "$INSTALL" ]; then case $TARGET in *-irix*) INSTALL=`findApp install /sbin:$PATH`;; *) INSTALL='${SHELL} ${PORT}/install.sh';; esac fi if [ "$SYSVINIT" = auto ]; then if test -d /etc/rc0.d -a -d /etc/rc2.d -a -d /etc/init.d; then SYSVINIT=yes Note "Looks like a SysV-style init is used, enabling installation of startup code." else SYSVINIT=no fi fi Note "Done selecting programs." # # User-changable configuration parameters section. # Anything selected here is presented to the user # and may be interactively changed. # Note "" Note "Selecting default HylaFAX configuration parameters." Note "" # # Fill in any other configuration parameters not # setup in the site and local files. # # # Fax user GID # if [ -z "$FAXGID" ]; then case $TARGET in *-aix*) FAXGID=uucp;; *-bsdi*) FAXGID=uucp;; *freebsd2.1*) FAXGID=uucp; break;; # Not sure when this changed.. *bsd*) FAXGID=dialer;; *-hpux*) FAXGID=sys;; *-irix*) FAXGID=nuucp;; *-isc*) FAXGID=uucp;; *-linux*) FAXGID=uucp;; *-sco*) FAXGID=uucp;; *-solaris*) FAXGID=uucp;; *-sunos*) FAXGID=uucp;; *-sysv4*) FAXGID=uucp;; *-ultrix*) FAXGID=uucp;; *) FAXGID=uucp for i in uucp dialer nuucp sys; do grep "^${i}:" /etc/group >/dev/null 2>&1 && { FAXGID=$i; break; } done ;; esac fi Note "Using uid $FAXUID and gid $FAXGID for controlling access to fax stuff." # # System installation group ID. # if [ -z "$SYSGID" ]; then case $TARGET in *-aix*) SYSGID=sys;; *bsd*) SYSGID=bin;; *-hpux*) SYSGID=bin;; *-irix*) SYSGID=sys;; *-isc*) SYSGID=sys;; *-linux*) SYSGID=bin;; *-sco*) SYSGID=sys;; *-solaris*) SYSGID=sys;; *-sunos*) SYSGID=bin;; *-sysv4*) SYSGID=sys;; *-ultrix*) SYSGID=bin;; *) SYSGID=sys for i in sys bin; do grep "^${i}:" /etc/group >/dev/null 2>&1 && { SYSGID=$i; break; } done ;; esac fi Note "Using uid $SYSUID and gid $SYSGID for installing programs." if [ -z "$FILLORDER" ]; then # # Host bit order within a word. # case $TARGET in mips-dec-*) FILLORDER=LSB2MSB;; i[3-6]86-*) FILLORDER=LSB2MSB;; *) FILLORDER=MSB2LSB;; esac fi CPU=`echo $TARGET | sed 's/-.*//'` Note "Using $FILLORDER bit order for your $CPU cpu." # # Style of getty support. # if [ "$GETTY" = auto ]; then case $TARGET in *bsd*) GETTY=BSD;; *-sunos*) GETTY=BSD;; *-ultrix*) GETTY=BSD;; *) GETTY=SysV;; esac fi Note "Looks like you need $GETTY getty support." if [ -z "$PATH_GETTY" ]; then if CheckForDefine _PATH_GETTY paths.h; then Note "Using _PATH_GETTY from as the program to exec for a data call." else # # NB: use findFile instead of findApp because on some # systems this file is mode 544; so if configure # is run by an unprivileged user the file will not # be located. # PATH_GETTY=`findFile ttymon /usr/lib/saf:/usr/libexec:/sbin:$PATH` test -z "$PATH_GETTY" && \ PATH_GETTY=`findApp getty /usr/libexec:/sbin:$PATH` test -z "$PATH_GETTY" && \ PATH_GETTY=`findApp agetty /usr/libexec:/sbin:$PATH` test -z "$PATH_GETTY" && \ PATH_GETTY=`findApp mgetty /usr/libexec:/sbin:$PATH` if [ -z "$PATH_GETTY" ]; then PATH_GETTY=/etc/getty Note "" Note "WARNING, could not locate a suitable getty program to exec for a" Note " data call; using a default value $PATH_GETTY." Note "" else Note "Looks like $PATH_GETTY is the program to exec for a data call." fi fi else Note "Using $PATH_GETTY as the program to exec for a data call." fi # vgetty support if [ -z "$PATH_VGETTY" ]; then PATH_VGETTY=`findApp vgetty /usr/libexec:/sbin:$PATH` if [ -z "$PATH_VGETTY" ]; then PATH_VGETTY=/bin/vgetty Note "WARNING, no vgetty program found to handle a voice call, using $PATH_VGETTY." else Note "Looks like $PATH_VGETTY is the program to exec for a voice call." fi else Note "Using $PATH_VGETTY as the program to exec for a voice call." fi # egetty support if [ -z "$PATH_EGETTY" ]; then PATH_EGETTY=`findApp egetty /usr/libexec:/sbin:$PATH` if [ -z "$PATH_EGETTY" ]; then PATH_EGETTY=/bin/egetty Note "WARNING, no egetty program found, using $PATH_EGETTY." else Note "Looks like $PATH_EGETTY is the program to exec for an extern call." fi else Note "Using $PATH_EGETTY as the program to exec for an extern call." fi # # UUCP lock file type and location. # if [ "$LOCKS" = auto ]; then case $TARGET in *-aix*) LOCKS=ascii;; *-sco*) LOCKS="-ascii";; *-sysv2*) LOCKS=binary;; *-hpux*) LOCKS=binary;; *-sysv4*) LOCKS="+ascii";; *-solaris*) LOCKS="+ascii";; *-freebsd*) LOCKS=ascii;; *-netbsd*) LOCKS=ascii;; *bsd*) LOCKS=binary;; *) LOCKS=ascii;; esac fi Note "Looks like you use ${LOCKS}-style UUCP lock files." if [ -z "$DIR_LOCKS" ]; then LOCKDIRS=" /var/spool/locks /usr/spool/locks /var/spool/lock /usr/spool/lock /var/spool/uucp /usr/spool/uucp " case $TARGET in *-aix*) LOCKDIRS="/etc/locks $LOCKDIRS";; *-sco*) LOCKDIRS="/usr/spool/uucp $LOCKDIRS";; esac DIR_LOCKS= for i in $LOCKDIRS; do test -d $i && { DIR_LOCKS=$i; break; } done fi if [ -z "$DIR_LOCKS" ]; then DIR_LOCKS=/var/spool/uucp Note "WARNING, could not locate a directory for UUCP lock files," Note "guessing that UUCP lock files go in $DIR_LOCKS." else Note "Looks like UUCP lock files go in $DIR_LOCKS." fi # # Location of Adobe Font Metric files. # if [ -z "$DIR_AFM" ]; then DIR_AFMS=" /usr/lib/afm /usr/local/lib/afm /usr/local/lib/ghostscript/fonts /usr/gnu/lib/ghostscript/fonts /opt/gnu/lib/ghostscript/fonts /usr/lib/ghostscript/fonts /usr/lib/gnu/ghostscript/fonts " case $TARGET in *-irix*) DIR_AFMS="/usr/lib/DPS/AFM $DIR_AFMS";; *-bsdi*) DIR_AFMS="/usr/contrib/lib/flexfax/afm $DIR_AFMS";; *-sunos*) DIR_AFMS="/usr/openwin/lib/fonts/afm $DIR_AFMS";; esac DIR_AFM= for i in $DIR_AFMS; do test -d $i && { DIR_AFM=$i; break; } done fi if [ -z "$DIR_AFM" ]; then # put it where ghostscript normally puts things DIR_AFM=/usr/local/lib/ghostscript/fonts Note "WARNING, could not locate a directory with font metric information," Note "guessing that font metric information goes in $DIR_AFM." else Note "Looks like font metric information goes in $DIR_AFM." fi bitchExecutable() { echo "" echo "WARNING, $1 does not seem to be an executable program;" echo " you will need to correct this before starting up the fax server." echo "" } # # PostScript package and RIP location. # PickRIP() { if [ -z "$PATH_GSRIP" ]; then GSLOCS=" /usr/local/bin/gs /usr/contrib/bin/gs /usr/gnu/bin/gs /opt/gnu/bin/gs /usr/bin/gs " for i in $GSLOCS; do # verify Ghostscript was linked with the tiffg3 device driver capture "$i -h | grep tiffg3" && { PATH_GSRIP=$i; break; } done fi case $PS in dps) PATH_PSRIP=$PATH_DPSRIP;; imp) PATH_PSRIP=$PATH_IMPRIP;; gs) PATH_PSRIP=$PATH_GSRIP;; esac } CheckRIP() { if [ -x "$PATH_PSRIP" ]; then if [ $PS = gs ]; then # verify Ghostscript was linked with the tiffg3 device driver capture "$PATH_PSRIP -h | grep tiffg3" || cat<= 6.2 >/dev/null; then PS=gs; else PS=dps; fi ;; *) PS=gs;; esac fi Note "Looks like the $PS imager package should be used." PickRIP Note "Looks like $PATH_PSRIP is the PostScript RIP to use." CheckRIP # # Setup manual page-related stuff. # # Manual pages are processed according to: # 1. Section organization (BSD or System V) # 2. Pre-formatted (w/ nroff) or source. # 3. Compressed (compress, gzip, pack) or uncompressed. # 4. Whether or not the FlexFAX ``F'' suffix must be # stripped for pages to be found (only for 4F pages). # if [ -z "$DIR_MAN" ]; then MANPATH=" $MANPATH /usr/local/man /usr/contrib/man /usr/catman/local " DIR_MAN= for i in $MANPATH; do test -d $i && { DIR_MAN=$i; break; } done test -z "$DIR_MAN" && DIR_MAN=/usr/local/man fi Note "Looks like manual pages go in $DIR_MAN." if [ -z "$MANSCHEME" ]; then case $TARGET in *-bsdi*|*-netbsd*) MANSCHEME=bsd-nroff-gzip-0.gz;; *-freebsd*) MANSCHEME=bsd-source-cat;; *-linux*) MANSCHEME=bsd-source-cat;; *-ultrix*) MANSCHEME=bsd-source-cat;; *-sunos*) MANSCHEME=bsd-source-cat-strip;; *-sysv[234]*) MANSCHEME=sysv-source-cat-strip;; *-hpux*) MANSCHEME=sysv-source-cat-strip;; *-solaris*) MANSCHEME=sysv-source-cat-strip;; *-aix*) MANSCHEME=sysv-source-strip;; *-isc*|*-sco*) MANSCHEME=sysv-source-cat;; *-irix*) MANSCHEME=sysv-nroff-compress-Z;; *) # # Try to deduce the setup from existing manual pages. # XXX needs more work XXX # MANSCHEME=sysv-source-cat if [ -d /usr/share/man ]; then if [ -d /usr/share/man/u_man ]; then MANSCHEME=sysv-source-cat elif [ -d /usr/share/man/man8 ]; then MANSCHEME=bsd-source-cat fi elif [ -d /usr/share/catman ]; then if [ -d /usr/share/catman/u_man ]; then MANSCHEME=sysv-nroff-cat elif [ -d /usr/share/catman/man8 ]; then MANSCHEME=bsd-nroff-cat fi fi ;; esac fi Note "Looks like manual pages should be installed with $MANSCHEME." # # Figure out which brand of echo we have and define # prompt and print shell functions accordingly. # if [ `echo foo\\\c`@ = "foo@" ]; then prompt() { echo "$* \\c" } elif [ "`echo -n foo`@" = "foo@" ]; then prompt() { echo -n "$* " } else prompt() { echo "$*" } fi # # Prompt the user for a string that can not be null. # promptForNonNullStringParameter() { x="" val="$1" desc="$2" while [ -z "$x" ]; do prompt "$desc [$val]?"; read x if [ "$x" ]; then # strip leading and trailing white space x=`echo "$x" | sed -e 's/^[ ]*//' -e 's/[ ]*$//'` else x="$val" fi done param="$x" } # # Prompt the user for a numeric value. # promptForNumericParameter() { x="" val="$1" desc="$2" while [ -z "$x" ]; do prompt "$desc [$val]?"; read x if [ "$x" ]; then # strip leading and trailing white space x=`echo "$x" | sed -e 's/^[ ]*//' -e 's/[ ]*$//'` match=`expr "$x" : "\([0-9]*\)"` if [ "$match" != "$x" ]; then echo "" echo "This must be entirely numeric; please correct it." echo "" x=""; fi else x="$val" fi done param="$x" } promptForImagerPackage() { x="" while [ -z "$x" ]; do prompt "PostScript imager package [$PS]?"; read x if [ "$x" ]; then # strip leading and trailing white space x=`echo "$x" | sed -e 's/^[ ]*//' -e 's/[ ]*$//'` case "$x" in [dD]ps|DPS) x="dps";; [gG]s|[gG]host[sS]cript) x="gs";; imp) x="imp";; *) cat <--[-] where: is either "bsd" for BSD-style section organization (e.g. file formats in section 5) or "sysv" for System V-style organization (e.g. file formats in section 4). is either "nroff" to force installation of formatted materials (using nroff) or "source" to get the nroff source installed. is either the name of a program to compress the manual pages (gipz, compress, pack) or "cat" for uncompressed data. is either the file suffix to convert installed pages to (e.g. 0.gz for gzip-compressed pages under BSD) or "strip" to force the normal ".4f" suffix to be converted to ".4" (or ".5" if using the BSD organization). If no - is specified then filenames are not converted when they are installed. Common schemes are: bsd-nroff-gzip-0.gz compressed formatted pages for BSD bsd-source-cat nroff source w/ BSD organization sysv-source-cat-strip nroff source for SysV w/o .4f suffix sysv-source-cat nroff source for SysV as-is EOF x="";; esac else x="$MANSCHEME" fi done MANSCHEME="$x" } getPageSizeInfo() { pat=`grep '^default' $1 | \ sed -e 's/default[ ]*//' -e 's/[ ][ ]*/\[ \]*/g'` param=`grep "$pat" $1 | sed -e 's/ .*//;q'` } printConfig() { cat< accepts the displayed parameters." echo "A number lets you change the numbered parameter." echo "" ;; esac ok=skip done fi $RM config.cache; dumpvals |sort> config.cache case $MANSCHEME in bsd-source-*) MANAPPS=man1 MANSYS=man8 MANFILES=man5;; bsd-nroff-*) MANAPPS=cat1 MANSYS=cat8 MANFILES=cat5;; sysv-source-*) MANAPPS=man1 MANSYS=man1 MANFILES=man4;; sysv-nroff-*) MANAPPS=cat1 MANSYS=cat1 MANFILES=cat4;; esac case $MANSCHEME in bsd-*-strip) MANSEDLOCAL="-e s/4F/5/g -e s/1M/8/g";; bsd-*) MANSEDLOCAL="-e s/4F/5F/g -e s/1M/8C/g";; sysv-*-strip) MANSEDLOCAL="-e s/4F/4/g";; sysv-*) MANSEDLOCAL=;; esac case $MANSCHEME in *-source-*) MANCVT='${MANSED} $? >$@';; *-nroff-gzip-*) MANCVT='${MANSED} $? | nroff -man | gzip > $@';; *-nroff-pack-*) MANCVT='${MANSED} $? | nroff -man | pack > $@';; *-nroff-com*-*) MANCVT='${MANSED} $? | nroff -man | compress > $@';; *-nroff-cat-*) MANCVT='${MANSED} $? | nroff -man > $@';; esac case $MANSCHEME in *-0|*-0.gz|*-0.Z|*-gz|*-Z|*-z) suf=`echo $MANSCHEME | $SED 's/.*-/./'` A='`echo $$i | sed' B='`' # workaround shell bugs MANCAPPNAME="$A s/\\\\.1\$\$/$suf/$B" MANCFILENAME="$A s/\\\\.4f\$\$/$suf/$B" MANSAPPNAME="$A s/\\\\.1m\$\$/$suf/$B" MANSFILENAME="$A s/\\\\.4f\$\$/$suf/$B" ;; bsd-*-strip) MANCAPPNAME='$$i' MANCFILENAME='`echo $$i | sed s/\\.4f$$/.5/`' MANSAPPNAME='`echo $$i | sed s/\\.1m$$/.8/`' MANSFILENAME='`echo $$i | sed s/\\.4f$$/.5/`' ;; *-strip) MANCAPPNAME='$$i' MANCFILENAME='`echo $$i | sed s/\\.4f$$/.4/`' MANSAPPNAME='`echo $$i | sed s/\\.1m$$/.1/`' MANSFILENAME='`echo $$i | sed s/\\.4f$$/.4/`' ;; bsd-*) MANCAPPNAME='$$i' MANCFILENAME='`echo $$i | sed s/\\.4f$$/.5f/`' MANSAPPNAME='`echo $$i | sed s/\\.1m$$/.8c/`' MANSFILENAME='`echo $$i | sed s/\\.4f$$/.5f/`' ;; *) MANCAPPNAME='$$i' MANCFILENAME='$$i' MANSAPPNAME='$$i' MANSFILENAME='$$i' ;; esac Note "" if [ $GS = yes ]; then test -d $SRCDIR/gs || { Note "" Note "WARNING, no Ghostscript build directory exists; disabling building" Note "and installation of Ghostscript from source (GS=no)." Note "" GS=no } fi if [ $DPS = yes ]; then test -d $SRCDIR/dps || { Note "" Note "WARNING, no DPS build directory exists; disabling building" Note "and installation of ps2fax for IRIX (DPS=no)." Note "" DPS=no } fi if [ $IMP = yes ]; then test -d $SRCDIR/imp || { Note "" Note "WARNING, no Impressario build directory exists; disabling building" Note "and installation of the Impressario 2.1 back-end for IRIX (IMP=no)." Note "" IMP=no } fi if [ "$AFM" = auto ]; then if [ ! -f $DIR_AFM/Courier -a ! -f $DIR_AFM/Courier.afm ]; then Note "" Note "WARNING, no font metric files appear to be installed on your system, enabling" Note "installation of the default set of metric files included with this software." Note "" AFM=yes else AFM=no fi fi # # Convert default page size name to an entry that goes # in the pagesizes database file. # F=$SRCDIR/util/pagesizes test -f $F.in || { bitch "$F.in is missing; this should be part of the distribution." boom } DEFPAGESIZE=`grep "$PAGESIZE" $F.in | $SED -e 's/[^ ]*/default/;q'` x="`relativize ${LIBTIFF}`"; LIBTIFF="$x" x="`relativize ${LIBZ}`"; LIBZ="$x" x="`relativize ${LIBREGEX}`"; LIBREGEX="$x" x="`relativize ${LIBDB}`"; LIBDB="$x" # NB: these should be sorted alphabetically $RM confsed2; dumpvars "$VAR2" DEFPAGESIZE | sort > confsed2 SedConfigFiles() { for F do test -f $SRCDIR/$F.in || { bitch "$SRCDIR/$F.in is missing; this should be part of the distribution." boom } dir=`echo $F | $SED 's;/[^/]*$;;'` if [ $dir != $F ] && [ ! -d $dir ]; then Note "Creating $dir directory" $MKDIR $dir fi suffix=`echo $F | $SED 's/.*\.//'` if [ "$suffix" = h ]; then # # Compare old and new versions so that include files # are only updated when something has changed--this # saves time for subsequent makes. Note we screen # out use of @DATE@ 'cuz otherwise that'll mess up # the comparison (this assumes dates are used in lines # of the form DATE: @DATE@). # $RM $F.new; $SED -f confsed1 $SRCDIR/$F.in | $SED -f confsed2 > $F.new $RM confx; $SED '/DATE:/d' $F.new >confx $RM confy; $SED '/DATE:/d' $F >confy 2>/dev/null if cmp -s confx confy >/dev/null 2>&1; then $RM $F.new else Note "Creating $F from $SRCDIR/$F.in" $RM $F; $MV $F.new $F; $CHMOD 444 $F fi else Note "Creating $F from $SRCDIR/$F.in" if $SED -f confsed1 $SRCDIR/$F.in | $SED -f confsed2 >$F.new; then $RM $F; $MV $F.new $F; $CHMOD 444 $F else cat 1>&2 <$F.new failed. Aborting without cleaning up files so you can take a look... EOF exit 1 # NB: don't use boom/die fi fi done } # # Configuration File Generation # # The following files are created using the parameters determined above: # # defs master make include file for the source code # rules make definitions for building from source code # config.h master definitions compiled into code # */Makefile make rules files # port/install.sh SGI install program emulation script # port/mkdepend makefile dependency generator (if configured) # etc/faxsetup.sh script for setting up a machine # etc/faxaddmodem.sh script for adding/configuring a modem # etc/probemodem.sh script for probing a modem for its capabilities # etc/hylafax SysV-style init script for HylaFAX servers # util/xferstats.sh script for transmit statistics accounting # util/recvstats.sh script for receive statistics accounting # util/faxcron.sh script for cleaning up the spooling area (run from cron) # util/pagesizes client page dimensions database (has default page size) # CONF_FILES=" defs config.h rules Makefile config/Makefile etc/Makefile faxalter/Makefile faxcover/Makefile faxd/Makefile faxmail/Makefile faxrm/Makefile faxstat/Makefile hfaxd/Makefile man/Makefile sendfax/Makefile sendpage/Makefile util/Makefile port/install.sh etc/faxsetup.sh etc/faxaddmodem.sh etc/probemodem.sh etc/hylafax util/xferstats.sh util/recvstats.sh util/faxcron.sh util/pagesizes " SedConfigFiles $CONF_FILES test $DPS = yes && SedConfigFiles dps/Makefile test $GS = yes && SedConfigFiles gs/Makefile test $IMP = yes && SedConfigFiles imp/Makefile test "$MKDEPEND" != ":" && SedConfigFiles port/mkdepend test $SGI2FAX = yes && SedConfigFiles sgi2fax/Makefile test $PORT = yes && SedConfigFiles port/Makefile test $ZLIB = yes && SedConfigFiles zlib/Makefile test $REGEX = yes && SedConfigFiles regex/Makefile test $DBLIB = yes && SedConfigFiles dblib/Makefile test $AFM = yes && SedConfigFiles afm/Makefile if [ $HTML = yes ]; then HTMLDIRS=" html html/tools " for i in $HTMLDIRS; do # # NB: GNU sed/sh breaks when using the more conventional # attack, so we resort to this silliness... # SedConfigFiles `(cd $SRCDIR/$i; echo *.in) | \ $SED -e 's;\.in;;g' \ -e "s;Makefile;$i/&;g" \ -e "s;[^ ]*\.html;$i/&;g" \ -e "s;[^ ]*\.sh;$i/&;g"` done fi test -f $SRCDIR/MLA/VERSION && SedConfigFiles MLA/Makefile if [ "$MAKEDEPINCLUDE" != "sinclude" ]; then Note "Setting up make dependency files." # # Setup null make dependency files so that we can include # it w/o problem. Some systems have conditional include # support in their make, but others do not, so we use an # unconditional include and setup everthing as null here # DEPEND=". faxalter faxcover faxd faxmail faxrm faxstat hfaxd sendfax sendpage util man etc config " test $GS = yes && DEPEND="$DEPEND gs" test $SGI2FAX = yes && DEPEND="$DEPEND sgi2fax" test $PORT = yes && DEPEND="$DEPEND port" test $ZLIB = yes && DEPEND="$DEPEND zlib" test $REGEX = yes && DEPEND="$DEPEND regex" test $DBLIB = yes && DEPEND="$DEPEND dblib" test $AFM = yes && DEPEND="$DEPEND afm" if [ $HTML = yes ]; then DEPEND="$DEPEND html html/tools" fi test -f $SRCDIR/MLA/VERSION && DEPEND="$DEPEND MLA" test -d $SRCDIR/faxview -a -d faxview && DEPEND="$DEPEND faxview" for i in $DEPEND; do test -f $i/Makedepend || cp /dev/null $i/Makedepend done fi Note "Done." $RM $JUNK exit 0 D port" test $ZLIB = yes && DEPEND="$DEPEND zlib" test $REGEX = yes && DEPEND="$DEPEND regex" test $DBLIB = yes && DEPEND="$DEPEND dblib" test $AFM = yes && DEPEND="$DEPEND afm" if [ $HTML = yes ]; then DEPEND="$DEPEND html html/tools" fi test -f $SRCDIR/MLA/VERSION && DEPEND="$DEPEND MLA" test -d $SRCDIR/faxview -a -d faxview && DEPEND="$DEPEND faxview" for i in $DEPEND; do test -f $i/Makedepend || cp /dev/null $i/Makedepend hylafax-v4.0pl1/config.guess000555 004341 000024 00000031637 06246675462 015755 0ustar00samuser000000 000000 #!/bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Written by Per Bothner . # The master version of this file is at the FSF in /home/gd/gnu/lib. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit system type (host/target name). # # Only a few systems have been added to this list; please add others # (but try to keep the structure clean). # # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 8/24/94.) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in alpha:OSF1:V*:*) # After 1.2, OSF1 uses "V1.3" for uname -r. echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'` exit 0 ;; alpha:OSF1:*:*) # 1.2 uses "1.2" for uname -r. echo alpha-dec-osf${UNAME_RELEASE} exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit 0;; Pyramid*:OSx*:*:*) if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit 0 ;; sun4*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:*:*) # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit 0 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit 0 ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit 0 ;; mips:*:5*:RISCos) echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit 0 ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit 0 ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit 0 ;; AViiON:dgux:*:*) if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ -o ${TARGET_BINARY_INTERFACE}x = x ] ; then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi exit 0 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit 0 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit 0 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit 0 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit 0 ;; *:IRIX*:*:*) echo mips-sgi-irix${UNAME_RELEASE} exit 0 ;; i[34]86:AIX:*:*) echo i386-ibm-aix exit 0 ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then sed 's/^ //' << EOF >dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 rm -f dummy.c dummy echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit 0 ;; *:AIX:*:4) if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if grep bos410 /usr/include/stdio.h >/dev/null 2>&1; then IBM_REV=4.1 elif grep bos411 /usr/include/stdio.h >/dev/null 2>&1; then IBM_REV=4.1.1 else IBM_REV=4.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix exit 0 ;; *:BOSX:*:*) echo rs6000-bull-bosx exit 0 ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit 0 ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit 0 ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit 0 ;; 9000/[3478]??:HP-UX:*:*) case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/7?? | 9000/8?7 ) HP_ARCH=hppa1.1 ;; 9000/8?? ) HP_ARCH=hppa1.0 ;; esac HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; 3050*:HI-UX:*:*) sed 's/^ //' << EOF >dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 rm -f dummy.c dummy echo unknown-hitachi-hiuxwe2 exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?7:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit 0 ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit 0 ;; hp7??:OSF1:*:* | hp8?7:OSF1:*:* ) echo hppa1.1-hp-osf exit 0 ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit 0 ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit 0 ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit 0 ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit 0 ;; CRAY*X-MP:UNICOS:*:*) echo xmp-cray-unicos exit 0 ;; CRAY*Y-MP:UNICOS:*:*) echo ymp-cray-unicos exit 0 ;; CRAY-2:UNICOS:*:*) echo cray2-cray-unicos exit 0 ;; hp3[0-9][05]:NetBSD:*:*) echo m68k-hp-netbsd${UNAME_RELEASE} exit 0 ;; i[34]86:BSD/386:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit 0 ;; *:NetBSD:*:*) echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` exit 0 ;; *:GNU:*:*) echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; *:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux exit 0 ;; # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions # are messed up and put the nodename in both sysname and nodename. i[34]86:DYNIX/ptx:4*:*) echo i386-sequent-sysv4 exit 0 ;; i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*) if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} else echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE} fi exit 0 ;; i[34]86:*:3.2:*) if test -d /etc/conf/cf.d -a -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL else echo ${UNAME_MACHINE}-unknown-sysv32 fi exit 0 ;; Intel:Mach:3*:*) echo i386-unknown-mach3 exit 0 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit 0 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit 0 ;; M680[234]0:*:R3V[567]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0) uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4.3 && exit 0 ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4 && exit 0 ;; m680[234]0:LynxOS:2.2*:*) echo m68k-lynx-lynxos${UNAME_RELEASE} exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; i[34]86:LynxOS:2.2*:*) echo i386-lynx-lynxos${UNAME_RELEASE} exit 0 ;; TSUNAMI:LynxOS:2.2*:*) echo sparc-lynx-lynxos${UNAME_RELEASE} exit 0 ;; rs6000:LynxOS:2.2*:*) echo rs6000-lynx-lynxos${UNAME_RELEASE} exit 0 ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 cat >dummy.c </dev/null`; printf ("%s-next-nextstep%s\n", __ARCHITECTURE__, version==2 ? "2" : "3"); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-unknown-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) printf ("vax-dec-bsd\n"); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0 rm -f dummy.c dummy # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit 0 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; c34*) echo c34-convex-bsd exit 0 ;; c38*) echo c38-convex-bsd exit 0 ;; c4*) echo c4-convex-bsd exit 0 ;; esac fi #echo '(Unable to guess system type)' 1>&2 exit 1 { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysihylafax-v4.0pl1/config.h.in000444 004341 000024 00000025463 06246675462 015460 0ustar00samuser000000 000000 /* $Id: config.h.in,v 1.99 1996/08/19 19:01:27 sam Rel $ */ /* * Copyright (c) 1990-1996 Sam Leffler * Copyright (c) 1991-1996 Silicon Graphics, Inc. * HylaFAX is a trademark of Silicon Graphics * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission notice appear in * all copies of the software and related documentation, and (ii) the names of * Sam Leffler and Silicon Graphics may not be used in any advertising or * publicity relating to the software without the specific, prior written * permission of Sam Leffler and Silicon Graphics. * * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. * * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. */ /* * Warning, this file was automatically created by the HylaFAX configure script * * VERSION: @VERSION@ * DATE: @DATE@ * TARGET: @TARGET@ * CCOMPILER: @CCOMPILER@ * CXXCOMPILER: @CXXCOMPILER@ */ #ifndef _CONFIG_ #define _CONFIG_ #include "port.h" #define FAX_SPOOLDIR "@SPOOL@" /* pathname to top of spooling area */ #define FAX_CLIENTBIN "@BIN@" /* place for client apps */ #define FAX_LIBEXEC "@LIBEXEC@" /* place for lib executables */ #define FAX_LIBDATA "@LIBDATA@" /* place for lib data files */ /* * Client-server configuration definitions. * * There are currently 2 possible transport methods: INET * (TCP/IP sockets), and Unix (Unix-domain sockets). * The latter has some limitations but may be useful to folks * not working in a network environment. * * NB: The Unix-domain support is unfinished. */ #define FAX_USER "@FAXUID@" /* account name of the ``fax user'' */ #define FAX_SERVICE "hylafax" /* client-server service name */ #define FAX_PROTONAME "tcp" /* protocol used by client+server */ #define FAX_DEFPORT 4559 /* port to use if service is unknown */ #define FAX_DEFHOST "localhost" /* default host for inet-service */ #define FAX_DEFUNIX "/tmp/hyla.unix"/* default Unix-domain socket */ #ifndef CONFIG_INETTRANSPORT #define CONFIG_INETTRANSPORT 1 /* support for TCP/IP sockets */ #endif #ifndef CONFIG_UNIXTRANSPORT #define CONFIG_UNIXTRANSPORT 0 /* support for Unix domain sockets */ #endif #define FAX_TYPERULES "typerules" /* file type and conversion rules */ #define FAX_DIALRULES "dialrules" /* client dialstring conversion rules */ #define FAX_PAGESIZES "pagesizes" /* page size database */ #define FAX_COVER "faxcover.ps" /* prototype cover sheet file */ /* * System-wide configuration files for client applications (and * the hfaxd process) are located in the LIBDATA directory. Apps * look first for FAX_SYSCONF, possibly followed by an * application-specific configuration file (e.g. sendfax.conf), * followed by a per-user configuration file located (by default) * in the user's home directory (~). This multi-level scheme * is intended to simplify both site and user customization. */ #define FAX_SYSCONF FAX_LIBDATA "/hyla.conf" #define FAX_USERCONF "~/.hylarc" /* per-user configuration file */ /* * Server configuration definitions. * * The master spooling directory is broken up into several * subdirectories to isolate information that should be * protected (e.g. documents) and to minimize the number * of files in a single directory (e.g. the send queue). */ #define FAX_ARCHDIR "archive" /* subdir for archived jobs */ #define FAX_BINDIR "bin" /* subdir for server helper cmds */ #define FAX_CLIENTDIR "client" /* subdir for client FIFO files */ #define FAX_DOCDIR "docq" /* subdir for documents to send */ #define FAX_DONEDIR "doneq" /* subdir for completed jobs */ #define FAX_ETCDIR "etc" /* subdir for configuration files */ #define FAX_INFODIR "info" /* subdir for remote machine info */ #define FAX_LOGDIR "log" /* subdir for log files */ #define FAX_POLLDIR "pollq" /* subdir for pollable documents */ #define FAX_RECVDIR "recvq" /* subdir for received facsimiles */ #define FAX_SENDDIR "sendq" /* subdir for send description files */ #define FAX_STATUSDIR "status" /* subdir for server status files */ #define FAX_TMPDIR "tmp" /* subdir for temp copies of docs */ /* * Files that reside in FAX_DOCDIR, FAX_SENDDIR, FAX_RECVDIR, * FAX_POLLDIR, and FAX_ARCHDIR are named using sequence number * information that is kept in a sequence file in the specific * directory (e.g. docq/seqf for document files). */ #define FAX_SEQF "seqf" /* sequencing info filename */ /* * Job description files that reside in FAX_SENDDIR and * FAX_DONEDIR are named using the job identifier and a * prefix string (``q'' currently). */ #define FAX_QFILEPREF "q" /* prefix for job queue file */ /* * Configuration files that reside in the spooling area * are all named with a ``config'' prefix to uniquely * identify them. */ #define FAX_CONFIG FAX_ETCDIR "/config" /* * Send/recv logging information is written to an xferlog * file; currently in an ASCII format designed for processing * by programs like awk and perl. */ #define FAX_XFERLOG FAX_ETCDIR "/xferlog" /* * Client access to services on the server machine is controlled * by information in the ``hosts'' file. This is actually a * minsomer; the file has much more information than host names * (but it used to only have host-related information). */ #define FAX_PERMFILE FAX_ETCDIR "/hosts" /* * Server processes write various status information to files * that reside in the ``status'' directory. These files are * named, by convention using their device identifier ad an * ``info'' suffix (e.g. ttyf2.info). */ #define FAX_INFOSUF "info" /* suffix for server info files */ #define FAX_FIFO "FIFO" /* FIFO file for talking to daemon */ #define MODEM_ANY "any" /* any modem acceptable identifier */ #define FAX_PROTOVERS 2 /* old client-server protocol version */ /* NB: all times are given in seconds */ #define FAX_REQBUSY (3*60) /* requeue interval on busy answer */ #define FAX_REQPROTO (1*60) /* requeue interval on protocol error */ #define FAX_REQUEUE (5*60) /* requeue interval on other */ #define FAX_RETRIES 3 /* number times to retry send */ #define FAX_REDIALS 12 /* number times to dial phone */ #define FAX_TIMEOUT "now + 3 hours" /* default job timeout (at syntax) */ #define FAX_DEFVRES @DEFVRES@ /* default vertical resolution */ /* default is no email notification */ #define FAX_DEFNOTIFY SendFaxJob::no_notice #define FAX_DEFPRIORITY 127 /* default job priority */ /* * UUCP lock file support exists for both ASCII-style and * binary-style files. The difference refers to whether * the process ID's written to the lock file are written * in ASCII or binary. HylaFAX server programs can be * configured to use either through the configuration files * and there is also support for certain lock file naming * conventions required by different systems such as SCO * and SVR4. Consult the documentation for more details. */ #define UUCP_LOCKDIR "@UUCP_LOCKDIR@" /* directory for UUCP lock files */ #define UUCP_LOCKTYPE "@UUCP_LOCKTYPE@" /* UUCP lock file type */ #define UUCP_LOCKMODE 0444 /* UUCP lock file creation mode */ #define UUCP_PIDDIGITS 10 /* # digits to write to lock file */ /* * HylaFAX server processes that create UUCP lock files * check that the lock file owner exists and if they do * not they can be configured to automatically purge the * lock file. This operation is only done for lock files * that appear to be orphaned longer than some period of * time. The default value for this interval is 30 seconds * but it can be changed through the configuration files. * Setting this value to 0 disables this automatic purging * of UUCP lock files. */ #define UUCP_LCKTIMEOUT 30 /* UUCP lock auto-expiration (secs) */ /* * Default syslog facility. This value can be redefined * through the LogFaclity configuration parameters read * by all the server programs. */ #define LOG_FAX "daemon" /* logging identity */ /* * The pathnames of the getty, vgetty, and egetty programs * invoked by faxgetty to handle inbound data and voice * calls and for doing adaptive call type deduction. These * parameters are compiled into the binary to avoid possible * security problems. */ #ifndef _PATH_GETTY #define _PATH_GETTY "@PATHGETTY@" /* getty program for data call */ #endif #ifndef _PATH_VGETTY #define _PATH_VGETTY "@PATHVGETTY@" /* vgetty program for voice call */ #endif #ifndef _PATH_EGETTY #define _PATH_EGETTY "@PATHEGETTY@" /* egetty for deducing call type */ #endif /* * The default pathname for the Adobe Font Metric files * is compiled into util/TextFmt.o but can be overridden * through configuration files. */ #ifndef _PATH_AFMDIR #define _PATH_AFMDIR "@AFMDIR@" /* directory with AFM files */ #endif /* * The following commands are invoked by server processes * to do work that might need to be customized. Typically * these ``commands'' are shell scripts, but there's nothing * to stop them from being something else. * * Note that non-absolute pathnames must be given relative * to the top of the spooling area. */ #define FAX_NOTIFYCMD FAX_BINDIR "/notify" /* cmd to do job notification */ #define FAX_TRANSCMD FAX_BINDIR "/transcript"/* cmd to return transcript */ #define FAX_FAXRCVDCMD FAX_BINDIR "/faxrcvd" /* cmd to process a recvd fax */ #define FAX_POLLRCVDCMD FAX_BINDIR "/pollrcvd" /* cmd to process a recvd fax */ #define FAX_PS2FAXCMD FAX_BINDIR "/ps2fax" /* cmd to convert postscript */ #define FAX_PCL2FAXCMD FAX_BINDIR "/pcl2fax" /* cmd to convert PCL */ #define FAX_TIFF2FAXCMD FAX_BINDIR "/tiff2fax" /* cmd to convert TIFF */ #define FAX_COVERCMD FAX_BINDIR "/mkcover" /* cmd to make cont coverpage */ #define FAX_WEDGEDCMD FAX_BINDIR "/wedged" /* cmd to handle wedged modem */ /* * SNPP-related client-server definitions. */ #define SNPP_SERVICE "snpp" /* Simple Network Pager Protocol */ #define SNPP_PROTONAME "tcp" /* protocol used by client+server */ #define SNPP_DEFPORT 444 /* port to use if service is unknown */ #define SNPP_DEFHOST "localhost" /* default host for SNPP service */ /* default values for SNPP job scheduling and handling */ #define SNPP_DEFQUEUE FALSE /* default is synchronous delivery */ #define SNPP_DEFLEVEL 1 /* default service level */ #define SNPP_DEFRETRIES 3 /* number times to retry send */ #define SNPP_DEFREDIALS 12 /* number times to dial phone */ #define SNPP_DEFNOTIFY "none" /* default is no email notification */ #define SNPP_DEFPRIORITY 127 /* default job priority */ #endif nknown */ #define SNPP_DEFHOST "localhost" /* default host for SNPP service */ /* default values for SNPP job scheduling and handling */ #define SNPP_DEFQUEUE FALSE /* default is synchronous delivery */ #hylafax-v4.0pl1/config.sub000555 004341 000024 00000037676 06246675462 015431 0ustar00samuser000000 000000 #!/bin/sh # Configuration validation subroutine script, version 1.1. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # It is wrong to echo any other type of specification. # First pass through any local machine types. case $1 in *local*) echo $1 exit 0 ;; *) ;; esac # Separate what the user gave into CPU-COMPANY and OS (if any). basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp ) os= basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` ;; -lynx) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \ | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \ | powerpc | sparc64 | 1750a | dsp16xx | mips64 | mipsel \ | pdp11 | mips64el | mips64orion | mips64orionel ) basic_machine=$basic_machine-unknown ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \ | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \ | pdp11-* | sh-* | powerpc-* | sparc64-* | mips64-* | mipsel-* \ | mips64el-* | mips64orion-* | mips64orionel-* ) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-cbm ;; amigados) basic_machine=m68k-cbm os=-amigados ;; amigaunix | amix) basic_machine=m68k-cbm os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; balance) basic_machine=ns32k-sequent os=-dynix ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | ymp) basic_machine=ymp-cray os=-unicos ;; cray2) basic_machine=cray2-cray os=-unicos ;; crds | unos) basic_machine=m68k-crds ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; i370-ibm* | ibm*) basic_machine=i370-ibm os=-mvs ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i[345]86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` os=-sysv32 ;; i[345]86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` os=-sysv4 ;; i[345]86v) basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` os=-sysv ;; i[345]86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` os=-solaris2 ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; miniframe) basic_machine=m68000-convergent ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; np1) basic_machine=np1-gould ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pentium-*) # We will change tis to say i586 once there has been # time for various packages to start to recognize that. basic_machine=i486-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; ps2) basic_machine=i386-ibm ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; symmetry) basic_machine=i386-sequent os=-dynix ;; tower | tower-32) basic_machine=m68k-ncr ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; xmp) basic_machine=xmp-cray os=-unicos ;; xps | xps100) basic_machine=xps100-honeywell ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. mips) basic_machine=mips-mips ;; romp) basic_machine=romp-ibm ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sparc) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative must end in a *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ | -ptx* | -coff* | -winnt*) ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -ctix* | -uts*) os=-sysv ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -xenix) os=-xenix ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in *-acorn) os=-riscix1.2 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-ibm) os=-aix ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigados ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-masscomp) os=-rtu ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -lynxos*) vendor=lynx ;; -aix*) vendor=ibm ;; -hpux*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs*) vendor=ibm ;; -ptx*) vendor=sequent ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os riscix*) vendor=acorn ;; -sunos*) vendor=sun ;;hylafax-v4.0pl1/config.site000444 004341 000024 00000026050 06246675462 015561 0ustar00samuser000000 000000 # $Id: config.site,v 1.40 1996/11/23 17:28:45 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # This file holds site-specific configuration parameters. # # Nothing is defined in here by default, the definitions # commented out below serve as documentation for what you # can set in this file or a config.local file. # # Note that you do not need to set anything here unless you # want to override the auto-configuration behaviour and/or # interactive prompting done by the configure script. # # # Package controls. # #AFM="auto" # install AFM files (auto|yes|no) #DSO="auto" # configure DSO support (auto|IRIX|no) #GETTY="auto" # type of getty support (auto|BSD|SysV) #HTML="no" # install HTML documentation (yes|no) #PS="auto" # PostScript support to use (auto|gs|dps|imp) #SYSVINIT="auto" # install SysV-style init support (auto|yes|no) #SGI2FAX="auto" # configure SGI image support (auto|yes|no) #DPS="no" # install SGI DPS-based RIP (yes|no) #GS="no" # install Ghostscript RIP (yes|no) #IMP="no" # install SGI Impressario 2.1 support (yes|no) #REGEX="yes" # use distributed regular expression package #ZLIB="yes" # use distributed zlib distribution #UTMP="utmpx" # type of utmp+wtmp handling (auto|utmp|utmpx) #DBLIB="no" # use distributed libdb distribution # # Directory parameters. # #DIR_AFM="/usr/lib/DPS/AFM" # directory for AFM files #DIR_BIN="/usr/local/bin" # directory for client apps #DIR_LIBDATA="/usr/lib/fax" # directory for client data #DIR_LIBEXEC="/usr/lib/fax" # directory for libraries&hidden apps #DIR_MAN="/usr/local/man" # directory for manual pages #DIR_SPOOL="/var/spool/fax" # directory for spooling area #DIR_SBIN="/var/spool/fax/bin" # directory for system apps #DIR_LOCKS="/usr/spool/locks" # directory for UUCP lock files # # HTML-specific parameters; only used when the # HTML package is configured for installation. # # Note that ``PATH''s are the virtual pathnames used # in forming URLs; they are not directory pathnames # in the filesystem. # #DIR_HTML="/var/httpd/htdocs/hylafax" # directory for HTML documentation #DIR_CGI="/var/httpd/cgi-bin" # directory for CGI scripts #HTMLPATH="/hylafax" # virtual path to HTML materials #CGIPATH="/cgi-bin" # virtual path to CGI scripts # # Miscellaneous parameters. # #DEFVRES="196" # default vertical res for outbound fax #FILLORDER="MS2LSB" # bit order of cpu (MSB2LSB/LSB2MSB) #FAXGID="uucp" # group ID for fax user #FAXUID="uucp" # user ID for fax user #PAGESIZE="North American Letter" # default page size #SYSGID="sys" # group ID for system installs #SYSUID="bin # user ID for system installs #LOCKS="ansi" # default UUCP lockfile scheme # #PATH_GETTY="/etc/getty" # pathname of suitable getty program #PATH_VGETTY="/bin/vgetty" # pathname of voice getty program #PATH_EGETTY="/bin/egetty" # pathname of external getty program #PATH_SENDMAIL="/usr/lib/sendmail" # pathname of suitable sendmail program #PATH_GSRIP="/usr/local/bin/gs" # pathname of Ghostscript-based RIP #PATH_DPSRIP="/var/spool/fax/bin/ps2fax.exe" # pathname of DPS-based RIP #PATH_IMPRIP="/usr/lib/print/psrip" # pathname of Impressario 2.1 RIP #MANSCHEME="sysv-source-cat-strip" # manual page installation scheme # # Parameters used when building the software. # # Note that configure has several ENVOPTS built into it that are # set according to the target. This is done to help naive folks. # # Beware of changing the INSTALL definition; you *must* have an # install script that emulates the Silicon Graphics install program! # #AR="/bin/ar" # pathname of suitable ar program #AROPTS="rc" # options to ar for creating archive #CC="gcc" # name/pathname of C compiler #CXX="gcc" # name/pathname of C++ compiler #CXXFILE="-x c++" # options for proper C++ processing #ENVOPTS="-Aa" # options for getting ANSI C #GCOPTS="-g" # options to pass C compiler #GCXXOPTS="-g" # options to pass C++ compiler #GENDIST="/sbin/gendist" # pathname of SGI inst generator program #INSTALL='${SHELL} ${PORT}/install.sh' # SGI install program/emulator #LIBMALLOC="auto" # yes|no|auto configure -lmalloc use #LIBPORT='${PORT}/libport.a' # library with emulation code #LIBSUN="auto" # yes|no|auto configure -lsun use #LLDOPTS="" # extra link line options #MACHDEPLIBS="" # extra libraries for linking #PORTFUNCS="" # non-standard functions to emulate #PROTOTYPES="-prototypes" # C compiler options for checking function prototypes #RANLIB=":" # pathname of suitable ranlib program #SHDLIBC="-lc_s" # shared C library, if not standard #SIGHANDLERTYPES='(void(*)(int,...))' # types to check for signal handler #STRIP="/bin/strip" # strip program used by install.sh # # The source for the TIFF library is not required # to build this software, but the library is required # to link against. If libtiff is installed in a # non-standard location then setup LIBTIFF accordingly. # #LIBTIFF="-L/usr/local/lib -ltiff" # linkage convention for libtiff #TIFFINC="/usr/local/include" # place to find tiffio.h #TIFFBIN="/usr/local/bin" # where TIFF tools live # # The source for the ZLIB library is not required # to build this software, but the library is required # to link against. If the copy of the software that is # include in this distribution is not to be used then # set ZLIB=no and supply the following definitions. # #LIBZ="-L/usr/local/lib -lz" # linkage convention for libz #ZLIBINC="/usr/local/include" # place to find zlib.h # # The source for the POSIX regular expression package # is not required to build this software, but the package # is required to link against. If the copy of the software # that is included in this distribution is not to be used # then set REGEX=no and supply the following definitions. # #LIBREGEX=" " # linkage convention for regex package #REGEXINC="/usr/include" # place to find regex.h # # The LIBDB hashed database package is (currently) used # only by the MLA tools that are not publicly available # but which are built from within this source tree. In # the future the fax software may use the libdb software # for the remote client capabilities database (so these # hooks are included now). # # The source for the LIBDB hashed database package # is not required to build this software, but the package # is required to link against. If the copy of the software # that is included in this distribution is not to be used # then set DBLIB=no and supply the following definitions. # #LIBDB=" " # linkage convention for libdb package #DBLIBINC="/usr/include" # place to find db.h # # Parameters to control various workarounds for system bugs. # # These parameters are normally set in configure based on # the target system. If they are set here, then they will # override anything done by configure. # #CONFIG_OPENFIFO="O_RDONLY" # mode to open FIFOs in server proc's #CONFIG_FIFOBUG="yes" # enable workaround for FIFO select bug #CONFIG_SELECTBUG="no" # enable workaround for select problem #CONFIG_TIOCMBISBYREF="yes" # pass arg by reference to ioctl #CONFIG_WINSZHACK="no" # include extra files for TIOCWINSZ use #CONFIG_ABORTBUG="no" # enable workaround for abort problems #CONFIG_NOREOPEN="yes" # reopen tty device after toggling DTR #CONFIG_NOSTDINDUP="yes" # do not redirect stdout to stdin in ondelay #CONFIG_BADEXECVPROTO="no" # system has incorrect execv func decl #CONFIG_BADEXECVEPROTO="no" # system has incorrect execve func decl #CONFIG_BADGETOPTPROTO="no" # system has incorrect getopt func decl #CONFIG_SOCKARGLENTYPE="unsigned long" # call-by-ref arg type for socket funcs #CONFIG_BADSELECTPROTO="no" # system has way old select func decl #CONFIG_MAXGID="5999" # maximum permissable GID # # Dynamic Shared Object (DSO) support. # # Beware that adding new support for DSOs may require some # modifications to the */Makefile.dso files. # #DSOSUF="so" # DSO filename suffix #DSODELAY="-delay_load" # DSO option for delayed loading #DSOOPTS="-shared -rdata_shared" # options for building DSOs # # Makefile construction parameters. # # These should not normally be set; configure will # deduce the appropriate syntax to use for includes. # #MAKECXXOVERRIDE="=.C" # make override stuff for SunPRO C++ #MAKEDEPINCLUDE="include" # make include for dependency files #MAKEDSOINCLUDE="#" # make include for DSO support #MAKEINCLUDE=".include" # make include syntax #MAKELQUOTE="<" # make include syntax #MAKERQUOTE=">" # make include syntax #SETMAKE='MAKE = ${MAKE}' # define if make does not setup $MAKE #MKDEPCOPTS="" # C compiler opts to supply w/ -M #MKDEPCXXOPTS="" # C++ compiler opts to supply w/ -M # # General system stuff used by the distribution. # # Beware of setting these as configure selects several programs # based on whether or not they are capable of processing scripts # included in the distribution (e.g AWK and SCRIPT_SH, SED). # #AWK="/bin/awk" # pathname of suitable awk program #CAT="/bin/cat" # pathname of suitable cat program #CHGRP="/etc/chgrp" # pathname of suitable chgrp program #CHMOD="/etc/chmod" # pathname of suitable chmod program #CHOWN="/etc/chown" # pathname of suitable chown program #CMP="/bin/cmp" # pathname of suitable cmp program #COL="/bin/col" # pathname of suitable col program #CP="/bin/cp" # pathname of suitable cp program #ECHO="/bin/echo" # pathname of suitable echo program #GREP="/bin/grep" # pathname of suitable grep program #LN="/bin/ln" # pathname of suitable ln program #LN_S="-s" # option to ${LN} to create symlink #MAN="/usr/bin/man" # pathname of suitable man program #MKDIR="/bin/mkdir" # pathname of suitable mkdir program #MKFIFO="/bin/mkfifo" # pathname of suitable mkfifo program #MV="/bin/mv" # pathname of suitable mv program #MV_F="-f" # option to ${MV} to force operation #RMCMD="/bin/rm" # pathname of suitable rm program #SED="/bin/sed" # pathname of suitable sed program #SCRIPT_SH="/bin/sh" # pathname of suitable shell #SORT="/bin/sort" # pathname of suitable sort program o create symlink #MAN="/usr/bin/man" # pathname of suitable man program #MKDIR="/bin/mkdir" # pathname of suitable mkdir program #MKFIFO="/bin/mkfifo" # pathname of suitable mkfifo program #MV="/bin/mv" # pathname of suitable mv program #MV_F="-f" # option to ${MV} to force operation #RMCMD="/bin/rm" # pathname of suitable rm program #SED="/bin/sed" # pathname of suitable sed program #SCRIPT_SH="/bin/sh" # pathname of suitable shell #SORT="/bin/sorthylafax-v4.0pl1/defs.in000444 004341 000024 00000026122 06246675463 014700 0ustar00samuser000000 000000 # $Id: defs.in,v 1.22 1996/10/13 17:26:38 sam Rel $ # # @WARNING@ # # HylaFAX Facsimile Software # # Copyright (c) 1988-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # VERSION: @VERSION@ # DATE: @DATE@ # TARGET: @TARGET@ # CCOMPILER: @CCOMPILER@ # CXXCOMPILER: @CXXCOMPILER@ # @SETMAKE@ MAKEFILE = Makefile SHELL = @SCRIPT_SH@ # # Directory locations setup at configuration time. # Note that changing these parameters here is likely # to insufficient; you are better off rerunning the # configure script so that all uses are set correctly. # SPOOL = @SPOOL@ SBIN = @SBIN@ BIN = @BIN@ LIBDATA = @LIBDATA@ LIBEXEC = @LIBEXEC@ HTMLDIR = @HTMLDIR@ AFMDIR = @AFMDIR@ # TOPSRCDIR = @SRCDIR@ PORT = ${DEPTH}/port # # PostScript imaging support to setup for the default # installation. This should be one of "gs" or "dps" # according to whether Ghostscript or the DPS-based # SGI tool is to be used. # PSPACKAGE = @PSPACKAGE@ # # Basic tools used in the build process. # C++ = @CXXCOMPILER@ CC = @CCOMPILER@ AR = @AR@ AROPTS = @AROPTS@ RANLIB = @RANLIB@ MKDEPEND = @MKDEPEND@ # # Programs used during installation. # INSTALL = @INSTALL@ ECHO = @ECHO@ GREP = @GREP@ RM = @RM@ PWD = @PWD@ MKDIR = @MKDIR@ NAWK = @AWK@ SED = @SED@ SORT = @SORT@ # PRODUCT = hylafax GENDIST = @GENDIST@ # for SGI systems # # Uid&Gid for installing server stuff. Note that the server process # proper (/usr/etc/faxd or similar) must either run setuid root or # setuid uucp (i.e. fax and uucp must have the same uid). This is # so that the fax server can participate in the UUCP locking scheme # and thereby implement tty line sharing (i.e. share the same line # and modem for both fax and data). # FAXUSER = @FAXUID@ FAXGROUP = @FAXGID@ # # Ownership of system directories that might be created at install time # SYSUSER = @SYSUID@ SYSGROUP = @SYSGID@ DIRMODE = 755 # # Enable Dynamic Shared Object (DSO) support if appropriate. # # DSO is the suffix for a DSO file (e.g. ".so"). If DSO's are # not supported on a system then set this to ".a" to get static # linking of the appropriate libraries. # # DSOOPTS are options to CCF/C++F when creating a DSO. # DSODELAY is the option to supply when building a DSO with libraries # that should be ``lazy loaded'' (e.g. because they are infrequently # used) # LLDOPTS is intended to be used to pass options that force searching # for DSO's that are stuck in non-standard system locations # DSO = @DSOSUF@ DSOOPTS = @DSOOPTS@ DSODELAY = @DSODELAY@ LLDOPTS = @LLDOPTS@ # # Default optimizer and prototype options # OPTIMIZER = -O CVERSION = @ENVOPTS@ C++FILE = @CXXFILE@ # default definitions for programs--overide them as desired LIBS = ${LIBUTIL} ${LIBPORT} LLDLIBS = ${LIBS} ${LIBTIFF} ${LIBZ} ${LIBREGEX} ${MACHDEPLIBS} # # Override this definition to eliminate shared library use. # SHDLIBC = @SHDLIBC@ # # Libraries that may vary from machine to machine (especially if # you use GNU GCC instead of AT&T C++). # MACHDEPLIBS = @MACHDEPLIBS@ # # TIFF-related definitions. The source for the TIFF library # is not required to build this software, but you must have # the TIFF library installed somewhere on your system to link # against. If the default "-L /usr/local/lib -ltiff" is # insufficient to locate the library you can setup a config.local # file that defines LIBTIFF and/or TIFFINC (used to find tiffio.h) # TIFFINC = @TIFFINC@ LIBTIFF = @LIBTIFF@ TIFFBIN = @TIFFBIN@ # # zlib-related definitions. The source for the zlib library # is not required to build this software, but you must have # the zlib library installed somewhere on your system to link # against. If the default "-L /usr/local/lib -lz" is # insufficient to locate the library you can setup a config.local # file that defines LIBZ and/or ZINC (used to find zlib.h) # ZLIBINC = @ZLIBINC@ LIBZ = @LIBZ@ # # libdb-related definitions. The source for the libdb library # is not required to build this software, but you must have # the libdb library installed somewhere on your system to link # against. If the default "-L /usr/local/lib -ldb" is # insufficient to locate the library you can setup a config.local # file that defines LIBDB and/or DBINC (used to find db.h) # DBLIBINC = @DBLIBINC@ LIBDB = @LIBDB@ # # regex-related definitions. The source for the POSIX regular # expression package is not required to build this software, # but you must have the resulting library installed somewhere # on your system to link against. If the default value # "-L /usr/local/lib -lregex" is insufficient to locate the # library you can setup a config.local file that defines LIBREGEX # and/or REGEXINC # REGEXINC = @REGEXINC@ LIBREGEX = @LIBREGEX@ # random utility functions and classes UTIL = ${DEPTH}/util LIBUTIL = ${UTIL}/libfaxutil.${DSO} LIBPORT = @LIBPORT@ # # Definitions used by common rules. # COMMONRULES = ${DEPTH}/rules COMMONTARGS = clobber clean rmtargets depend incdepend # # C compiler flags are composed of variable (set on the command line), # local (defined in the makefile), and global (defined in this file) # parts, in that order. This ordering is used so that variable or # locally specified include directories are searched before the globally # specified ones. # CFLAGS = ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS} VCFLAGS = ${VCDEFS} ${VCINCS} ${VCOPTS} LCFLAGS = ${LCDEFS} ${LCINCS} ${LCOPTS} GCFLAGS = ${GCDEFS} ${GCINCS} ${GCOPTS} COPTS = ${VCOPTS} ${LCOPTS} ${GCOPTS} CDEFS = ${VCDEFS} ${LCDEFS} ${GCDEFS} CINCS = ${VCINCS} ${LCINCS} ${GCINCS} GCOPTS = @GCOPTS@ ${OPTIMIZER} @PROTOTYPES@ GCDEFS = @ANSICPP@ GCINCS = -I. -I${DEPTH} -I${SRCDIR} \ -I${DEPTH}/${TOPSRCDIR}/util -I${TIFFINC} -I${REGEXINC} # # C++ flags are decomposed using the same hierarchy as C flags. # C++FLAGS = ${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS} VC++FLAGS = ${VC++DEFS} ${VC++INCS} ${VC++OPTS} LC++FLAGS = ${LC++DEFS} ${LC++INCS} ${LC++OPTS} GC++FLAGS = ${GC++DEFS} ${GC++INCS} ${GC++OPTS} C++OPTS = ${VC++OPTS} ${LC++OPTS} ${GC++OPTS} C++DEFS = ${VC++DEFS} ${LC++DEFS} ${GC++DEFS} C++INCS = ${VC++INCS} ${LC++INCS} ${GC++INCS} GC++OPTS = @GCXXOPTS@ ${OPTIMIZER} GC++INCS = -I. -I${DEPTH} -I${SRCDIR} \ -I${DEPTH}/${TOPSRCDIR}/util -I${TIFFINC} -I${REGEXINC} GC++DEFS = @ANSICXXPP@ # # Loader flags, composed of library (-l's) and option parts, with # the libraries appearing last. Both of these are divided into variable, # local, and global parts. The composition of LDFLAGS is done in the # other "direction" from CFLAGS so that all the -L's, that are part of # LDOPTS, appear before any of the -l's, which are part of LDLIBS. # Another benefit of segregating the libraries from the remaining of the # loader options is that the libraries alone can easily be given to # another program, e.g., lint. # # Notes: # - If a program should not be linked with the shared version of libc, # then its make file should override the setting of SHDLIBC with a # line such as "SHDLIBC=". # LDFLAGS = ${LDOPTS} ${LDLIBS} LDOPTS = ${VLDOPTS} ${LLDOPTS} ${GLDOPTS} LDLIBS = ${VLDLIBS} ${LLDLIBS} ${GLDLIBS} GLDOPTS = -L/usr/local/lib GLDLIBS = ${SHDLIBC} # # Convenient command macros that include the flags macros. # C++F = ${C++} ${C++FLAGS} CCF = ${CC} ${CFLAGS} # # Shell script for generating make dependencies. MKDEPEND is a shorthand # for the tool's absolute pathname. MKDEPENDC adds MKDEPCFLAGS and the -c # mkdepend option to this. The other language's mkdepend variables try to # include their language's name in the variable names. Unfortunately, a # lot of makefiles already use the nondescript LMKDEPFLAGS for C language # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}. # MKDEPENDC++ = ${MKDEPEND} ${MKDEPC++FLAGS} -c \ "${C++F} ${C++FILE} -c -M @MKDEPCXXOPTS@" MKDEPENDC = ${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -c -M @MKDEPCOPTS@" MKDEPC++FLAGS = ${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS} MKDEPCFLAGS = ${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS} LMKDEPCFLAGS = ${LMKDEPFLAGS} GMKDEPFLAGS = -e 's@ ${INCLDIR}/@ $${INCLDIR}/@' GMKDEPC++FLAGS = ${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @' GMKDEPCFLAGS = ${GMKDEPFLAGS} # # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds # single-source programs using null suffix rules (e.g., .c:}. This option # works for both C and C++ make depend. # NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@' # # MKDEPFILE is the name of the dependency database, included by rules. # MKDEPFILE = Makedepend # # CDEPFILES lists all C or cc-compiled source files that depend on header # files computable by ${MKDEPENDC}. C++DEPFILES lists all C++ files having # dependencies computable by ${MKDEPENDC++}. # C++DEPFILES = ${C++FILES} CDEPFILES = ${CFILES} DEPFILES = ${C++DEPFILES} ${CDEPFILES} # # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above). # INCLDIR = /usr/include # # Manual-related controls: # # MAN head of manual tree # MANAPPS subdirectory for client stuff in BIN # MANSYS subdirectory for server & server-related apps # MANFILES subdirectory for file format info # MAN = @MANDIR@ MANAPPS = @MANAPPS@ MANSYS = @MANSYS@ MANFILES = @MANFILES@ # # MANSEDLOCAL additional sed commands to use during source transformation # (might want to transform section names here) # MANCVT command to convert source to installable target (can use # $? and $@, but not $<) MANSEDLOCAL = @MANSEDLOCAL@ MANCVT = @MANCVT@ # # The following macros are used during the install step to generate # the filenames of the target manual pages. They appear inside a # shell for loop in a command of the form: # # f=${MAN*NAME} # # where the variable ``i'' contains the filename of the formatted # manual page (formatted according to the MANCVT macro). # # MANCAPPNAME generate installed client app man page filename # MANCFILENAME generate installed client file format man page filename # MANSAPPNAME generate installed server app man page filename # MANSFILENAME generate installed server file format man page filename # # MANCAPPNAME = @MANCAPPNAME@ MANCFILENAME = @MANCFILENAME@ MANSAPPNAME = @MANSAPPNAME@ MANSFILENAME = @MANSFILENAME@ # where the variable ``i'' contains the filename of the formatted # manual page (formatted according to the MANCVT macro). # # MANCAPPNAME generate installed client app man page filename # MANCFILENAME generate installed client file format man page filename # MANSAPPNAME generate installed server app man page filename # MANSFILENAME generate installed server file format man page filename # # MANCAPPNAME = @MANCAPPNAME@ MANCFIhylafax-v4.0pl1/Makefile.in000444 004341 000024 00000022000 06246675463 015463 0ustar00samuser000000 000000 #!smake # $Id: Makefile.in,v 1.49 1996/06/24 02:57:34 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1988-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # @WARNING@ # # VERSION: @VERSION@ # DATE: @DATE@ # TARGET: @TARGET@ # CCOMPILER: @CCOMPILER@ # CXXCOMPILER: @CXXCOMPILER@ # COMMONPREF=fax DEPTH = . @MAKEINCLUDE@ @MAKELQUOTE@defs@MAKERQUOTE@ SRCDIR = ${TOPSRCDIR}/${DEPTH} DIRS= util \ faxalter \ faxcover \ faxd \ faxmail \ faxrm \ faxstat \ hfaxd \ sendfax \ sendpage \ \ config \ etc \ man DSODIRS = util faxd TARGETS=hylafax default all ${TARGETS}: @${MAKE} -f ${MAKEFILE} dirs @MAKEINCLUDE@ @MAKELQUOTE@rules@MAKERQUOTE@ dirs:: @if [ "@PORT@" = yes ]; then \ ${ECHO} "= "port; cd port; ${MAKE}; \ else \ true; \ fi @if [ "@ZLIB@" = yes ]; then \ ${ECHO} "= "zlib; cd zlib; ${MAKE}; \ else \ true; \ fi @if [ "@REGEX@" = yes ]; then \ ${ECHO} "= "regex; cd regex; ${MAKE}; \ else \ true; \ fi @for i in ${DIRS}; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE}); \ done @if [ "@SGI2FAX@" = yes ]; then \ ${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE}; \ else \ true; \ fi @if [ "@HTML@" = yes ]; then \ ${ECHO} "= "html; cd html; ${MAKE}; \ else \ true; \ fi @if [ "@DPS@" = yes ]; then \ ${ECHO} "= "dps; cd dps; ${MAKE}; \ else \ true; \ fi @if [ "@IMP@" = yes ]; then \ ${ECHO} "= "imp; cd imp; ${MAKE}; \ else \ true; \ fi @if [ "@GS@" = yes ]; then \ ${ECHO} "= "gs; cd gs; ${MAKE}; \ else \ true; \ fi depend:: @if [ "@PORT@" = yes ]; then \ ${ECHO} "= "port; cd port; ${MAKE} depend; \ else \ true; \ fi @if [ "@ZLIB@" = yes ]; then \ ${ECHO} "= "zlib; cd zlib; ${MAKE} depend; \ else \ true; \ fi @if [ "@REGEX@" = yes ]; then \ ${ECHO} "= "regex; cd regex; ${MAKE} depend; \ else \ true; \ fi @for i in ${DIRS}; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE} depend); \ done @if [ "@SGI2FAX@" = yes ]; then \ ${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} depend; \ else \ true; \ fi @if [ "@HTML@" = yes ]; then \ ${ECHO} "= "html; cd html; ${MAKE} depend; \ else \ true; \ fi clean:: @if [ "@PORT@" = yes ]; then \ ${ECHO} "= "port; cd port; ${MAKE} clean; \ else \ true; \ fi @if [ "@ZLIB@" = yes ]; then \ ${ECHO} "= "zlib; cd zlib; ${MAKE} clean; \ else \ true; \ fi @if [ "@REGEX@" = yes ]; then \ ${ECHO} "= "regex; cd regex; ${MAKE} clean; \ else \ true; \ fi @for i in ${DIRS}; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE} clean); \ done @if [ "@SGI2FAX@" = yes ]; then \ ${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} clean; \ else \ true; \ fi @if [ "@HTML@" = yes ]; then \ ${ECHO} "= "html; cd html; ${MAKE} clean; \ else \ true; \ fi @if [ "@DPS@" = yes ]; then \ ${ECHO} "= "dps; cd dps; ${MAKE} clean; \ else \ true; \ fi @if [ "@IMP@" = yes ]; then \ ${ECHO} "= "imp; cd imp; ${MAKE} clean; \ else \ true; \ fi @if [ "@GS@" = yes ]; then \ ${ECHO} "= "gs; cd gs; ${MAKE} clean; \ else \ true; \ fi clobber:: (cd util; ${MAKE} clobberconfig) (cd etc; ${MAKE} clobberconfig) @if [ "@PORT@" = yes ]; then \ ${ECHO} "= "port; cd port; ${MAKE} clobberconfig; ${MAKE} clobber; \ else \ true; \ fi @if [ "@ZLIB@" = yes ]; then \ ${ECHO} "= "zlib; cd zlib; ${MAKE} clobber; \ else \ true; \ fi @if [ "@REGEX@" = yes ]; then \ ${ECHO} "= "regex; cd regex; ${MAKE} clobber; \ else \ true; \ fi @for i in ${DIRS}; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE} clobber); \ done @if [ "@SGI2FAX@" = yes ]; then \ ${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} clobber; \ else \ true; \ fi @if [ "@AFM@" = yes ]; then \ ${ECHO} "= "afm; cd afm; ${MAKE} clobber; \ else \ true; \ fi @if [ "@HTML@" = yes ]; then \ ${ECHO} "= "html; cd html; ${MAKE} clobber; \ else \ true; \ fi -${RM} -f Makedepend port.h config.h config.log config.cache distclean: clobber @if [ "@DPS@" = yes ]; then \ ${ECHO} "= "dps; cd dps; ${MAKE} distclean; \ else \ true; \ fi @if [ "@IMP@" = yes ]; then \ ${ECHO} "= "imp; cd imp; ${MAKE} distclean; \ else \ true; \ fi @if [ "@GS@" = yes ]; then \ ${ECHO} "= "gs; cd gs; ${MAKE} distclean; \ else \ true; \ fi -${RM} -f defs rules Makefile makeClientDirs:: -${INSTALL} -u ${SYSUSER} -g ${SYSGROUP} -m ${DIRMODE} \ -idb hylafax.sw.client -dir \ ${BIN} ${LIBDATA} ${LIBEXEC} makeServerDirs:: -${INSTALL} -u ${SYSUSER} -g ${SYSGROUP} -m ${DIRMODE} \ -idb hylafax.sw.server -dir ${SBIN}; -${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m ${DIRMODE} \ -idb hylafax.sw.server -dir ${SPOOL} -${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m ${DIRMODE} \ -idb hylafax.sw.server -dir \ -F ${SPOOL} bin client config dev etc info log recvq status -${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m 700 \ -idb hylafax.sw.server -dir \ -F ${SPOOL} sendq doneq docq tmp pollq archive makeDirs: makeClientDirs makeServerDirs makeDevices:: ${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m 600 -fifo \ -idb hylafax.sw.server -F ${SPOOL} FIFO install: makeDirs makeDevices ${INSTALL} -m 444 -F ${SPOOL} -idb hylafax.sw.server \ -src ${SRCDIR}/COPYRIGHT -O COPYRIGHT @if [ "@ZLIB@" = yes ]; then \ ${ECHO} "= "zlib; cd zlib; ${MAKE} install; \ else \ true; \ fi @if [ "@REGEX@" = yes ]; then \ ${ECHO} "= "regex; cd regex; ${MAKE} install; \ else \ true; \ fi @for i in ${DIRS}; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE} install); \ done @if [ "@SGI2FAX@" = yes ]; then \ ${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} install; \ else \ true; \ fi @if [ "@DSO@" != no ]; then \ for i in ${DSODIRS}; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE} installDSO); \ done; \ if [ "@ZLIB@" = yes ]; then \ ${ECHO} "= "zlib; cd zlib; ${MAKE} installDSO; \ else \ true; \ fi; \ else \ true; \ fi @if [ "@SYSVINIT@" = yes ]; then \ ${ECHO} "= "etc; cd etc; ${MAKE} installSysVInit; \ else \ true; \ fi @if [ "@AFM@" = yes ]; then \ ${ECHO} "= "afm; cd afm; ${MAKE} install; \ else \ true; \ fi @if [ "@HTML@" = yes ]; then \ ${ECHO} "= "html; cd html; ${MAKE} install; \ else \ true; \ fi @if [ "@DPS@" = yes ]; then \ ${ECHO} "= "dps; cd dps; ${MAKE} install; \ else \ true; \ fi @if [ "@IMP@" = yes ]; then \ ${ECHO} "= "imp; cd imp; ${MAKE} install; \ else \ true; \ fi @if [ "@GS@" = yes ]; then \ ${ECHO} "= "gs; cd gs; ${MAKE} install; \ else \ true; \ fi CLIENTDIRS=\ faxalter \ faxcover \ faxmail \ faxrm \ faxstat \ sendfax \ sendpage installClient: makeClientDirs @for i in ${CLIENTDIRS}; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE} install); \ done @if [ "@SGI2FAX@" = yes ]; then \ ${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} install; \ else \ true; \ fi @for i in util man; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE} installClient); \ done @if [ "@DSO@" != no ]; then \ for i in util; do \ (${ECHO} "= "$$i; cd $$i; ${MAKE} installDSO); \ done; \ if [ "@ZLIB@" = yes ]; then \ ${ECHO} "= "zlib; cd zlib; ${MAKE} installDSO; \ else \ true; \ fi; \ else \ true; \ fi @if [ "@AFM@" = yes ]; then \ ${ECHO} "= "afm; cd afm; ${MAKE} install; \ else \ true; \ fi product:: test -d dist || ${MKDIR} dist ${RM} -f dist/rawidb SRC=`${PWD}` RAWIDB=`${PWD}`/dist/rawidb ${MAKE} install ${RM} -f dist/idb ${SORT} -u +4 dist/rawidb > dist/idb ${GENDIST} -v -dist dist -idb dist/idb -sbase `pwd` -spec ${SRCDIR}/dist/hylafax.spec dist.inst: VERSION="v`cat ${SRCDIR}/VERSION``awk '{print $$3}' ${SRCDIR}/dist/hylafax.alpha`"; \ rm -f $$VERSION.inst.tar; \ tar cf $$VERSION.inst.tar \ dist/hylafax \ dist/hylafax.idb \ dist/hylafax.sw \ dist/hylafax.html \ dist/hylafax.man @MAKEINCLUDE@ @MAKELQUOTE@${SRCDIR}/distrules@MAKERQUOTE@ hylafax-v4.0pl1/rules.in000444 004341 000024 00000014305 06246675463 015111 0ustar00samuser000000 000000 # $Id: rules.in,v 1.18 1996/06/24 02:57:40 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1988-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # Warning, this file was automatically created by the HylaFAX configure script # # VERSION: @VERSION@ # DATE: @DATE@ # TARGET: @TARGET@ # CCOMPILER: @CCOMPILER@ # CXXCOMPILER: @CXXCOMPILER@ # # # Common makefile rules. # # - After including defs, a makefile should say # ``include ${COMMONRULES}'' to get this file. # - It is up to the including makefile to define a default rule before # including ${COMMONRULES}. # - This file defines the following lists: SOURCES, enumerating all # source files; OBJECTS, the .o files derived from compilable source; # and DIRT, which lists intermediates and temporary files to be # removed by clean. # - The including (parent) makefile may define source file lists for each # standard suffix: CFILES for .c, etc. This file combines all such # lists into SOURCES. # - The parent makefile must define TARGETS in order for clobber to work. # SOURCES= ${HFILES} ${C++FILES} ${CFILES} ${SHFILES} OBJECTS= ${C++FILES:.c++=.o} ${CFILES:.c=.o} # # C++ inference rules. # .SUFFIXES: .c++ .yuk .c++: ${C++F} ${C++FILE} $<@MAKECXXOVERRIDE@ ${LDFLAGS} -o $@ .c++.o: ${C++F} ${C++FILE} -c $<@MAKECXXOVERRIDE@ .c++.s: ${C++F} ${C++FILE} -S $<@MAKECXXOVERRIDE@ .c++.i: ${C++F} ${C++FILE} -E $<@MAKECXXOVERRIDE@ > $*.i .c++.yuk: ${C++F} ${C++FILE} -Fc -.yuk $<@MAKECXXOVERRIDE@ # # Rather than removing ${OBJECTS}, clean removes ${CLEANOBJECTS} which we # set to *.[ou] by default, to remove obsolete objects and -O3 ucode files # after source has been reorganized. If files ending in .[ou] should not # be removed by clean, this definition can be overridden after the include # of commonrules to define CLEANOBJECTS=${OBJECTS}. # CLEANOBJECTS= *.[ou] # # What gets cleaned, apart from objects. # DIRT= ${GDIRT} ${VDIRT} ${LDIRT} GDIRT= a.out core ${_FORCE} # # An always-unsatisfied target. # _FORCE= ${COMMONPREF}_force ${_FORCE}: # # File removal rules: there are three. # - clean removes intermediates and dirt # - clobber removes targets as well as intermediates and dirt # - rmtargets removes targets only # If you use incdepend (see below), then 'make clobber' will remove the # .*dependtime marker files used by incdepend to find modified ${DEPFILES}. # .PRECIOUS: .sdependtime .c++dependtime .cdependtime ${COMMONPREF}clobber: ${COMMONPREF}clean ${COMMONPREF}rmtargets ${_FORCE} -${RM} -rf Makefile ${MKDEPFILE} .*dependtime .*incdepend so_locations ${COMMONPREF}distclean: ${COMMONPREF}clobber ${COMMONPREF}clean: ${_FORCE} -${RM} -rf ${CLEANOBJECTS} ${DIRT} ${COMMONPREF}rmtargets: ${_FORCE} -${RM} -rf ${TARGETS} # # Automated header dependency inference. Most makefiles need only set the # CFILES, etc. lists and include commonrules. # ${COMMONPREF}depend: ${_FORCE} @Clist="${C++DEPFILES}" clist="${CDEPFILES}"; \ case "$$Clist" in \ *.*) \ ${ECHO} "${MKDEPENDC++} ${MKDEPFILE} $$Clist"; \ ${MKDEPENDC++} ${MKDEPFILE} $$Clist; \ touch .c++dependtime; \ esac; \ case "$$clist" in \ *.*) \ ${ECHO} "${MKDEPENDC} ${MKDEPFILE} $$clist"; \ ${MKDEPENDC} ${MKDEPFILE} $$clist; \ touch .cdependtime; \ esac _c++depend: ${C++DEPFILES} ${_FORCE} ${C++F} -M ${C++DEPFILES} | ${RAWDEPFILTER}; \ touch .c++incdepend _cdepend: ${CDEPFILES} ${_FORCE} ${CCF} -M ${CDEPFILES} | ${RAWDEPFILTER}; \ touch .cincdepend # # Incremental depend uses marker files to find ${DEPFILES} that are newer # than their dependencies. Note that the non-incremental rules, above, also # touch the marker files. # # XXX can't run only one sub-make that depends on all .*dependtime, because # XXX smake will parallelize and mkdepend doesn't interlock itself # ${COMMONPREF}incdepend: ${_FORCE} @Clist="${C++DEPFILES}" clist="${CDEPFILES}"; \ case "$$Clist" in \ *.*) \ ${MAKE} -f ${MAKEFILE} _quiet.c++dependtime; \ esac; \ case "$$clist" in \ *.*) \ ${MAKE} -f ${MAKEFILE} _quiet.cdependtime; \ esac # so that make doesn't announce "`.sdependtime' is up to date." _quiet.c++dependtime: .c++dependtime _quiet.cdependtime: .cdependtime .c++dependtime: ${C++DEPFILES} @if test -n "$?"; then \ ${ECHO} "${MKDEPENDC++} -i ${MKDEPFILE} $?"; \ ${MKDEPENDC++} -i ${MKDEPFILE} $?; \ touch $@; \ fi .cdependtime: ${CDEPFILES} @if test -n "$?"; then \ ${ECHO} "${MKDEPENDC} -i ${MKDEPFILE} $?"; \ ${MKDEPENDC} -i ${MKDEPFILE} $?; \ touch $@; \ fi # you can't add dependencies to a target that begins with '.' _c++incdepend: .c++incdepend _cincdepend: .cincdepend .c++incdepend: ${C++DEPFILES} @if test -n "$?"; then \ ${C++F} -M $? | ${RAWDEPFILTER}; \ touch $@; \ fi .cincdepend: ${CDEPFILES} @if test -n "$?"; then \ ${CCF} -M $? | ${RAWDEPFILTER}; \ touch $@; \ fi # # A sed filter that prepends ${VPATH} to object targets emitted by cc -M. # ${VPATH} should name a directory that holds product-dependent objects. # RAWDEPFILTER= sed -e 's:^:${VPATH}/:' # # Include the make dependency file if it exists. # @MAKEDEPINCLUDE@ @MAKELQUOTE@${MKDEPFILE}@MAKERQUOTE@ ${C++DEPFILES} @if test -n "$?"; then \ ${C++F} -M $? | ${RAWDEPFILTER}; \ touch $@; \ fi .cincdepend: ${CDEPFILES} @if test -n "$?"; then \ ${CCF} -M $? | ${RAWDEPFILTER}; \ touch $@; \ fi # # A sed filter that prepends ${VPATH} to object targets emitted by cc -M. # ${VPATH} should name ahylafax-v4.0pl1/distrules000444 004341 000024 00000052401 06246675463 015367 0ustar00samuser000000 000000 # $Id: distrules,v 1.315 1996/09/30 22:28:09 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1988-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # HylaFAX distribution rules. # PORTFILES=\ port/Makefile.in \ port/install.sh.in \ port/mkdepend.in \ port/cuserid.c \ port/flock.c \ port/ftruncate.c \ port/getopt.c \ port/mkstemp.c \ port/random.c \ port/setegid.c \ port/seteuid.c \ port/setvbuf.c \ port/srandom.c \ port/strcasecmp.c \ port/strtod.c \ port/strtoul.c \ port/syslog.c \ port/vsyslog.c \ port/writev.c \ port/irix/so_locations \ ${NULL} # # Files the comprise the html part of the distribution. # HTMLFILES=\ html/Makefile.in \ \ html/HOWTO.html \ html/binary.html \ html/building.html \ html/documentation.html \ html/ghostscript.html \ html/index.html \ html/ixotap.html \ html/mailing-lists.html \ html/operation.html \ html/overview.html \ html/sam.html \ html/setup.html \ html/setup-advanced.html \ html/setup-client.html \ html/source.html \ html/survey.html \ html/toc.html \ html/troubleshooting.html \ html/upgrade4.0.html \ html/v2.3beta036.html \ html/Majordomo/help.html \ html/Modems/index.html \ html/Modems/att-dataport.html \ html/Modems/digicom-scout.html \ html/Modems/everex-2496d.html \ html/Modems/hayes-optima2400.html \ html/Modems/multitech-1432.html \ html/Modems/multitech-1932.html \ html/Modems/nuvo-96424pfx.html \ html/Modems/ppi-pm14400fxmt.html \ html/Modems/supra-v32bis.html \ html/Modems/telebit-t3000.html \ html/Modems/twincom-144df.html \ html/Modems/ucom-traveller96.html \ html/Modems/usr-courier.html \ html/Modems/usr-sportster.html \ html/Modems/zyxel-1496.html \ html/Modems/Telebit/faxcmds.html \ html/Modems/ZyXEL/autodetect.html \ html/Modems/ZyXEL/codes.html \ html/Modems/ZyXEL/commands.html \ html/Modems/ZyXEL/compression.html \ html/Modems/ZyXEL/examples.html \ html/Modems/ZyXEL/voice.html \ \ html/acknowledge.html \ html/class1.html \ html/class2.0.html \ html/class2.html \ html/contrib.html \ html/copyright.html \ html/faxgateway.html \ html/hylafax3.0.html \ html/hylafax4.0.html \ html/install-source.html \ html/modems.html \ html/namechange.html \ html/survey-help.html \ html/survey-query.html \ html/version.html \ html/ftpmail-help.html \ html/v2.3beta036special.html \ html/v3.0beta096.html \ html/v3.0beta100.html \ html/v3.0beta108.html \ html/v3.0beta110.html \ html/v3.0beta111.html \ html/v3.0beta112.html \ html/v3.0beta113.html \ html/v3.0beta114.html \ html/v4.0beta005.html \ html/v4.0beta006.html \ html/v4.0beta007.html \ html/v4.0beta008.html \ html/v4.0beta009.html \ html/v4.0beta010.html \ html/v4.0beta011.html \ html/v4.0beta012.html \ html/v4.0beta013.html \ html/v4.0beta014.html \ html/v4.0beta015.html \ html/v4.0beta018.html \ html/v4.0beta020.html \ html/v4.0beta021.html \ html/v4.0beta022.html \ html/Modems/Supra/class2.html \ html/Modems/Supra/class1.html \ html/Modems/Hayes/hayes.html \ \ html/tools/Makefile.in \ html/tools/man2html.c \ html/tools/unquote.c \ html/tools/manpage.sh.in \ html/tools/faxsurvey.sh.in \ ${NULL} # # Files that are makeup the HylaFAX # source distribution, except for HTML # and manual pages. # HYLAFAXSRC=\ VERSION \ README \ TODO \ COPYRIGHT \ configure \ config.guess \ config.h.in \ config.sub \ config.site \ defs.in \ Makefile.in \ rules.in \ distrules \ dist/hylafax.spec \ dist/newalpha \ dist/newversion \ config/Makefile.in \ config/att-dataport \ config/att-dataport-2 \ config/att-dataport-2.0 \ config/cirrus \ config/class1 \ config/class2 \ config/class2.0 \ config/dsi-scout+ \ config/e-tech \ config/everex-2496d \ config/exar \ config/gvc-288 \ config/gvc-288-2 \ config/intel-400e \ config/mt-1432 \ config/moto-288 \ config/nuvo-voyager \ config/ppi-pm14400fxmt \ config/ppi-pm14400fxsa \ config/rc144ac \ config/rc144ac-1 \ config/rc288dpi \ config/rc288dpi-1 \ config/rc32acl \ config/rc32acl-1 \ config/rockwell \ config/skel \ config/telebit-qblazer \ config/telebit-t3000 \ config/telebit-wb \ config/tricom2842 \ config/uds-fastalk \ config/usr-2.0 \ config/usr-rts \ config/usr-xon \ config/zyxel-1496e \ config/zyxel-1496e-1 \ config/zyxel-1496e-2.0 \ config/zyxel-2864 \ etc/Makefile.in \ etc/copy.h \ etc/copy.m \ etc/copy.ps \ etc/dialrules \ etc/dialrules.sf-ba \ etc/dialrules.europe \ etc/hylafax.in \ etc/faxaddmodem.sh.in \ etc/faxsetup.bsdi \ etc/faxsetup.irix \ etc/faxsetup.linux \ etc/faxsetup.sh.in \ etc/probemodem.sh.in \ etc/lockname.c \ etc/lutRS18.pcf \ etc/ondelay.c \ util/Makefile.in \ util/Makefile.IRIXdso \ util/Array.c++ \ util/AtSyntax.c++ \ util/BoolArray.c++ \ util/Class2Params.c++ \ util/DialRules.c++ \ util/Dictionary.c++ \ util/Dispatcher.c++ \ util/Fatal.c++ \ util/FaxClient.c++ \ util/FaxConfig.c++ \ util/FaxDB.c++ \ util/FaxRecvInfo.c++ \ util/FaxSendInfo.c++ \ util/FmtTime.c++ \ util/InetTransport.c++ \ util/IOHandler.c++ \ util/JobExt.c++ \ util/ModemExt.c++ \ util/Obj.c++ \ util/PageSize.c++ \ util/RegEx.c++ \ util/RegExArray.c++ \ util/RegExDict.c++ \ util/SendFaxClient.c++ \ util/SendFaxJob.c++ \ util/SNPPClient.c++ \ util/SNPPJob.c++ \ util/StackBuffer.c++ \ util/Str.c++ \ util/StrArray.c++ \ util/StrDict.c++ \ util/Sys.c++ \ util/Syslog.c++ \ util/TextFmt.c++ \ util/TimeOfDay.c++ \ util/Timeout.c++ \ util/Transport.c++ \ util/TypeRules.c++ \ util/UnixTransport.c++ \ util/class2.h \ util/t.30.h \ util/Array.h \ util/BoolArray.h \ util/Class2Params.h \ util/DSmacros.h \ util/DialRules.h \ util/Dictionary.h \ util/Dispatcher.h \ util/FaxClient.h \ util/FaxConfig.h \ util/FaxDB.h \ util/FaxRecvInfo.h \ util/FaxSendInfo.h \ util/InetTransport.h \ util/IOHandler.h \ util/JobExt.h \ util/ModemExt.h \ util/Obj.h \ util/PageSize.h \ util/Ptr.h \ util/RegEx.h \ util/RegExArray.h \ util/RegExDict.h \ util/SendFaxClient.h \ util/SendFaxJob.h \ util/SNPPClient.h \ util/SNPPJob.h \ util/Socket.h \ util/StackBuffer.h \ util/Str.h \ util/StrArray.h \ util/StrDict.h \ util/Sys.h \ util/Syslog.h \ util/TextFmt.h \ util/TimeOfDay.h \ util/Timeout.h \ util/Transport.h \ util/Types.h \ util/TypeRules.h \ util/UnixTransport.h \ util/cvtfacility.c \ util/faxconfig.c \ util/faxmodem.c \ util/faxmsg.c \ util/faxstate.c \ util/fxassert.c \ util/pagesizes.in \ util/notify.awk \ util/faxcron.sh.in \ util/faxrcvd.sh \ util/mkcover.sh \ util/notify.sh \ util/pollrcvd.sh \ util/pcl2fax.sh \ util/ps2fax.dps.sh \ util/ps2fax.gs.sh \ util/ps2fax.imp.sh \ util/recvstats.sh.in \ util/tiff2fax.sh \ util/wedged.sh \ util/xferstats.sh.in \ util/typerules \ util/cover.templ \ util/dpsprinter.ps \ util/faxdb \ util/checkat.c++ \ util/dialtest.c++ \ util/faxfetch.c++ \ util/faxinfo.c++ \ util/faxwatch.c++ \ util/textfmt.c++ \ util/tiffcheck.c++ \ util/typetest.c++ \ regex/Makefile.in \ regex/regex.h \ regex/README \ regex/COPYRIGHT \ regex/WHATSNEW \ regex/cclass.h \ regex/cname.h \ regex/engine.c \ regex/re_format.7 \ regex/regcomp.c \ regex/regerror.c \ regex/regex.3 \ regex/regex2.h \ regex/regexec.c \ regex/regfree.c \ regex/utils.h \ zlib/Makefile.in \ zlib/Makefile.IRIXdso \ zlib/ChangeLog \ zlib/README \ zlib/adler32.c \ zlib/deflate.c \ zlib/deflate.h \ zlib/infblock.c \ zlib/infblock.h \ zlib/infcodes.c \ zlib/infcodes.h \ zlib/inffast.c \ zlib/inffast.h \ zlib/inflate.c \ zlib/inftrees.c \ zlib/inftrees.h \ zlib/infutil.c \ zlib/infutil.h \ zlib/trees.c \ zlib/zconf.h \ zlib/zlib.h \ zlib/zutil.c \ zlib/zutil.h \ faxalter/Makefile.in \ faxalter/faxalter.c++ \ faxcover/Makefile.in \ faxcover/faxcover.c++ \ faxcover/faxcover.ps \ faxd/Makefile.in \ faxd/Makefile.IRIXdso \ faxd/Class0.h \ faxd/Class1.h \ faxd/Class2.h \ faxd/Class20.h \ faxd/Class2Ersatz.h \ faxd/ClassModem.h \ faxd/DestControl.h \ faxd/DestInfo.h \ faxd/FaxAcctInfo.h \ faxd/FaxFont.h \ faxd/FaxMachineInfo.h \ faxd/FaxMachineLog.h \ faxd/FaxModem.h \ faxd/FaxRequest.h \ faxd/FaxSendStatus.h \ faxd/FaxServer.h \ faxd/FaxTrace.h \ faxd/G3Decoder.h \ faxd/G3Encoder.h \ faxd/Getty.h \ faxd/GettyBSD.h \ faxd/GettySysV.h \ faxd/HDLCFrame.h \ faxd/HylaClient.h \ faxd/Job.h \ faxd/Modem.h \ faxd/ModemConfig.h \ faxd/ModemServer.h \ faxd/PCFFont.h \ faxd/QLink.h \ faxd/ServerConfig.h \ faxd/Trigger.h \ faxd/TriggerRef.h \ faxd/UUCPLock.h \ faxd/faxApp.h \ faxd/faxGettyApp.h \ faxd/faxQueueApp.h \ faxd/faxRequest.h \ faxd/faxSendApp.h \ faxd/pageSendApp.h \ faxd/ixo.h \ faxd/t4.h \ faxd/tif_fax3.h \ faxd/Class0.c++ \ faxd/Class1.c++ \ faxd/Class1Poll.c++ \ faxd/Class1Recv.c++ \ faxd/Class1Send.c++ \ faxd/Class2.c++ \ faxd/Class20.c++ \ faxd/Class2Ersatz.c++ \ faxd/Class2Poll.c++ \ faxd/Class2Recv.c++ \ faxd/Class2Send.c++ \ faxd/ClassModem.c++ \ faxd/CopyQuality.c++ \ faxd/DestControl.c++ \ faxd/DestInfo.c++ \ faxd/FaxAcctInfo.c++ \ faxd/FaxFont.c++ \ faxd/FaxMachineInfo.c++ \ faxd/FaxMachineLog.c++ \ faxd/FaxModem.c++ \ faxd/FaxPoll.c++ \ faxd/FaxRecv.c++ \ faxd/FaxRequest.c++ \ faxd/FaxSend.c++ \ faxd/FaxServer.c++ \ faxd/G3Decoder.c++ \ faxd/G3Encoder.c++ \ faxd/Getty.c++ \ faxd/GettyBSD.c++ \ faxd/GettySysV.c++ \ faxd/HDLCFrame.c++ \ faxd/HylaClient.c++ \ faxd/Job.c++ \ faxd/Modem.c++ \ faxd/ModemConfig.c++ \ faxd/ModemServer.c++ \ faxd/PCFFont.c++ \ faxd/QLink.c++ \ faxd/ServerConfig.c++ \ faxd/TagLine.c++ \ faxd/Trigger.c++ \ faxd/TriggerRef.c++ \ faxd/UUCPLock.c++ \ faxd/faxApp.c++ \ faxd/faxGettyApp.c++ \ faxd/faxQCleanApp.c++ \ faxd/faxQueueApp.c++ \ faxd/faxRequest.c++ \ faxd/faxSendApp.c++ \ faxd/pageSendApp.c++ \ faxd/choptest.c++ \ faxd/cqtest.c++ \ faxd/tagtest.c++ \ faxd/trigtest.c++ \ faxd/tsitest.c++ \ faxd/mkhash.c \ faxmail/Makefile.in \ faxmail/README \ faxmail/faxmail.c++ \ faxmail/MIMEState.c++ \ faxmail/MIMEState.h \ faxmail/MsgFmt.c++ \ faxmail/MsgFmt.h \ faxmail/faxmail.ps \ faxmail/mailfax.sh-sendmail \ faxmail/mailfax.sh-smail \ faxrm/Makefile.in \ faxrm/faxrm.c++ \ faxstat/Makefile.in \ faxstat/faxstat.c++ \ hfaxd/Makefile.in \ hfaxd/Admin.c++ \ hfaxd/FIFO.c++ \ hfaxd/FileCache.c++ \ hfaxd/FileCache.h \ hfaxd/FileSystem.c++ \ hfaxd/FileTransfer.c++ \ hfaxd/HylaFAXServer.c++ \ hfaxd/HylaFAXServer.h \ hfaxd/InetFaxServer.c++ \ hfaxd/InetFaxServer.h \ hfaxd/Jobs.c++ \ hfaxd/Login.c++ \ hfaxd/OldProtocol.c++ \ hfaxd/OldProtocol.h \ hfaxd/Parser.c++ \ hfaxd/RecvQueue.c++ \ hfaxd/Status.c++ \ hfaxd/SNPPServer.c++ \ hfaxd/SNPPServer.h \ hfaxd/SuperServer.c++ \ hfaxd/SuperServer.h \ hfaxd/TODO \ hfaxd/Trace.h \ hfaxd/Trigger.c++ \ hfaxd/UnixFaxServer.c++ \ hfaxd/UnixFaxServer.h \ hfaxd/User.c++ \ hfaxd/main.c++ \ hfaxd/manifest.h \ hfaxd/hfaxd.conf \ sendfax/Makefile.in \ sendfax/sendfax.c++ \ sendpage/Makefile.in \ sendpage/sendpage.c++ \ sgi2fax/Makefile.in \ sgi2fax/hipass.c \ sgi2fax/hipass.h \ sgi2fax/imgtofax.c \ sgi2fax/izoom.c \ sgi2fax/izoom.h \ sgi2fax/lum.h \ sgi2fax/lut.c \ sgi2fax/lut.h \ sgi2fax/rand.c \ sgi2fax/row.c \ ${PORTFILES} \ ${NULL} # # HylaFAX manual pages. # MANPAGES=\ man/Makefile.in \ man/cid.4f \ man/config.4f \ man/destctrls.4f \ man/dialrules.4f \ man/cqtest.1m \ man/choptest.1m \ man/dialtest.1m \ man/faxabort.1m \ man/faxaddmodem.1m \ man/faxsetup.1m \ man/faxalter.1 \ man/faxanswer.1m \ man/faxconfig.1m \ man/faxcover.1 \ man/faxqclean.1m \ man/faxcron.1m \ man/faxinfo.1m \ man/faxq.1m \ man/faxgetty.1m \ man/faxsend.1m \ man/faxmail.1 \ man/faxmodem.1m \ man/faxquit.1m \ man/faxrcvd.1m \ man/faxrm.1 \ man/faxstat.1 \ man/faxstate.1m \ man/faxwatch.1m \ man/hfaxd.1m \ man/hosts.4f \ man/hylafax.1 \ man/hylafax.4f \ man/info.4f \ man/log.4f \ man/mkcover.1m \ man/notify.1m \ man/pagermap.4f \ man/pagesend.1m \ man/pagesizes.4f \ man/pollrcvd.1m \ man/ps2fax.1m \ man/recvq.4f \ man/recvstats.1m \ man/sendfax.1 \ man/sendpage.1 \ man/sendq.4f \ man/sgi2fax.1 \ man/shutdown.4f \ man/status.4f \ man/tagtest.1m \ man/textfmt.1 \ man/tiffcheck.1m \ man/tiff2fax.1m \ man/tsi.4f \ man/tsitest.1m \ man/typerules.4f \ man/xferlog.4f \ man/wedged.1m \ man/xferstats.1m \ ${NULL} # # HTML-related files, including those not under RCS. # HTMLDIST=\ ${HTMLFILES} \ html/sam.gif \ html/hylafax.gif \ html/icons/frog.gif \ html/icons/next.gif \ html/icons/button.excl.gif \ html/icons/back.gif \ html/icons/smiley.gif \ html/icons/ball_blue_icon.gif \ html/icons/warning_icon.gif \ html/icons/at_work_icon.gif \ html/icons/info_icon.gif \ html/icons/new.gif \ html/icons/improved.gif \ ${NULL} # # Adobe Font Metric information files. # AFMFILES=\ afm/Makefile.in \ afm/AvantGarde-Book.afm \ afm/AvantGarde-BookOblique.afm \ afm/AvantGarde-Demi.afm \ afm/AvantGarde-DemiOblique.afm \ afm/Bookman-Demi.afm \ afm/Bookman-DemiItalic.afm \ afm/Bookman-Light.afm \ afm/Bookman-LightItalic.afm \ afm/Courier-Bold.afm \ afm/Courier-BoldOblique.afm \ afm/Courier-Oblique.afm \ afm/Courier.afm \ afm/Helvetica-Bold.afm \ afm/Helvetica-BoldOblique.afm \ afm/Helvetica-Narrow-Bold.afm \ afm/Helvetica-Narrow-BoldOblique.afm \ afm/Helvetica-Narrow-Oblique.afm \ afm/Helvetica-Narrow.afm \ afm/Helvetica-Oblique.afm \ afm/Helvetica.afm \ afm/NewCenturySchlbk-Bold.afm \ afm/NewCenturySchlbk-BoldItalic.afm \ afm/NewCenturySchlbk-Italic.afm \ afm/NewCenturySchlbk-Roman.afm \ afm/Palatino-Bold.afm \ afm/Palatino-BoldItalic.afm \ afm/Palatino-Italic.afm \ afm/Palatino-Oblique.afm \ afm/Palatino-Roman.afm \ afm/Symbol.afm \ afm/Times-Bold.afm \ afm/Times-BoldItalic.afm \ afm/Times-Italic.afm \ afm/Times-Oblique.afm \ afm/Times-Roman.afm \ afm/ZapfChancery-MediumItalic.afm \ afm/ZapfDingbats.afm \ ${NULL} # # These rules are used to create the source distribution images # COMPRESS= gzip ZIPSUF = gz CONFIG = -with-CC=cc \ -with-CXX=CC \ -with-GCOPTS=" " \ -with-HTML \ -with-AFM \ -with-DPS \ -with-IMP \ -with-GSRIP=/usr/freeware/bin/gs \ -with-IMPRIP='$$DIR_LIBEXEC/psrip' \ -with-LIBMALLOC=no \ -with-SCRIPT_SH=/bin/sh rcsclean: rcsclean ${HYLAFAXSRC} && co ${HYLAFAXSRC} rcsclean ${MANPAGES} && co ${MANPAGES} rcsclean ${HTMLFILES} && co ${HTMLFILES} alpha: (cd ${SRCDIR}/dist; sh newversion) -${MAKE} clobber ${MAKE} alpha.stamp ${SRCDIR}/configure ${CONFIG} ${MAKE} product ${MAKE} alpha.tar # # NB: A bunch of this work in splitting up the arg lists # is done to avoid overflowing system params (e.g. # the size of the environment). # # stamp relevant files according to current alpha alpha.stamp: VERSION=`awk '{print "Alpha" $$3}' ${SRCDIR}/dist/hylafax.alpha`;\ NOW=`date`; \ cd ${SRCDIR}; \ for i in ${HYLAFAXSRC}; do \ REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\ rcs "-N$$VERSION:$$REV" "-sExp:$$REV" $$i && co -sExp $$i; \ done; \ for i in ${MANPAGES}; do \ REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\ rcs "-N$$VERSION:$$REV" "-sExp:$$REV" $$i && co -sExp $$i; \ done; \ for i in ${HTMLFILES}; do \ REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\ rcs "-N$$VERSION:$$REV" "-sExp:$$REV" $$i && co -sExp $$i; \ done purge-old-alphas: VERSIONS=`echo ${ALPHA} | awk '{for (i=1; i<=$$1; i++) printf " -nAlpha%03d",i}'`;\ cd ${SRCDIR}; \ for i in ${HYLAFAXSRC}; do \ echo rcs $$VERSIONS $$i; \ rcs $$VERSIONS $$i && co $$i; \ done; \ for i in ${MANPAGES}; do \ echo rcs $$VERSIONS $$i; \ rcs $$VERSIONS $$i && co $$i; \ done; \ for i in ${HTMLFILES}; do \ echo rcs $$VERSIONS $$i; \ rcs $$VERSIONS $$i && co $$i; \ done alphadiff: cd ${SRCDIR}; \ -@for i in ${HYLAFAXSRC}; do \ rcsdiff -r${ALPHA} $$i; \ done; \ -@for i in ${MANPAGES}; do \ rcsdiff -r${ALPHA} $$i; \ done; \ -@for i in ${HTMLFILES}; do \ rcsdiff -r${ALPHA} $$i; \ done # create alpha distribution archive alpha.tar: VERSION="v`cat ${SRCDIR}/VERSION``awk '{print $$3}' ${SRCDIR}/dist/hylafax.alpha`"; \ rm -f hylafax-$$VERSION $$VERSION $$VERSION-tar; \ ln -s ${SRCDIR} hylafax-$$VERSION; \ (for i in ${HYLAFAXSRC} dist/hylafax.alpha; do \ echo $$i; \ done) | sed "s;.*;hylafax-$$VERSION/&;" >$$VERSION; \ tar cvf $$VERSION-tar `cat $$VERSION`; \ (for i in ${MANPAGES} ${HTMLDIST} ${AFMFILES}; do \ echo $$i; \ done) | sed "s;.*;hylafax-$$VERSION/&;" >$$VERSION; \ tar rvf $$VERSION-tar `cat $$VERSION`; \ rm -f hylafax-$$VERSION-tar.${ZIPSUF}; \ cat $$VERSION-tar | ${COMPRESS} >hylafax-$$VERSION-tar.${ZIPSUF};\ rm -f hylafax-$$VERSION $$VERSION $$VERSION-tar; release: (cd ${SRCDIR}/dist; sh newversion) -${MAKE} clobber ${MAKE} release.stamp ${SRCDIR}/configure ${CONFIG} ${MAKE} product ${MAKE} release.tar release.stamp: VERSION="Release`sed 's/\./_/g' ${SRCDIR}/VERSION`"; \ NOW=`date`; \ cd ${SRCDIR}; \ for i in ${HYLAFAXSRC}; do \ REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\ rcs "-N$$VERSION:$$REV" "-sRel:$$REV" $$i && co -sRel $$i; \ done; \ for i in ${MANPAGES}; do \ REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\ rcs "-N$$VERSION:$$REV" "-sRel:$$REV" $$i && co -sRel $$i; \ done; \ for i in ${HTMLFILES}; do \ REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\ rcs "-N$$VERSION:$$REV" "-sRel:$$REV" $$i && co -sRel $$i; \ done # create release distribution archive release.tar: VERSION=v`cat ${SRCDIR}/VERSION`; \ rm -f hylafax-$$VERSION $$VERSION $$VERSION-tar; \ ln -s ${SRCDIR} hylafax-$$VERSION; \ (for i in ${HYLAFAXSRC} dist/hylafax.alpha; do \ echo $$i; \ done) | sed "s;.*;hylafax-$$VERSION/&;" >$$VERSION; \ tar cvf $$VERSION-tar `cat $$VERSION`; \ (for i in ${MANPAGES} ${HTMLDIST} ${AFMFILES}; do \ echo $$i; \ done) | sed "s;.*;hylafax-$$VERSION/&;" >$$VERSION; \ tar rvf $$VERSION-tar `cat $$VERSION`; \ rm -f hylafax-$$VERSION-tar.${ZIPSUF}; \ cat $$VERSION-tar | ${COMPRESS} >hylafax-$$VERSION-tar.${ZIPSUF};\ rm -f hylafax-$$VERSION $$VERSION $$VERSION-tar; or i in ${HYLAFAXSRC} dist/hylafax.alpha; do \ echo $$i; \ done) | sed "s;.*;hylafax-$$VERSION/&;" >$$VERSION; \ tar cvf $$VERSION-tar `cat $$VERSION`; \ (for i in ${MANPAGES} ${HTMLDIST} ${AFMFILES}; do \ echo $$i; \ done) hylafax-v4.0pl1/dist/hylafax.spec000444 004341 000024 00000007347 06251103471 016667 0ustar00samuser000000 000000 # $Id: hylafax.spec,v 1.44 1996/12/03 20:01:57 sam Exp $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # define CUR_MAJ_VERS 1006 # Major Version number define CUR_MIN_VERS 010 # Minor Version number define CUR_VERS ${CUR_MAJ_VERS}${CUR_MIN_VERS}${ALPHA} define FAX_NAME "HylaFAX" include hylafax.version include hylafax.alpha product hylafax id "${FAX_NAME} Facsimile Software, Version ${FAX_VNUM}" inplace image sw id "${FAX_NAME} Software" version "${CUR_VERS}" subsys client default id "${FAX_NAME} Client Software" exp "hylafax.sw.client" replaces self replaces flexfax.sw.client 0 oldvers prereq ( dps_eoe.sw.dpsfonts 1006000000 maxint # AFM files tiff.sw.tools 1006001029 maxint # TIFF DSO ) endsubsys subsys server id "${FAX_NAME} Server Software" exp "hylafax.sw.server" replaces self replaces flexfax.sw.server 0 oldvers # # Server requires a PostScript RIP: either DPS-, # Impressario-2.1- or Ghostscript-based. # prereq ( hylafax.sw.dpsrip 0 maxint # DPS-based RIP tiff.sw.tools 1006001029 maxint # TIFF DSO ) prereq ( hylafax.sw.imprip 0 maxint # IMP 2.1 RIP tiff.sw.tools 1006001029 maxint # TIFF DSO ) prereq ( fw_gs.sw.gs 0 maxint # Ghostscript & tiff.sw.tools 1006001029 maxint # TIFF DSO ) endsubsys subsys dpsrip id "DPS-based PostScript RIP (for server, COFF only)" exp "hylafax.sw.dpsrip" prereq ( dps_eoe.sw.dps 1006000000 maxint # VM startup dps_eoe.sw.dpsfonts 1006000000 maxint # fonts ) endsubsys subsys imprip id "Impressario 2.1-based PostScript RIP (for server)" exp "hylafax.sw.imprip" prereq ( impr_rip.sw.impr 1232807300 maxint # psrip & co. dps_eoe.sw.dpsfonts 1232729832 maxint # fonts tiff.sw.tools 1006001029 maxint # TIFF DSO ) endsubsys endimage image man id "${FAX_NAME} UNIX Manual Pages" version "${CUR_VERS}" subsys client default id "${FAX_NAME} Client Manual Pages" exp "hylafax.man.client" replaces self replaces flexfax.man.* 0 oldvers endsubsys subsys server id "${FAX_NAME} Server Manual Pages" exp "hylafax.man.server" replaces self replaces flexfax.man.* 0 oldvers endsubsys endimage image html id "${FAX_NAME} World Wide Web Materials" version "${CUR_VERS}" subsys docs id "${FAX_NAME} Online Documentation" exp "hylafax.html.docs" endsubsys subsys tools id "${FAX_NAME} CGI Scripts & Tools" exp "hylafax.html.cgi" endsubsys endimage endproduct replaces flexfax.man.* 0 oldvers endsubsys subsys server id "${FAX_NAME} Server Manual Pages" exp "hylafax.man.server" replaces self replaces flexfax.man.* 0 oldvers endsubsys endimage image html id "${FAX_NAME} World Wide Web Materials" versiohylafax-v4.0pl1/dist/newalpha000444 004341 000024 00000003011 06246675464 016105 0ustar00samuser000000 000000 #! /bin/sh # $Id: newalpha,v 1.11 1996/06/24 02:58:59 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # if test -r hylafax.alpha; then ALPHA=`cat hylafax.alpha`; rm -f hylafax.alpha echo "$ALPHA" | awk '{ printf "define ALPHA %03d\n", $3+1}' > hylafax.alpha else echo "define ALPHA 001" >hylafax.alpha fi NTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # if test -r hylafax.alpha; then ALPHA=`cat hylafax.alpha`; rm -f hylafax.alpha echo "$ALPHA" | awk '{ printf "define ALPHA %03d\n", $3+1}' > hylafax.alpha else echo "define ALPHA 001" >hylafax.hylafax-v4.0pl1/dist/newversion000444 004341 000024 00000002735 06246675464 016521 0ustar00samuser000000 000000 #! /bin/sh # $Id: newversion,v 1.9 1996/06/24 02:59:00 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1994-1996 Sam Leffler # Copyright (c) 1994-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # rm -f hylafax.version awk ' $1 ~ /.*beta/ { print "define FAX_VNUM " $0 } $1 !~ /.*beta/{ print "define FAX_VNUM \"" $0 " (release)\"" } ' ../VERSION > hylafax.version GRAPHICS BE LIABLE FOR # ANY SPECIhylafax-v4.0pl1/config/Makefile.in000444 004341 000024 00000004607 06246675464 016746 0ustar00samuser000000 000000 #!smake # $Id: Makefile.in,v 1.31 1996/06/24 02:58:30 sam Rel $ # # @WARNING@ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # VERSION: @VERSION@ # DATE: @DATE@ # TARGET: @TARGET@ # CCOMPILER: @CCOMPILER@ # CXXCOMPILER: @CXXCOMPILER@ # DEPTH=.. @MAKEINCLUDE@ @MAKELQUOTE@${DEPTH}/defs@MAKERQUOTE@ SRCDIR = ${DEPTH}/${TOPSRCDIR}/config VPATH = ../@SRCDIR@/config CONFIGFILES=class1 \ class2 \ class2.0 \ skel \ \ att-dataport-2 \ att-dataport-2.0 \ att-dataport \ cirrus \ dsi-scout+ \ e-tech \ everex-2496d \ exar \ gvc-288 \ gvc-288-2 \ intel-400e \ moto-288 \ mt-1432 \ nuvo-voyager \ ppi-pm14400fxmt \ ppi-pm14400fxsa \ rc144ac \ rc144ac-1 \ rc288dpi \ rc288dpi-1 \ rc32acl \ rc32acl-1 \ rockwell \ telebit-t3000 \ telebit-qblazer \ telebit-wb \ tricom2842 \ uds-fastalk \ usr-2.0 \ usr-rts \ usr-xon \ zyxel-1496e \ zyxel-1496e-1 \ zyxel-1496e-2.0 \ zyxel-2864 TARGETS= default all:: @${MAKE} targets targets: ${TARGETS} @MAKEINCLUDE@ @MAKELQUOTE@${COMMONRULES}@MAKERQUOTE@ PUTSERVER=${INSTALL} -idb ${PRODUCT}.sw.server install: default ${CONFIGFILES} for i in ${CONFIGFILES}; do \ ${PUTSERVER} -F ${SPOOL}/config -m 444 -src ${SRCDIR}/$$i -O $$i; \ done l \ rc32acl-1 \ rockwell \ telebit-t3000 \ telebit-qblazer \ telebit-wb \ tricom2842 \ uds-fastalk \ usr-2.0 \ uhylafax-v4.0pl1/config/att-dataport000444 004341 000024 00000006123 06246675465 017224 0ustar00samuser000000 000000 # $Id: att-dataport,v 1.21 1996/06/24 02:58:30 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 1 command interface with # an AT&T DataPort 14.4 modem. Firmware version 122 (ati1) # or newer. # # Hardware flow control is used by default. # # Note that due to a bug in the 1.22 firmware the FCS bytes in the HDLC # frames are NOT returned to the host. This is fixed in versions 1.33 # and later. To deal with this problem, early firmware revs should be # sure to have Class1FrameOverhead set to 2 instead of the normal 4. # # CONFIG:CLASS1:144:.*:.*: Manufacturer='AT&T' Model=Dataport # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 38400 # could probably run 57600 ModemFlowControl: rtscts # default # ModemHardFlowCmd: AT&R0\D1\Q3 # use RTS/CTS and enable RS232 handling ModemSoftFlowCmd: AT&R1\D0\Q1 # use RTS/CTS and enable RS232 handling ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD follows carrier ModemSetupAACmd: AT+FAA=0 # disable in case of Class 2 support # ModemMfrQueryCmd: !AT&T ModemModelQueryCmd: !DataPort ModemRevQueryCmd: ATI19 # # NB: this works around a bug in the 1.22 firmware; it is fixed # in versions 1.33 and later in which case you can remove this # line and use the default value of 4 (though leaving it as 2 # won't harm anything). # Class1FrameOverhead: 2 # 1.22 firmware does not include FCS # # The modem returns "OK" when there is a timeout before carrier is # established. This is treated as "NO CARRIER" by faxd. Thus we # need to up the NoCarrierRetrys parameter to avoid having the server # reject jobs prematurely. # NoCarrierRetrys: 3 # retry 3 times on no carrier # PagerSetupCmds: ATS41=10%B300 # use V.21 at 300 bps ase you can remove this # line and use the default value of 4 (though leaving it as 2 # won't harm anything). # Class1FrameOverhead: 2 # 1.22 firmware does not include FCS # # The modem returns "OK" when there is a timeout before carrier is # established. This is treated as "NO CARRIER" by faxd. Thus we # need to up the NoCarrierRetrys parameter to avoid having the server # reject jobs prematurely. # NoCarrierRetrys: 3 # hylafax-v4.0pl1/config/att-dataport-2000444 004341 000024 00000007015 06246675465 017364 0ustar00samuser000000 000000 # $Id: att-dataport-2,v 1.14 1996/06/24 02:58:31 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 2 command interface with # an AT&T DataPort 14.4 modem. Firmware version 166 (ati1) # or newer. # # Hardware flow control is used by default. # # CONFIG: CLASS2: AT?T*Paradyne*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 # set rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemHardFlowCmd: AT&R0\D1\Q3 # use RTS/CTS and enable RS232 handling ModemSoftFlowCmd: AT&R1\D0\Q1 # use RTS/CTS and enable RS232 handling ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD follows carrier ModemSetupAACmd: AT+FAA=1 # enable adaptive-answer in Class 2 # ModemRecvFillOrder: MSB2LSB # bit order of received facsimile ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit # # The modem returns "OK" when there is a timeout before carrier is # established. This is treated as "NO CARRIER" by faxd. Thus we # need to up the NoCarrierRetrys parameter to avoid having the server # reject jobs prematurely. # NoCarrierRetrys: 3 # retry 3 times on no carrier # # Rev C01.66.10 firmware gives a bogus result string for # +FDCC=? query so we override it here. Syntax is: # # (vr),(br),(wd),(ln),(df),(ec),(bf),(st) # where, # vr vertical resolution # br bit rate # wd page width # ln page length # df data compression # ec error correction # bf binary file transfer # st scan time/line # # Note that if your modem does not support V.17 then you'll need # to restrict the values of br to (0-3) intead of (0-5). # Class2DCCQueryCmd: "!(0,1),(0-5),(0-4),(0-2),(0),(0),(0),(0-7)" # # There's no suport for HDLC frame tracing; silence the avoid # error message so naive folks don't ask if it's a problem. # Class2BugCmd: AT+FBUG=0 # # Enable copy quality checking with some "average" parameters: # # +FBADMUL=20 <20% bad lines for OK quality # +FBADLIN=10 no more than 10 consecutive bad line on a page # # Note that default values set by the rev 1.76 firmware are 20 and 0. # Class2CQCmd: AT+FCQ=1;+FBADMUL=20;+FBADLIN=10 # PagerSetupCmds: ATS41=10%B300 # use V.21 at 300 bps -7)" # # There's no suport for HDLC frame tracing; silence the avoid # error message so naive folks don't ask if it's a problem. # Class2BugCmd: AT+FBUG=0 # # Enable copy quality checking with some "average" parameters: # # +FBADMUL=20 <20% bad lines for OK quality # +FBADLIN=10 no more than 10 consecutive bad line on a page # # Note that default values set by the rev 1.76 firmware are 20 and 0. # Class2CQCmd: AT+FCQ=1;+FBADMUL=20;+FBADLIN=10 # PagerSetupCmds: ATS41=10%B300 # use V.2hylafax-v4.0pl1/config/att-dataport-2.0000444 004341 000024 00000004476 06246675465 017532 0ustar00samuser000000 000000 # $Id: att-dataport-2.0,v 1.11 1996/06/24 02:58:31 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for an AT&T Paradyne DataPort w/ Class 2.0 firmware. # # CONFIG: CLASS2.0: AT?T*Paradyne*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2.0 # use class 2.0 interface ModemRate: 38400 # 38.4 works fine ModemFlowControl: rtscts # default # ModemHardFlowCmd: AT&R0\D1\Q3 # use RTS/CTS and enable RS232 handling ModemSoftFlowCmd: AT&R1\D0\Q1 # use RTS/CTS and enable RS232 handling ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD follows carrier # ModemSetupAACmd: AT+FAA=1 # enable in current class # # The modem returns "OK" when there is a timeout before carrier is # established. This is treated as "NO CARRIER" by faxd. Thus we # need to up the NoCarrierRetrys parameter to avoid having the server # reject jobs prematurely. # NoCarrierRetrys: 3 # retry 3 times on no carrier # PagerSetupCmds: ATS41=10%B300 # use V.21 at 300 bps ling ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD follows carrier # ModemSetupAACmd: AT+FAA=1 # enable in current class # # The modem returnshylafax-v4.0pl1/config/cirrus000444 004341 000024 00000004504 06246675465 016130 0ustar00samuser000000 000000 # $Id: cirrus,v 1.8 1996/06/24 02:58:32 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for modems based on the Cirrus Logic Chipset # (such as the builtin modem that comes with a WinBook XP). # # This configuration file sets up the modem for # 57.6 w/ hardware flow control. # # CONFIG:CLASS1:1.02:.*:.*: Manufacturer="Cirrus Logic" Model="CL-MD1414AT/EC" # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use this to supply a hint ModemRate: 57600 # rate for DCE-DTE communication ModemFlowControl: rtscts # RTS/CTS flow control assumed # ModemSoftFlowCmd: AT\Q1 # set desired flow control method ModemHardFlowCmd: AT\Q3 # set desired flow control method ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD follows carrier ModemDialCmd: ATDT%s # # Happy days! This modem has proper support for querying # the model, manufacturer, and firmware revision! # ModemMfrQueryCmd: AT+FMFR? ModemModelQueryCmd: AT+FMDL? ModemRevQueryCmd: AT+FREV? ion ModemFlowControl: rtscts # RTS/CTS flow control assumed # ModemSoftFlowCmd: AT\Q1 # set desired flow control method ModemHardFlowCmd: AT\Q3 # set desired flow control method ModemSehylafax-v4.0pl1/config/class1000444 004341 000024 00000012417 06246675465 016011 0ustar00samuser000000 000000 # $Id: class1,v 1.23 1996/06/24 02:58:32 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Generic Class 1 modem configuration. # # EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP # # BEGIN-SERVER CountryCode: 1 # USA LongDistancePrefix: 1 InternationalPrefix: 011 AreaCode: 415 DialStringRules: etc/dialrules FAXNumber: +1.999.555.1212 LocalIdentifier: "NothingSetup" # default is canonical FAXNumber ServerTracing: 1 # log server-related operations SessionTracing: 11 # log server-related operations RecvFileMode: 0600 # recvd facsimile are not public LogFileMode: 0600 # private log files DeviceMode: 0600 # device is accessible only to uucp/fax QualifyTSI: etc/tsi # accept facsimile from anyone SpeakerVolume: off # machine's are already too loud RingsBeforeAnswer: 1 # answer on first ring TagLineFont: etc/lutRS18.pcf # tag line font TagLineFormat: "From %%l|%c|Page %%p of %%t" MaxBadCalls: 5 # max 5 consecutive bad calls PostScriptTimeout: 300 # 5 minute timeout on PostScript jobs MaxSendPages: 25 # max pages in an outbound job MaxRecvPages: 25 # max pages in an inbound job ContCoverPage: etc/cover.templ # enable continuation cover pages DestControls: etc/destcontrols # destination-specific controls MaxConcurrentJobs: 1 # serialize jobs to the same dest TimeOfDay: "Any" # outbound jobs any day, any time # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use this to supply a hint ModemRate: 19200 # rate for DCE-DTE communication ModemFlowControl: xonxoff # XON/XOFF flow control assumed # ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD follows carrier GettyArgs: "-h %l dx_%s" # modem must auto-detect fax/data # # We normally append the "@" symbol to the dial string so that # the modem will wait 5 seconds before attempting to connect # and return result codes that distinguish between no carrier # and no answer. This makes it possible to avoid problems with # repeatedly dialing a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # NB: If you need to prefix phone numbers to get through a PBX, # put it in the ModemDialCmd; e.g. "DT9%s@". # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # # Other possible configuration stuff. The default strings are # shown below. Only those that are different from the defaults # need to be included in the configuration file. # ModemResetCmds: "" # stuff to do when modem is reset ModemAnswerCmd: ATA # use this to answer phone ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemNoAutoAnswerCmd: ATS0=0 # disable auto-answer # # Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH. # Note that we both turn the speaker on/off and set volume. # ModemSetVolumeCmd: "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1" ModemEchoOffCmd: ATE0 # disable command echo ModemVerboseResultsCmd: ATV1 # enable verbose command results ModemResultCodesCmd: ATQ0 # enable result codes ModemOnHookCmd: ATH0 # place phone on hook (hangup) ModemSoftResetCmd: ATZ # do soft reset of modem ModemWaitTimeCmd: ATS7=60 # wait 60 seconds for carrier ModemCommaPauseTimeCmd: ATS8=2 # comma pause time is 2 seconds ModemRecvFillOrder: LSB2MSB # bit order of received facsimile ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit # Class1Cmd: AT+FCLASS=1 # command to enter class 1 Class1TCFResponseDelay: 75 # 75ms delay between recv TCF & response Class1SendPPMDelay: 75 # 75ms delay before sending PPM Class1SendTCFDelay: 75 # 75ms delay between sending DCS & TCF Class1TrainingRecovery: 1500 # 1.5sec delay after training failure Class1RecvAbortOK: 200 # wait 200ms for abort response Class1FrameOverhead: 4 # 4 byte overhead in recvd HDLC frames Class1RecvIdentTimer: 40000 # 35+5secs waiting for ident frames Class1TCFMaxNonZero: 10 # max 10% of data may be non-zero Class1TCFMinRun: 1000 # min run is 2/3rds of TCF duration en recv TCF & response Class1SendPPMDelay: 75 # 75ms delay before sending PPM Class1SendTCFDelay: 75 # 75ms delay between sending DCS & TCF Class1TrainingRecovery: 1500 # 1.5sec delay after training failure Class1RecvAbortOK: 200 # wait hylafax-v4.0pl1/config/class2000444 004341 000024 00000013644 06246675466 016016 0ustar00samuser000000 000000 # $Id: class2,v 1.23 1996/06/24 02:58:32 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Generic Class 2 modem configuration. # # EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP # # BEGIN-SERVER CountryCode: 1 # USA LongDistancePrefix: 1 InternationalPrefix: 011 AreaCode: 415 DialStringRules: etc/dialrules FAXNumber: +1.999.555.1212 LocalIdentifier: "NothingSetup" # default is canonical FAXNumber ServerTracing: 1 # log server-related operations SessionTracing: 11 # log server-related operations RecvFileMode: 0600 # recvd facsimile are not public LogFileMode: 0600 # private log files DeviceMode: 0600 # device is accessible only to uucp/fax GettyArgs: "-h %l dx_%s" # requires modem to auto-detect fax/data QualifyTSI: etc/tsi # accept facsimile from anyone SpeakerVolume: off # machine's are already too loud RingsBeforeAnswer: 1 # answer on first ring TagLineFont: etc/lutRS18.pcf # tag line font TagLineFormat: "From %%l|%c|Page %%p of %%t" MaxBadCalls: 5 # max 5 consecutive bad calls PostScriptTimeout: 300 # 5 minute timeout on PostScript jobs MaxSendPages: 25 # max pages in an outbound job MaxRecvPages: 25 # max pages in an inbound job ContCoverPage: etc/cover.templ # enable continuation cover pages DestControls: etc/destcontrols # destination-specific controls MaxConcurrentJobs: 1 # serialize jobs to the same dest TimeOfDay: "Any" # outbound jobs any day, any time # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use this to supply a hint ModemRate: 19200 # max rate for DCE-DTE communication ModemFlowControl: xonxoff # XON/XOFF flow control assumed ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # # We normally append the "@" symbol to the dial string so that # the modem will wait 5 seconds before attempting to connect # and return result codes that distinguish between no carrier # and no answer. This makes it possible to avoid problems with # repeatedly dialing a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # NB: If you need to prefix phone numbers to get through a PBX, # put it in the ModemDialCmd; e.g. "DT9%s@". # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # # Other possible configuration stuff. The default strings are # shown below. Only those that are different from the defaults # need to be included in the configuration file. # ModemResetCmds: "" # stuff to do when modem is reset ModemAnswerCmd: ATA # use this to answer phone ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemNoAutoAnswerCmd: ATS0=0 # disable auto-answer # # Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH. # Note that we both turn the speaker on/off and set volume. # ModemSetVolumeCmd: "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1" ModemEchoOffCmd: ATE0 # disable command echo ModemVerboseResultsCmd: ATV1 # enable verbose command results ModemResultCodesCmd: ATQ0 # enable result codes ModemOnHookCmd: ATH0 # place phone on hook (hangup) ModemSoftResetCmd: ATZ # do soft reset of modem ModemWaitTimeCmd: ATS7=60 # wait 60 seconds for carrier ModemCommaPauseTimeCmd: ATS8=2 # comma pause time is 2 seconds ModemRecvFillOrder: LSB2MSB # bit order of received facsimile ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit # # Configuration parameters for Class 2 modems. # Class2Cmd: AT+FCLASS=2 # command to enter class 2 Class2BORCmd: AT+FBOR=0 # bit order for phase B/C/D (direct) Class2RELCmd: AT+FREL=1 # byte-align EOL codes on recv Class2CQCmd: "" # commands to enable copy quality proc. Class2AbortCmd: AT+FK # abort session command Class2CQQueryCmd: AT+FCQ=? # query for copy quality capabilities Class2DCCQueryCmd: AT+FDCC=? # query for modem capabilities Class2TBCCmd: AT+FTBC=0 # setup stream mode Class2CRCmd: AT+FCR=1 # enable capability to receive Class2PHCTOCmd: AT+FPHCTO=30 # set phase C timeout parameter Class2BUGCmd: AT+FBUG=1 # enable HDLC frame tracing Class2LIDCmd: AT+FLID # set local identifier command Class2DCCCmd: AT+FDCC # set modem capabilities command Class2DISCmd: AT+FDIS # set session parameters command Class2DDISCmd: "" # disable pre-dial DIS command hack Class2CIGCmd: AT+FCIG # set polling identifier command Class2PTSCmd: AT+FPTS # set post-page status command Class2SPLCmd: AT+FSPL # set polling indicator command # # If Class2RecvDataTrigger is not set, then it is set to DC1 # Class2RecvDataTrigger: "" # character sent to modem to start recv Class2XmitWaitForXON: yes # if true, wait for XON before send C # set modem capabilities command Class2DISCmd: AT+FDIS # set session parameters commandhylafax-v4.0pl1/config/class2.0000444 004341 000024 00000013722 06246675466 016151 0ustar00samuser000000 000000 # $Id: class2.0,v 1.12 1996/06/24 02:58:33 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Generic Class 2.0 modem configuration. # # EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP # # BEGIN-SERVER CountryCode: 1 # USA LongDistancePrefix: 1 InternationalPrefix: 011 AreaCode: 415 DialStringRules: etc/dialrules FAXNumber: +1.999.555.1212 LocalIdentifier: "NothingSetup" # default is canonical FAXNumber ServerTracing: 1 # log server-related operations SessionTracing: 11 # log server-related operations RecvFileMode: 0600 # recvd facsimile are not public LogFileMode: 0600 # private log files DeviceMode: 0600 # device is accessible only to uucp/fax GettyArgs: "-h %l dx_%s" # requires modem to auto-detect fax/data QualifyTSI: etc/tsi # accept facsimile from anyone SpeakerVolume: off # machine's are already too loud RingsBeforeAnswer: 1 # answer on first ring TagLineFont: etc/lutRS18.pcf # tag line font TagLineFormat: "From %%l|%c|Page %%p of %%t" MaxBadCalls: 5 # max 5 consecutive bad calls PostScriptTimeout: 300 # 5 minute timeout on PostScript jobs MaxSendPages: 25 # max pages in an outbound job MaxRecvPages: 25 # max pages in an inbound job ContCoverPage: etc/cover.templ # enable continuation cover pages DestControls: etc/destcontrols # destination-specific controls MaxConcurrentJobs: 1 # serialize jobs to the same dest TimeOfDay: "Any" # outbound jobs any day, any time # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2.0 # use this to supply a hint ModemRate: 19200 # max rate for DCE-DTE communication ModemFlowControl: xonxoff # XON/XOFF flow control assumed ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # # We normally append the "@" symbol to the dial string so that # the modem will wait 5 seconds before attempting to connect # and return result codes that distinguish between no carrier # and no answer. This makes it possible to avoid problems with # repeatedly dialing a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # NB: If you need to prefix phone numbers to get through a PBX, # put it in the ModemDialCmd; e.g. "DT9%s@". # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # # Other possible configuration stuff. The default strings are # shown below. Only those that are different from the defaults # need to be included in the configuration file. # ModemResetCmds: "" # stuff to do when modem is reset ModemAnswerCmd: ATA # use this to answer phone ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemNoAutoAnswerCmd: ATS0=0 # disable auto-answer # # Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH. # Note that we both turn the speaker on/off and set volume. # ModemSetVolumeCmd: "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1" ModemEchoOffCmd: ATE0 # disable command echo ModemVerboseResultsCmd: ATV1 # enable verbose command results ModemResultCodesCmd: ATQ0 # enable result codes ModemOnHookCmd: ATH0 # place phone on hook (hangup) ModemSoftResetCmd: ATZ # do soft reset of modem ModemWaitTimeCmd: ATS7=60 # wait 60 seconds for carrier ModemCommaPauseTimeCmd: ATS8=2 # comma pause time is 2 seconds ModemRecvFillOrder: LSB2MSB # bit order of received facsimile ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit # # Configuration parameters for Class 2.0 modems. # Class2Cmd: AT+FCLASS=2.0 # command to enter class 2.0 Class2BORCmd: AT+FBO=0 # bit order for phase B/C/D (direct) Class2CQCmd: "" # commands to enable copy quality proc. Class2AbortCmd: AT+FKS # abort session command Class2CQQueryCmd: AT+FCQ=? # query for copy quality capabilities Class2DCCQueryCmd: AT+FCC=? # query for modem capabilities Class2TBCCmd: AT+FPP=0 # setup stream mode Class2CRCmd: AT+FCR=1 # enable capability to receive Class2PHCTOCmd: AT+FCT=30 # set phase C timeout parameter Class2BUGCmd: AT+FBU=1 # enable HDLC frame tracing Class2LIDCmd: AT+FLI # set local identifier command Class2DCCCmd: AT+FCC # set modem capabilities command Class2DISCmd: AT+FIS # set session parameters command Class2DDISCmd: "" # disable pre-dial DIS command hack Class2CIGCmd: AT+FPI # set polling identifier command Class2NRCmd: AT+FNR=1,1,1,1 # setup status reporting command Class2PIECmd: AT+FIE=0 # disable interrupt-enable command Class2PTSCmd: AT+FPS # set post-page status command Class2SPLCmd: AT+FSP # set polling indicator command Class2NFLOCmd: AT+FLO=0 # set no flow control command Class2SFLOCmd: AT+FLO=1 # set software flow control command Class2HFLOCmd: AT+FLO=2 # set hardware flow control command DISCmd: "" # disable pre-dial DIS command hahylafax-v4.0pl1/config/dsi-scout+000444 004341 000024 00000006001 06246675466 016601 0ustar00samuser000000 000000 # $Id: dsi-scout+,v 1.25 1996/06/24 02:58:33 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 1 command interface with # a Digicom Systems, Inc (DSI) Scout+ modem. Firmware version # 2A19/2931 (ati1?) or newer. # # XON/XOFF flow control must be used in firmware revisions before # 3507/3506 because the modem does not honor RTS/CTS during page # transfers. Later revisions permit the configuration of RTS/CTS # flow control through a new (undocumented) register, S24: # # Value Meaning # 0 use XON/XOFF in fax mode # 1 use RTS/CTS in fax mode # 2 use what is specified by *F in fax mode # # Note also that the value of S24 is not permanent. It is reset # after each disconnect. On power on S24 is 0. S24 is unchanged # by the &F command. # # CONFIG:CLASS1:961:.*:.*: Manufacturer=Digicom Model=Scout+ # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # hint to override class 2 ModemRate: 38400 # could probably run 57600 ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT*F0 # disable flow control ModemSoftFlowCmd: AT*F2 # software flow control ModemHardFlowCmd: AT*F3 # harware flow control ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier # Class1SFLOCmd: ATS24=0 # use XON/XOFF in fax mode Class1HFLOCmd: ATS24=1 # use RTS/CTS in fax mode # ModemMfrQueryCmd: !Digicom ModemModelQueryCmd: !Scout+ ModemRevQueryCmd: ATI1 # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # # NB: if your modem supports S24 as described above then # these can be removed. # ModemAnswerFaxBeginCmd: "" # use XON/XOFF for fax recv Class1Cmd: "AT+FCLASS=1\n" # use XON/XOFF for fax send o reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier # Class1SFLOCmd: ATS24=0 # use XON/XOFF in fax mode Class1HFLOCmd: ATS24=1 # use RTS/CTS in fax mode # ModemMfrQueryCmd: !Digicom ModemModelQueryCmd: !Scout+ ModemRevQueryCmd: ATI1 # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # # NB: if your modem supports S24 as described above then # these can be removed. # ModemAnswerFaxBeginCmd: "" # use XON/XOFF for fax recv Class1Cmd: "AT+FCLASS=1\n" # use XON/XOFF for fax sendhylafax-v4.0pl1/config/e-tech000444 004341 000024 00000004672 06246675466 015775 0ustar00samuser000000 000000 # $Id: e-tech,v 1.9 1996/06/24 02:58:33 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # E-TECH, INC. P1496MX 5.06-SWE + FAX # # CONFIG: CLASS2: E-TECH*-RTSCTS # CONFIG: CLASS2: E-TECH*-DEFAULT # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use this to supply a hint ModemRate: 19200 # max rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemHardFlowCmd: AT$F4 # hardware flow control ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # # We normally append the "@" symbol to the dial string so that # the modem will wait 5 seconds before attempting to connect # and return result codes that distinguish between no carrier # and no answer. This makes it possible to avoid problems with # repeatedly dialing a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # NB: If you need to prefix phone numbers to get through a PBX, # put it in the ModemDialCmd; e.g. "DT9%s@". # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # Class2DDISCmd: AT+FDIS # fix for resolution problems ill wait 5 seconds before attempting to connect # and return result cohylafax-v4.0pl1/config/everex-2496d000444 004341 000024 00000005162 06246675467 016670 0ustar00samuser000000 000000 # $Id: everex-2496d,v 1.24 1996/06/24 02:58:34 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for an Everex 24/96D. # # It may be possible to run the modem using RTS/CTS, but at the # data rates it supports there's little point (and since everything # works fine with XON/XOFF flow control, little motivation). # # CONFIG: CLASS2: Everex*-XONXOFF # CONFIG: CLASS2: Everex*-DEFAULT # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 19200 ModemFlowControl: xonxoff # default # ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C0 # DCD always on ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # # Avoid BOR_C_REV 'cuz of a bug in the Everex modem firmware # (Rev 901231 or earlier): BOR=3 and REL=1 generates garbage # data in the EOL padding for received facsimile. # Class2BORCmd: AT+FBOR=2 # direct phase C data, reversed B/D Class2RELCmd: AT+FREL=1 # enable byte-aligned EOLs # # NB: must break CQ=1 BADMUL= BADLIN= into separate lines # for the modem to grok # Class2CQCmd: "AT+FCQ=1\nAT+FBADMUL=20\nAT+FBADLIN=10" # # Disable 2D-encoded data 'cuz some PROM versions appear # to receive bad data (if you figure out why, then remove this). # Class2DCCQueryCmd: !(0,1),(0-3),(0-2),(0-2),(0),(0),(0),(0-7) garbage # data in the EOL padding for received facsimile. # Class2BORCmd: AT+FBOR=2 # direct phase C data, reversed B/D Class2RELCmd: AT+FREL=1 # enable byte-aligned EOLs # # NB: must break CQ=1 BADMUL= BADLIN= into separate lines # for the modem to grok # Class2CQCmd: "AT+FCQ=1\nAT+FBADMUL=20\nAT+FBADLIN=10" # # Disable 2D-encoded data 'cuz some PROM versions appear # to receive bad dathylafax-v4.0pl1/config/exar000444 004341 000024 00000004625 06246675467 015566 0ustar00samuser000000 000000 # $Id: exar,v 1.7 1996/06/24 02:58:34 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Exar-manufactured Class 2 modem. # Yocom 1414E firmware E.C. Version : 7.1 # # This configuration file sets up the modem to run at 19.2 for # sending and for receiving. XON/XOFF flow control is used on # the tty port. # # CONFIG: CLASS2: EXAR*-XONXOFF # CONFIG: CLASS2: EXAR*-DEFAULT # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 19200 # fax send&recv is locked at 19.2 ModemFlowControl: xonxoff # default # ModemSoftFlowCmd: AT&S1\G0\Q4\X1 # software flow control ModemSetupDTRCmd: AT&D2 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FAA=1 # enable in current class # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # ModemWaitForConnect: yes # wait for CONNECT on answer # Class2RecvDataTrigger: "\022" # DC2 Class2DDISCmd: AT+FDIS # set parameter before dialing &S1\G0\Q4\X1 # software flow control ModemSetupDTRCmd: AT&D2 # DTR off causes modem to reset ModemSetupDCDhylafax-v4.0pl1/config/gvc-288000444 004341 000024 00000004322 06246675467 015717 0ustar00samuser000000 000000 # $Id: gvc-288,v 1.5 1996/06/24 02:58:35 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a GVC MAXTech 288 RC288DPi-based Class 2 modem. # Tested with firmware rev KA1131-00. # # CONFIG:CLASS1:288:.*:.*: Manufacturer=GVC Model=RC288DPi # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 38400 # locked for fax sending&receiving ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT\Q0 # disable flow control cmd ModemSoftFlowCmd: AT\Q1 # software flow control cmd ModemHardFlowCmd: AT\Q3 # hardware flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier # ModemMfrQueryCmd: AT+FMFR? # Class 2 commands work in Class 0 ModemModelQueryCmd: AT+FMDL? # actually shows 144DPI ModemRevQueryCmd: AT+FREV? # firmware revision info # ModemDialCmd: ATDT%s # T for tone dialing demFlowControl: rtscts # default # ModemNoFlowCmd: AT\Q0 # disable flow control cmd ModemSoftFlowCmd: AT\Q1 # software flow control cmd ModemHardFlowCmd: AT\Q3 # hardware flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier # Modhylafax-v4.0pl1/config/gvc-288-2000444 004341 000024 00000005734 06246675467 016066 0ustar00samuser000000 000000 # $Id: gvc-288-2,v 1.4 1996/06/24 02:58:35 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a GVC MAXTech 288 RC288DPi-based Class 2 modem. # Tested with firmware rev KA1131-00. # # NB: DCD is toggled at page end during transmits; this can # cause problems on systems where it's not possible to # set CLOCAL and also enable RTS/CTS flow control. # # CONFIG: CLASS2: GVC-*144DPI-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 1 interface ModemRate: 38400 # locked for fax sending&receiving ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT\Q0 # disable flow control cmd ModemSoftFlowCmd: AT\Q1 # software flow control cmd ModemHardFlowCmd: AT\Q3 # hardware flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FAA=1 # enable adaptive-answer in Class 2 # ModemRecvFillOrder: MSB2LSB # bit order of received facsimile ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit # ModemDialCmd: ATDT%s # T for tone dialing # # Chip locks the line rate and switches to xon/xoff flow # control when receiving facsimile--we must follow suit. # ModemAnswerFaxBeginCmd: "<19200>" # lock line rate & switch flow control # Class2RecvDataTrigger: "\022" # character sent to modem to start recv # # These are known to not be implemented on the GVC with the above # firmware rev. Sending them to the modem does not harm anything, # but generates an ERROR result that can generate questions from the # naive--so we disable them here. # Class2TBCCmd: AT # setup stream mode Class2PHCTOCmd: AT # set phase C timeout parameter mile--we must follow suit. # ModemAnhylafax-v4.0pl1/config/intel-400e000444 004341 000024 00000006714 06246675467 016411 0ustar00samuser000000 000000 # $Id: intel-400e,v 1.14 1996/06/24 02:58:35 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 1 command interface with an # Intel SatisFAXtion 400e modem. Modems with firmware revision # U10,U20-28F001BX-5.00 are known to work. # # RTS/CTS flow control is used. The following profile was used: # # ACTIVE PROFILE: # B0 E1 L2 M0 T Q0 V1 X4 Y0 &C1 &D3 &G0 &L0 &P0 &Q0 &R0 &S0 &X0 &Y0 # \A3 %A013 \C0 %C1 %E1 \G0 \J0 \K5 \N3 \Q3 \T00 \V2 \X0 -J1 "H3 "S0 "O250 # S00:000 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:030 # S08:002 S09:006 S10:014 S11:070 S12:050 S18:000 S25:005 S26:001 S31:000 # # CONFIG:CLASS1:149:.*:RTSCTS: Manufacturer=Intel Model=400e # CONFIG:CLASS1:149:.*:DEFAULT: Manufacturer=Intel Model=400e # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use this to supply a hint ModemRate: 38400 # rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemHardFlowCmd: AT\Q3 # set desired flow control method ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemSetupAACmd: AT+FCLASS=0 # leave modem idling in Class 0 # ModemMfrQueryCmd: !Intel ModemModelQueryCmd: !SatisFAXtion 400e ModemRevQueryCmd: ATI3 # # A shorter than normal timer is required for incoming calls to # avoid timing out most data callers when using adaptive answer. # Class1RecvIdentTimer: 15000 # shorter timer for incoming ID AdaptiveAnswer: yes # alternate fax/data answer on error AnswerRotary: "fax data" # try fax first, then data ModemAnswerCmd: AT+FCLASS=1A # "generic" answer (counter 0 idle) # # HACK: Make sure the phone is on on-hook before answering in data mode. # This allows a crude adaptive answer capability by taking advantage of # the fact that, in the US at least, the phone company won't drop the # caller for ten seconds. # ModemAnswerDataCmd: ATH+FCLASS=0A # data answer ModemAnswerFaxCmd: AT+FCLASS=1A # fax answer # #GettyArgs: "-h %l dx_%s" # NB: enable this for dialins (SGI) #GettyArgs: "std.%s -" # NB: enable this for dialins (SunOS) #GettyArgs: "-g -h -t 60 -l ff_%s" # NB: enable this for dialins (SVR4.2) ne is on on-hook before answering in data mode. # Thhylafax-v4.0pl1/config/mt-1432000444 004341 000024 00000005026 06246675470 015624 0ustar00samuser000000 000000 # $Id: mt-1432,v 1.23 1996/06/24 02:58:36 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Multi-Tech MT1432, MT224BA, and MT1932ZDX modems. # # MT1432 firmware rev 0307 I or newer # MT132BG rev 0109A # MT1932ZDX rev 0109H # # Note that MT1432 modems come in several varieties: # # MT1432BA uses Rockwell data pump # MT1432BA/A uses AT&T data pump # MT1432BG MT1432BA tweaked for German FCC # MT1432MK (for UK?) # # The modem has been tried with both XON/XOFF and RTS/CTS flow # control; this configuration is for hardware flow control. # # CONFIG: CLASS2: Multi-Tech*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 # lock rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemHardFlowCmd: AT&E4 # hardware flow control ModemSoftFlowCmd: AT&E5 # software flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemSetupAACmd: AT+FAA=1 # enable adaptive-answer in class 2 # # NB: some models get confused by the @ # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # Class2RecvDataTrigger: "\022" # character sent to modem to start recv ommunication ModemFlowControl: rtscts # default # ModemHardFlowCmd: AT&E4 # hardware flow control ModemSoftFlowCmd: AT&E5 # software flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemSetupAACmd: AT+FAA=1 # enable adaptive-answer in class 2 # # NB: some models get confused by the @ # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # Class2RecvDataTrigger: "\022" # character sent thylafax-v4.0pl1/config/moto-288000444 004341 000024 00000005556 06246675470 016122 0ustar00samuser000000 000000 # $Id: moto-288,v 1.6 1996/06/24 02:58:36 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Motorola RC288DPi-based Class 1 modem. # Lifestyle 28.8 S209415900 -01 1/16/95 3:30 PM # # CONFIG:CLASS1:288:Motorola:.*: Manufacturer=Motorola Model=28.8 # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 38400 # locked for fax sending&receiving ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT\Q # disable flow control cmd ModemSoftFlowCmd: AT&R1\Q1 # software flow control cmd ModemHardFlowCmd: AT&R\Q3 # hardware flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FAA=1 # ModemAnswerCmd: "AT*FR\nATA" # enable autobaud before answering ModemWaitForConnect: yes # modem sends FAX/DATA first # # Apparently Rev 2 of the firmware requires that you send ATO # to initiate a data connection when adaptive answer is set; the # following will send ATO and then wait for the CONNECT response. # ModemAnswerDataBeginCmd:"ATO\n" # ModemMfrQueryCmd: !Motorola ModemModelQueryCmd: !28.8 ModemRevQueryCmd: AT%V # model and firmware rev # ModemDialCmd: ATDT%s # T for tone dialing # # Caller ID configuration setup; add AT*ID1 to ModemResetCmds # to enable functionality (when supported by the local Telco). # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "CALLER NUMBER: " # pattern string for phone number info #CIDName: "CALLER NAME: " # pattern string for identity info # AnswerDataBeginCmd:"ATO\n" # ModemMfrQueryCmd: !Motorola ModemModelQueryCmd: !28.8 ModemRevQueryCmd: AT%V # model and firmware rhylafax-v4.0pl1/config/nuvo-voyager000444 004341 000024 00000004167 06246675470 017263 0ustar00samuser000000 000000 # $Id: nuvo-voyager,v 1.18 1996/06/24 02:58:36 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 1 command interface with # a Nuvo Voyager 9624PFX (based on Rockwell RC224A) # # Note that XON/XOFF flow control must be used. # # CONFIG:CLASS1:242:.*:XONXOFF: Manufacturer=Nuvo Model="Voyager 9642PFX" # CONFIG:CLASS1:242:.*:DEFAULT: Manufacturer=Nuvo Model="Voyager 9642PFX" # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # hint to override class 2 ModemRate: 19200 # locked for fax sending ModemFlowControl: xonxoff # default # ModemSetupDTRCmd: AT&D2 # DTR off causes modem to hangup ModemSetupDCDCmd: AT&C0 # DCD always on # ModemMfrQueryCmd: !Nuvo ModemModelQueryCmd: !9624PFX ModemRevQueryCmd: ATI3 # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence N-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # hint to override class 2 ModemRate: 19200 # locked for fax sending ModemFlowControl: xonxoff # default # ModemSetupDTRCmd: AT&D2 # DTR off causes modem to hangup ModemSetupDCDCmd: AT&C0 # DCD always on # ModemMfrQueryCmd: !hylafax-v4.0pl1/config/ppi-pm14400fxmt000444 004341 000024 00000006132 06246675470 017306 0ustar00samuser000000 000000 # $Id: ppi-pm14400fxmt,v 1.9 1996/06/24 02:58:37 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Config file for a Practical Peripherals PM14400FXMT and # PM28800FXMT modems operating in Class 2. # # Firmware revision 2.17 or newer for PM14400FXMT. # Firmware revision 1.57 or newer for PM28800FXMT. # # CONFIG: CLASS2: *PM14400FXMT*-* # CONFIG: CLASS2: *PM28800FXMT*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 ModemRate: 38400 # rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&K0 # setup no flow control ModemSoftFlowCmd: AT&K4 # setup software flow control ModemHardFlowCmd: AT&K3 # setup hardware flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemSetupAACmd: AT+FAA=1 # enable in current class # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense # # Configuration parameters for Class 2 modems. Boy is this # Class 2 implementation busted! Aside from the usual AT+FDIS # mistake it also sends a garbage RTC, so force the driver to # explicitly append a good one. Beware also that the host gets # XON/XOFF on page data transmit no matter whether RTS/CTS flow # control is enabled or not (hardware flow control *does* wor # though). Receive also automatically locks the line rate to # 19200 and switches to XON/XOFF flow control (or so it appears). # Class2DDISCmd: AT+FDIS # enable workaround for broken +FDIS Class2RecvDataTrigger: "\022" # character sent to modem to start recv Class2SendRTC: yes # modem doesn't append RTC correctly # ModemAnswerFaxBeginCmd: "<19200>" # modem switches on fax receive # Class2BUGCmd: AT+FBUG=0 # no support for HDLC frame tracing ol is enabled or not (hardware flow control *does* wor # though). Receive also automatically locks the line rate to # 19200 and switches to XON/XOFF flow control (or so it appears). # Class2DDISCmd: AT+FDIS # enable workaround for broken +FDIS Class2RecvDataTrigger: "\022" # character sent to modem to start recv Class2SendRTC: yes # modem doesn't append RTC correctly # ModemAnswerFaxBeginCmd: "<19200>" # modhylafax-v4.0pl1/config/ppi-pm14400fxsa000444 004341 000024 00000004313 06246675471 017271 0ustar00samuser000000 000000 # $Id: ppi-pm14400fxsa,v 1.14 1996/06/24 02:58:37 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Config file for a Practical Peripherals PM14400FXSA # Class 2 modem w/ firmware revision 2.17 or newer. # # CONFIG: CLASS2: *PM14400FXSA*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use this to supply a hint ModemRate: 19200 # rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemSoftFlowCmd: AT&K2 # setup software flow control ModemHardFlowCmd: AT&K3 # setup hardware flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense # Class2RecvDataTrigger: "\022" # character sent to modem to start recv Control: rtscts # default # ModemSoftFlowCmd: AT&K2 # setup software flow control ModemHardFlowCmd: AT&K3 # setup hardware flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # ModemDialCmd: ATDT%s@ # T for tonhylafax-v4.0pl1/config/rc144ac000444 004341 000024 00000006155 06246675471 015763 0ustar00samuser000000 000000 # $Id: rc144ac,v 1.31 1996/06/24 02:58:37 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Rockwell V.32AC Class 2 modem # (RC144AC, RC96AC or using RC144DP). # Boca M1440E firmware V1.270 or newer # Dallas Fax (throw it away!) # Hayes Optima 24+Fax96 firmware TR00-J260-001 XXX or newer # SupraFAX v.32bis firmware V1.200-C or newer # Twincom 144/DF firmware rev V1.200 or newer # Dynalink 1414VE firmware rev ??? # (and others) # # This configuration file sets up the modem to run at 38.4 with # RTS/CTS flow control used by default. XON/XOFF is automatically # enabled for fax recv. Beware of modems that also lock sending # to 19.2; add ModemSendBeginCmd: "<19200>" if this is required. # Also beware that the adaptive-answer facility, when supported, # is often unreliable. # # CONFIG: CLASS2: *-V.32AC-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 ModemFlowControl: rtscts # default # #ModemResetCmds: AT&F2 # what you want for a Supra ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset #ModemSetupDTRCmd: AT&D2S25=1S38=0 # Dynalink 1414VE needs this ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FAA=1+FCLASS=0 # enable in current class # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense # ModemAnswerFaxBeginCmd: "<19200>" # modem switches on fax receive # # Caller ID configuration setup for Supra. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "NMBR = " # pattern string for phone number info #CIDName: "NAME = " # pattern string for identity info s this ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FAA=1+FCLASS=0 # enable in current class # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense # ModemAnswerFaxBeginCmd: "<19200>" # modem switches on fax receive # # Caller ID configuration setup for Supra. # #QualifyCID: etc/cid # CID access control list file #CIDNumbehylafax-v4.0pl1/config/rc144ac-1000444 004341 000024 00000005047 06246675471 016120 0ustar00samuser000000 000000 # $Id: rc144ac-1,v 1.33 1996/06/24 02:58:38 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Rockwell RC144AC/RC96AC-based Class 1 modem. # Hayes Optima 24+Fax96 firmware TR00-J260-001 XXX or newer # Twincom 144/DF firmware revision V1.200 or newer # (and others) # # Note that XON/XOFF flow control may be needed for some modems. # # CONFIG:CLASS1:998:.*:.*: Manufacturer=ROCKWELL Model=RC96AC # CONFIG:CLASS1:999:.*:.*: Manufacturer=ROCKWELL Model=RC144AC # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 38400 ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemSetupAACmd: AT+FAA=0 # in case modem supports Class 2 also # ModemMfrQueryCmd: !Rockwell # no way to query modem ModemModelQueryCmd: !RC144AC # maybe fibbing ModemRevQueryCmd: ATI3 # firmware revision info # # Modem locks receive rate after inbound call is answered. # ModemAnswerFaxBeginCmd: "<19200>" # NB: fax recv locked at 19.2 tFlowCmd: AT&K4 # software flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemSetupAACmd: AT+FAA=0 # in case modem supports Class 2 also # ModemMfrQueryCmd: !Rockwell # no way to query modem ModemModelQueryCmd: !RC144AC # maybe fibbing ModemRevQueryCmd: ATI3 # firmware revision info # # Modem locks receive rate after inbound call is answered. # ModemAnswerFaxBeginCmd: "<1920hylafax-v4.0pl1/config/rc288dpi000444 004341 000024 00000005337 06246675471 016166 0ustar00samuser000000 000000 # $Id: rc288dpi,v 1.4 1996/06/24 02:58:38 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Rockwell RC288DPi-based Class 2 modem # (should also work for 144DPi-based modems). # Microcom DeskPorte 28.8S firmware rev V1.100K-V34_DS # (and others) # # NB: DCD is toggled at page end during transmits; this can # cause problems on systems where it's not possible to # set CLOCAL and also enable RTS/CTS flow control. # # CONFIG: CLASS2: ROCKWELL-AC/V34-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 1 interface ModemRate: 38400 # locked for fax sending&receiving ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&K0 # disable flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FAA=1 # enable adaptive-answer in Class 2 # ModemRecvFillOrder: MSB2LSB # bit order of received facsimile ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit # ModemDialCmd: ATDT%s # T for tone dialing # # Chip locks the line rate and switches to xon/xoff flow # control when receiving facsimile--we must follow suit. # ModemAnswerFaxBeginCmd: "<19200>" # lock line rate & switch flow control # Class2RecvDataTrigger: "\022" # character sent to modem to start recv r ModemSetupAACmd: AT+FAA=1 # enable adaptive-answer in Class 2 # ModemRecvFillOrder: MSB2LSB # bit order of received facsimile ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit # ModemDialCmd: ATDT%s # T for tone dialing # # Chip locks the line rate and switches to xhylafax-v4.0pl1/config/rc288dpi-1000444 004341 000024 00000004775 06246675471 016331 0ustar00samuser000000 000000 # $Id: rc288dpi-1,v 1.4 1996/06/24 02:58:39 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Rockwell RC288DPi-based Class 1 modem. # Hayes Optima 28800 firmware rev ??? # Microcom DeskPorte 28.8S firmware rev V1.100K-V34_DS # PPI PM288FXMT firmware rev 1.57 # # Note that the modem does not lock the line rate for fax # receive (at least not the PM288FXMT); but not sure whether # current flow control settings are maintained or if it # switches to XON/XOFF (testing host was too fast to see). # # CONFIG:CLASS1:28800:.*:.*: Manufacturer=ROCKWELL Model=RC288DPi # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use this to supply a hint ModemRate: 38400 # rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&K0 # setup no flow control ModemHardFlowCmd: AT&K3 # setup hardware flow control ModemSoftFlowCmd: AT&K4 # setup software flow control ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # ModemMfrQueryCmd: !Rockwell ModemModelQueryCmd: !RC288DPi ModemRevQueryCmd: ATI3 # product information # ModemDialCmd: ATDT%s # T for tone dialing 384hylafax-v4.0pl1/config/rc32acl000444 004341 000024 00000005216 06246675472 016051 0ustar00samuser000000 000000 # $Id: rc32acl,v 1.17 1996/06/24 02:58:39 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Rockwell RC32ACL-based Class 2 modem. # Boca M1440E firmware V1.000 # SupraFAX v.32bis firmware V1.000 # (and others) # # This configuration file sets up the modem to run at 38.4 for # sending and for receiving. RTS/CTS is used for flow control # which also works for data connections. Adaptive answer support # is reliable, but to use it you must also enable ModemWaitForConnect # to force the server to skip intermediate status messages and # wait for the "CONNECT" message. # # CONFIG: CLASS2: ROCKWELL-RC32ACL*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 ModemFlowControl: rtscts # default ModemWaitForConnect: yes # wait for CONNECT on answer # #ModemResetCmds: AT&F2 # what you want for a Supra ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemSetupDTRCmd: AT&D2 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FCLASS=0;+FAA=1 # enable in class 0 # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense Class2RecvDataTrigger: "\022" # a la 2388-B ResetCmds: AT&F2 # what you want for a Supra ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemSetupDTRCmd: AT&D2 # DTR off causes modem to reset ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FCLASS=0;+FAA=1 # enable in class 0 # ModemShylafax-v4.0pl1/config/rc32acl-1000444 004341 000024 00000004443 06246675472 016210 0ustar00samuser000000 000000 # $Id: rc32acl-1,v 1.18 1996/06/24 02:58:39 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Rockwell-based Class 1 modem. # SupraFAX v.32bis firmware V1.200-C or newer # (and others) # # This configuration file sets up the modem to run at 38.4 # and use RTS/CTS flow control by default. # # CONFIG:CLASS1:14400:.*:.*: Manufacturer=ROCKWELL Model=RC32ACL # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 38400 ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemSetupAACmd: AT+FAA=0 # in case modem supports Class 2 also # ModemMfrQueryCmd: !Rockwell # no way to query modem ModemModelQueryCmd: !RC32ACL # not always right ModemRevQueryCmd: ATI3 8400 ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemSetupDTRCmd: AT&Dhylafax-v4.0pl1/config/rockwell000444 004341 000024 00000005653 06246675472 016447 0ustar00samuser000000 000000 # $Id: rockwell,v 1.2 1996/06/24 02:58:40 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Rockwell-based modem not otherwise handled by # another prototype configuration file. This file assumes the modem # is compatible with the Rc144AC, RC96AC or RC144DP. # # This configuration file sets up the modem to run at 38.4 with # RTS/CTS flow control used by default. XON/XOFF is automatically # enabled for fax recv. Beware of modems that also lock sending # to 19.2; add ModemSendBeginCmd: "<19200>" if this is required. # Also beware that the adaptive-answer facility, when supported, # is often unreliable. # # CONFIG: CLASS2: ROCKWELL*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 ModemFlowControl: rtscts # default # #ModemResetCmds: AT&F2 # what you want for a Supra ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemSetupDTRCmd: AT&D3 # DTR off causes modem to reset #ModemSetupDTRCmd: AT&D2S25=1S38=0 # Dynalink 1414VE needs this ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FAA=1+FCLASS=0 # enable in current class # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense # ModemAnswerFaxBeginCmd: "<19200>" # modem switches on fax receive # # Caller ID configuration setup for Supra. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "NMBR = " # pattern string for phone number info #CIDName: "NAME = " # pattern string for identity info s this ModemSetupDCDCmd: AT&C1 # DCD follows carrier ModemSetupAACmd: AT+FAA=1+FCLAShylafax-v4.0pl1/config/skel000444 004341 000024 00000013571 06246675472 015561 0ustar00samuser000000 000000 # $Id: skel,v 1.35 1996/06/24 02:58:40 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP # # BEGIN-SERVER #CountryCode: 1 # USA #LongDistancePrefix: 1 #InternationalPrefix: 011 #AreaCode: 415 #DialStringRules: etc/dialrules FAXNumber: +1.999.555.1212 LocalIdentifier: "NothingSetup" # default is canonical FAXNumber ServerTracing: 1 # log server-related operations SessionTracing: 11 # log server-related operations RecvFileMode: 0600 # recvd facsimile are not public LogFileMode: 0600 # private log files DeviceMode: 0600 # device is accessible only to uucp/fax GettyArgs: "-h %l dx_%s" # requires modem to auto-detect fax/data QualifyTSI: "" # do not restrict inbound facsimile SpeakerVolume: off # machine's are already too loud RingsBeforeAnswer: 1 # answer on first ring TagLineFont: etc/lutRS18.pcf # tag line font TagLineFormat: "From %%l|%c|Page %%p of %%t" MaxBadCalls: 5 # max 5 consecutive bad calls PostScriptTimeout: 300 # 5 minute timeout on PostScript jobs MaxSendPages: 25 # max pages in an outbound job MaxRecvPages: 25 # max pages in an inbound job ContCoverPage: etc/cover.templ # enable continuation cover pages DestControls: etc/destcontrols # destination-specific controls MaxConcurrentJobs: 1 # serialize jobs to the same dest TimeOfDay: "Any" # outbound jobs any day, any time # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # #ModemType: Class1 # use this to supply a hint ModemRate: 38400 # rate for DCE-DTE communication ModemFlowControl: rtscts # RTS/CTS flow control assumed ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # # We normally append the "@" symbol to the dial string so that # the modem will wait 5 seconds before attempting to connect # and return result codes that distinguish between no carrier # and no answer. This makes it possible to avoid problems with # repeatedly dialing a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # NB: If you need to prefix phone numbers to get through a PBX, # put it in the ModemDialCmd; e.g. "DT9%s@". # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # # Other possible configuration stuff. The default strings are # shown below. Only those that are different from the defaults # need to be included in the configuration file. # ModemResetCmds: "" # stuff to do when modem is reset ModemAnswerCmd: ATA # use this to answer phone ModemNoFlowCmd: AT&K # disable flow control cmd ModemHardFlowCmd: AT&K3 # hardware flow control cmd ModemSoftFlowCmd: AT&K4 # software flow control cmd ModemNoAutoAnswerCmd: ATS0=0 # disable auto-answer # # Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH. # Note that we both turn the speaker on/off and set volume. # ModemSetVolumeCmd: "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1" ModemEchoOffCmd: ATE0 # disable command echo ModemVerboseResultsCmd: ATV1 # enable verbose command results ModemResultCodesCmd: ATQ0 # enable result codes ModemOnHookCmd: ATH0 # place phone on hook (hangup) ModemSoftResetCmd: ATZ # do soft reset of modem ModemWaitTimeCmd: ATS7=60 # wait 60 seconds for carrier ModemCommaPauseTimeCmd: ATS8=2 # comma pause time is 2 seconds ModemRecvFillOrder: LSB2MSB # bit order of received facsimile ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit # # Configuration parameters for Class 2 modems. # Class2Cmd: AT+FCLASS=2 # command to enter class 2 Class2BORCmd: AT+FBOR=0 # bit order for phase B/C/D (direct) Class2RELCmd: AT+FREL=1 # byte-align EOL codes on recv Class2CQCmd: "" # commands to enable copy quality proc. Class2AbortCmd: AT+FK # abort session command Class2CQQueryCmd: AT+FCQ=? # query for copy quality capabilities Class2DCCQueryCmd: AT+FDCC=? # query for modem capabilities Class2TBCCmd: AT+FTBC=0 # setup stream mode Class2CRCmd: AT+FCR=1 # enable capability to receive Class2PHCTOCmd: AT+FPHCTO=30 # set phase C timeout parameter Class2BUGCmd: AT+FBUG=1 # enable HDLC frame tracing Class2LIDCmd: AT+FLID # set local identifier command Class2DCCCmd: AT+FDCC # set modem capabilities command Class2DISCmd: AT+FDIS # set session parameters command Class2DDISCmd: "" # disable pre-dial DIS command hack Class2CIGCmd: AT+FCIG # set polling identifier command Class2PTSCmd: AT+FPTS # set post-page status command Class2SPLCmd: AT+FSPL # set polling indicator command # # If Class2RecvDataTrigger is not set, then it is set to DC1 # Class2RecvDataTrigger: "" # character sent to modem to start recv Class2XmitWaitForXON: yes # if true, wait for XON before send C # set modem capabilities command Class2DISCmd: AT+FDIS # set session parameters command Class2DDISCmd: "" # disable pre-dial DIShylafax-v4.0pl1/config/telebit-qblazer000444 004341 000024 00000004472 06246675473 017712 0ustar00samuser000000 000000 # $Id: telebit-qblazer,v 1.4 1996/06/24 02:58:40 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Telebit QBlazer Plus modem with rev LA7.01 # or newer firmware. # # The modem is setup to run at 38.4 for both sending and # receiving and use RTS/CTS flow control by default. # # CONFIG: CLASS2: Telebit*Q*-* # CONFIG: CLASS2: TELEBIT*Q*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 # rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemHardFlowCmd: ATS58=2 # full duplex hardware flow control ModemSoftFlowCmd: ATS58=3 # XON/XOFF flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense # # The QBlazer Plus apparently doesn't send XON in the page transmit # handshake. # Class2XmitWaitForXON: no # violates class 2 spec mFlowControl: rtscts # default # ModemHardFlowCmd: ATS58=2 # full duplex hardware flow control ModemSoftFlowCmd: ATS58=3 # XON/XOFF flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resethylafax-v4.0pl1/config/telebit-t3000000444 004341 000024 00000004474 06246675473 017022 0ustar00samuser000000 000000 # $Id: telebit-t3000,v 1.7 1996/06/24 02:58:41 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Telebit T3000 modem with rev LA7.01 # or newer firmware. # # The modem is setup to run at 38.4 for both sending and # receiving and use RTS/CTS flow control by default. # # CONFIG: CLASS2: TELEBIT*T3000*-* # CONFIG: CLASS2: Telebit*T3000*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 # rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemHardFlowCmd: ATS58=2 # full duplex hardware flow control ModemSoftFlowCmd: ATS58=3 # XON/XOFF flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemSetupAACmd: AT+FAA=1;+FCLASS=0 # enable in class 2 & reset to data ModemWaitForConnect: yes # two-part protocol for adaptive-answer # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense owControl: rtscts # default # ModemHardFlowCmd: ATS58=2 # full duplex hardware flow control ModemSoftFlowCmd: ATS58=3 # XON/XOFF flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resetshylafax-v4.0pl1/config/telebit-wb000444 004341 000024 00000004773 06246675473 016666 0ustar00samuser000000 000000 # $Id: telebit-wb,v 1.28 1996/06/24 02:58:41 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a Telebit WorldBlazer modem with rev LA7.01 # or newer firmware. Note that adaptive answer is only available # with firmware rev 7.20. # # The modem is setup to run at 38.4 for both sending and receiving # and RTS/CTS flow control is used by default. # # CONFIG: CLASS2: Telebit*-* # CONFIG: CLASS2: TELEBIT*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 # rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemHardFlowCmd: ATS58=2 # full duplex hardware flow control ModemSoftFlowCmd: ATS58=3 # XON/XOFF flow control ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # ModemSetupAACmd: AT+FAA=1;+FCLASS=0 # enable in class 2 & reset to data ModemWaitForConnect: yes # two-part protocol for adaptive-answer # ModemResetDelay: 3200 # extra long reset timeout required # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense # Class2DDISCmd: AT+FDIS # LA7.20N apparently requires this N/XOFhylafax-v4.0pl1/config/tricom2842000444 004341 000024 00000004256 06246675473 016441 0ustar00samuser000000 000000 # $Id: tricom2842,v 1.11 1996/06/24 02:58:41 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 1 command interface with # a Tricom Tornado28/42 modem # # XON/XOFF flow control is used. # # CONFIG:CLASS1:2882:.*:.*: Manufacturer=Tricom Model=Tornado # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 19200 # lock rate for DCE-DTE communication ModemFlowControl: xonxoff # default # ModemNoFlowCmd: AT\Q0 # disable flow control cmd ModemSoftFlowCmd: AT\Q1 # XON/XOFF flow control cmd ModemHardFlowCmd: AT\Q3 # RTS/CTS flow control cmd ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemResultCodesCmd: ATX4 # enable result codes # ModemMfrQueryCmd: !Tricom ModemModelQueryCmd: !Tornado ModemRevQueryCmd: ATI0 erface ModemRate: 19200 # lock rate for DCE-DTE communication ModemFlowControl: xonxoff # default # ModemNoFlowCmd: AT\Q0 # disable flow control cmd ModemSoftFlowCmd: AT\Q1 # XON/XOFF flow control cmd ModemHardFlowCmd: AT\Q3 # RTS/CTS flow control cmd ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&hylafax-v4.0pl1/config/uds-fastalk000444 004341 000024 00000005612 06246675474 017040 0ustar00samuser000000 000000 # $Id: uds-fastalk,v 1.9 1996/06/24 02:58:42 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # UDS FasTalk Fax32 (class 1) # # Configuration for using the Universal Data Systems # (Motorola) Fastalk FAX32 9600 baud modem. Firmware # version 185 (ati1) or newer. # # CONFIG:CLASS1:960:.*:XONXOFF: Manufacturer='UDS' Model='FasTalk' # CONFIG:CLASS1:960:.*:DEFAULT: Manufacturer='UDS' Model='FasTalk' # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use this to supply a hint ModemRate: 19200 ModemFlowControl: xonxoff # required for this modem # ModemSoftFlowCmd: AT\Q1 # sets xon/xoff flow control (required) ModemSetupDTRCmd: AT&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C2 # DCD on except at disconnect # ModemMfrQueryCmd: !UDS ModemModelQueryCmd: !FasTalk ModemRevQueryCmd: ATI1 # # We normally append the "@" symbol to the dial string so that # the modem will wait 5 seconds before attempting to connect # and return result codes that distinguish between no carrier # and no answer. This makes it possible to avoid problems with # repeatedly dialing a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # NB: If you need to prefix phone numbers to get through a PBX, # put it in the ModemDialCmd; e.g. "DT9%s@". # ModemDialCmd: ATDT%s@ # T for tone dialing, @ for silence # # I had better results when I wasn't doing receive quality checking # turn these back on if you want - but don't blame me for results !! # MaxConsecutiveBadLines: 0 # don't check (default is 5) PercentGoodLines: 0 # don't check (default is 95%) ng a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # NB: If you need to prefix phhylafax-v4.0pl1/config/usr-2.0000444 004341 000024 00000005541 06246675474 015731 0ustar00samuser000000 000000 # $Id: usr-2.0,v 1.7 1996/06/24 02:58:42 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 2.0 command interface # with a USR v.34 Courier or Sporster modem. # # RTS/CTS flow control is used default. # # CONFIG: CLASS2.0: USRobotics*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2.0 # use class 2.0 interface ModemRate: 38400 # DCE-DTE communication rate ModemFlowControl: rtscts # XON/XOFF flow control assumed # ModemNoFlowCmd: AT&H0&I0&R1 # setup modem for no flow control ModemHardFlowCmd: AT&H1&I0&R2 # setup modem for hardware flow control ModemSoftFlowCmd: AT&H2&I2&R1 # setup modem for software flow control # ModemSetupDTRCmd: ATS13=1&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemResultCodesCmd: ATQ0X4 # enable extended result codes # # NB: adaptive answer only seems to work properly when # the modem is left idling in Class 2.0 # ModemSetupAACmd: AT+FAA=1 # # Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH. # Note that we both turn the speaker on/off and set volume. # ModemSetVolumeCmd: "ATM0 ATM1 ATM1 ATM1 ATM1" # # Modem does not support HDLC frame tracing; we add this just # to eliminate spurious ERROR results that confuse the naive. # Class2BUGCmd: AT+FBU=0 # # The modem doesn't support copy quality checking, even though it # returns (0-2,0-2) for AT+FCQ=?; therefore we override the query # response so that the server will do copy quality checking. # Class2CQQueryCmd: !(0),(0) # override modem response . # Note that we both turn the speaker on/off and set volume. # ModemSetVolumeCmd: "ATM0 ATM1 ATM1 ATM1 ATM1" # # Modem does not support HDLC frame tracing; wehylafax-v4.0pl1/config/usr-rts000444 004341 000024 00000006170 06246675474 016241 0ustar00samuser000000 000000 # $Id: usr-rts,v 1.6 1996/06/24 02:58:43 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 1 command interface with # a USR Courier or Sportster modem and RTS/CTS flow control. # # CONFIG:CLASS1:1444:.*:RTSCTS: Manufacturer=USRobotics Model=Courier/Sportster # CONFIG:CLASS1:1445:.*:RTSCTS: Manufacturer=USRobotics Model=Courier/Sportster # CONFIG:CLASS1:2886:.*:RTSCTS: Manufacturer=USRobotics Model=Courier/Sportster # CONFIG:CLASS1:3366:.*:RTSCTS: Manufacturer=USRobotics Model=Courier # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 38400 # max rate for DCE-DTE communication ModemFlowControl: rtscts # hardware flow control # ModemSetupDTRCmd: ATS13=1&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemNoFlowCmd: AT&H0&I0&R1 # setup modem for no flow control ModemHardFlowCmd: AT&H1&I0&R2 # setup modem for hardware flow control ModemSoftFlowCmd: AT&H2&I2&R1 # setup modem for software flow control ModemResultCodesCmd: ATQ0X4 # enable result codes # ModemMfrQueryCmd: !USR ModemModelQueryCmd: ATI3 ModemRevQueryCmd: ATI7 # XXX, returns a multi-line result # # When AT+FCLASS=1 is issued the modem automatically switches # to software flow control; these parameters let the fax software # reset flow control as needed after entering Class 1. # Class1NFLOCmd: AT&H0&I0&R1 # setup modem for no flow control Class1HFLOCmd: AT&H1&I0&R2 # setup modem for hardware flow control Class1SFLOCmd: "" # modem does this automatically # # The remainder of this configuration is included so that the # modem "idles" in Class 0 while not sending or receiving facsimile. # ModemSetupAACmd: AT+FCLASS=0&H1&I0&R2 # leave modem in class 0 ModemAnswerCmd: AT+FCLASS=1&H1&I0&R2A # force RTS/CTS after change ftware # reset flow control as needed after entering Class 1. # Class1NFLOCmd: AT&H0&I0&R1 # setup modem for no flow control Class1HFLOCmd: AT&H1&I0&R2 # setup modem for hardware flow control Class1SFLOCmd: "" # modem does this automatically # # The remainder of this configuration is included so that the # modem "idles" in Class 0 while not sending or receiving facsimile. # ModemSetupAhylafax-v4.0pl1/config/usr-xon000444 004341 000024 00000006161 06246675474 016235 0ustar00samuser000000 000000 # $Id: usr-xon,v 1.6 1996/06/24 02:58:43 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for using the Class 1 command interface with # a USR Courier or Sportster modem and XON/XOFF flow control. # # CONFIG:CLASS1:1444:.*:XON*|DEF*: Manufacturer=USRobotics Model=Courier/Sportster # CONFIG:CLASS1:1445:.*:XON*|DEF*: Manufacturer=USRobotics Model=Courier/Sportster # CONFIG:CLASS1:2886:.*:XON*|DEF*: Manufacturer=USRobotics Model=Courier/Sportster # CONFIG:CLASS1:3366:.*:XON*|DEF*: Manufacturer=USRobotics Model=Courier # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 38400 # max rate for DCE-DTE communication ModemFlowControl: xonxoff # hardware flow control # ModemSetupDTRCmd: ATS13=1&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemNoFlowCmd: AT&H0&I0&R1 # setup modem for no flow control ModemHardFlowCmd: AT&H1&I0&R2 # setup modem for hardware flow control ModemSoftFlowCmd: AT&H2&I2&R1 # setup modem for software flow control ModemResultCodesCmd: ATQ0X4 # enable result codes # ModemMfrQueryCmd: !USR ModemModelQueryCmd: ATI3 ModemRevQueryCmd: ATI7 # XXX returns a multi-line result # # When AT+FCLASS=1 is issued the modem automatically switches # to software flow control; these parameters let the fax software # reset flow control as needed after entering Class 1. # Class1NFLOCmd: AT&H0&I0&R1 # setup modem for no flow control Class1HFLOCmd: AT&H1&I0&R2 # setup modem for hardware flow control Class1SFLOCmd: "" # modem does this automatically # # The remainder of this configuration is included so that the # modem "idles" in Class 0 while not sending or receiving facsimile. # ModemSetupAACmd: AT+FCLASS=0 # leave modem idling in class 0 ModemAnswerCmd: AT+FCLASS=1A # answer in Class 1 eters let the fax software # reset flow control as needed after entering Class 1. # Class1NFLOCmd: AT&H0&I0&R1 # setup modem for no flow control Class1HFLOCmd: AT&H1&I0&R2 # setup modem for hardware flow control Class1SFLOCmd: "" # modem does this automatically # # The remainder of this configuration is included so that the # modem "idles" in Class 0 while not sending or receiving facsimile. hylafax-v4.0pl1/config/zyxel-1496e000444 004341 000024 00000011074 06246675475 016543 0ustar00samuser000000 000000 # $Id: zyxel-1496e,v 1.31 1996/06/24 02:58:43 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a ZyXEL U1496. Firmware revisions from # 5.02 on should work, though rev 6.01 works much better. # Actually, the preferred use is to get firwmare rev 6.13 or # 6.14 and configure the modem to use Class 2.0; this file # is kept around for folks with old firmware. # # This configuration file sets up the ZyXEL to run at 38.4 for # both sending and receiving. RTS/CTS flow control is used on # the tty port--you probably shouldn't use XON/XOFF. Note that # on an SGI system the getty speed is the following non-standard # gettydefs entry: # # dx_38400# B38400 # B38400 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #dx_38400 # # CONFIG: CLASS2: ZyXEL*1496*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2 # use class 2 interface ModemRate: 38400 # 38.4 works fine ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&H0 # disable flow control ModemHardFlowCmd: AT&H3 # hardware flow control ModemSoftFlowCmd: AT&H4 # software flow control ModemSetupDTRCmd: AT&D2 # DTR off causes modem to hang up ModemSetupDCDCmd: AT&C1 # DCD tracks carrier ModemSetupAACmd: AT+FAA=1 # enable in current class # ModemSendFillOrder: LSB2MSB # as expected ModemRecvFillOrder: MSB2LSB # opposite of what makes sense Class2RecvDataTrigger: "\022" # a la 2388-B # # Additional reset commands: # # &B1 DTE-DCE rate is fixed at DTE setting # &N0 Auto-negotiate highest possible DCE-DCE link rate # &S0 DSR always on # *F0 Deny remote configuration # S18=2 Receive at 38400 # S38.3=1 DCD on/off sequence follows UNIX standard; also # fix receiving baud rate at S18 value # S39=0 (avoid Class 2 compatibility hacks) # ModemResetCmds: AT&B1&N0&S0*F0S18=2S38.3=1S39=0 # # We normally append the "@" symbol to the dial string so that # the modem will wait 5 seconds before attempting to connect # and return result codes that distinguish between no carrier # and no answer. This makes it possible to avoid problems with # repeatedly dialing a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # Unfortunately, ZyXEL's don't seem to detect a busy signal when # the @ symbol is used to terminate the dialing string. Instead # calls to a busy line come back with a NO CARRIER status which # causes us to toss the job. Consequently we fall back to the # normal method and raise the number of retries on a no carrier # status. ZyXEL claims that this behaviour is not a bug, but # rather that we are requesting ``an enhancement'' (never mind # that their manual says that it should work). # ModemDialCmd: ATDT%s # no '@' 'cuz then busy not recognized NoCarrierRetrys: 3 # retry 3 times on no carrier # ModemSetVolumeCmd: "ATM0 ATM1L1 ATM1L3 ATM1L5 ATM1L7" # # Caller ID configuration setup. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "CALLER NUMBER: " # pattern string for phone number info #CIDName: "CALLER NAME: " # pattern string for identity info # PagerSetupCmds: AT&K0&N15 # use V.22 at 1200 bps (PageNet) # # Rev 6.1x firmware have a bug in the ECM support so # explicitly disable it's use. To re-enable its use just # comment out the following line. # Class2DCCQueryCmd: "!(0,1),(0-5),(0-4),(0-2),(0,1),(0),(0),(0-7)" 1L5 ATM1L7" # # Caller ID configuration setup. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "CALLER NUMBER: " # pattern string for phone number info #CIDName: "CALLER NAME: " # pattern string for identity info # PagerSetupCmds: AT&K0&N15 # use V.22 at 1200 bps (PageNet) # # Rev 6.1x firmware have a bug in the ECM support so # explicitly disable it's use. To re-enable its use just # comment out the following line. # Class2hylafax-v4.0pl1/config/zyxel-1496e-1000444 004341 000024 00000010015 06246675475 016673 0ustar00samuser000000 000000 # $Id: zyxel-1496e-1,v 1.7 1996/06/24 02:58:44 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Class 1 configuration for a ZyXEL U1496. Class 1 # support was introduced in firmware revision 6.14. # # This configuration file sets up the ZyXEL to run at 38.4 for # both sending and receiving. RTS/CTS flow control is used on # the tty port by default. # # CONFIG:CLASS1:1496:.*:.*: Manufacturer=ZyXEL Model=U1496 # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use class 1 interface ModemRate: 38400 # 38.4 works fine ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&H0 # disable flow control ModemHardFlowCmd: AT&H3 # hardware flow control ModemSoftFlowCmd: AT&H4 # software flow control ModemSetupDTRCmd: AT&D2 # DTR off causes modem to hang up ModemSetupDCDCmd: AT&C1 # DCD tracks carrier ModemSetupAACmd: AT+FAA=1 # enable in current class # # Additional reset commands: # # &B1 DTE-DCE rate is fixed at DTE setting # &N0 Auto-negotiate highest possible DCE-DCE link rate # &S0 DSR always on # *F0 Deny remote configuration # S38.3=1 DCD on/off sequence follows UNIX standard # ModemResetCmds: AT&B1&N0&S0*F0S38.3=1 # # We normally append the "@" symbol to the dial string so that # the modem will wait 5 seconds before attempting to connect # and return result codes that distinguish between no carrier # and no answer. This makes it possible to avoid problems with # repeatedly dialing a number that doesn't have a fax machine # (kudos to Stuart Lynne for this trick.) # # Unfortunately, ZyXEL's don't seem to detect a busy signal when # the @ symbol is used to terminate the dialing string. Instead # calls to a busy line come back with a NO CARRIER status which # causes us to toss the job. Consequently we fall back to the # normal method and raise the number of retries on a no carrier # status. ZyXEL claims that this behaviour is not a bug, but # rather that we are requesting ``an enhancement'' (never mind # that their manual says that it should work). # ModemDialCmd: ATDT%s # no '@' 'cuz then busy not recognized NoCarrierRetrys: 3 # retry 3 times on no carrier # ModemSetVolumeCmd: "ATM0 ATM1L1 ATM1L3 ATM1L5 ATM1L7" # ModemMfrQueryCmd: AT+FMFR? ModemModelQueryCmd: "!" ModemRevQueryCmd: AT+FREV? # # NB: this works around a bug in the 6.14 firmware; the modem does not # not deliver the FCS bytes in the received HDLC frame, per the spec. # Class1FrameOverhead: 2 # 6.14 firmware does not include FCS # # Caller ID configuration setup. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "CALLER NUMBER: " # pattern string for phone number info #CIDName: "CALLER NAME: " # pattern string for identity info # PagerSetupCmds: AT&K0&N15 # use V.22 at 1200 bps (PageNet) eryCmd: AT+FREV? # # NB: this works around a bug in the 6.14 firmware; the modem does not # not deliver the FCS bytes in the received HDLC frame, per the spec. # Class1FrameOverhead: 2 # 6.14 firmware does not include FCS # # Caller ID configuration setup. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "CALLER NUMBER: " # pattern string for phone number info #CIDName: "CALLER NAME: " # pattern string for identity info # PagerSetupCmds: AT&K0&N15 # use V.22 at 1200 bhylafax-v4.0pl1/config/zyxel-1496e-2.0000444 004341 000024 00000006767 06246675475 017055 0ustar00samuser000000 000000 # $Id: zyxel-1496e-2.0,v 1.19 1996/06/24 02:58:44 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a ZyXEL-1496E or 2864 w/ Class 2.0 firmware. # Firmware revisions from 6.12 on should work for the 1496E; for # the 2864 you must have firmware rev 0.07 or later. # # This configuration file sets up the ZyXEL to run at 38.4 for # both sending and receiving. RTS/CTS flow control is used on # the tty port--you probably shouldn't use XON/XOFF. Note that # on an SGI system the getty speed is the following non-standard # gettydefs entry: # # dx_38400# B38400 # B38400 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #dx_38400 # # CONFIG: CLASS2.0: ZyXEL*1496*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2.0 # use class 2.0 interface ModemRate: 38400 # 38.4 works fine ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&H0 # disable flow control ModemHardFlowCmd: AT&H3 # hardware flow control ModemSoftFlowCmd: AT&H4 # software flow control ModemSetupDTRCmd: AT&D2 # DTR off causes modem to hang up ModemSetupDCDCmd: AT&C1 # DCD tracks carrier # ModemSetupAACmd: AT+FAA=1 # enable in current class # # Additional reset commands: # # &B1 DTE-DCE rate is fixed at DTE setting # &N0 Auto-negotiate highest possible DCE-DCE link rate # &S0 DSR always on # *F0 Deny remote configuration # S18=2 Receive at 38400 # S38.3=1 DCD on/off sequence follows UNIX standard; also # fix receiving baud rate at S18 value # S39=0 (avoid Class 2 compatibility hacks) # ModemResetCmds: AT&B1&N0&S0*F0S18=2S38.3=1S39=0 # ModemDialCmd: ATDT%s # no '@' 'cuz then busy not recognized NoCarrierRetrys: 3 # retry 3 times on no carrier # ModemSetVolumeCmd: "ATM0 ATM1L1 ATM1L3 ATM1L5 ATM1L7" # # Caller ID configuration setup. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "CALLER NUMBER: " # pattern string for phone number info #CIDName: "CALLER NAME: " # pattern string for identity info # PagerSetupCmds: AT&K0&N15 # use V.22 at 1200 bps (PageNet) # # Rev 6.1x firmware have a bug in the ECM support so # explicitly disable it's use. To re-enable its use just # comment out the following line. # Class2DCCQueryCmd: "!(0,1),(0-5),(0-4),(0-2),(0,1),(0),(0),(0-7)" 1L5 ATM1Lhylafax-v4.0pl1/config/zyxel-2864000444 004341 000024 00000006227 06246675475 016402 0ustar00samuser000000 000000 # $Id: zyxel-2864,v 1.4 1996/07/28 16:41:11 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Configuration for a ZyXEL 2864, 2864I, or Omni 288S in Class 2.0. # # This configuration file sets up the ZyXEL to run at 38.4 for # both sending and receiving. RTS/CTS flow control is used on # the tty port--you probably shouldn't use XON/XOFF. Note that # on an SGI system the getty speed is the following non-standard # gettydefs entry: # # dx_38400# B38400 # B38400 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #dx_38400 # # CONFIG: CLASS2.0: ZyXEL*2864*-* # CONFIG: CLASS2.0: ZyXEL*O288S*-* # # BEGIN-SERVER # END-SERVER # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class2.0 # use class 2.0 interface ModemRate: 38400 # 38.4 works fine ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&H0 # disable flow control ModemHardFlowCmd: AT&H3 # hardware flow control ModemSoftFlowCmd: AT&H4 # software flow control ModemSetupDTRCmd: AT&D2 # DTR off causes modem to hang up ModemSetupDCDCmd: AT&C1 # DCD tracks carrier # ModemSetupAACmd: AT+FAA=1 # enable in current class # # Additional reset commands: # # &B1 DTE-DCE rate is fixed at DTE setting # &N0 Auto-negotiate highest possible DCE-DCE link rate # &S0 DSR always on # *F0 Deny remote configuration # S18=4 Receive at 38400 # S38.3=1 DCD on/off sequence follows UNIX standard; also # fix receiving baud rate at S18 value # ModemResetCmds: AT&B1&N0&S0*F0S18=4S38.3=1 # ModemDialCmd: ATDT%s # no '@' 'cuz then busy not recognized NoCarrierRetrys: 3 # retry 3 times on no carrier # ModemSetVolumeCmd: "ATM0 ATM1L1 ATM1L3 ATM1L5 ATM1L7" # # Caller ID configuration setup. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "CALLER NUMBER: " # pattern string for phone number info #CIDName: "CALLER NAME: " # pattern string for identity info # PagerSetupCmds: AT&K0&N15 # use V.22 at 1200 bps (PageNet) S18 value # ModemResetCmds: AT&B1&N0&S0*F0S18=4S38.3=1 # ModemDialCmd: ATDT%s # no '@' 'cuz then busy not recognized NoCarrierRetrys: 3 # retry 3 times on no carrier # ModemSetVolumeCmd: "ATM0 ATM1L1 ATM1L3 ATM1L5 ATM1L7" # # Caller ID configuration setup. # #QualifyCID: etc/cid # CID access control list file #CIDNumber: "CALLER NUMBER: " # pattern sthylafax-v4.0pl1/etc/Makefile.in000444 004341 000024 00000006471 06246675476 016260 0ustar00samuser000000 000000 #!smake # $Id: Makefile.in,v 1.72 1996/08/16 20:58:36 sam Rel $ # # @WARNING@ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # VERSION: @VERSION@ # DATE: @DATE@ # TARGET: @TARGET@ # CCOMPILER: @CCOMPILER@ # CXXCOMPILER: @CXXCOMPILER@ # DEPTH=.. @MAKEINCLUDE@ @MAKELQUOTE@${DEPTH}/defs@MAKERQUOTE@ SRCDIR = ${DEPTH}/${TOPSRCDIR}/etc VPATH = ../@SRCDIR@/etc DIALRULES=dialrules \ dialrules.sf-ba \ dialrules.europe TARGETS = config.fax hosts xferlog lockname ondelay default all:: @${MAKE} targets targets: ${TARGETS} @MAKEINCLUDE@ @MAKELQUOTE@${COMMONRULES}@MAKERQUOTE@ hosts: ${ECHO} "localhost" >hosts ${ECHO} "127.0.0.1" >>hosts xferlog: ${ECHO} >xferlog config.fax: ${ECHO} on >config.fax lockname: ${SRCDIR}/lockname.c ${CCF} -o $@ ${SRCDIR}/lockname.c ondelay: ${SRCDIR}/ondelay.c ${CCF} -o $@ ${SRCDIR}/ondelay.c PUTSERVER = ${INSTALL} -idb ${PRODUCT}.sw.server PUTSAMPLE = ${PUTSERVER} -u ${FAXUSER} -g ${FAXGROUP} \ -idb "config(noupdate)" install: default ${PUTSERVER} -F ${SBIN} -m 755 -src faxaddmodem.sh -O faxaddmodem ${PUTSERVER} -F ${SBIN} -m 755 -src faxsetup.sh -O faxsetup for i in bsdi irix linux; do \ ${PUTSERVER} -F ${SBIN} -m 755 \ -src ${SRCDIR}/faxsetup.$$i -O faxsetup.$$i; \ done ${PUTSERVER} -F ${SBIN} -m 755 -src probemodem.sh -O probemodem ${PUTSAMPLE} -F ${SPOOL}/etc -m 644 -o xferlog ${PUTSAMPLE} -F ${SPOOL}/etc -m 600 -o hosts for i in ${DIALRULES}; do \ ${PUTSERVER} -F ${SPOOL}/etc -m 444 -src ${SRCDIR}/$$i \ -idb "config(update)" -O $$i; \ done ${PUTSERVER} -F ${LIBEXEC} -m 755 -O lockname ondelay ${PUTSAMPLE} -F ${SPOOL}/etc -m 644 -idb nostrip \ -src ${SRCDIR}/lutRS18.pcf -O lutRS18.pcf # # System V-specific init support. # installSysVInit: hylafax ${PUTSERVER} -F /etc/init.d -m 755 -O hylafax ${PUTSERVER} -F /etc/rc2.d -lns /etc/init.d/hylafax S80fax ${PUTSERVER} -F /etc/rc0.d -lns /etc/init.d/hylafax K80fax if test -d /etc/config; then \ ${PUTSERVER} -F /etc/config -m 644 -src config.fax -O fax; \ fi # # These targets are created during the configuration procedure. # clobberconfig: -${RM} -f hylafax probemodem.sh faxaddmodem.sh faxsetup.sh SRCDIR}/lutRS18.pcf -O lutRS18.pcf # # System V-specific init support. # installSysVInit: hylafax ${PUTSERVER} -F /etc/init.d -m 755 -O hylafax ${PUTSERVER} -F /etc/rc2.d -lns /etc/init.d/hylafax hylafax-v4.0pl1/etc/copy.h000444 004341 000024 00000002446 06246675476 015334 0ustar00samuser000000 000000 /* $Id: copy.h,v 1.9 1996/06/24 02:59:31 sam Rel $ /* * Copyright (c) 1990-1996 Sam Leffler * Copyright (c) 1991-1996 Silicon Graphics, Inc. * HylaFAX is a trademark of Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission notice appear in * all copies of the software and related documentation, and (ii) the names of * Sam Leffler and Silicon Graphics may not be used in any advertising or * publicity relating to the software without the specific, prior written * permission of Sam Leffler and Silicon Graphics. * * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. * * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. */ HERWISE, INCLUDING WITHOUT LIMITATION, ANY * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. * * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR * ANY SPECIAL, INCIDENTAL, INDIRhylafax-v4.0pl1/etc/copy.m000444 004341 000024 00000002455 06246675476 015341 0ustar00samuser000000 000000 # $Id: copy.m,v 1.11 1996/06/24 02:59:31 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # LIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIhylafax-v4.0pl1/etc/copy.ps000444 004341 000024 00000002456 06246675477 015531 0ustar00samuser000000 000000 % $Id: copy.ps,v 1.11 1996/06/24 02:59:31 sam Rel $ % % HylaFAX Facsimile Software % % Copyright (c) 1990-1996 Sam Leffler % Copyright (c) 1991-1996 Silicon Graphics, Inc. % HylaFAX is a trademark of Silicon Graphics, Inc. % % Permission to use, copy, modify, distribute, and sell this software and % its documentation for any purpose is hereby granted without fee, provided % that (i) the above copyright notices and this permission notice appear in % all copies of the software and related documentation, and (ii) the names of % Sam Leffler and Silicon Graphics may not be used in any advertising or % publicity relating to the software without the specific, prior written % permission of Sam Leffler and Silicon Graphics. % % THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, % EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY % WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. % % IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR % ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, % OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, % WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF % LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE % OF THIS SOFTWARE. % LIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY % WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. % % IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR % ANY SPECIAL, INChylafax-v4.0pl1/etc/dialrules000444 004341 000024 00000003555 06246675477 016123 0ustar00samuser000000 000000 ! $Id: dialrules,v 1.7 1996/06/24 02:59:32 sam Rel $ ! ! HylaFAX (tm) Dialing String Processing Rules. ! ! This file describes how to process user-specified dialing strings ! to create two items: ! ! CanonicalNumber: a unique string that is derived from all dialing ! strings to the same destination phone number. This string is used ! by the fax server for ``naming'' the destination. ! ! DialString: the string passed to the modem for use in dialing the ! telephone. This string should be void of any characters that might ! confuse the modem. ! Area=${AreaCode} ! local area code Country=${CountryCode} ! local country code IDPrefix=${InternationalPrefix} ! prefix for placing an international call LDPrefix=${LongDistancePrefix} ! prefix for placing a long distance call ! WS=" " ! our notion of white space ! ! Convert a phone number to a canonical format: ! ! + ! ! by (possibly) stripping off leading dialing prefixes for ! long distance and/or international dialing. ! CanonicalNumber := [ #.* = ! strip calling card stuff [abcABC] = 2 ! these convert alpha to numbers [defDEF] = 3 [ghiGHI] = 4 [jklJKL] = 5 [mnoMNO] = 6 [prsPRS] = 7 [tuvTUV] = 8 [wxyWXY] = 9 [^+0-9]+ = ! strip white space etc. ^${IDPrefix} = + ! replace int. dialing code ^${LDPrefix} = +${Country} ! replace l.d. dialing code ^[^+] = +${Country}${Area}& ! otherwise, insert canon form ] ! ! Process a dialing string according to local requirements. ! These rules do only one transformation: they convert in-country ! international calls to long-distance calls. ! DialString := [ [-${WS}.]+ = ! strip syntactic sugar [abcABC] = 2 ! these convert alpha to numbers [defDEF] = 3 [ghiGHI] = 4 [jklJKL] = 5 [mnoMNO] = 6 [prsPRS] = 7 [tuvTUV] = 8 [wxyWXY] = 9 ^[+]${Country} = ${LDPrefix} ! long distance call ^[+] = ${IDPrefix} ! international call ] }& ! otherwise, insert canon form ] ! ! Process a dialing string according to local requirements. ! These rules do only one transformation: they cohylafax-v4.0pl1/etc/dialrules.sf-ba000444 004341 000024 00000004141 06246675477 017102 0ustar00samuser000000 000000 ! $Id: dialrules.sf-ba,v 1.6 1996/06/24 02:59:32 sam Rel $ ! ! HylaFAX (tm) Dialing String Processing Rules ! for the San Francisco Bay Area. ! ! This file describes how to process user-specified dialing strings ! to create two items: ! ! CanonicalNumber: a unique string that is derived from all dialing ! strings to the same destination phone number. This string is used ! by the fax server for ``naming'' the destination. ! ! DialString: the string passed to the modem for use in dialing the ! telephone. This string should be void of any characters that might ! confuse the modem. ! Area=${AreaCode} ! local area code Country=${CountryCode} ! local country code IDPrefix=${InternationalPrefix} ! prefix for placing an international call LDPrefix=${LongDistancePrefix} ! prefix for placing a long distance call ! WS=" " ! our notion of white space ! ! Convert a phone number to a canonical format: ! ! + ! ! by (possibly) stripping off leading dialing prefixes for ! long distance and/or international dialing. ! CanonicalNumber := [ #.* = ! strip calling card stuff [abcABC] = 2 ! these convert alpha to numbers [defDEF] = 3 [ghiGHI] = 4 [jklJKL] = 5 [mnoMNO] = 6 [prsPRS] = 7 [tuvTUV] = 8 [wxyWXY] = 9 [^+0-9]+ = ! strip white space etc. ^${IDPrefix} = + ! replace int. dialing code ^${LDPrefix} = +${Country} ! replace l.d. dialing code ^[^+] = +${Country}${Area}& ! otherwise, insert canon form ] ! ! Process a dialing string according to local requirements. ! This may involve stripping local country and area codes, ! inserting dialing prefixes, etc. In the SF bay area it is ! necessary to remove any long distance dialing information ! when calling a number in the same area code. ! DialString := [ [-${WS}.]+ = ! strip syntactic sugar [abcABC] = 2 ! these convert alpha to numbers [defDEF] = 3 [ghiGHI] = 4 [jklJKL] = 5 [mnoMNO] = 6 [prsPRS] = 7 [tuvTUV] = 8 [wxyWXY] = 9 ^${LDPrefix}${Area} = ! local phone call ^[+]${Country}${Area} = ! local phone call ^[+]${Country} = ${LDPrefix} ! long distance call ^[+] = ${IDPrefix} ! international call ] bay area it is ! necessary to remove any long distance dialing information ! when calling a number in the same area code. ! DialString := [ [-${WS}.]+ = ! strip syntactic sugar [abcABC] = 2 ! these convert alpha to numbers [defDEF] = 3 [ghiGHI] = 4 [jklJKL] = 5 [mnoMNO] = 6 [prsPRS] = 7 [tuvTUV] = 8 [wxyWXY] = 9 ^${LDPrefix}${Area} = ! local phone call ^[+]${Country}${Area} = ! local phone call hylafax-v4.0pl1/etc/dialrules.europe000444 004341 000024 00000004622 06246675477 017415 0ustar00samuser000000 000000 ! $Id: dialrules.europe,v 1.6 1996/06/24 02:59:32 sam Rel $ ! ! HylaFAX (tm) Dialing String Processing Rules ! for much of Europe. ! ! From: "Ed Cole" ! ! This file describes how to process user-specified dialing strings ! to create two items: ! ! CanonicalNumber: a unique string that is derived from all dialing ! strings to the same destination phone number. This string is used ! by the fax server for ``naming'' the destination. ! ! DialString: the string passed to the modem for use in dialing the ! telephone. This string should be void of any characters that might ! confuse the modem. ! Area=${AreaCode} ! local area code Country=${CountryCode} ! local country code IDPrefix=${InternationalPrefix} ! prefix for placing an international call LDPrefix=${LongDistancePrefix} ! prefix for placing a long distance call ! WS=" " ! our notion of white space ! ! Convert a phone number to a canonical format: ! ! + ! ! by (possibly) stripping off leading dialing prefixes for ! long distance and/or international dialing. ! CanonicalNumber := [ #.* = ! strip calling card stuff [abcABC] = 2 ! these convert alpha to numbers [defDEF] = 3 [ghiGHI] = 4 [jklJKL] = 5 [mnoMNO] = 6 [prsPRS] = 7 [tuvTUV] = 8 [wxyWXY] = 9 [^+0-9]+ = ! strip white space etc. ^${IDPrefix} = + ! replace int. dialing code ^${LDPrefix} = +${Country} ! STD call (long distance) ^[^+] = +${Country}${Area}& ! else cononicalize ] ! ! Process a dialing string according to local requirements. ! These rules do only one transformation: they convert in-country ! international calls to long-distance calls. ! DialString := [ [-${WS}.]+ = ! strip syntactic sugar [abcABC] = 2 ! these convert alpha to numbers [defDEF] = 3 [ghiGHI] = 4 [jklJKL] = 5 [mnoMNO] = 6 [prsPRS] = 7 [tuvTUV] = 8 [wxyWXY] = 9 ^${IDPrefix}${Country}${Area} = ! local phone call ^${LDPrefix}${Area} = ! local phone call ^${IDPrefix}${Country} = ${LDPrefix} ! STD call (long distance) ^[+]${Country}${Area} = ! local phone call ^[+]${Country} = ${LDPrefix} ! STD call (long distance) ^[+] = ${IDPrefix} ! international call ] = 3 [ghiGHI] = 4 [jklJKL] = 5 [mnoMNO] = 6 [prsPRS] = 7 [tuvTUV] = 8 [wxyWXY] = 9 ^${IDPrefix}${Countrhylafax-v4.0pl1/etc/hylafax.in000544 004341 000024 00000006200 06246675500 016152 0ustar00samuser000000 000000 #! /bin/sh # $Id: hylafax.in,v 1.33 1996/06/26 14:58:03 sam Rel $ # # @WARNING@ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # VERSION: @VERSION@ # DATE: @DATE@ # TARGET: @TARGET@ # # # fax server control # # NB: This script assumes faxgetty processes are managed by init # SPOOL=@SPOOL@ test -f $SPOOL/etc/setup.cache || { cat</dev/null) 2>/dev/null; then killall() { $KILLALL $1 $2 } else killall() { # NB: ps ax should give an error on System V, so we try it first! pid="`ps ax 2>/dev/null | $AWK \"\ /[\/ (]$2[ )]/ {print \\$1;} /[\/ ]$2\$/ {print \\$1;}\"`" test "$pid" || pid="`ps -e 2>/dev/null | $AWK \"/ $2[ ]*\$/ {print \\$1;}\"`" test "$pid" && kill $1 $pid; return } fi case $1 in 'start') if $IS_ON fax && test -x $FAXQ; then killall -15 faxq killall -15 hfaxd $ECHO "HylaFAX:\c" $FAXQ; $ECHO " faxq\c" $HFAXD -i $FAXPORT -o 4557 -s $SNPPPORT $ECHO " hfaxd (w/ compatibility & SNPP)\c" $ECHO "." fi ;; 'stop') $ECHO "Stopping HylaFAX Servers." $FAXQUIT >/dev/null 2>&1 killall -15 hfaxd ;; *) echo "usage: /etc/init.d/hylafax {start|stop}" ;; esac /null | $AWK \"/ $2[ ]*\$/ {print \\$1;}\"`" test "$pid" && kill $1 $pid; return } fi case $1 in 'start') if $IS_ON fax && test -x $FAXQ; then killall -15 faxq killall -15 hfaxd $ECHO "HylaFAX:\c" $FAXQ; $ECHO " faxq\c" $HFAXD -i $FAXPORT -o 4557 -s $SNPPPORT $ECHO " hfaxd (w/ compatibility & SNPP)\c" $ECHO "." fi ;; 'stop') $ECHO "Stoppinghylafax-v4.0pl1/etc/faxaddmodem.sh.in000444 004341 000024 00000151562 06246675500 017413 0ustar00samuser000000 000000 #! @SCRIPT_SH@ # $Id: faxaddmodem.sh.in,v 1.175 1996/06/24 02:59:33 sam Rel $ # # @WARNING@ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # VERSION: @VERSION@ # DATE: @DATE@ # TARGET: @TARGET@ # # # faxaddmodem [tty] # # This script interactively configures a HylaFAX server # from keyboard input on a standard terminal. There may # be some system dependencies in here; hard to say with # this mountain of shell code! # SPOOL=@SPOOL@ SPEED= while [ x"$1" != x"" ] ; do case $1 in -s) SPEED=$2; shift;; -*) echo "Usage: $0 [-s SPEED] [ttyname]"; exit 1;; *) TTY=$1;; esac shift done test -f $SPOOL/etc/setup.cache || { cat</dev/null` test -z "$euid" -a -w /dev && euid=root if [ "$euid" != "root" ]; then echo "Sorry, but you must run this script as the super-user!" exit 1 fi SH=$SCRIPT_SH # shell for use below CPATH=$SPOOL/etc/config # prefix of configuration file OUT=/tmp/addmodem$$ # temp file in which modem output is recorded SVR4UULCKN=$LIBEXEC/lockname # SVR4 UUCP lock name construction program ONDELAY=$LIBEXEC/ondelay # prgm to open devices blocking on carrier CAT="$CAT -u" # something to do unbuffered reads and writes FAX=fax # identity of the fax user GROUP=/etc/group # where to go for group entries PROTOGID=$FAXGID # group who's gid we use for FAX user defPROTOGID=10 # use this gid if PROTOGID doesn't exist MODEMCONFIG=$SPOOL/config # location of prototype modem config files RMCMD="$RM -f" # forced removal # # Prompt the user for a string that can not be null. # promptForNonNullStringParameter() { x="" while [ -z "$x" ]; do prompt "$2 [$1]?"; read x if [ "$x" ]; then # strip leading and trailing white space x=`echo "$x" | $SED -e 's/^[ ]*//' -e 's/[ ]*$//'` else x="$1" fi done param="$x" } # # Prompt the user for a string that can be null. # promptForStringParameter() { prompt "$2 [$1]?"; read x if [ "$x" ]; then # strip leading and trailing white space x=`echo "$x" | $SED -e 's/^[ ]*//' -e 's/[ ]*$//'` else x="$1" fi param="$x" } # # Prompt the user for a numeric value. # promptForNumericParameter() { x="" while [ -z "$x" ]; do prompt "$2 [$1]?"; read x if [ "$x" ]; then # strip leading and trailing white space x=`echo "$x" | $SED -e 's/^[ ]*//' -e 's/[ ]*$//'` match=`expr "$x" : "\([0-9]*\)"` if [ "$match" != "$x" ]; then echo "" echo "This must be entirely numeric; please correct it." echo "" x=""; fi else x="$1" fi done param="$x" } # # Prompt the user for a C-style numeric value. # promptForCStyleNumericParameter() { x="" while [ -z "$x" ]; do prompt "$2 [$1]?"; read x if [ "$x" ]; then # strip leading and trailing white space and C-style 0x prefix x=`echo "$x" | $SED -e 's/^[ ]*//' -e 's/[ ]*$//'` match=`expr "$x" : "\([0-9]*\)" \| "$x" : "\(0x[0-9a-fA-F]*\)"` if [ "$match" != "$x" ]; then echo "" echo "This must be entirely numeric; please correct it." echo "" x=""; fi else x="$1" fi done param="$x" } # # Prompt the user for a boolean value. # promptForBooleanParameter() { x="" while [ -z "$x" ]; do prompt "$2 [$1]?"; read x if [ "$x" ]; then # strip leading and trailing white space x=`echo "$x" | $SED -e 's/^[ ]*//' -e 's/[ ]*$//'` case "$x" in n|no|off) x=no;; y|yes|on) x=yes;; *) cat < $x done # zap any gettys or other users fuser -k $DEVS >/dev/null 2>&1 || { cat< Spaces, hyphens, and periods can be included for legibility. For example, +$CountryCode.$AreaCode.555.1212 is a possible phone number (using your country and area codes). EOF ok=no; fi } # # Verify that a number is octal and if not, add a prefixing "0". # checkOctalNumber() { param=$1 if [ "`expr "$param" : '\(.\)'`" != 0 ]; then param="0${param}" return 0 else return 1 fi } checkForLocalFile() { f="`echo $1 | $SED 's/\"//g'`" if [ ! -f $SPOOL/$f ]; then cat<$PROMPTS</dev/null 2>&1;; cua*) ttysoftcar -n $TTY >/dev/null 2>&1;; esac ;; esac if [ -x ${ONDELAY} ]; then onDev() { if [ "$1" = -c ]; then shift; catpid=`${ONDELAY} $tdev $SH -c "$* >$OUT" & echo $!` else ${ONDELAY} $tdev $SH -c "$*" fi } else cat<<'EOF' The "ondelay" program to open the device without blocking is not present. We're going to try to continue without it; let's hope that the serial port won't block waiting for carrier... EOF onDev() { if [ "$1" = -c ]; then shift; catpid=`$SH <$tdev >$tdev -c "$* >$OUT" & echo $!` else $SH <$tdev >$tdev -c "$*" fi } fi STTY=`ttyStty $tdev` # appropriate stty cmd # # Send each command in SendString to the modem and collect # the result in $OUT. Read this very carefully. It's got # a lot of magic in it! # SendToModem() { COMMAND=$* sleep 1 # wait for previous kill onDev $STTY 0; sleep 1 # reset the modem (hopefully) # start listening for output onDev -c "$STTY clocal && exec $CAT $tdev"; sleep 2 # # NB: eof is set to ^A so that only 1 character is needed # for a pending read on HPUX systems # onDev $STTY -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal $SPEED; sleep 1 # NB: merging \r & ATQ0 causes some modems problems printf "\r" >$tdev; sleep 1; # force consistent state printf "ATQ0V1E1\r" >$tdev; sleep 1; # enable echo and result codes for i in $COMMAND; do printf "$i\r" >$tdev; sleep 1; done kill -9 $catpid; catpid= # NB: [*&\\\\$] must have the "$" last for AIX (yech) pat=`echo "$i"|$SED -e 's/[*&\\\\$]/\\\\&/g'` # escape regex metacharacters RESPONSE=`tr -ds '\015' '\012' < $OUT | \ $SED -n "/$pat/{n;s/ *$//;p;q;}" | $SED 's/+F.*=//'` } echo "" if [ -z "$SPEED" ]; then # # Probe for the highest speed at which the modem # responds to "AT" with "OK". # printf "Probing for best speed to talk to modem:" SPEEDS=`ttySpeeds $tdev` # set of speeds for auto-bauding for SPEED in $SPEEDS do printf " $SPEED" SendToModem AT >/dev/null 2>&1 sleep 1 RESULT=`tr -ds '\015' '\012' < $OUT | tail -1` test "$RESULT" = OK && break; done if [ "$RESULT" != OK ]; then echo "" echo "Unable to deduce DTE-DCE speed; check that you are using the" echo "correct device and/or that your modem is setup properly. If" echo "all else fails, try the -s option to lock the speed." exit 1 fi echo " OK." else echo "Using user-specified $SPEED to talk to modem." fi RESULT=""; while [ -z "$RESULT" ]; do # # This goes in the background while we try to # reset the modem. If something goes wrong, it'll # nag the user to check on the problem. # (trap 0 1 2 15; while true; do sleep 10; echo "" echo "Hmm, something seems to be hung, check your modem eh?" done)& nagpid=$! trap "$RMCMD \$JUNK; kill $nagpid \$catpid; exit 1" 0 1 2 15 SendToModem "AT+FCLASS=?" # ask for class support kill $nagpid trap "$RMCMD \$JUNK; test \"\$catpid\" && kill \$catpid; exit 1" 0 1 2 15 sleep 1 RESULT=`tr -ds '\015' '\012' < $OUT | tail -1` if [ -z "$RESPONSE" ]; then echo "" echo "There was no response from the modem. Perhaps the modem is" echo "turned off or the cable between the modem and host is not" echo "connected. Please check the modem and hit a carriage return" prompt "when you are ready to try again:" read x fi done ModemType="" Manufacturer="" Model="" ProtoType=skel # # Initialize desired flow control scheme # according to the device name (if it's # meaningful). Otherwise, setup to use any # default flow control defined in the prototype # configuration file. # FlowControl=default case $TARGET in *-irix*) case $TTY in ttym${PORT}) FlowControl=xonxoff;; ttyf${PORT}) FlowControl=rtscts;; esac ;; esac # # Prompt the user for a flow control scheme. # promptForFlowControlParameter() { x="" while [ -z "$x" ]; do prompt "$2 [$1]?"; read x if [ "$x" ]; then # strip leading and trailing white space x=`echo "$x" | $SED -e 's/^[ ]*//' -e 's/[ ]*$//'` case "$x" in xon*|XON*) x=xonxoff;; rts*|RTS*) x=rtscts;; def*|DEF*) x=default;; *) cat <$PROMPTS . $PROMPTS fi printModemConfig case $TARGET in *-irix*) checkFlowControlAgainstTTY;; esac # # XXX not sure what kind of consistency checking that can # be done w/o knowing more about the modem... # prompt "Are these ok [yes]?"; read ok done verifyModemRate TMPSED=/tmp/faxsed$$; JUNK="$JUNK $TMPSED" (echoServerSedCommands; echoModemSedCommands)>$TMPSED # # All done with the prompting; edit up a config file! # echo "" echo "Creating new configuration file $CONFIG..." JUNK="$JUNK $CONFIG.new" if $SED -f $TMPSED $proto >$CONFIG.new; then if cmp -s $CONFIG.new $CONFIG >/dev/null 2>&1; then echo "...nothing appears to have changed; leaving the original file." $RMCMD $CONFIG.new else if [ -f $CONFIG ]; then echo "...saving current file as $CONFIG.sav." mv $CONFIG $CONFIG.sav fi $MV $CONFIG.new $CONFIG $CHOWN $FAX $CONFIG $CHGRP $faxGID $CONFIG $CHMOD 644 $CONFIG fi else echo "" echo "*** Sorry, something went wrong building $CONFIG.new." echo "*** The original config file is unchanged; I'm terminating before" echo "*** I do something stupid." echo "" exit 1 fi # # Create FIFO. special file and remove any old one. # FIFO=$SPOOL/FIFO.$DEVID test -p $FIFO || { prompt "Creating fifo $FIFO for faxgetty..." if (mkfifo $FIFO) >/dev/null 2>&1; then echo "done." elif (mknod $FIFO p) >/dev/null 2>&1; then echo "done." else echo "" echo "*** Unable to create fifo \"$FIFO\"; terminating." exit 1 fi } $CHOWN $FAX $FIFO; $CHGRP $faxGID $FIFO; $CHMOD 600 $FIFO if [ "$OLDFIFO" ]; then echo "Removing old fifo $OLDFIFO."; $RMCMD $OLDFIFO; fi echo "Done setting up the modem configuration." echo "" # # Configuration parameters specific to scheduler operation. # Required parameters are *always* emitted in the created # configuration file; optional parameters are emitted # only if the configured value differs from the default # value known to be used by the server. # # NB: the order of some parameters is important; e.g. # DialStringRules must be after AreaCode and CountryCode. # RequiredSchedulerParameters=" LogFacility CountryCode AreaCode LongDistancePrefix InternationalPrefix DialStringRules ServerTracing " OptionalSchedulerParameters=" ContCoverPage ContCoverCmd DestControls MaxConcurrentJobs MaxDials MaxSendPages MaxTries ModemClass PostScriptTimeout PS2FaxCmd SendFaxCmd SendPageCmd SendUUCPCmd SessionTracing TimeOfDay Use2D " defaultContCoverPage= defaultContCoverCmd=\"bin/mkcover\" defaultDestControls= defaultMaxConcurrentJobs=1 defaultMaxDials=12 defaultMaxSendPages=0xffffffff defaultMaxTries=3 defaultModemClass= defaultPostScriptTimeout=180 defaultPS2FaxCmd=\"bin/ps2fax\" defaultSendFaxCmd=\"bin/faxsend\" defaultSendPageCmd=\"bin/pagesend\" defaultSendUUCPCmd=\"bin/uucpsend\" defaultSessionTracing=0xffffffff defaultTimeOfDay=\"Any\" defaultUse2D=Yes # # NB: these defaults are set above # OptionalParameters=" $OptionalSchedulerParameters JobReqOther NotifyCmd UUCPLockDir UUCPLockTimeout UUCPLockType " SchedulerParameters=" $RequiredSchedulerParameters $OptionalParameters " # # The following parameters are checked to make sure # they have values consistent with what was just written # to the modem configuration file. It is ok for some # of these to be different, but usually they should be # the same so if they disagree we prompt the user to # see if we should propagate the new values from the # modem config file to the scheduler config file. # CheckedParameters=" LogFacility CountryCode AreaCode LongDistancePrefix InternationalPrefix DialStringRules JobReqOther NotifyCmd UUCPLockDir UUCPLockTimeout UUCPLockType " # # Echo the configuration lines for those scheduler parameters # whose value is different from the default value. Note # that we handle the case where there is embedded whitespace # by enclosing the parameter value in quotes. # echoSchedulerParameters() { (for i in $RequiredSchedulerParameters; do eval echo \"$i:\$$i:\" done for i in $OptionalSchedulerParameters; do eval echo \"$i:\$$i:\$default$i\" done) | $AWK -F: ' function p(tag, value) { tabs = substr("\t\t\t", 1, 3-int((length(tag)+1)/8)); if (match(value, "^[^\"].*[ ]") == 0) printf "%s:%s%s\n", tag, tabs, value else printf "%s:%s\"%s\"\n", tag, tabs, value } $2 != $3{ p($1, $2) }' } # # Print the current server configuration parameters. # printSchedulerConfig() { (for i in $SchedulerParameters; do eval echo \"$i:\$$i:\$default$i\" done) | $AWK -F: ' function p(tag, value) { tabs = substr("\t\t\t", 1, 3-int((length(tag)+1)/8)); printf "%s:%s%s\n", tag, tabs, value } BEGIN { printf "\nThe non-default scheduler parameters are:\n\n" } $2 != $3{ p($1, $2) } END { printf "\n" }' } # # Check the current contents of the scheduler configuration file # against that parameters just setup for the per-modem config file. # If anything has changed (e.g. phone number info), then prompt # the user to update the file. # updateConfig=yes # # Initialize server parameters from the defaults. # for i in $OptionalSchedulerParameters; do eval $i=\$default$i done if [ -f $SCHEDCONFIG ]; then echo "Checking $SCHEDCONFIG for consistency..." # # Save current settings in variables with a ``modem'' prefix. # for i in $CheckedParameters; do eval modem$i=\$$i done # # Read old configuration file in as the ``current settings''. # getServerParameters $SCHEDCONFIG # # Check current parameter settings against ``modem settings''. # If inconsistencies are detected in the parameters that should # (by default) be kept consistent, then try to propagate the new # parameter settings from the modem config file to the scheduler # config file. # ok=yes for i in $CheckedParameters; do eval test \"\$$i\" != \"\$modem$i\" && { ok=skip; break; } done if [ $ok != yes ]; then echo "...some parameters are different." # # Move the ``modem settings'' to the current settings # and let the user ok them or change them to what they # want. We do this shuffle w/o touching the default # settings so that optional parameter handling works # (i.e. that only non-default values for optional params # are displayed and/or written to the file). # for i in $CheckedParameters; do eval $i=\$modem$i done else echo "...everything looks ok; leaving existing file unchanged." updateConfig=no fi else echo "No scheduler configuration file exists, creating one from scratch." ok=skip # got important params above fi rm -f $PROMPTS while isNotOK $ok; do if [ "$ok" != skip ]; then test -f $PROMPTS || compilePrompts>$PROMPTS<$SCHEDCONFIG.new 2>/dev/null if cmp -s $SCHEDCONFIG.new $SCHEDCONFIG >/dev/null 2>&1; then echo "...nothing appears to have changed; leaving the original file." rm -f $SCHEDCONFIG.new elif [ -s $SCHEDCONFIG.new ]; then if [ -f $SCHEDCONFIG ]; then echo "...saving current file as $SCHEDCONFIG.sav." $MV $SCHEDCONFIG $SCHEDCONFIG.sav fi $MV $SCHEDCONFIG.new $SCHEDCONFIG $CHOWN $FAX $SCHEDCONFIG $CHGRP $faxGID $SCHEDCONFIG $CHMOD 644 $SCHEDCONFIG else echo "" echo "*** Sorry, something went wrong building $SCHEDCONFIG.new." echo "*** The original config file is unchanged; check your disk space?" echo "" exit 1 fi fi echo "" echo "Don't forget to run faxmodem(1M) (if you have a send-only environment)" echo "or configure init to run faxgetty on $TTY." exec >/dev/null 2>&1 IG.sav." $MV $SCHEDCONFIG $SCHEDCONFIG.sav fi $MV $SCHEDCONFIG.new $SCHEDCONFIG $CHOWN $FAX $SCHEDCONFIG $CHGRP $faxGID $SCHEDCONFIG hylafax-v4.0pl1/etc/faxsetup.bsdi000444 004341 000024 00000003066 06246675500 016676 0ustar00samuser000000 000000 # $Id: faxsetup.bsdi,v 1.3 1996/06/24 02:59:33 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1995-1996 Sam Leffler # Copyright (c) 1995-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # BSD/OS-specific definitions for faxsetup. # dumpTTYFuncs() { cat<<'EOF' ttyPort() { expr $1 : 'com\(.*\)' } ttyLocks() { echo $UUCP_LOCKDIR/LCK..$1 } ttyAliases() { echo /dev/$1 } ttyDev() { echo /dev/$1 } checkPort() { return } EOF } # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # BSD/OS-specific definitions for faxsetup. # dumpTTYFuncs() { cat<<'EOF' ttyPort() { expr $1 : 'com\(.*\)' } ttyLocks() { echo $UUCP_LOCKDIR/LCK..$1 } ttyAliases() { echo /dev/$1 } ttyDev() hylafax-v4.0pl1/etc/faxsetup.irix000444 004341 000024 00000005507 06246675501 016733 0ustar00samuser000000 000000 # $Id: faxsetup.irix,v 1.4 1996/08/27 22:11:57 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1995-1996 Sam Leffler # Copyright (c) 1995-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # IRIX-specific definitions for faxsetup. # dumpTTYFuncs() { cat<<'EOF' ttyPort() { expr $1 : 'tty.\(.*\)' } ttyLocks() { port=`ttyPort $1` locks= for x in f m d; do locks="$locks $UUCP_LOCKDIR/LCK..tty$x${port}" done echo $locks } ttyAliases() { port=`ttyPort $1` echo /dev/ttyd${port} /dev/ttym${port} /dev/ttyf${port} } ttyDev() { # # NB: we use ttyd* device names in the following # work so that we are not stopped by a need for DCD. # port=`ttyPort $1` echo /dev/ttyd${port} } checkIRIXPort() { devID="`echo $1 | tr '/' '_'`" if [ -f $CPATH.$devID -a -p $SPOOL/FIFO.$devID ]; then echo "There appears to be a modem already setup on $devID," prompt "is this to be replaced [yes]?" read x; isOK $x || { echo "Sorry, but you can not configure multiple servers on" echo "the same serial port." exit 1 } # setup pathnames for old stuff OLDFIFO=$SPOOL/FIFO.$devID; OLDCONFIG=$CPATH.$devID fi } checkPort() { case $1 in ttym${PORT}) checkIRIXPort ttyd${PORT}; checkIRIXPort ttyf${PORT};; ttyf${PORT}) checkIRIXPort ttym${PORT}; checkIRIXPort ttyd${PORT};; ttyd${PORT}) checkIRIXPort ttym${PORT}; checkIRIXPort ttyf${PORT};; esac } EOF } # # Hide the fax user from pandora & co. # machdepPasswdWork() { f=${SGIPASSWD:-/etc/passwd.sgi} if [ -f $f ]; then x=$FAX:noshow grep $x $f >/dev/null 2>&1 || { Note "" Note "" Note "Adding the $FAX user to $f so it is hidden from pandora/clogin." echo "$x" >>$f } fi } rt ttyd${PORT}; checkIRIXPort ttyf${PORT};; ttyf${PORT}) checkIRIXPort ttym${PORT}; checkIRIXPort ttyd${PORT};; ttyd${PORT}) checkIRIXPort ttym${PORT}; checkIRIXPort ttyf${PORT}hylafax-v4.0pl1/etc/faxsetup.linux000444 004341 000024 00000002756 06246675501 017122 0ustar00samuser000000 000000 # $Id: faxsetup.linux,v 1.2 1996/06/24 02:59:34 sam Rel $ # # HylaFAX Facsimile Software # # Copyright (c) 1995-1996 Sam Leffler # Copyright (c) 1995-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Linux-specific definitions for faxsetup. # addPasswd() { useradd -m -c 'Facsimile Agent' -d $4 -u $2 -o -g $3 $1 } deletePasswd() { userdel -r $1 } lockPasswd() { return 0 } # ANY SPECIAL, INChylafax-v4.0pl1/etc/faxsetup.sh.in000444 004341 000024 00000160707 06246675501 017003 0ustar00samuser000000 000000 #! @SCRIPT_SH@ # $Id: faxsetup.sh.in,v 1.32 1996/11/26 23:18:54 sam Rel $ # # @WARNING@ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # VERSION: @VERSION@ # DATE: @DATE@ # TARGET: @TARGET@ # # # faxsetup [options] # # This script interactively prepares and verifies # a HylaFAX client and/or server machine for use. # PATH=/bin:/usr/bin:/etc test -d /usr/ucb && PATH=$PATH:/usr/ucb # Sun and others test -d /usr/bsd && PATH=$PATH:/usr/bsd # Silicon Graphics test -d /usr/5bin && PATH=/usr/5bin:$PATH:/usr/etc # Sun and others test -d /usr/sbin && PATH=/usr/sbin:$PATH # 4.4BSD-derived test -d /usr/local/bin && PATH=$PATH:/usr/local/bin # for GNU tools AWK=@AWK@ # awk for use below CAT=@CAT@ # cat command for use below CHGRP=@CHGRP@ # change file group for use below CHMOD=@CHMOD@ # change file mode for use below CHOWN=@CHOWN@ # change file owner for use below CP=@CP@ # cp command for use below ECHO=@ECHO@ # echo command for use below GREP=@GREP@ # grep command for use below LN=@LN@ # ln command for use below LN_S=@LN_S@ # ln option for creating a symbolic link MKFIFO=@MKFIFO@ # FIFO creation program for use below MV=@MV@ # move file for use below RMCMD=@RM@ # remove file for use below SCRIPT_SH=@SCRIPT_SH@ # shell for use below SED=@SED@ # sed for use below FAX=fax # identity of the fax user SERVICES=/etc/services # location of services database INETDCONF=/usr/etc/inetd.conf # default location of inetd configuration file ALIASES=/usr/lib/aliases # default location of mail aliases database file PASSWD=/etc/passwd # where to go for password entries PROTOUID=@FAXUID@ # user who's uid we use for FAX user defPROTOUID=3 # use this uid if PROTOUID doesn't exist GROUP=/etc/group # where to go for group entries PROTOGID=@FAXGID@ # group who's gid we use for FAX user defPROTOGID=10 # use this gid if PROTOGID doesn't exist VERSION="@VERSION@" # configured version DATE="@DATE@" # data software was configured TARGET="@TARGET@" # configured target DIR_AFM=@AFMDIR@ # directory for Adobe Font Metric files DIR_BIN=@BIN@ # directory for client applications DIR_LIBDATA=@LIBDATA@ # directory for client data files DIR_LIBEXEC=@LIBEXEC@ # directory where servers are located DIR_LOCKS=@UUCP_LOCKDIR@ # UUCP locking directory DIR_MAN=@MANDIR@ # directory for manual pages DIR_SBIN=@SBIN@ # directory for server applications DIR_SPOOL=@SPOOL@ # top of fax spooling tree TIFFBIN=@TIFFBIN@ # TIFF tools LOCKS=@UUCP_LOCKTYPE@ # UUCP lock type PATH_GETTY=@PATHGETTY@ # pathname for getty program PATH_SENDMAIL=@SENDMAIL@ # pathname for sendmail PATH_VGETTY=@PATHVGETTY@ # pathname for voice getty program PATH_EGETTY=@PATHEGETTY@ # pathname for external getty program PS=@PSPACKAGE@ # default PostScript RIP package PATH_GSRIP=@GSRIP@ # pathname of Ghostscript RIP PATH_DPSRIP=@DPSRIP@ # pathname of old IRIX DPS RIP PATH_IMPRIP=@IMPRIP@ # pathname of IRIX Impressario RIP POSIXLY_CORRECT=1; export POSIXLY_CORRECT # disable GNU extensions # # These are the configuration parameters written to the # setup.cache file and read in by all the HylaFAX scripts. # # We use the same names used by configure for consistency # (but some confusion within this script). # VARS="SCRIPT_SH AFMDIR DIR_AFM AWK BIN DIR_BIN CAT CHGRP CHMOD CHOWN CP DPSRIP PATH_DPSRIP ECHO GREP GSRIP PATH_GSRIP IMPRIP PATH_IMPRIP LIBDATA DIR_LIBDATA LIBEXEC DIR_LIBEXEC LN MANDIR DIR_MAN MKFIFO MV PATH PATHGETTY PATH_GETTY PATHVGETTY PATH_VGETTY PATHEGETTY PATH_EGETTY PSPACKAGE PS RM RMCMD SBIN DIR_SBIN SED SENDMAIL PATH_SENDMAIL SPOOL DIR_SPOOL TIFFBIN UUCP_LOCKDIR DIR_LOCKS UUCP_LOCKTYPE LOCKS" dumpvals() { echo "$VARS" | while read a b; do eval c=\$${b:-$a}; echo "$a='$c'"; done } # # Error diagnostics that should go to the terminal are # done with this interface or cat. # bitch() { echo "$@" 1>&2 } # # This is the preferred interface for # configure to terminate abnormally. # boom() { $RM $JUNK exit 1 } usage() { cat</dev/null # chuck messages else exec 4>&1 # messages go to stdout fi Note() { echo "$@" 1>&4 } Note "" Note "Setup program for HylaFAX (tm) $VERSION." Note "" Note "Created for $TARGET on $DATE." Note "" CPU=`expr $TARGET : '\(.*\)-.*-.*'` || CPU=unknown VENDOR=`expr $TARGET : '.*-\(.*\)-.*'` || VENDOR=unknown OS=`expr $TARGET : '.*-.*-\([a-zA-z]*\).*'` || OS=unknown RELEASE=`(uname -r) 2>/dev/null` || RELEASE=unknown # # Read in any site, target, vendor, os, or os-release # specific setup work. Note that we read stuff here # so that configuration parameters can be altered. We # use some pre-defined function names below to provide # hooks for other actions. # # # Hooks for additional client+server checks # otherBasicServerChecks() { true } otherBasicClientChecks() { true } # # Hook for adding stuff to setup.modem # dumpOtherModemFuncs() { true } # # Figure out which brand of echo we have and define prompt # and printf shell functions accordingly. Note that we # assume that if the System V-style echo is not present, # then the BSD printf program is available. These functions # are defined here so that they can be tailored on a per-site, # etc. basis. # if [ `echo foo\\\c`@ = "foo@" ]; then # System V-style echo supports \r # and \c which is all that we need prompt() { echo "$* \\c" } printf() { echo "$*\\c" } dumpPromptFuncs() { cat<<-'EOF' prompt() { echo "$* \\c" } printf() { echo "$*\\c" } EOF } elif [ "`echo -n foo`@" = "foo@" ]; then # BSD-style echo; use echo -n to get # a line without the trailing newline prompt() { echo -n "$* " } dumpPromptFuncs() { cat<<-'EOF' prompt() { echo -n "$* " } EOF } else # something else; do without prompt() { echo "$*" } dumpPromptFuncs() { cat<<-'EOF' prompt() { echo "$*" } EOF } fi if onServer; then # # Setup the password file manipulation functions according # to whether we have System-V style support through the # passmgmt program, or BSD style support through the chpass # program, or for SCO boxes through pwconv, or SVR4 style support # through useradd. If none are found, we setup functions that # will cause us to abort if we need to munge the password file. # # NB: some systems override these function definitions through # per-os faxsetup files # if [ -f /bin/passmgmt -o -f /usr/sbin/passmgmt ]; then addPasswd() { passmgmt -o -a -c 'Facsimile Agent' -h $4 -u $2 -g $3 $1 } deletePasswd() { passmgmt -d $1 } modifyPasswd() { passmgmt -m -h $4 -u $2 -o -g $3 $1 } lockPasswd() { passwd -l $1 } elif [ -f /usr/bin/chpass ]; then addPasswd() { chpass -a "$1:*:$2:$3::0:0:Facsimile Agent:$4:" } modifyPasswd() { chpass -a "$1:*:$2:$3::0:0:Facsimile Agent:$4:" } lockPasswd() { return 0 # entries are always locked } elif [ -f /etc/pwconv ]; then # could be a SCO box addPasswd() { echo "${1}:NOLOGIN:${2}:${3}:Facsimile Agent:${4}:" >> ${PASSWD} /etc/pwconv } lockPasswd() { return 0 # entries are always locked } elif [ -f /usr/sbin/useradd -o -f /etc/useradd ]; then addPasswd() { useradd -c 'Facsimile Agent' -d $4 -u $2 -o -g $3 $1 } deletePasswd() { userdel $1 } modifyPasswd() { usermod -m -d $4 -u $2 -o -g $3 $1 } lockPasswd() { passwd -l $1 } else addPasswd() { cat >&2 <&2 </dev/null 2>&1 && speeds="\$speeds \$s" done fi echo \$speeds } EOF } ;; *) dumpSTTYFuncs() { cat</dev/null 2>&1 && speeds="\$speeds \$s" done fi echo \$speeds } EOF } ;; esac machdepPasswdWork() { true } # # Default values for new scheduler config files # defaultLogFacility=daemon defaultCountryCode=1 defaultAreaCode= defaultLongDistancePrefix=1 defaultInternationalPrefix=011 defaultDialStringRules=\"etc/dialrules\" defaultServerTracing=1 defaultContCoverPage= defaultContCoverCmd=\"bin/mkcover\" defaultDestControls= defaultMaxConcurrentJobs=1 defaultMaxDials=12 defaultMaxSendPages=0xffffffff defaultMaxTries=3 defaultModemClass= defaultPostScriptTimeout=180 defaultPS2FaxCmd=\"bin/ps2fax\" defaultSendFaxCmd=\"bin/faxsend\" defaultSendPageCmd=\"bin/pagesend\" defaultSendUUCPCmd=\"bin/uucpsend\" defaultSessionTracing=0xffffffff defaultTimeOfDay=\"Any\" defaultUse2D=Yes defaultNotifyCmd=\"bin/notify\" defaultUUCPLockDir=\"$DIR_LOCKS\" defaultUUCPLockTimeout=30 defaultUUCPLockType=\"$LOCKS\" fi CONFIG_FILES= if [ -f $DIR_SBIN/faxsetup.local ]; then . $DIR_SBIN/faxsetup.local CONFIG_FILES="$CONFIG_FILES $DIR_SBIN/faxsetup.local" elif [ -f $DIR_SBIN/faxsetup.${CPU}-${VENDOR}-${OS}${RELEASE} ]; then . $DIR_SBIN/faxsetup.${CPU}-${VENDOR}-${OS}${RELEASE} CONFIG_FILES="$CONFIG_FILES $DIR_SBIN/faxsetup.${CPU}-${VENDOR}-${OS}${RELEASE}" elif [ -f $DIR_SBIN/faxsetup.${VENDOR}-${OS}${RELEASE} ]; then . $DIR_SBIN/faxsetup.${VENDOR}-${OS}${RELEASE} CONFIG_FILES="$CONFIG_FILES $DIR_SBIN/faxsetup.${VENDOR}-${OS}${RELEASE}" elif [ -f $DIR_SBIN/faxsetup.${CPU}-${VENDOR}-${OS} ]; then . $DIR_SBIN/faxsetup.${CPU}-${VENDOR}-${OS} CONFIG_FILES="$CONFIG_FILES $DIR_SBIN/faxsetup.${CPU}-${VENDOR}-${OS}" elif [ -f $DIR_SBIN/faxsetup.${VENDOR}-${OS} ]; then . $DIR_SBIN/faxsetup.${VENDOR}-${OS} CONFIG_FILES="$CONFIG_FILES $DIR_SBIN/faxsetup.${VENDOR}-${OS}" elif [ -f $DIR_SBIN/faxsetup.${CPU}-${VENDOR} ]; then . $DIR_SBIN/faxsetup.${CPU}-${VENDOR} CONFIG_FILES="$CONFIG_FILES $DIR_SBIN/faxsetup.${CPU}-${VENDOR}" elif [ -f $DIR_SBIN/faxsetup.${VENDOR} ]; then . $DIR_SBIN/faxsetup.${VENDOR} CONFIG_FILES="$CONFIG_FILES $DIR_SBIN/faxsetup.${VENDOR}" elif [ -f $DIR_SBIN/faxsetup.${OS} ]; then . $DIR_SBIN/faxsetup.${OS} CONFIG_FILES="$CONFIG_FILES $DIR_SBIN/faxsetup.${OS}" fi # # Flush cached values if something was specified on the # command line # if onServer; then REASON= if [ $WITHARGS = yes ]; then REASON="of command line parameters" elif [ "$CONFIG_FILES" ]; then REASON=`find $CONFIG_FILES -newer $DIR_SPOOL/etc/setup.cache -print 2>/dev/null` test "$REASON" && REASON="$REASON has been updated" fi if [ "$REASON" -a -f $DIR_SPOOL/etc/setup.cache ]; then Note "Flushing cached parameters because $REASON." Note "" rm -f $DIR_SPOOL/etc/setup.cache fi if [ -f $DIR_SPOOL/etc/setup.cache ]; then Note "Reading cached parameters from $DIR_SPOOL/etc/setup.cache." Note "" . $DIR_SPOOL/etc/setup.cache fi fi RM="$RMCMD -f" # remove file for use below # # Deduce the effective user id: # 1. POSIX-style, the id program # 2. the old whoami program # 3. last gasp, check if we have write permission on /dev # euid=`id|$SED -e 's/.*uid=[0-9]*(\([^)]*\)).*/\1/'` test -z "$euid" && euid=`(whoami) 2>/dev/null` test -z "$euid" -a -w /dev && euid=root if [ "$euid" != "root" ]; then bitch "Sorry, but you must run this script as the super-user!" boom fi onClient && Note "Checking system for proper client configuration." onServer && Note "Checking system for proper server configuration." # # Verify configuration parameters are correct. # dirMisConfigured() { cat >&2 <&2 <<-EOF FATAL ERROR: $DIR_SPOOL does not exist or is not a directory! The HylaFAX spooling area $DIR_SPOOL does not exist or this file is not a directory. If the HylaFAX software is not yet installed you must do so before running this script. If the software is installed but is configured for use in a different location than this script expects then you may override the default pathname by running this script with a -with-DIR_SPOOL option; e.g. faxsetup -with-DIR_SPOOL=/var/spool/someplace_unexpected EOF boom } cd $DIR_SPOOL DIRS="archive bin client config dev docq doneq etc info log\ pollq recvq sendq status tmp" for i in $DIRS; do test -d $i || dirMisConfigured $DIR_SPOOL/$i done # # XXX should check permission and ownership of sensitive dirs # JUNK="etc/setup.tmp" trap "$RM \$JUNK; exit 1" 1 2 15 exec 5>etc/setup.tmp echo '# Warning, this file was automatically generated by faxsetup' >&5 echo '# on' `date` "for ${USER:-$euid}" >&5 fi # # Basic client installation. # if onClient; then test -d $DIR_BIN || dirMisConfigured $DIR_BIN for file in sendfax sendpage faxstat faxalter faxcover faxmail faxrm; do test -x $DIR_BIN/$file || { cat >&2 <&2 <&2 <&2 <&2 <&2 <&4 <&2 <&2 </dev/null 2>&1; then true elif test -r conffifo; then # NB: not everyone has test -p true else cat >&2 </dev/null 2>&1 return } CheckAwk $AWK || { cat >&2 <&4 <&4 </dev/null 2>&1 || { cat >&2 <&2 </dev/null 2>&1 if [ $? -eq 2 ]; then if expr $RELEASE \>= 6.2 >/dev/null; then cat >&2 <= 6.2 >/dev/null; then cat >&2 </dev/null` if [ "$t" != hello ]; then cat >&2 <