hylafax port from David Leonard <david.leonard@dstc.edu.au> with some changes

by me.
This commit is contained in:
niklas 1998-02-08 06:00:08 +00:00
parent e69cf0ae5f
commit b922d0b92a
37 changed files with 790 additions and 0 deletions

61
comms/hylafax/Makefile Normal file
View File

@ -0,0 +1,61 @@
# OpenBSD makefile for: hylafax
# Version required: v4.0pl1
# Date created: 8 Feb 1998
# Whom: d
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/02/08 06:00:08 niklas Exp $
#
DISTNAME= hylafax-v4.0pl1
PKGNAME= hylafax-4.0.1
CATEGORIES= comms
MASTER_SITES= ftp://ftp.sgi.com/sgi/fax/source/
EXTRACT_SUFX= -tar.gz
MAINTAINER= d@fnarg.net.au
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash2 \
${PREFIX}/lib/afm/Courier:${PORTSDIR}/print/afm
# no dependency on ghostscript because we don't know which
# version the user prefers
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
LIB_DEPENDS= tiff34\\.1\\.:${PORTSDIR}/graphics/tiff34 \
jpeg\\.7\\.:${PORTSDIR}/graphics/jpeg
USE_GMAKE= yes
# libtiff34 crashes on this machine when dynamically linked?? (mac68k)
# so change -ltiff34 to ${PREFIX}/lib/libtiff34.a to avoid this
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-INSTALL="" \
--with-MAKE=gmake --with-CC=/usr/bin/cc \
--with-LIBTIFF="-L${PREFIX}/lib -ltiff34 -ljpeg" \
--with-ZLIB=no --with-LIBZ='-lz' \
--with-
MAN1= hylafax.1 faxalter.1 faxcover.1 faxmail.1 faxrm.1 faxstat.1 sendfax.1 \
sendpage.1 sgi2fax.1 textfmt.1
MAN5= pagesizes.5f typerules.5f \
hylafax.5f cid.5f config.5f destctrls.5f dialrules.5f hosts.5f \
info.5f log.5f pagermap.5f recvq.5f sendq.5f shutdown.5f status.5f \
tsi.5f xferlog.5f
MAN8= cqtest.8c choptest.8c dialtest.8c faxabort.8c faxaddmodem.8c \
faxanswer.8c faxconfig.8c faxmodem.8c faxstate.8c faxcron.8c \
faxgetty.8c faxinfo.8c faxq.8c faxqclean.8c faxquit.8c faxrcvd.8c \
faxsend.8c faxsetup.8c faxwatch.8c hfaxd.8c mkcover.8c notify.8c \
pagesend.8c pollrcvd.8c ps2fax.8c recvstats.8c tagtest.8c tiff2fax.8c \
tiffcheck.8c tsitest.8c wedged.8c xferstats.8c
SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
post-install:
/usr/sbin/chown uucp ${SUID_EXES}
chmod a=rx,u+s ${SUID_EXES}
@if [ ! -f ${PREFIX}/etc/rc.d/hylafax.sh.sample ]; then \
cp ${FILESDIR}/hylafax.sh.sample ${PREFIX}/etc/rc.d; \
fi
${CAT} ${PKGDIR}/MESSAGE
.include <bsd.port.mk>

View File

@ -0,0 +1,9 @@
#! /bin/sh
# hylafax startup example.
# be sure to initialize the followings:
# server: /usr/local/sbin/faxsetup
# modems: /usr/local/sbin/faxaddmodem
# incoming calls: /etc/ttys
if [ -x /usr/local/sbin/faxq ]; then
/usr/local/sbin/faxq && echo -n ' hylafax'
fi

1
comms/hylafax/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (hylafax-v4.0pl1-tar.gz) = 47af6fb4b94985c8829c47003bc4e4ab

View File

