$NetBSD: patch-ai,v 1.10 2014/03/14 15:59:29 adam Exp $ --- etc/faxsetup.sh.in.orig 2012-06-06 00:58:38.000000000 +0000 +++ etc/faxsetup.sh.in @@ -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 @@ -60,6 +62,7 @@ FUSER=@FUSER@ # fuser command to dump 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 PCL6CMD=@PCL6CMD@ # pcl6 (GhostPCL) program @@ -154,6 +157,7 @@ LIBEXEC DIR_LIBEXEC LN MANDIR DIR_MAN MIMENCODE +MKDIR MKFIFO MV PATH @@ -870,6 +874,61 @@ if [ "$euid" != "root" ]; then boom fi +createspool() +{ + old_spool="`dirname ${DIR_SPOOL}`/fax" + if [ -d "${old_spool}" ]; then + cat <