diff options
author | rh <rh@pkgsrc.org> | 1999-08-11 06:04:26 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 1999-08-11 06:04:26 +0000 |
commit | 11318c4e049b6cae8e8dae69c0d1be7c21a87c54 (patch) | |
tree | d7d2aa022ad82359a0fba2042fbe046bff09b9c2 /comms/hylafax | |
parent | d7b743afef62f87f4ff6e12f4f292059d4e50f23 (diff) | |
download | pkgsrc-11318c4e049b6cae8e8dae69c0d1be7c21a87c54.tar.gz |
Initial import of hylafax-4.1b1, a telecommunication and fax server system,
as reported by myself in pkg/6678, with tons of modifications.
Diffstat (limited to 'comms/hylafax')
-rw-r--r-- | comms/hylafax/Makefile | 38 | ||||
-rw-r--r-- | comms/hylafax/files/md5 | 3 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-aa | 177 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ab | 13 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ac | 27 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ad | 15 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ae | 84 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-af | 12 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ag | 16 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ah | 12 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ai | 26 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-aj | 80 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ak | 13 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-al | 13 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-am | 31 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-an | 21 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ao | 34 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ap | 24 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-aq | 13 | ||||
-rw-r--r-- | comms/hylafax/patches/patch-ar | 29 | ||||
-rw-r--r-- | comms/hylafax/pkg/COMMENT | 1 | ||||
-rw-r--r-- | comms/hylafax/pkg/DESCR | 16 | ||||
-rw-r--r-- | comms/hylafax/pkg/MESSAGE | 23 | ||||
-rw-r--r-- | comms/hylafax/pkg/PLIST | 172 |
24 files changed, 893 insertions, 0 deletions
diff --git a/comms/hylafax/Makefile b/comms/hylafax/Makefile new file mode 100644 index 00000000000..f03bc8ce9f1 --- /dev/null +++ b/comms/hylafax/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/08/11 06:04:26 rh Exp $ +# + +DISTNAME= hylafax-4.1beta1 +PKGNAME= hylafax-4.1b1 +CATEGORIES= comms +MASTER_SITES= ftp://ftp.hylafax.org/hylafax/source/BETA/ \ + ftp://ftp.leo.org/pub/comp/os/unix/networking/fax/hylafax/source/BETA/ \ + ftp://ftp.sisis.de/pub/hylafax/source/BETA/ \ + ftp://ftp.uni-bremen.de/pub/mirrors/ftp.hylafax.org/pub/hylafax/source/BETA/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.hylafax.org/ + +DEPENDS+= tiff-3.4:../../graphics/tiff +DEPENDS+= jpeg-6b:../../graphics/jpeg +DEPENDS+= mawk-1.2.2:../../lang/mawk +DEPENDS+= ghostscript-5.50:../../print/ghostscript5 + +CONFLICTS= mgetty-* + +FAXUSER?= uucp +FAXGROUP?= dialer + +USE_GMAKE= YES +HAS_CONFIGURE= YES +CONFIGURE_ENV= PREFIX="${PREFIX}" FAXUID="${FAXUSER}" FAXGID="${FAXGROUP}" +CONFIGURE_ARGS= --with-MAKE=${MAKE_PROGRAM} --with-INSTALL="" +MANCOMPRESSED= yes + +SUID_EXES= ${PREFIX}/libexec/faxgetty ${PREFIX}/sbin/faxq \ + ${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter + +post-install: + ${CHOWN} ${FAXUSER} ${SUID_EXES} + ${CHMOD} 4555 ${SUID_EXES} + +.include "../../mk/bsd.pkg.mk" diff --git a/comms/hylafax/files/md5 b/comms/hylafax/files/md5 new file mode 100644 index 00000000000..27e0d887e1e --- /dev/null +++ b/comms/hylafax/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/08/11 06:04:28 rh Exp $ + +MD5 (hylafax-4.1beta1.tar.gz) = 8b5aaf4bb412e47bb16b984e93d08514 diff --git a/comms/hylafax/patches/patch-aa b/comms/hylafax/patches/patch-aa new file mode 100644 index 00000000000..3687f119f3f --- /dev/null +++ b/comms/hylafax/patches/patch-aa @@ -0,0 +1,177 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/08/11 06:04:28 rh Exp $ + +--- configure.orig Thu Jul 1 12:30:54 1999 ++++ configure Tue Aug 10 16:53:18 1999 +@@ -37,21 +37,19 @@ + # + # 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_BIN=${PREFIX}/bin ++DIR_SBIN=${PREFIX}/sbin ++DIR_LIBDATA=${PREFIX}/libdata/hylafax ++DIR_LIBEXEC=${PREFIX}/libexec + DIR_SPOOL=/var/spool/fax +-DIR_HTML=/var/httpd/htdocs/hylafax +-DIR_CGI=/var/httpd/cgi-bin ++DIR_HTML=${PREFIX}/http/htdocs/hylafax ++DIR_CGI=${PREFIX}/http/cgi-bin + PATH_DPSRIP=$DIR_LIBEXEC/ps2fax.exe +-PATH_IMPRIP=/usr/lib/print/psrip ++PATH_IMPRIP=${PREFIX}/lib/print/psrip + HTMLPATH=/hylafax + CGIPATH=/cgi-bin + DEFVRES=98 + PAGESIZE="North American Letter" +-FAXUID=uucp +-FAXGID= + SYSUID=bin + SYSGID= + DSO=auto +@@ -67,18 +65,18 @@ + GS=no + IMP=no + UTMP=auto +-LIBTIFF="-L/usr/local/lib -ltiff" +-TIFFINC=/usr/local/include ++LIBTIFF="-Wl,-R${PREFIX}/lib -L${PREFIX}/lib -ltiff -ljpeg -lz -lm" ++TIFFINC=${PREFIX}/include + TIFFBIN= +-ZLIB=yes +-LIBZ='-L${DEPTH}/zlib -lz' +-ZLIBINC='${DEPTH}/${TOPSRCDIR}/zlib' ++ZLIB=no ++LIBZ='-lz' ++ZLIBINC='/usr/include' + REGEX=yes + LIBREGEX='-L${DEPTH}/regex -lregex' + REGEXINC='${DEPTH}/${TOPSRCDIR}/regex' + DBLIB=no +-LIBDB="-L/usr/local/lib -ldb" +-DBLIBINC=/usr/local/include ++LIBDB="-L${PREFIX}/lib -ldb" ++DBLIBINC=${PREFIX}/include + CONFIG_OSFCNH=auto + + # SVR4 packaging stuff +@@ -195,6 +193,7 @@ + PKG_VENDOR + PORT + PORTFUNCS ++PREFIX + PSPACKAGE PS + REGEX + RM RMCMD +@@ -247,7 +246,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 ${PREFIX}/bin && PATH=${PREFIX}/bin:$PATH # for packages stuff + PATH=$PATH:$OPATH + + POSIXLY_CORRECT=1; export POSIXLY_CORRECT # disable GNU extensions +@@ -617,6 +616,7 @@ + { + echo `(for i do + case "$i" in ++ -Wl*) echo "$i" ;; + /*|-l*|-l[$]{DEPTH}/*) echo "$i" ;; + -L|-L/*|-L[$]{DEPTH}/*) echo "$i" ;; + -I|-I/*|-I[$]{DEPTH}/*) echo "$i" ;; +@@ -2809,7 +2809,7 @@ + # Location of TIFF binaries + # + if [ -z "$TIFFBIN" ]; then +- DIRS="/usr/local/bin /usr/contrib/bin /usr/gnu/bin /usr/bin" ++ DIRS="${PREFIX}/bin /usr/local/bin /usr/gnu/bin /usr/bin" + for i in $DIRS; do + test -x $i/tiff2ps && { TIFFBIN=$i; break; } + done +@@ -3385,7 +3385,7 @@ + if [ -z "$PATH_VGETTY" ]; then + PATH_VGETTY=`findApp vgetty /usr/libexec:/sbin:$PATH` + if [ -z "$PATH_VGETTY" ]; then +- PATH_VGETTY=/bin/vgetty ++ PATH_VGETTY=${PREFIX}/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." +@@ -3398,7 +3398,7 @@ + if [ -z "$PATH_EGETTY" ]; then + PATH_EGETTY=`findApp egetty /usr/libexec:/sbin:$PATH` + if [ -z "$PATH_EGETTY" ]; then +- PATH_EGETTY=/bin/egetty ++ PATH_EGETTY=${PREFIX}/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." +@@ -3468,6 +3468,7 @@ + { + if [ -z "$PATH_GSRIP" ]; then + GSLOCS=" ++ ${PREFIX}/bin/gs + /usr/local/bin/gs + /usr/contrib/bin/gs + /usr/gnu/bin/gs +@@ -3515,7 +3516,7 @@ + on building Ghostscript with the necessary TIFF driver. + + EOF +- PATH_PSRIP=/usr/local/bin/gs ++ PATH_PSRIP=${PREFIX}/bin/gs + PATH_GSRIP=$PATH_PSRIP + fi + } +@@ -3578,9 +3579,9 @@ + else + DIR_AFMS=" + /usr/lib/afm +- /usr/local/lib/afm +- /usr/local/share/ghostscript/fonts +- /usr/local/lib/ghostscript/fonts ++ ${PREFIX}/lib/afm ++ ${PREFIX}/share/ghostscript/fonts ++ ${PREFIX}/lib/ghostscript/fonts + /usr/share/ghostscript/fonts + /usr/gnu/lib/ghostscript/fonts + /opt/gnu/lib/ghostscript/fonts +@@ -3600,7 +3601,7 @@ + fi + if [ -z "$PATH_AFM" ]; then + # put it where ghostscript normally puts things +- PATH_AFM=/usr/local/lib/ghostscript/fonts ++ PATH_AFM=${PREFIX}/share/ghostscript/fonts + Note "WARNING, could not locate a directory with font metric information," + Note "guessing that font metric information goes in $PATH_AFM." + else +@@ -3619,6 +3620,7 @@ + # + if [ -z "$DIR_MAN" ]; then + MANPATH=" ++ ${PREFIX}/man + $MANPATH + /usr/local/man + /usr/contrib/man +@@ -3628,7 +3630,7 @@ + for i in $MANPATH; do + test -d $i && { DIR_MAN=$i; break; } + done +- test -z "$DIR_MAN" && DIR_MAN=/usr/local/man ++ test -z "$DIR_MAN" && DIR_MAN=${PREFIX}/man + fi + Note "Looks like manual pages go in $DIR_MAN." + if [ -z "$MANSCHEME" ]; then +@@ -4015,7 +4017,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-6]) promptForParameter $ok;; diff --git a/comms/hylafax/patches/patch-ab b/comms/hylafax/patches/patch-ab new file mode 100644 index 00000000000..4e3aa66c1f2 --- /dev/null +++ b/comms/hylafax/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/08/11 06:04:28 rh Exp $ + +--- faxd/Getty.c++.orig Sun Jun 13 09:41:03 1999 ++++ faxd/Getty.c++ Mon Aug 9 21:54:26 1999 +@@ -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); diff --git a/comms/hylafax/patches/patch-ac b/comms/hylafax/patches/patch-ac new file mode 100644 index 00000000000..12b0fe0a55f --- /dev/null +++ b/comms/hylafax/patches/patch-ac @@ -0,0 +1,27 @@ +$NetBSD: patch-ac,v 1.1.1.1 1999/08/11 06:04:28 rh Exp $ + +--- faxd/UUCPLock.c++.orig Sat Feb 14 11:49:38 1998 ++++ faxd/UUCPLock.c++ Mon Apr 12 17:53:07 1999 +@@ -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(FAX_GROUP); ++ if (!grp) ++ faxApp::fatal("Can not deduce group identity of '" FAX_GROUP "'"); ++ UUCPgid = grp->gr_gid; ++ endgrent(); // paranoia + } + } + uid_t UUCPLock::getUUCPUid() { setupIDs(); return UUCPuid; } diff --git a/comms/hylafax/patches/patch-ad b/comms/hylafax/patches/patch-ad new file mode 100644 index 00000000000..bc994433325 --- /dev/null +++ b/comms/hylafax/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.1.1.1 1999/08/11 06:04:28 rh Exp $ + +--- config/skel.orig Sat Feb 14 11:46:50 1998 ++++ config/skel Tue Dec 29 12:32:49 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 diff --git a/comms/hylafax/patches/patch-ae b/comms/hylafax/patches/patch-ae new file mode 100644 index 00000000000..1dd87d76de0 --- /dev/null +++ b/comms/hylafax/patches/patch-ae @@ -0,0 +1,84 @@ +$NetBSD: patch-ae,v 1.1.1.1 1999/08/11 06:04:29 rh Exp $ + +--- util/TypeRules.c++.orig Sun Jun 13 09:41:26 1999 ++++ util/TypeRules.c++ Tue Aug 10 15:36:51 1999 +@@ -36,6 +36,14 @@ + #include <netinet/in.h> + } + ++#ifndef TRUE ++#define TRUE 1 ++#endif ++ ++#ifndef FALSE ++#define FALSE 0 ++#endif ++ + TypeRule::TypeRule() {} + TypeRule::~TypeRule() {} + TypeRule::TypeRule(const TypeRule& other) +@@ -51,7 +59,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" }; +@@ -68,7 +76,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 +@@ -86,6 +94,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])) { +@@ -95,6 +104,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); +@@ -311,6 +333,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 { +@@ -321,7 +345,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; diff --git a/comms/hylafax/patches/patch-af b/comms/hylafax/patches/patch-af new file mode 100644 index 00000000000..755c8419535 --- /dev/null +++ b/comms/hylafax/patches/patch-af @@ -0,0 +1,12 @@ +$NetBSD: patch-af,v 1.1.1.1 1999/08/11 06:04:29 rh Exp $ + +--- util/TypeRules.h.orig Sun Jun 13 09:41:26 1999 ++++ util/TypeRules.h Mon Aug 9 21:59:31 1999 +@@ -130,6 +130,7 @@ + bool 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 diff --git a/comms/hylafax/patches/patch-ag b/comms/hylafax/patches/patch-ag new file mode 100644 index 00000000000..afc7140de23 --- /dev/null +++ b/comms/hylafax/patches/patch-ag @@ -0,0 +1,16 @@ +$NetBSD: patch-ag,v 1.1.1.1 1999/08/11 06:04:29 rh Exp $ + +--- util/typerules.orig Sat Feb 14 11:48:08 1998 ++++ util/typerules Tue Dec 29 12:32:50 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\ diff --git a/comms/hylafax/patches/patch-ah b/comms/hylafax/patches/patch-ah new file mode 100644 index 00000000000..5ee51693347 --- /dev/null +++ b/comms/hylafax/patches/patch-ah @@ -0,0 +1,12 @@ +$NetBSD: patch-ah,v 1.1.1.1 1999/08/11 06:04:29 rh Exp $ + +--- config.h.in.orig Sat Feb 14 11:46:29 1998 ++++ config.h.in Mon Apr 12 17:49:10 1999 +@@ -53,6 +53,7 @@ + * NB: The Unix-domain support is unfinished. + */ + #define FAX_USER "@FAXUID@" /* account name of the ``fax user'' */ ++#define FAX_GROUP "@FAXGID@" /* group 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 */ diff --git a/comms/hylafax/patches/patch-ai b/comms/hylafax/patches/patch-ai new file mode 100644 index 00000000000..a0bda623e13 --- /dev/null +++ b/comms/hylafax/patches/patch-ai @@ -0,0 +1,26 @@ +$NetBSD: patch-ai,v 1.1.1.1 1999/08/11 06:04:29 rh Exp $ + +--- etc/faxaddmodem.sh.in.orig Sat Feb 14 11:47:03 1998 ++++ etc/faxaddmodem.sh.in Fri Apr 16 00:13:52 1999 +@@ -46,6 +46,7 @@ + SPOOL=@SPOOL@ + + SPEED= ++TTY= + while [ x"$1" != x"" ] ; do + case $1 in + -s) SPEED=$2; shift;; +@@ -91,10 +92,11 @@ + 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 ++FAX=@FAXUID@ # identity of the fax user ++FAXGID=@FAXGID@ + 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 ++defPROTOGID=117 # use this gid if PROTOGID doesn't exist + MODEMCONFIG=$SPOOL/config # location of prototype modem config files + RMCMD="$RM -f" # forced removal + diff --git a/comms/hylafax/patches/patch-aj b/comms/hylafax/patches/patch-aj new file mode 100644 index 00000000000..d6d68759dfe --- /dev/null +++ b/comms/hylafax/patches/patch-aj @@ -0,0 +1,80 @@ +$NetBSD: patch-aj,v 1.1.1.1 1999/08/11 06:04:29 rh Exp $ + +--- etc/faxsetup.sh.in.orig Sun Jan 10 12:37:07 1999 ++++ etc/faxsetup.sh.in Mon Aug 9 22:04:50 1999 +@@ -41,7 +41,9 @@ + # This script interactively prepares and verifies + # a HylaFAX client and/or server machine for use. + # +-PATH=/bin:/usr/bin:/etc ++PREFIX=@PREFIX@ ++# ++PATH=/bin:/usr/bin:${PREFIX}/bin:${PREFIX}/sbin + 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 +@@ -58,13 +60,14 @@ + 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 ++MKDIR=@MKDIR@ # directory creation program for use below + 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 ++FAX=@FAXUID@ # 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 +@@ -138,6 +141,7 @@ + LIBEXEC DIR_LIBEXEC + LN + MANDIR DIR_MAN ++MKDIR + MKFIFO + MV + PATH +@@ -741,6 +745,40 @@ + bitch "Sorry, but you must run this script as the super-user!" + boom + fi ++ ++createspool() ++{ ++ if [ -d "${DIR_SPOOL}" ]; then ++ cat <<EOF ++================================================================= ++ ++ @SPOOL@ already exists, probably from a previous run of ++ faxsetup.sh -- I'm not touching it! ++ ++ If you encounter problems, deinstall the HylaFax package, ++ remove @SPOOL@ and reinstall the package. ++ ++================================================================= ++EOF ++ else ++ ${MKDIR} -p -m 0755 ${DIR_SPOOL} ++ ${MKFIFO} -m 0600 ${DIR_SPOOL}/FIFO ++ for i in archive docq doneq pollq sendq tmp ; do ++ ${MKDIR} -m 0700 ${DIR_SPOOL}/$i ++ done ++ for i in client cover dev info log recvq status ; do ++ ${MKDIR} -m 0755 ${DIR_SPOOL}/$i ++ done ++ ${LN} ${LN_S} ${PREFIX}/etc/hylafax ${DIR_SPOOL}/etc ++ ${LN} ${LN_S} ${PREFIX}/etc/hylafax/modem ${DIR_SPOOL}/config ++ ${LN} ${LN_S} ${PREFIX}/libexec/hylafax ${DIR_SPOOL}/bin ++ ${CHOWN} -R ${PROTOUID}:${PROTOGID} ${DIR_SPOOL} ++ fi ++} ++ ++Note "Creating spool directory structure" ++ ++createspool + + onClient && Note "Checking system for proper client configuration." + onServer && Note "Checking system for proper server configuration." diff --git a/comms/hylafax/patches/patch-ak b/comms/hylafax/patches/patch-ak new file mode 100644 index 00000000000..6e0740bd3fe --- /dev/null +++ b/comms/hylafax/patches/patch-ak @@ -0,0 +1,13 @@ +$NetBSD: patch-ak,v 1.1.1.1 1999/08/11 06:04:29 rh Exp $ + +--- util/faxcron.sh.in.orig Tue Jun 29 13:55:07 1999 ++++ util/faxcron.sh.in Mon Aug 9 22:06:17 1999 +@@ -41,7 +41,7 @@ + AGELOG=30 # keep log info for last 30 days + AGERCV=7 # purge received facsimile after 2 days + AGETMP=1 # purge orphaned temp files after 1 day +-FAXUSER=fax # owner of log files ++FAXUSER=@FAXUID@ # owner of log files + LOGMODE=0644 # mode for log files + XFERLOG=etc/xferfaxlog # HylaFAX xferfaxlog file location + LAST=etc/lastrun # file where time+date of last run recorded diff --git a/comms/hylafax/patches/patch-al b/comms/hylafax/patches/patch-al new file mode 100644 index 00000000000..12c7abf6fc9 --- /dev/null +++ b/comms/hylafax/patches/patch-al @@ -0,0 +1,13 @@ +$NetBSD: patch-al,v 1.1.1.1 1999/08/11 06:04:30 rh Exp $ + +--- faxd/faxGettyApp.c++.orig Sat Feb 14 11:49:40 1998 ++++ faxd/faxGettyApp.c++ Mon Apr 12 18:06:51 1999 +@@ -671,7 +671,7 @@ + FaxServer::notifyDocumentRecvd(ri); + + FaxAcctInfo ai; +- ai.user = "fax"; ++ ai.user = FAX_USER; + ai.commid = getCommID(); + ai.duration = (time_t) ri.time; + ai.start = Sys::now() - ai.duration; diff --git a/comms/hylafax/patches/patch-am b/comms/hylafax/patches/patch-am new file mode 100644 index 00000000000..acda432a837 --- /dev/null +++ b/comms/hylafax/patches/patch-am @@ -0,0 +1,31 @@ +$NetBSD: patch-am,v 1.1.1.1 1999/08/11 06:04:30 rh Exp $ + +--- hfaxd/User.c++.orig Sat Feb 14 11:50:15 1998 ++++ hfaxd/User.c++ Mon Apr 12 18:14:53 1999 +@@ -218,7 +218,7 @@ + if (id == uid) // user currently logged in + return (const char*) the_user; + if (id == FAXUID_ANON) // anonymous user +- return "fax"; ++ return FAX_USER; + if (idcache == NULL) // load cache from file + fillIDCache(); + const fxStr* hit = idcache->find(id); // check cache +@@ -237,7 +237,7 @@ + { + if (name == the_user) + id = uid; +- else if (strcmp(name, "fax") == 0) ++ else if (strcmp(name, FAX_USER) == 0) + id = FAXUID_ANON; + else { + if (idcache == NULL) +@@ -324,7 +324,7 @@ + if (faxuid < FAXUID_MAX) + SetBit(FAXUID_RESV); // reserved uid + else +- logError("Internal error, \"fax\" UID (%u) too large.", faxuid); ++ logError("Internal error, \"" FAX_USER "\" UID (%u) too large.", faxuid); + SetBit(FAXUID_ANON); // anonymous uid is reserved + while (nextRecord(db, line, sizeof (line))) { + if (line[0] == '!') diff --git a/comms/hylafax/patches/patch-an b/comms/hylafax/patches/patch-an new file mode 100644 index 00000000000..9287a7bf6f0 --- /dev/null +++ b/comms/hylafax/patches/patch-an @@ -0,0 +1,21 @@ +$NetBSD: patch-an,v 1.1.1.1 1999/08/11 06:04:30 rh Exp $ + +--- defs.in.orig Mon Jan 4 10:17:09 1999 ++++ defs.in Tue Aug 10 18:10:07 1999 +@@ -44,6 +44,7 @@ + # to insufficient; you are better off rerunning the + # configure script so that all uses are set correctly. + # ++PREFIX = @PREFIX@ + SPOOL = @SPOOL@ + SBIN = @SBIN@ + BIN = @BIN@ +@@ -255,7 +256,7 @@ + LDOPTS = ${VLDOPTS} ${LLDOPTS} ${GLDOPTS} + LDLIBS = ${VLDLIBS} ${LLDLIBS} ${GLDLIBS} + +-GLDOPTS = -L/usr/local/lib ++GLDOPTS = -L${PREFIX}/lib + GLDLIBS = ${SHDLIBC} + + # diff --git a/comms/hylafax/patches/patch-ao b/comms/hylafax/patches/patch-ao new file mode 100644 index 00000000000..face546bd4c --- /dev/null +++ b/comms/hylafax/patches/patch-ao @@ -0,0 +1,34 @@ +$NetBSD: patch-ao,v 1.1.1.1 1999/08/11 06:04:30 rh Exp $ + +--- util/Makefile.in.orig Sun Jan 10 10:50:29 1999 ++++ util/Makefile.in Mon Aug 9 23:09:07 1999 +@@ -150,7 +150,7 @@ + PUTCLIENT = ${INSTALL} -idb ${PRODUCT}.sw.client + PUTSERVER = ${INSTALL} -idb ${PRODUCT}.sw.server + PUTSERV = ${PUTSERVER} -m 755 +-PUTSUPD = ${PUTSERVER} -F ${SPOOL}/bin -idb "config(update)" ++PUTSUPD = ${PUTSERVER} -F ${LIBEXEC}/hylafax -idb "config(update)" + PUTSBIN = ${PUTSERVER} -F ${SBIN} + + installClient: default +@@ -167,6 +167,7 @@ + ${PUTSBIN} -m 755 -src xferfaxstats.sh -O xferfaxstats + ${PUTSBIN} -m 755 -src recvstats.sh -O recvstats + ${PUTSBIN} -m 755 -idb "config(update)" -src faxcron.sh -O faxcron ++ -${MKDIR} -m 755 ${LIBEXEC}/hylafax + ${PUTSUPD} -m 755 -src ${SRCDIR}/ps2fax.gs.sh -O ps2fax.gs + ${PUTSUPD} -m 755 -src ${SRCDIR}/ps2fax.dps.sh -O ps2fax.dps + ${PUTSUPD} -m 755 -src ${SRCDIR}/ps2fax.imp.sh -O ps2fax.imp +@@ -178,9 +179,10 @@ + ${PUTSUPD} -m 755 -src ${SRCDIR}/pollrcvd.sh -O pollrcvd + ${PUTSUPD} -m 755 -src ${SRCDIR}/mkcover.sh -O mkcover + ${PUTSUPD} -m 755 -src ${SRCDIR}/wedged.sh -O wedged +- ${PUTSERVER} -F ${SPOOL}/etc -m 444 -idb "config(update)" \ ++ -${MKDIR} -m 755 ${PREFIX}/etc/hylafax ++ ${PUTSERVER} -F ${PREFIX}/etc/hylafax -m 444 -idb "config(update)" \ + -src ${SRCDIR}/dpsprinter.ps -O dpsprinter.ps +- ${PUTSERVER} -F ${SPOOL}/etc -idb "config(suggest)" \ ++ ${PUTSERVER} -F ${PREFIX}/etc/hylafax -idb "config(suggest)" \ + -m 444 -src ${SRCDIR}/cover.templ -O cover.templ + + @MAKEDSOINCLUDE@ @MAKELQUOTE@${SRCDIR}/Makefile.@DSO@dso@MAKERQUOTE@ diff --git a/comms/hylafax/patches/patch-ap b/comms/hylafax/patches/patch-ap new file mode 100644 index 00000000000..cb47e49314b --- /dev/null +++ b/comms/hylafax/patches/patch-ap @@ -0,0 +1,24 @@ +$NetBSD: patch-ap,v 1.1.1.1 1999/08/11 06:04:30 rh Exp $ + +--- etc/Makefile.in.orig Fri Jan 22 08:02:49 1999 ++++ etc/Makefile.in Mon Aug 9 23:11:44 1999 +@@ -78,14 +78,15 @@ + -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 xferfaxlog +- ${PUTSAMPLE} -F ${SPOOL}/etc -m 600 -o hosts ++ -${MKDIR} -m 755 ${PREFIX}/etc/hylafax ++ ${PUTSAMPLE} -F ${PREFIX}/etc/hylafax -m 644 -o xferfaxlog ++ ${PUTSAMPLE} -F ${PREFIX}/etc/hylafax -m 600 -o hosts + for i in ${DIALRULES}; do \ +- ${PUTSERVER} -F ${SPOOL}/etc -m 444 -src ${SRCDIR}/$$i \ ++ ${PUTSERVER} -F ${PREFIX}/etc/hylafax -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 \ ++ ${PUTSAMPLE} -F ${PREFIX}/etc/hylafax -m 644 -idb nostrip \ + -src ${SRCDIR}/lutRS18.pcf -O lutRS18.pcf + + # diff --git a/comms/hylafax/patches/patch-aq b/comms/hylafax/patches/patch-aq new file mode 100644 index 00000000000..b0af9c35c68 --- /dev/null +++ b/comms/hylafax/patches/patch-aq @@ -0,0 +1,13 @@ +$NetBSD: patch-aq,v 1.1.1.1 1999/08/11 06:04:30 rh Exp $ + +--- config/Makefile.in.orig Sat Feb 14 11:46:36 1998 ++++ config/Makefile.in Thu Apr 15 21:57:19 1999 +@@ -95,6 +95,7 @@ + PUTSERVER=${INSTALL} -idb ${PRODUCT}.sw.server + + install: default ${CONFIGFILES} ++ -${MKDIR} -p -m 0755 ${PREFIX}/etc/hylafax/modem + for i in ${CONFIGFILES}; do \ +- ${PUTSERVER} -F ${SPOOL}/config -m 444 -src ${SRCDIR}/$$i -O $$i; \ ++ ${PUTSERVER} -F ${PREFIX}/etc/hylafax/modem -m 444 -src ${SRCDIR}/$$i -O $$i; \ + done diff --git a/comms/hylafax/patches/patch-ar b/comms/hylafax/patches/patch-ar new file mode 100644 index 00000000000..02ca8ad788a --- /dev/null +++ b/comms/hylafax/patches/patch-ar @@ -0,0 +1,29 @@ +$NetBSD: patch-ar,v 1.1.1.1 1999/08/11 06:04:30 rh Exp $ + +--- Makefile.in.orig Sat Feb 14 11:46:32 1998 ++++ Makefile.in Fri Apr 16 00:03:33 1999 +@@ -247,22 +247,13 @@ + 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 \ ++ -${MKDIR} -p -m 755 ${PREFIX}/share/doc/hylafax ++ ${INSTALL} -m 444 -F ${PREFIX}/share/doc/hylafax -idb hylafax.sw.server \ + -src ${SRCDIR}/COPYRIGHT -O COPYRIGHT + @if [ "@ZLIB@" = yes ]; then \ + ${ECHO} "= "zlib; cd zlib; ${MAKE} install; \ diff --git a/comms/hylafax/pkg/COMMENT b/comms/hylafax/pkg/COMMENT new file mode 100644 index 00000000000..3649500f1ad --- /dev/null +++ b/comms/hylafax/pkg/COMMENT @@ -0,0 +1 @@ +A telecommunication and fax server system diff --git a/comms/hylafax/pkg/DESCR b/comms/hylafax/pkg/DESCR new file mode 100644 index 00000000000..8fe7e53fcd7 --- /dev/null +++ b/comms/hylafax/pkg/DESCR @@ -0,0 +1,16 @@ +(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. + +http://www.vix.com/hylafax/ diff --git a/comms/hylafax/pkg/MESSAGE b/comms/hylafax/pkg/MESSAGE new file mode 100644 index 00000000000..83d6dc17fb8 --- /dev/null +++ b/comms/hylafax/pkg/MESSAGE @@ -0,0 +1,23 @@ +Hylafax was installed. You'll need manual configurations to actually +activate it. + +Setting up: (for impatients) + + Invoke faxsetup, and answer what she asks. + + Add the following to your rc.local script (insert the directory + your have your packages installed in -- for example /usr/pkg -- + instead of <prefix> below): + + if [ -x <prefix>/sbin/faxq ]; then + <prefix>/sbin/faxq && echo -n ' hylafax' + fi + + For accepting incoming FAX/data calls, modify /etc/ttys as below + and send SIGHUP to init process: + +>tty00 "<prefix>/libexec/faxgetty" dialup on secure + +Documentation: + On Line Manuals: man hylafax. + World Wide Web site: http://www.hylafax.org/ diff --git a/comms/hylafax/pkg/PLIST b/comms/hylafax/pkg/PLIST new file mode 100644 index 00000000000..1c05dfc6c73 --- /dev/null +++ b/comms/hylafax/pkg/PLIST @@ -0,0 +1,172 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/08/11 06:04:27 rh Exp $ +bin/faxalter +bin/faxcover +bin/faxmail +bin/faxrm +bin/faxstat +bin/sendfax +bin/sendpage +libdata/hylafax/faxcover.ps +libdata/hylafax/faxmail.ps +libdata/hylafax/pagesizes +libdata/hylafax/typerules +libdata/hylafax/hfaxd.conf +share/doc/hylafax/COPYRIGHT +libexec/lockname +libexec/ondelay +libexec/textfmt +libexec/faxgetty +libexec/faxsend +libexec/pagesend +libexec/hfaxd +libexec/hylafax/ps2fax.gs +libexec/hylafax/ps2fax.dps +libexec/hylafax/ps2fax.imp +libexec/hylafax/pcl2fax +libexec/hylafax/tiff2fax +libexec/hylafax/notify +libexec/hylafax/notify.awk +libexec/hylafax/faxrcvd +libexec/hylafax/pollrcvd +libexec/hylafax/mkcover +libexec/hylafax/wedged +man/cat5/pagesizes.0.gz +man/cat5/typerules.0.gz +man/cat5/cid.0.gz +man/cat5/config.0.gz +man/cat5/destctrls.0.gz +man/cat5/dialrules.0.gz +man/cat5/hosts.0.gz +man/cat5/hylafax.0.gz +man/cat5/info.0.gz +man/cat5/log.0.gz +man/cat5/pagermap.0.gz +man/cat5/recvq.0.gz +man/cat5/sendq.0.gz +man/cat5/shutdown.0.gz +man/cat5/status.0.gz +man/cat5/tsi.0.gz +man/cat5/xferfaxlog.0.gz +man/cat8/choptest.0.gz +man/cat8/cqtest.0.gz +man/cat8/dialtest.0.gz +man/cat8/faxabort.0.gz +man/cat8/faxaddmodem.0.gz +man/cat8/faxanswer.0.gz +man/cat8/faxconfig.0.gz +man/cat8/faxcron.0.gz +man/cat8/faxgetty.0.gz +man/cat8/faxinfo.0.gz +man/cat8/faxmodem.0.gz +man/cat8/faxq.0.gz +man/cat8/faxqclean.0.gz +man/cat8/faxquit.0.gz +man/cat8/faxrcvd.0.gz +man/cat8/faxsend.0.gz +man/cat8/faxsetup.0.gz +man/cat8/faxstate.0.gz +man/cat8/faxwatch.0.gz +man/cat8/hfaxd.0.gz +man/cat8/mkcover.0.gz +man/cat8/notify.0.gz +man/cat8/pagesend.0.gz +man/cat8/pollrcvd.0.gz +man/cat8/ps2fax.0.gz +man/cat8/recvstats.0.gz +man/cat8/tagtest.0.gz +man/cat8/tiff2fax.0.gz +man/cat8/tiffcheck.0.gz +man/cat8/tsitest.0.gz +man/cat8/wedged.0.gz +man/cat8/xferfaxstats.0.gz +man/cat1/faxalter.0.gz +man/cat1/faxcover.0.gz +man/cat1/faxmail.0.gz +man/cat1/faxrm.0.gz +man/cat1/faxstat.0.gz +man/cat1/hylafax.0.gz +man/cat1/sendfax.0.gz +man/cat1/sendpage.0.gz +man/cat1/sgi2fax.0.gz +man/cat1/textfmt.0.gz +sbin/faxaddmodem +sbin/faxsetup +sbin/faxsetup.bsdi +sbin/faxsetup.irix +sbin/faxsetup.linux +sbin/probemodem +sbin/faxmsg +sbin/faxconfig +sbin/faxmodem +sbin/faxstate +sbin/faxwatch +sbin/faxinfo +sbin/tiffcheck +sbin/faxabort +sbin/faxanswer +sbin/faxquit +sbin/hylafax +sbin/dialtest +sbin/typetest +sbin/xferfaxstats +sbin/recvstats +sbin/faxcron +sbin/faxq +sbin/faxqclean +sbin/tsitest +sbin/tagtest +sbin/cqtest +sbin/choptest +etc/hylafax/modem/class1 +etc/hylafax/modem/class2 +etc/hylafax/modem/class2.0 +etc/hylafax/modem/skel +etc/hylafax/modem/att-dataport-2 +etc/hylafax/modem/att-dataport-2.0 +etc/hylafax/modem/att-dataport +etc/hylafax/modem/cirrus +etc/hylafax/modem/dsi-scout+ +etc/hylafax/modem/e-tech +etc/hylafax/modem/everex-2496d +etc/hylafax/modem/exar +etc/hylafax/modem/gvc-288 +etc/hylafax/modem/gvc-288-2 +etc/hylafax/modem/intel-400e +etc/hylafax/modem/moto-288 +etc/hylafax/modem/mt-1432 +etc/hylafax/modem/nuvo-voyager +etc/hylafax/modem/ppi-pm14400fxmt +etc/hylafax/modem/ppi-pm14400fxsa +etc/hylafax/modem/rc144ac +etc/hylafax/modem/rc144ac-1 +etc/hylafax/modem/rc288dpi +etc/hylafax/modem/rc288dpi-1 +etc/hylafax/modem/rc32acl +etc/hylafax/modem/rc32acl-1 +etc/hylafax/modem/rockwell +etc/hylafax/modem/telebit-t3000 +etc/hylafax/modem/telebit-qblazer +etc/hylafax/modem/telebit-wb +etc/hylafax/modem/tricom2842 +etc/hylafax/modem/uds-fastalk +etc/hylafax/modem/usr-2.0 +etc/hylafax/modem/usr-rts +etc/hylafax/modem/usr-xon +etc/hylafax/modem/zyxel-1496e +etc/hylafax/modem/zyxel-1496e-1 +etc/hylafax/modem/zyxel-1496e-2.0 +etc/hylafax/modem/zyxel-2864 +etc/hylafax/modem/sierra +etc/hylafax/xferfaxlog +etc/hylafax/hosts +etc/hylafax/dialrules +etc/hylafax/dialrules.sf-ba +etc/hylafax/dialrules.europe +etc/hylafax/lutRS18.pcf +etc/hylafax/dpsprinter.ps +etc/hylafax/cover.templ +@dirrm etc/hylafax/modem +@dirrm etc/hylafax +@dirrm libexec/hylafax +@dirrm libdata/hylafax +@dirrm share/doc/hylafax |