@ -0,0 +1,13 @@
--- config/skel.orig Wed Nov 27 00:20:26 1996
+++ config/skel Sun Feb 8 03:37:56 1998
@@ -41,8 +41,8 @@
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
+DeviceMode: 0660 # device is accessible only to uucp/fax
+GettyArgs: "std.%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

View File

@ -0,0 +1,16 @@
--- config/zyxel-2864.orig Wed Nov 27 00:20:29 1996
+++ config/zyxel-2864 Sun Feb 8 03:37:56 1998
@@ -63,12 +63,11 @@
# &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
+ModemResetCmds: AT&B1&N0&S0S18=4S38.3=1
#
ModemDialCmd: ATDT%s # no '@' 'cuz then busy not recognized
NoCarrierRetrys: 3 # retry 3 times on no carrier

View File

@ -0,0 +1,11 @@
--- util/SendFaxClient.c++.orig Wed Nov 27 00:20:41 1996
+++ util/SendFaxClient.c++ Sun Feb 8 03:38:00 1998
@@ -716,7 +716,7 @@
return tr;
}
-#include "tiffio.h"
+#include "tiffio34.h"
/*
* Count the number of ``pages'' in a TIFF file.

View File

@ -0,0 +1,67 @@
--- util/TypeRules.c++.orig Wed Nov 27 00:20:45 1996
+++ util/TypeRules.c++ Sun Feb 8 03:38:01 1998
@@ -48,7 +48,7 @@
}
static const char* typeNames[] =
- { "ascii", "string", "address", "byte", "short", "long" };
+ { "ascii", "asciiesc", "string", "address", "byte", "short", "long" };
static const char* opNames[] =
{ "<any>", "=", "!=", "<", "<=", ">", ">=", "&", "^", "!" };
static const char* resultNames[] = { "tiff", "postscript", "error" };
@@ -65,7 +65,7 @@
);
if (type == STRING)
printf(" \"%s\"", value.s);
- else if (type != ASCII) {
+ else if (type != ASCII && type != ASCIIESC) {
if (op == ANY)
printf(" <any value>");
else
@@ -83,6 +83,7 @@
const u_char* cp = (const u_char*) data;
switch (type) {
case ASCII:
+ {
u_int i;
for (i = 0; i < size; i++)
if (!isprint(cp[i]) && !isspace(cp[i])) {
@@ -92,6 +93,19 @@
}
ok = TRUE;
goto done;
+ }
+ case ASCIIESC:
+ {
+ u_int i;
+ for (i = 0; i < size; i++)
+ if (!isprint(cp[i]) && !isspace(cp[i]) && cp[i] != '\033') {
+ if (verbose)
+ printf("failed (unprintable char %#x)\n", cp[i]);
+ return (FALSE);
+ }
+ ok = TRUE;
+ goto done;
+ }
case STRING:
ok = (strncmp((const char*)(cp+off), value.s,
fxmin((u_int) strlen(value.s), (u_int)(size-off))) == 0);
@@ -307,6 +321,8 @@
rule.type = TypeRule::STRING;
else if (strncasecmp(tp, "ascii", cp-tp) == 0)
rule.type = TypeRule::ASCII;
+ else if (strncasecmp(tp, "asciiesc", cp-tp) == 0)
+ rule.type = TypeRule::ASCIIESC;
else if (strncasecmp(tp, "addr", cp-tp) == 0)
rule.type = TypeRule::ADDR;
else {
@@ -317,7 +333,8 @@
cp++;
rule.op = TypeRule::EQ; // default is '='
const char* vp = cp;
- if (rule.type != TypeRule::STRING && rule.type != TypeRule::ASCII) {
+ if (rule.type != TypeRule::STRING && rule.type != TypeRule::ASCII
+ && rule.type != TypeRule::ASCIIESC) {
// numeric value
switch (*vp) {
case '=': rule.op = TypeRule::EQ; cp++; break;

View File

@ -0,0 +1,10 @@
--- util/TypeRules.h.orig Wed Nov 27 00:20:56 1996
+++ util/TypeRules.h Sun Feb 8 03:38:01 1998
@@ -130,6 +130,7 @@
fxBool cont; // continuation
enum {
ASCII, // ascii-only string
+ ASCIIESC, // ascii-only string + escape char (iso-2022 variants)
STRING, // byte string
ADDR, // address of match
BYTE, // 8 bits

View File

@ -0,0 +1,11 @@
--- util/faxinfo.c++.orig Wed Nov 27 00:21:03 1996
+++ util/faxinfo.c++ Sun Feb 8 03:38:01 1998
@@ -30,7 +30,7 @@
#include <errno.h>
#include <string.h>
#include <stdlib.h>
-#include "tiffio.h"
+#include "tiffio34.h"
#include "PageSize.h"
#include "Class2Params.h"

View File

@ -0,0 +1,11 @@
--- util/tiffcheck.c++.orig Wed Nov 27 00:21:04 1996
+++ util/tiffcheck.c++ Sun Feb 8 03:38:01 1998
@@ -24,7 +24,7 @@
*/
#include "Sys.h"
#include "Str.h"
-#include "tiffio.h"
+#include "tiffio34.h"
static const char* appName;

View File

@ -0,0 +1,14 @@
--- util/typerules.orig Wed Nov 27 00:21:01 1996
+++ util/typerules Sun Feb 8 03:38:01 1998
@@ -128,6 +128,11 @@
>15 string ascii ps %F/textfmt -B -f Courier-Bold\
-p 11 -s %s >%o <%i
#
+# Japanization (should help other iso-2022 variants too)
+#
+#>15 string asciiesc ps a2ps-j -l '' -p -ns -nt <%i >%o
+#0 asciiesc x ps a2ps-j -l '' -p -ns -nt <%i >%o
+#
# This causes anything else with ascii-only data to be treated as text.
#
0 ascii x ps %F/textfmt -B -f Courier-Bold\

View File

@ -0,0 +1,11 @@
--- faxd/Class1.c++.orig Wed Nov 27 00:21:26 1996
+++ faxd/Class1.c++ Sun Feb 8 03:37:57 1998
@@ -31,7 +31,7 @@
#include "ModemConfig.h"
#include "HDLCFrame.h"
#include "t.30.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include <stdlib.h>
#include <ctype.h>

View File

@ -0,0 +1,11 @@
--- faxd/FaxModem.h.orig Wed Nov 27 00:21:18 1996
+++ faxd/FaxModem.h Sun Feb 8 03:37:57 1998
@@ -30,7 +30,7 @@
*/
#include "ClassModem.h"
#include "Class2Params.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include "G3Decoder.h"
#include "FaxSendStatus.h"

View File

@ -0,0 +1,11 @@
--- faxd/FaxRecv.c++.orig Wed Nov 27 00:21:32 1996
+++ faxd/FaxRecv.c++ Sun Feb 8 03:37:57 1998
@@ -30,7 +30,7 @@
#include <errno.h>
#include "Dispatcher.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include "FaxServer.h"
#include "FaxRecvInfo.h"
#include "faxApp.h" // XXX

View File

@ -0,0 +1,11 @@
--- faxd/FaxSend.c++.orig Wed Nov 27 00:21:33 1996
+++ faxd/FaxSend.c++ Sun Feb 8 03:37:57 1998
@@ -26,7 +26,7 @@
#include "Sys.h"
#include "Dispatcher.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include "FaxServer.h"
#include "FaxMachineInfo.h"
#include "FaxRecvInfo.h"

View File

@ -0,0 +1,11 @@
--- faxd/G3Decoder.h.orig Wed Nov 27 00:21:19 1996
+++ faxd/G3Decoder.h Sun Feb 8 03:37:57 1998
@@ -32,7 +32,7 @@
extern "C" {
#include <setjmp.h>
}
-#include "tiffio.h"
+#include "tiffio34.h"
class G3Decoder {
private:

View File

@ -0,0 +1,11 @@
--- faxd/G3Encoder.c++.orig Wed Nov 27 00:21:34 1996
+++ faxd/G3Encoder.c++ Sun Feb 8 03:37:57 1998
@@ -29,7 +29,7 @@
*/
#include "G3Encoder.h"
#include "StackBuffer.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include "t4.h"
G3Encoder::G3Encoder(fxStackBuffer& b) : buf(b) {}

View File

@ -0,0 +1,11 @@
--- faxd/Getty.c++.orig Wed Nov 27 00:21:34 1996
+++ faxd/Getty.c++ Sun Feb 8 03:37:57 1998
@@ -218,7 +218,7 @@
// NB: this is executed in the parent
fxStr device = fxStr::format("%s/" | line, _PATH_DEV);
Sys::chown(device, UUCPLock::getUUCPUid(), UUCPLock::getUUCPGid());
- Sys::chmod(device, 0600); // reset protection
+ Sys::chmod(device, 0660); // reset protection
}
extern void vlogError(const char* fmt, va_list ap);

View File

@ -0,0 +1,11 @@
--- faxd/ModemServer.c++.orig Wed Nov 27 00:21:36 1996
+++ faxd/ModemServer.c++ Sun Feb 8 03:37:57 1998
@@ -876,7 +876,7 @@
"7 bits, odd parity", // ODD
};
-#if defined(CCTS_OFLOW) && defined(CRTS_IFLOW) && !defined(__NetBSD__)
+#if defined(CCTS_OFLOW) && defined(CRTS_IFLOW) && !defined(__NetBSD__) && !defined(__OpenBSD__)
#undef CRTSCTS /* BSDi */
#define CRTSCTS (CCTS_OFLOW|CRTS_IFLOW)
#endif

View File

@ -0,0 +1,11 @@
--- faxd/PCFFont.c++.orig Wed Nov 27 00:21:36 1996
+++ faxd/PCFFont.c++ Sun Feb 8 03:37:58 1998
@@ -34,7 +34,7 @@
*/
#include <unistd.h>
#include "PCFFont.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#define LSBFirst 0
#define MSBFirst 1

View File

@ -0,0 +1,25 @@
--- faxd/UUCPLock.c++.orig Wed Nov 27 00:21:38 1996
+++ faxd/UUCPLock.c++ Sun Feb 8 03:37:58 1998
@@ -37,6 +37,7 @@
}
#endif
#include <pwd.h>
+#include <grp.h>
/*
* UUCP Device Locking Support.
@@ -146,8 +147,13 @@
if (!pwd)
faxApp::fatal("Can not deduce identity of UUCP");
UUCPuid = pwd->pw_uid;
- UUCPgid = pwd->pw_gid;
endpwent(); // paranoia
+
+ const group *grp = getgrnam("dialer");
+ if (!grp)
+ faxApp::fatal("Can not deduce identity of DIALER");
+ UUCPgid = grp->gr_gid;
+ endgrent(); // paranoia
}
}
uid_t UUCPLock::getUUCPUid() { setupIDs(); return UUCPuid; }

View File

@ -0,0 +1,11 @@
--- faxd/choptest.c++.orig Wed Nov 27 00:21:40 1996
+++ faxd/choptest.c++ Sun Feb 8 03:37:58 1998
@@ -31,7 +31,7 @@
#include <unistd.h>
#include "G3Decoder.h"
#include "Class2Params.h"
-#include "tiffio.h"
+#include "tiffio34.h"
class MemoryDecoder : public G3Decoder {
private:

View File

@ -0,0 +1,11 @@
--- faxd/cqtest.c++.orig Wed Nov 27 00:21:40 1996
+++ faxd/cqtest.c++ Sun Feb 8 03:37:58 1998
@@ -35,7 +35,7 @@
#include "Class2Params.h"
#include "Str.h"
#include "FaxTrace.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include "version.h"

View File

@ -0,0 +1,11 @@
--- faxd/faxQueueApp.c++.orig Wed Nov 27 00:21:39 1996
+++ faxd/faxQueueApp.c++ Sun Feb 8 03:37:58 1998
@@ -30,7 +30,7 @@
#include <math.h>
#include <limits.h>
#include <sys/file.h>
-#include <tiffio.h>
+#include <tiffio34.h>
#include "Dispatcher.h"

View File

@ -0,0 +1,11 @@
--- faxd/tagtest.c++.orig Wed Nov 27 00:21:41 1996
+++ faxd/tagtest.c++ Sun Feb 8 03:37:58 1998
@@ -35,7 +35,7 @@
#include "G3Encoder.h"
#include "StackBuffer.h"
#include "FaxFont.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include "Class2Params.h"
#if HAS_LOCALE
extern "C" {

View File

@ -0,0 +1,11 @@
--- faxd/tif_fax3.h.orig Wed Nov 27 00:21:26 1996
+++ faxd/tif_fax3.h Sun Feb 8 03:37:58 1998
@@ -35,7 +35,7 @@
* in Frank Cringle's viewfax program;
* Copyright (C) 1990, 1995 Frank D. Cringle.
*/
-#include "tiff.h"
+#include "tiff34.h"
/*
* To override the default routine used to image decoded

View File

@ -0,0 +1,11 @@
--- hfaxd/FileSystem.c++.orig Wed Nov 27 00:21:47 1996
+++ hfaxd/FileSystem.c++ Sun Feb 8 03:37:59 1998
@@ -29,7 +29,7 @@
*/
#include "HylaFAXServer.h"
#include "Sys.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include <limits.h>
#include <ctype.h>

View File

@ -0,0 +1,11 @@
--- hfaxd/FileTransfer.c++.orig Wed Nov 27 00:21:47 1996
+++ hfaxd/FileTransfer.c++ Sun Feb 8 03:37:59 1998
@@ -31,7 +31,7 @@
#include "Sys.h"
#include "config.h"
#include "zlib.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include <ctype.h>
#include <limits.h>

View File

@ -0,0 +1,11 @@
--- hfaxd/HylaFAXServer.c++.orig Wed Nov 27 00:21:48 1996
+++ hfaxd/HylaFAXServer.c++ Sun Feb 8 03:37:59 1998
@@ -26,7 +26,7 @@
#include "port.h"
#include "Sys.h"
#include "config.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include "HylaFAXServer.h"
#include "Dispatcher.h"

View File

@ -0,0 +1,11 @@
--- hfaxd/RecvQueue.c++.orig Wed Nov 27 00:21:50 1996
+++ hfaxd/RecvQueue.c++ Sun Feb 8 03:38:00 1998
@@ -30,7 +30,7 @@
#include "HylaFAXServer.h"
#include "Sys.h"
#include "Socket.h"
-#include "tiffio.h"
+#include "tiffio34.h"
#include <ctype.h>
#include <sys/file.h>

View File

@ -0,0 +1,12 @@
--- config.guess.orig Wed Nov 27 00:20:18 1996
+++ config.guess Sun Feb 8 03:37:57 1998
@@ -276,6 +276,9 @@
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;;
+ *:OpenBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-openbsd`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 ;;

View File

@ -0,0 +1,62 @@
--- configure.orig Wed Nov 27 00:20:17 1996
+++ configure Sun Feb 8 06:15:08 1998
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/local/bin/bash
# $Id: patch-bc,v 1.1.1.1 1998/02/08 06:00:10 niklas Exp $
#
# HylaFAX Facsimile Software
@@ -68,7 +68,7 @@
GS=no
IMP=no
UTMP=auto
-LIBTIFF="-L/usr/local/lib -ltiff"
+LIBTIFF="-L/usr/local/lib -ltiff34"
TIFFINC=/usr/local/include
TIFFBIN=/usr/local/bin
ZLIB=yes
@@ -239,7 +239,7 @@
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
+test -d /usr/local/bin && PATH=$PATH:/usr/local/bin # for GNU stuff
PATH=$PATH:$OPATH
POSIXLY_CORRECT=1; export POSIXLY_CORRECT # disable GNU extensions
@@ -2781,7 +2781,7 @@
# Verify library is compatible.
#
cat>t.c<<EOF
-#include "tiffio.h"
+#include "tiffio34.h"
main()
{
if (TIFFLIB_VERSION < 19960307) { /* check include file version */
@@ -3362,6 +3362,7 @@
*-solaris*) LOCKS="+ascii";;
*-freebsd*) LOCKS=ascii;;
*-netbsd*) LOCKS=ascii;;
+ *-openbsd*) LOCKS=ascii;;
*bsd*) LOCKS=binary;;
*) LOCKS=ascii;;
esac
@@ -3535,7 +3536,7 @@
if [ -z "$MANSCHEME" ]; then
case $TARGET in
*-bsdi*|*-netbsd*) MANSCHEME=bsd-nroff-gzip-0.gz;;
- *-freebsd*) MANSCHEME=bsd-source-cat;;
+ *-freebsd*|*-openbsd*) MANSCHEME=bsd-source-cat;;
*-linux*) MANSCHEME=bsd-source-cat;;
*-ultrix*) MANSCHEME=bsd-source-cat;;
*-sunos*) MANSCHEME=bsd-source-cat-strip;;
@@ -3928,7 +3929,8 @@
printConfig
checkForExecutable $PATH_SENDMAIL
checkForExecutable $PATH_GETTY
- prompt "Are these ok [yes]?"; read ok
+# prompt "Are these ok [yes]?"; read ok
+ ok=yes
test -z "$ok" && ok=yes
case "$ok" in
[1-9]|1[0-9]) promptForParameter $ok;;

View File

@ -0,0 +1 @@
A fax software.

14
comms/hylafax/pkg/DESCR Normal file
View File

@ -0,0 +1,14 @@
(excerpt from HylaFAX FAQ, http://www.vix.com/hylafax/FAQ/Q1.html)
HylaFAX is a facsimile system for UNIX systems. It supports:
o sending facsimile
o receiving facsimile
o polled retrieval of facsimile
o transparent shared data use of the modem
o sending messages to pagers
Facsimile can be any size (e.g. A4, B4), either 98 or 196 lpi, and
transmitted/received as either 1D-encoded or 2D-encoded facsimile data
(2D-encoded data is frequently more compact and hence takes a shorter
time to communicate). Any modem that supports one of the standard
interfaces for facsimile operation can be used; i.e. any Class 1, Class
2, or Class 2.0 modem.

18
comms/hylafax/pkg/MESSAGE Normal file
View File

@ -0,0 +1,18 @@
Hylafax was installed. You'll need manual configurations to actually
activate it.
Setting up: (for impatients)
Invoke /usr/local/sbin/faxsetup, and answer what she asks.
When you are asked to specify the name of tty device, use "cuaa1"
instead of "ttyd1". Otherwise it does not work well.
Consult /usr/local/etc/rc.d/hylafax.sh.sample for startups.
For accepting incoming FAX/data calls, modify /etc/ttys as below
and send SIGHUP to init process:
>cuaa1 "/usr/local/sbin/faxgetty" dialup on secure
Documentation:
On Line Manuals: man hylafax.
World Wide Web site: http://www.vix.com/flexfax/

226
comms/hylafax/pkg/PLIST Normal file
View File

@ -0,0 +1,226 @@
@cwd /usr/local
bin/faxalter
bin/faxcover
bin/faxmail
bin/faxrm
bin/faxstat
bin/sendfax
bin/sendpage
etc/rc.d/hylafax.sh.sample
lib/fax/faxcover.ps
lib/fax/faxmail.ps
lib/fax/hfaxd.conf
lib/fax/pagesizes
lib/fax/typerules
man/man1/faxalter.1
man/man1/faxcover.1
man/man1/faxmail.1
man/man1/faxrm.1
man/man1/faxstat.1
man/man1/hylafax.1
man/man1/sendfax.1
man/man1/sendpage.1
man/man1/sgi2fax.1
man/man1/textfmt.1
man/man5/cid.5f
man/man5/config.5f
man/man5/destctrls.5f
man/man5/dialrules.5f
man/man5/hosts.5f
man/man5/hylafax.5f
man/man5/info.5f
man/man5/log.5f
man/man5/pagermap.5f
man/man5/pagesizes.5f
man/man5/recvq.5f
man/man5/sendq.5f
man/man5/shutdown.5f
man/man5/status.5f
man/man5/tsi.5f
man/man5/typerules.5f
man/man5/xferlog.5f
man/man8/choptest.8c
man/man8/cqtest.8c
man/man8/dialtest.8c
man/man8/faxabort.8c
man/man8/faxaddmodem.8c
man/man8/faxanswer.8c
man/man8/faxconfig.8c
man/man8/faxcron.8c
man/man8/faxgetty.8c
man/man8/faxinfo.8c
man/man8/faxmodem.8c
man/man8/faxq.8c
man/man8/faxqclean.8c
man/man8/faxquit.8c
man/man8/faxrcvd.8c
man/man8/faxsend.8c
man/man8/faxsetup.8c
man/man8/faxstate.8c
man/man8/faxwatch.8c
man/man8/hfaxd.8c
man/man8/mkcover.8c
man/man8/notify.8c
man/man8/pagesend.8c
man/man8/pollrcvd.8c
man/man8/ps2fax.8c
man/man8/recvstats.8c
man/man8/tagtest.8c
man/man8/tiff2fax.8c
man/man8/tiffcheck.8c
man/man8/tsitest.8c
man/man8/wedged.8c
man/man8/xferstats.8c
sbin/choptest
sbin/cqtest
sbin/dialtest
sbin/faxabort
sbin/faxaddmodem
sbin/faxanswer
sbin/faxconfig
sbin/faxcron
sbin/faxgetty
sbin/faxinfo
sbin/faxmodem
sbin/faxmsg
sbin/faxq
sbin/faxqclean
sbin/faxquit
sbin/faxsend
sbin/faxsetup
sbin/faxsetup.bsdi
sbin/faxsetup.irix
sbin/faxsetup.linux
sbin/faxstate
sbin/faxwatch
sbin/hfaxd
sbin/lockname
sbin/ondelay
sbin/pagesend
sbin/probemodem
sbin/recvstats
sbin/tagtest
sbin/textfmt
sbin/tiffcheck
sbin/tsitest
sbin/typetest
sbin/xferstats
@dirrm lib/fax
@cwd /var/spool
fax/COPYRIGHT
fax/bin/faxrcvd
fax/bin/mkcover
fax/bin/notify
fax/bin/notify.awk
fax/bin/pcl2fax
fax/bin/pollrcvd
fax/bin/ps2fax.dps
fax/bin/ps2fax.gs
fax/bin/ps2fax.imp
fax/bin/tiff2fax
fax/bin/wedged
fax/config/att-dataport
fax/config/att-dataport-2
fax/config/att-dataport-2.0
fax/config/cirrus
fax/config/class1
fax/config/class2
fax/config/class2.0
fax/config/dsi-scout+
fax/config/e-tech
fax/config/everex-2496d
fax/config/exar
fax/config/gvc-288
fax/config/gvc-288-2
fax/config/intel-400e
fax/config/moto-288
fax/config/mt-1432
fax/config/nuvo-voyager
fax/config/ppi-pm14400fxmt
fax/config/ppi-pm14400fxsa
fax/config/rc144ac
fax/config/rc144ac-1
fax/config/rc288dpi
fax/config/rc288dpi-1
fax/config/rc32acl
fax/config/rc32acl-1
fax/config/rockwell
fax/config/skel
fax/config/telebit-qblazer
fax/config/telebit-t3000
fax/config/telebit-wb
fax/config/tricom2842
fax/config/uds-fastalk
fax/config/usr-2.0
fax/config/usr-rts
fax/config/usr-xon
fax/config/zyxel-1496e
fax/config/zyxel-1496e-1
fax/config/zyxel-1496e-2.0
fax/config/zyxel-2864
fax/etc/cover.templ
fax/etc/dialrules
fax/etc/dialrules.europe
fax/etc/dialrules.sf-ba
fax/etc/dpsprinter.ps
fax/etc/hosts
fax/etc/lutRS18.pcf
fax/etc/xferlog
@exec chown uucp:dialer %D/fax
@comment pkg_* can't deal with fifos if specified as a file
@exec mkfifo %D/fax/FIFO
@exec chown uucp:dialer %D/fax/FIFO
@exec chmod 600 %D/fax/FIFO
@unexec rm %D/fax/FIFO
@exec mkdir %D/fax/archive
@exec chown uucp:dialer %D/fax/archive
@exec chmod 700 %D/fax/archive
@exec mkdir %D/fax/client
@exec chown uucp:dialer %D/fax/client
@exec chmod 755 %D/fax/client
@exec mkdir %D/fax/dev
@exec chown uucp:dialer %D/fax/dev
@exec chmod 755 %D/fax/dev
@exec mkdir %D/fax/docq
@exec chown uucp:dialer %D/fax/docq
@exec chmod 700 %D/fax/docq
@exec mkdir %D/fax/doneq
@exec chown uucp:dialer %D/fax/doneq
@exec chmod 700 %D/fax/doneq
@exec mkdir %D/fax/info
@exec chown uucp:dialer %D/fax/info
@exec chmod 755 %D/fax/info
@exec mkdir %D/fax/log
@exec chown uucp:dialer %D/fax/log
@exec chmod 755 %D/fax/log
@exec mkdir %D/fax/pollq
@exec chown uucp:dialer %D/fax/pollq
@exec chmod 700 %D/fax/pollq
@exec mkdir %D/fax/recvq
@exec chown uucp:dialer %D/fax/recvq
@exec chmod 755 %D/fax/recvq
@exec mkdir %D/fax/sendq
@exec chown uucp:dialer %D/fax/sendq
@exec chmod 700 %D/fax/sendq
@exec mkdir %D/fax/status
@exec chown uucp:dialer %D/fax/status
@exec chmod 755 %D/fax/status
@exec mkdir %D/fax/tmp
@exec chown uucp:dialer %D/fax/tmp
@exec chmod 700 %D/fax/tmp
@dirrm fax/archive
@dirrm fax/bin
@dirrm fax/client
@dirrm fax/config
@dirrm fax/dev
@dirrm fax/docq
@dirrm fax/doneq
@dirrm fax/etc
@dirrm fax/info
@dirrm fax/log
@dirrm fax/pollq
@dirrm fax/recvq
@dirrm fax/sendq
@dirrm fax/status
@dirrm fax/tmp
@dirrm fax

10
comms/hylafax/pkg/README Normal file
View File

@ -0,0 +1,10 @@
The port is complete rewrite of hylafax-3.0p1 port by Julian Stacey
<jhs@freebsd.org>, May 1995.
original notice was as follows:
Copyright Julian Stacey 1995:
Please preserve & comply with Sam Leffler's & SGI's legal stuff
I hereby release my work in this area for public use,
& disclaim all liability !
Leave my name intact please, I'm a freelance, publicity can
be useful.