]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Adds RPM building right from tarball
authorPatrice Fournier <pfournier@ifax.com>
Fri, 31 Jul 2009 16:05:40 +0000 (12:05 -0400)
committerPatrice Fournier <pfournier@ifax.com>
Fri, 31 Jul 2009 16:05:40 +0000 (12:05 -0400)
Build an RPM with just:

  rpmbuild -ta path/hylafax-$VERSION.tar.gz

Based on the following commits:
 395986440c00af624cf729c199af9daa385e8792
 111a6c004d81fdd22de16e6072fde0f5a748dad3
 331c20be8a352fec904f841040dbc108010036d9
 90db29cc72feccea81db09ffd954efa0295c13f4

16 files changed:
distrules
rpm/FaxDispatch [new file with mode: 0644]
rpm/README.rpm [new file with mode: 0644]
rpm/config [new file with mode: 0644]
rpm/config.modem [new file with mode: 0644]
rpm/cron.daily [new file with mode: 0644]
rpm/cron.hourly [new file with mode: 0644]
rpm/hyla.conf [new file with mode: 0644]
rpm/hylafax.spec [new file with mode: 0644]
rpm/init [new file with mode: 0644]
rpm/jobcontrol.sh [new file with mode: 0644]
rpm/logrotate.conf [new file with mode: 0644]
rpm/patches/001-faxsetup-server.patch [new file with mode: 0644]
rpm/setup.cache [new file with mode: 0644]
rpm/setup.modem [new file with mode: 0644]
rpm/sysconfig [new file with mode: 0644]

index a62b837117e794ecb6186890a16af898083cb665..10392d492f98ddb12c872f4c0b58f8320b61caf8 100644 (file)
--- a/distrules
+++ b/distrules
@@ -774,6 +774,21 @@ HYLAFAXSRC=\
        regex/regexec.c                                                       \
        regex/regfree.c                                                       \
        regex/utils.h                                                         \
+       rpm/FaxDispatch                                                       \
+       rpm/README.rpm                                                        \
+       rpm/config                                                            \
+       rpm/config.modem                                                      \
+       rpm/cron.daily                                                        \
+       rpm/cron.hourly                                                       \
+       rpm/hyla.conf                                                         \
+       rpm/hylafax.spec                                                      \
+       rpm/init                                                              \
+       rpm/jobcontrol.sh                                                     \
+       rpm/logrotate.conf                                                    \
+       rpm/patches/001-faxsetup-server.patch                                 \
+       rpm/setup.cache                                                       \
+       rpm/setup.modem                                                       \
+       rpm/sysconfig                                                         \
        rules.in                                                              \
        sendfax/Makefile.in                                                   \
        sendfax/sendfax.c++                                                   \
diff --git a/rpm/FaxDispatch b/rpm/FaxDispatch
new file mode 100644 (file)
index 0000000..d0291cb
--- /dev/null
@@ -0,0 +1,32 @@
+##     $Id$    
+##
+## Default FaxDispatch file - routes all inbound faxes to FaxMaster as PDF
+## 
+## Consult the faxrcvd(8C) man page for more information
+##
+
+SENDTO=FaxMaster;                              # by default email to FaxMaster
+FILETYPE=pdf;                                  # in PDF format
+
+
+##
+## This excerpt from the man page gives you an idea of what's possible here
+##
+## You can route by sender's TSI
+#case "$SENDER" in
+#      *1*510*526*1212*) SENDTO=sam;;          # Sam's test rig in Berkeley
+#      *1*415*390*1212*) SENDTO=raster@asd;;   # 7L Xerox room, used for scanning
+#      *5107811212)      SENDTO=peebles@mti;;  # stuff from home
+#esac
+
+## and/or by device
+#case "$DEVICE" in
+#      ttyS1)            SENDTO=john;;         # all faxes received on ttyS1
+#      ttyLT0)           SENDTO=mary@home;;    # all faxes received on ttyLT0
+#esac
+
+## and/or by caller id
+#case "$CIDNUMBER" in
+#      435*)        SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
+#      5059627777)  SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
+#esac
diff --git a/rpm/README.rpm b/rpm/README.rpm
new file mode 100644 (file)
index 0000000..1bf861e
--- /dev/null
@@ -0,0 +1,60 @@
+
+Welcome to the README! Thanks for taking the time to find it ;-)
+
+First of all, thanks to my employer, iFAX Solutions for allowing me to
+maintain the Red Hat RPMS for HylaFAX on company time!
+
+For an introduction to the wonderful world of HylaFAX(tm), please see
+http://www.hylafax.org/. Beginners should head directly to the docs:
+
+       http://www.hylafax.org/content/Documentation
+
+
+If your company plans to deploy HylaFAX for something important, you
+should consider purchasing an annual support contract from hylafax.org's
+commercial sponsor (and my employer). For more details, see:
+
+       http://www.ifax.com/
+
+or send an email to the iFAX Sales Team <sales@ifax.com>. By doing so,
+you'll make sure you have knowledgable technicians to turn to in a
+crisis, and be supporting HylaFAX development at the same time.
+
+If you have a question which you think relates only to the RPM version
+of HylaFAX, please mail me directly, or post a bug on the HylaFAX bugzilla:
+
+        http://bugs.hylafax.org/
+
+If your question is a general one, please instead direct your query to
+the HylaFAX mailing list. For more info on the
+hylafax-users@hylafax.org mailing list see:
+
+       http://www.hylafax.org/content/Mailing_Lists
+
+One minor caution - HylaFAX creates several files during normal operation
+which are not "owned" by the RPM. As such, if you were to uninstall it,
+these files would have to be removed manually. They are:
+
+  /var/spool/hylafax/etc/config                  (faxsetup)
+  /var/spool/hylafax/etc/setup.cache             (faxsetup)
+  /var/spool/hylafax/etc/setup.modem             (faxsetup)
+  /var/spool/hylafax/etc/config.<device_name>    (faxaddmodem)
+  /var/spool/hylafax/FIFO.<device_name>          (faxaddmodem)
+  /var/spool/hylafax/dev/{null,socksys,tcp}      (hfaxd)
+  files in various subdirs of /var/spool/hylafax (normal usage: sent faxes,
+logs,..)
+
+You should also be aware of the following system modifications:
+  faxsetup adds the 'FaxMaster' alias in /etc/aliases.
+These 2 modifications are NOT undone when the RPM is uninstalled.
+If you think you have found a bug in the HylaFAX RPM, please report it at:
+
+       http://bugs.hylafax.org/bugzilla/enter_bug.cgi
+
+Choose the product HylaFAX Binary Packages, and then the RedHat Linux RPM.
+
+Enjoy!
+
+Darren Nickerson <darren.nickerson@ifax.com>
+
diff --git a/rpm/config b/rpm/config
new file mode 100644 (file)
index 0000000..ade62e4
--- /dev/null
@@ -0,0 +1,7 @@
+LogFacility:           daemon
+CountryCode:           1
+AreaCode:              999
+LongDistancePrefix:    1
+InternationalPrefix:   011
+DialStringRules:       "etc/dialrules"
+ServerTracing:         1
diff --git a/rpm/config.modem b/rpm/config.modem
new file mode 100644 (file)
index 0000000..abefda4
--- /dev/null
@@ -0,0 +1,96 @@
+# $Id$
+#
+# 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.
+#
+#
+CountryCode:           1
+AreaCode:              999
+FAXNumber:             +1.999.555.1212
+LongDistancePrefix:    1
+InternationalPrefix:   011
+DialStringRules:       "etc/dialrules.sf-ba"
+ServerTracing:         1
+SessionTracing:                11
+RecvFileMode:          0600
+LogFileMode:           0600
+DeviceMode:            0600
+RingsBeforeAnswer:     1
+SpeakerVolume:         off
+GettyArgs:             "-h %l %s"
+LocalIdentifier:       "Silent Valley Sys"
+TagLineFont:           etc/lutRS18.pcf
+TagLineFormat:         "From %%l|%c|Page %%p of %%t"
+MaxRecvPages:          250
+#
+#
+# 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&F                    # what you want for a Supra
+ModemNoFlowCmd:                AT&K0           # 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><rts>"  # 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
+Class2RecvDataTrigger:  "\022"          # character sent to modem to start recv
+
+
+
+
+
+
+
+
diff --git a/rpm/cron.daily b/rpm/cron.daily
new file mode 100644 (file)
index 0000000..21bf091
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Run the daily report with conservative settings (delete as little as possible)
+# If you're short on disk space, you might want to tune this commandline.
+# Don't run faxcron if HylaFAX has not been setup using faxsetup.
+
+# 'man faxcron' for more info
+
+if [ -f /var/spool/hylafax/etc/setup.cache -o -f /var/spool/fax/etc/setup.cache ]; then
+    /usr/sbin/faxcron \
+        -info 60 \
+        -log 730 \
+        -rcv 3650 \
+        -tmp 7 | mail -s "HylaFAX Usage Report" faxmaster
+fi
+
+exit 0
diff --git a/rpm/cron.hourly b/rpm/cron.hourly
new file mode 100644 (file)
index 0000000..3eadea7
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Run the fax queue cleaner with conservative settings (delete as little as possible)
+# If you're short on disk space, you might want to tune this commandline.
+
+# 'man faxqclean' for more info
+
+/usr/sbin/faxqclean -j 604800 -d 604800
+
+exit 0
diff --git a/rpm/hyla.conf b/rpm/hyla.conf
new file mode 100644 (file)
index 0000000..b3703d6
--- /dev/null
@@ -0,0 +1,46 @@
+# hyla.conf
+#
+# This is the system-wide config file used by HylaFAX client programs: 
+# sendfax, faxstat, faxalter, faxmail, faxrm, sendpage, faxwatch,
+# textfmt. 
+# The per-user config file is ~/.hylarc, which has the same syntax of
+# hyla.conf.
+#
+# Below you find some examples. Read the man pages of the HylaFAX client
+# programs for a complete list of the parameters that can be used in this file.
+#
+
+# Vertical resolution for outgoing faxes.
+# Default is 98 lines/inch, aka 'low', better is 196 lines/inch, aka 'fine'. 
+# Equivalent to 'sendfax' -l and -m options. 
+VRes: 196
+
+# KillTime: time before expiring a job.
+# Default is 3 hours. Equivalent to 'sendfax' -k option. 
+# Tipically this is needed when bulk faxing.
+#KillTime: "now +24 hours"    # Give jobs 24h before expiring them
+
+# Notify policy (for outgoing faxes).
+# Default is to notify only in case of problems. Equivalent to 'sendfax'
+# -D option.
+#Notify: Done    # Notify even for succesfully sent jobs
+
+# 'faxstat' output
+# Uncomment this to change the format of 'faxstat' output to show the
+# date/time the faxes will be/have been transmitted.
+#JobFmt: "%-4j %-19Y %1a %6.6o %-14.14e %5P %5D %.25s"  # faxstat -sdl output
+
+# Network HylaFAX server: redirect all client commands to an HylaFAX server.
+# Uncomment this if this system has no fax-modems connected to it, and there
+# is an HylaFAX server on your network. Equivalent to 'sendfax' -h option.
+#Host: faxserver.mydomain.dom
+
+# Pagesize; RPM default is 'a4'
+#PageSize: letter
+
+# Disable PageChopping. Default is to chop.
+#PageChop: none    # Avoid page chopping
+
+# Cover page date format.
+#DateFormat: "%d/%m/%Y %H:%M:%S"    # 'European style' (day, month, year)
+
diff --git a/rpm/hylafax.spec b/rpm/hylafax.spec
new file mode 100644 (file)
index 0000000..5d38578
--- /dev/null
@@ -0,0 +1,814 @@
+%define name        hylafax
+%define version     6.1
+%define pkg_release 0.1.GIT
+
+#
+## OS version detection
+##
+%define is_rh %(test -e /etc/redhat-release && echo 1 || echo 0)
+%define is_fc %(test -e /etc/fedora-release && echo 1 || echo 0)
+%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
+
+# Some RPM builders will try to expand defines in block they won't execute
+# or fail on nested blocks. That's why we define *_version to 0 for other
+# distributions and didn't use nested %ifs.
+
+%if %{is_rh}
+%define rh_version %(rpm -q --queryformat='%{VERSION}' -f /etc/redhat-release | sed - -e 's/\\([0-9]*\\).*/\\1/')
+%else
+%define rh_version 0
+%endif
+
+%if %{rh_version} > 0 && %{rh_version} < 7
+%define ostag rhel%{rh_version}
+%endif
+%if %{rh_version} >= 7
+%define ostag rh%{rh_version}
+%endif
+
+%if %{is_fc}
+%define ostag fc%(rpm -q --queryformat='%{VERSION}' fedora-release)
+%endif
+
+
+%if %{is_suse}
+%define initdir     /etc/init.d
+%else
+%define sles_version 0
+%define suse_version 0
+%define initdir     /etc/rc.d/init.d
+%endif
+
+%if %{suse_version} > 0
+%define ostag suse%(echo %{suse_version} | sed - -e 's/\\([0-9]*\\)[0-9].*/\\1/')
+%endif
+%if %{sles_version} > 0
+%define ostag sles%{sles_version}
+%endif
+
+%define faxspool    %{_var}/spool/hylafax
+
+Summary:   HylaFAX(tm) is a sophisticated enterprise strength fax package
+Name:     %{name}
+Version:   %{version}
+Release:   %{pkg_release}
+License:   better than LGPL
+Group:     Applications/Communications
+Packager:  Darren Nickerson <darren.nickerson@ifax.com>
+URL:       http://www.ifax.com/
+
+Source:    ftp://ftp.hylafax.org/source/%{name}-%{version}.tar.gz
+
+BuildPrereq: libjpeg-devel, libtiff-devel, zlib-devel, gettext
+Requires:    ghostscript >= 5.5
+Requires:    libtiff >= 3.5.5
+%if %{is_suse}
+Requires:    tiff >= 3.5.5
+%endif
+Requires:    gawk
+Requires:    rpm >= 3.0.5
+Requires:    sharutils
+Conflicts:   mgetty-sendfax
+
+BuildRoot: %{_tmppath}/%{name}-root
+
+%description
+HylaFAX(tm) is a sophisticated enterprise-strength fax package for 
+class 1 and 2 fax modems on unix systems. It provides spooling
+services and numerous supporting fax management tools. 
+The fax clients may reside on machines different from the server
+and client implementations exist for a number of platforms including 
+windows.
+
+%package server
+Summary:   HylaFAX(tm) is a sophisticated enterprise strength fax package
+Release:   %{pkg_release}%{ostag}
+Group:     Applications/Communications
+
+Provides:    hylafax = %{version}-%{pkg_release}%{ostag}
+Requires:    hylafax-client = %{version}-%{pkg_release}%{ostag}
+Obsoletes:   hylafax < 6.0.0 hylafax > 20000101:4.0.0
+
+%description server
+HylaFAX(tm) is a sophisticated enterprise-strength fax package for
+class 1 and 2 fax modems on unix systems. It provides spooling
+services and numerous supporting fax management tools.
+The fax clients may reside on machines different from the server
+and client implementations exist for a number of platforms including
+windows.
+
+%package client
+Summary:   HylaFAX(tm) is a sophisticated enterprise strength fax package
+Release:   %{pkg_release}%{ostag}
+Group:     Applications/Communications
+
+Obsoletes:   hylafax < 6.0.0 hylafax > 20000101:4.0.0
+
+%description client
+HylaFAX(tm) is a sophisticated enterprise-strength fax package for
+class 1 and 2 fax modems on unix systems. It provides spooling
+services and numerous supporting fax management tools.
+The fax clients may reside on machines different from the server
+and client implementations exist for a number of platforms including
+windows.
+
+%prep
+%setup -q
+patch -p 1 < rpm/patches/001-faxsetup-server.patch
+
+%build
+# - Can't use the configure macro because HylaFAX configure script does
+#   not understand the config options used by that macro
+# We set CC and CXX because we know gcc/g++ exists, and this way can avoid
+# configure script not finding the first gcc/g++ in our path (ccache)
+export CC=$(which gcc)
+export CXX=$(which g++)
+./configure \
+       --with-DIR_BIN=%{_bindir} \
+       --with-DIR_SBIN=%{_sbindir} \
+       --with-DIR_LIB=%{_libdir} \
+       --with-DIR_LIBEXEC=%{_sbindir} \
+       --with-DIR_LIBDATA=%{_sysconfdir}/hylafax \
+       --with-DIR_LOCALE=%{_datadir}/locale \
+       --with-DIR_LOCKS=%{_var}/lock \
+       --with-LIBDIR=%{_libdir} \
+       --with-TIFFBIN=%{_bindir} \
+       --with-DIR_MAN=%{_mandir} \
+       --with-PATH_GSRIP=%{_bindir}/gs \
+       --with-DBLIBINC=%{_includedir} \
+       --with-LIBTIFF="-ltiff -ljpeg -lz" \
+       --with-DIR_SPOOL=%{faxspool} \
+       --with-AFM=no \
+       --with-AWK=/usr/bin/gawk \
+       --with-PATH_VGETTY=/sbin/vgetty \
+       --with-PATH_GETTY=/sbin/mgetty \
+       --with-HTML=no \
+       --with-PAGESIZE=A4 \
+       --with-PATH_DPSRIP=%{faxspool}/bin/ps2fax \
+       --with-PATH_IMPRIP="" \
+       --with-SYSVINIT=%{initdir}/hylafax \
+       --with-INTERACTIVE=no
+
+# CFLAGS is set up by the HylaFAX configure script; setting it up here the
+# standard way would break things. Since OPTIMIZER is included in CFLAGS
+# by the HylaFAX configure system, it's used here in place of CFLAGS
+#make CFLAGS="$RPM_OPT_FLAGS"
+make OPTIMIZER="$RPM_OPT_FLAGS"
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+
+# install: make some dirs...
+mkdir -p -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/{cron.daily,cron.hourly,logrotate.d} 
+mkdir -p -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
+mkdir -p -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/hylafax
+mkdir -p -m 755 $RPM_BUILD_ROOT%{initdir}
+mkdir -p -m 755 $RPM_BUILD_ROOT%{_bindir}
+mkdir -p -m 755 $RPM_BUILD_ROOT%{_sbindir}
+mkdir -p -m 755 $RPM_BUILD_ROOT%{_libdir}
+mkdir -p -m 755 $RPM_BUILD_ROOT%{_datadir}/locale
+mkdir -p -m 755 $RPM_BUILD_ROOT%{_mandir}
+mkdir -p -m 755 $RPM_BUILD_ROOT%{faxspool}/config/defaults
+
+# install: binaries and man pages 
+# FAXUSER, FAXGROUP, SYSUSER and SYSGROUP are set to the current user to
+# avoid warnings about chown/chgrp if the user building the SRPM is not root; 
+# they are set to the correct values with the RPM attr macro
+%makeinstall -e \
+       FAXUSER=`id -u` \
+       FAXGROUP=`id -g` \
+       SYSUSER=`id -u` \
+       SYSGROUP=`id -g` \
+       BIN=$RPM_BUILD_ROOT%{_bindir} \
+       SBIN=$RPM_BUILD_ROOT%{_sbindir} \
+       LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
+       LIBDATA=$RPM_BUILD_ROOT%{_sysconfdir}/hylafax \
+       LIBEXEC=$RPM_BUILD_ROOT%{_sbindir} \
+       LOCALEDIR=$RPM_BUILD_ROOT%{_datadir}/locale \
+       SPOOL=$RPM_BUILD_ROOT%{faxspool} \
+       MAN=$RPM_BUILD_ROOT%{_mandir} \
+       INSTALL_ROOT=$RPM_BUILD_ROOT
+
+# Starting from 4.1.6, port/install.sh won't chown/chmod anymore if the current
+# user is not root; instead a file root.sh is created with chown/chmod inside.
+# 
+# If you build the rpm as normal user (not root) you get an rpm with all the
+# permissions messed up and hylafax will give various weird errors.
+#
+# The following line fixes that.
+#
+[ -f root.sh ] && sh root.sh
+
+# install: remaining files
+install -m 755 rpm/init $RPM_BUILD_ROOT%{initdir}/hylafax
+install -m 644 rpm/config $RPM_BUILD_ROOT%{faxspool}/config/defaults/config
+install -m 644 rpm/config.modem $RPM_BUILD_ROOT%{faxspool}/config/defaults/config.modem
+install -m 644 rpm/setup.cache $RPM_BUILD_ROOT%{faxspool}/config/defaults/setup.cache
+install -m 644 rpm/setup.modem $RPM_BUILD_ROOT%{faxspool}/config/defaults/setup.modem
+install -m 755 rpm/cron.daily $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/hylafax
+install -m 755 rpm/cron.hourly $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/hylafax
+install -m 644 rpm/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/hylafax
+install -m 644 rpm/README.rpm ./README.rpm
+install -m 644 rpm/hyla.conf $RPM_BUILD_ROOT%{_sysconfdir}/hylafax/hyla.conf
+install -m 644 rpm/FaxDispatch $RPM_BUILD_ROOT%{faxspool}/etc/FaxDispatch
+install -m 644 rpm/jobcontrol.sh $RPM_BUILD_ROOT%{faxspool}/bin/jobcontrol.sh
+install -m 644 rpm/sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/hylafax
+
+
+# some symlinks
+ln -s ../..%{faxspool}/etc $RPM_BUILD_ROOT%{_sysconfdir}/hylafax/etc
+ln -s ../..%{faxspool}/log $RPM_BUILD_ROOT%{_sysconfdir}/hylafax/log
+ln -s ps2fax.gs  $RPM_BUILD_ROOT%{faxspool}/bin/ps2fax
+ln -s pdf2fax.gs $RPM_BUILD_ROOT%{faxspool}/bin/pdf2fax
+
+# Remove files that are not needed on Linux
+rm -f $RPM_BUILD_ROOT%{_sbindir}/{faxsetup.irix,faxsetup.bsdi}
+rm -f $RPM_BUILD_ROOT%{faxspool}/bin/{ps2fax.imp,ps2fax.dps}
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2fax.1
+# avoid rpm 4.x errors about files in buildroot but not in file list
+rm -f $RPM_BUILD_ROOT%{faxspool}/etc/xferfaxlog 
+rm -f $RPM_BUILD_ROOT%{faxspool}/COPYRIGHT
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+
+%pre server
+# if necessary (upgrading from < 4.1rc1) move spool dir to the new location
+# and live with rpm errors :)
+if [ -f /var/spool/fax/etc/setup.cache -a ! -d %{faxspool} ]; then
+    if [ -f /var/lock/subsys/hylafax ]; then
+        /sbin/service hylafax stop 1>/dev/null 2>&1 || :
+    fi
+    mv /var/spool/fax /var/spool/hylafax
+fi
+
+%post server
+if [ -x /usr/lib/lsb/install_initd ]; then
+    /usr/lib/lsb/install_initd %{initdir}/hylafax
+elif [ -x /sbin/chkconfig ]; then
+    /sbin/chkconfig --add hylafax
+else
+   for i in 3 4 5; do
+        ln -sf %{initdir}/hylafax /etc/rc.d/rc${i}.d/S95hylafax
+   done
+   for i in 0 1 2 6; do
+        ln -sf %{initdir}/hylafax /etc/rc.d/rc${i}.d/K05hylafax
+   done
+fi
+
+echo "#########################################################"
+echo "#            HylaFAX installation complete!             #"
+echo "#                                                       #"
+echo "#      You should now run /usr/sbin/faxsetup to         #"
+echo "#       create or update HylaFAX configuration          #"
+echo "#      before you can begin using the software.         #"
+echo "#                                                       #"
+echo "#########################################################"
+
+%post client
+/sbin/ldconfig
+
+%preun server
+if [ $1 = 0 ] ; then
+    if [ -x /usr/lib/lsb/remove_initd ]; then
+        /usr/lib/lsb/install_initd %{initdir}/hylafax
+    elif [ -x /sbin/chkconfig ]; then
+        /sbin/chkconfig --del hylafax
+    else
+        rm -f /etc/rc.d/rc?.d/???hylafax
+    fi
+    /sbin/service hylafax stop >/dev/null 2>&1 || :
+fi
+
+%postun server
+if [ "$1" -ge "1" ]; then
+       /sbin/service hylafax condrestart >/dev/null 2>&1 || :
+fi
+
+%postun client
+/sbin/ldconfig
+
+# We can't take *everything* in sbin and man8 because of faxsetup
+%files server
+%defattr(-,root,root)
+%doc CONTRIBUTORS COPYRIGHT INSTALL README TODO VERSION README.rpm doc/*.txt
+%attr(755,root,root) %config(noreplace) %{initdir}/hylafax
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/hylafax
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/hylafax
+%attr(755,root,root) %config(noreplace) %{_sysconfdir}/cron.daily/hylafax
+%attr(755,root,root) %config(noreplace) %{_sysconfdir}/cron.hourly/hylafax
+%{_sbindir}/choptest
+%{_sbindir}/cqtest
+%{_sbindir}/dialtest
+%{_sbindir}/faxabort
+%{_sbindir}/faxaddmodem
+%{_sbindir}/faxadduser
+%{_sbindir}/faxanswer
+%{_sbindir}/faxconfig
+%{_sbindir}/faxcron
+%{_sbindir}/faxdeluser
+%{_sbindir}/faxgetty
+%{_sbindir}/faxinfo
+%{_sbindir}/faxlock
+%{_sbindir}/faxmodem
+%{_sbindir}/faxmsg
+%{_sbindir}/faxq
+%{_sbindir}/faxqclean
+%{_sbindir}/faxquit
+%{_sbindir}/faxsend
+%{_sbindir}/faxstate
+%{_sbindir}/hfaxd
+%{_sbindir}/hylafax
+%{_sbindir}/lockname
+%{_sbindir}/ondelay
+%{_sbindir}/pagesend
+%{_sbindir}/probemodem
+%{_sbindir}/recvstats
+%{_sbindir}/tagtest
+%{_sbindir}/tiffcheck
+%{_sbindir}/tsitest
+%{_sbindir}/typetest
+%{_sbindir}/xferfaxstats
+%attr(644,root,root) %{_mandir}/man5/doneq.5f.gz
+%attr(644,root,root) %{_mandir}/man5/hosts.hfaxd.5f.gz
+%attr(644,root,root) %{_mandir}/man5/hylafax-config.5f.gz
+%attr(644,root,root) %{_mandir}/man5/hylafax-info.5f.gz
+%attr(644,root,root) %{_mandir}/man5/hylafax-log.5f.gz
+%attr(644,root,root) %{_mandir}/man5/hylafax-server.5f.gz
+%attr(644,root,root) %{_mandir}/man5/hylafax-shutdown.5f.gz
+%attr(644,root,root) %{_mandir}/man5/pagermap.5f.gz
+%attr(644,root,root) %{_mandir}/man5/recvq.5f.gz
+%attr(644,root,root) %{_mandir}/man5/sendq.5f.gz
+%attr(644,root,root) %{_mandir}/man5/status.5f.gz
+%attr(644,root,root) %{_mandir}/man5/tsi.5f.gz
+%attr(644,root,root) %{_mandir}/man5/xferfaxlog.5f.gz
+%attr(644,root,root) %{_mandir}/man8/choptest.8c.gz
+%attr(644,root,root) %{_mandir}/man8/cqtest.8c.gz
+%attr(644,root,root) %{_mandir}/man8/dialtest.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxabort.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxaddmodem.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxanswer.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxadduser.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxconfig.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxcron.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxdeluser.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxgetty.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxinfo.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxlock.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxmodem.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxq.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxqclean.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxquit.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxrcvd.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxsend.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxstate.8c.gz
+%attr(644,root,root) %{_mandir}/man8/hfaxd.8c.gz
+%attr(644,root,root) %{_mandir}/man8/jobcontrol.8c.gz
+%attr(644,root,root) %{_mandir}/man8/mkcover.8c.gz
+%attr(644,root,root) %{_mandir}/man8/notify.8c.gz
+%attr(644,root,root) %{_mandir}/man8/pagesend.8c.gz
+%attr(644,root,root) %{_mandir}/man8/pdf2fax.8c.gz
+%attr(644,root,root) %{_mandir}/man8/pollrcvd.8c.gz
+%attr(644,root,root) %{_mandir}/man8/ps2fax.8c.gz
+%attr(644,root,root) %{_mandir}/man8/recvstats.8c.gz
+%attr(644,root,root) %{_mandir}/man8/tagtest.8c.gz
+%attr(644,root,root) %{_mandir}/man8/tiff2fax.8c.gz
+%attr(644,root,root) %{_mandir}/man8/tiffcheck.8c.gz
+%attr(644,root,root) %{_mandir}/man8/tsitest.8c.gz
+%attr(644,root,root) %{_mandir}/man8/wedged.8c.gz
+%attr(644,root,root) %{_mandir}/man8/xferfaxstats.8c.gz
+%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/hylafax-server.mo
+%attr(755,root,root) %dir %{_sysconfdir}/hylafax
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/hylafax/hfaxd.conf
+%attr(-,root,root) %{_sysconfdir}/hylafax/etc
+%attr(-,root,root) %{_sysconfdir}/hylafax/log
+%attr(-,uucp,uucp) %dir %{faxspool}
+%attr(-,uucp,uucp) %dir %{faxspool}/archive
+%attr(-,uucp,uucp) %dir %{faxspool}/bin
+%attr(-,uucp,uucp) %dir %{faxspool}/client
+%attr(-,uucp,uucp) %dir %{faxspool}/config
+#%attr(-,uucp,uucp) %dir %{faxspool}/config/defaults
+%attr(-,uucp,uucp) %dir %{faxspool}/dev
+%attr(-,uucp,uucp) %dir %{faxspool}/docq
+%attr(-,uucp,uucp) %dir %{faxspool}/doneq
+%attr(-,uucp,uucp) %dir %{faxspool}/etc
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates
+%attr(644,root,root) %{faxspool}/etc/templates/README
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/en
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/es
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/de
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/pt_BR
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/pl
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/pt
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/it
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/ro
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/fr
+%attr(-,uucp,uucp) %dir %{faxspool}/etc/templates/html-sample1
+%attr(644,root,root)%{faxspool}/etc/templates/*/*
+%attr(-,uucp,uucp) %dir %{faxspool}/info
+%attr(-,uucp,uucp) %dir %{faxspool}/log
+%attr(-,uucp,uucp) %dir %{faxspool}/pollq
+%attr(-,uucp,uucp) %dir %{faxspool}/recvq
+%attr(-,uucp,uucp) %dir %{faxspool}/sendq
+%attr(-,uucp,uucp) %dir %{faxspool}/status
+%attr(-,uucp,uucp) %dir %{faxspool}/tmp
+%attr(-,root,root) %{faxspool}/bin/*
+%attr(-,root,root) %{faxspool}/config/*
+%attr(-,root,root) %{faxspool}/etc/dpsprinter.ps
+%attr(-,root,root) %{faxspool}/etc/cover.templ
+%attr(-,root,root) %config(noreplace) %{faxspool}/etc/dialrules*
+%attr(-,uucp,uucp) %{faxspool}/etc/lutRS18.pcf
+%attr(-,uucp,uucp) %config(noreplace) %{faxspool}/etc/hosts.hfaxd
+%attr(-,uucp,uucp) %config(noreplace) %{faxspool}/etc/FaxDispatch
+%attr(-,uucp,uucp) %{faxspool}/FIFO
+
+%files client
+%defattr(-,root,root)
+%doc CONTRIBUTORS COPYRIGHT INSTALL README TODO VERSION README.rpm doc/*.txt
+%{_libdir}/*
+%{_bindir}/*
+%{_sbindir}/edit-faxcover
+%{_sbindir}/faxsetup
+%{_sbindir}/faxsetup.linux
+%{_sbindir}/faxwatch
+%{_sbindir}/textfmt
+%attr(644,root,root) %{_mandir}/man1/*
+%attr(644,root,root) %{_mandir}/man5/dialrules.5f.gz
+%attr(644,root,root) %{_mandir}/man5/pagesizes.5f.gz
+%attr(644,root,root) %{_mandir}/man5/typerules.5f.gz
+%attr(644,root,root) %{_mandir}/man8/faxsetup.8c.gz
+%attr(644,root,root) %{_mandir}/man8/faxwatch.8c.gz
+%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/hylafax-client.mo
+%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/libhylafax.mo
+%attr(755,root,root) %dir %{_sysconfdir}/hylafax
+%attr(644,root,root) %{_sysconfdir}/hylafax/faxcover_example_sgi.ps
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/hylafax/faxcover.ps
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/hylafax/faxmail.ps
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/hylafax/hyla.conf
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/hylafax/pagesizes
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/hylafax/typerules
+
+%changelog
+* Fri Jul 31 2009 Patrice Fournier <patrice.fournier@ifax.com> 6.1-0.1.GIT
+  - Update to 6.1 GIT branch
+
+* Fri May 22 2009 Patrice Fournier <patrice.fournier@ifax.com> 6.0.1-3
+  - Check for the right server package name in faxsetup (Simon Matter)
+
+* Tue May 19 2009 Aidan Van Dyk <aidan@ifax.com> 6.0.1-2
+  - Don't move client sbin progs to bin
+
+* Fri May 15 2009 Patrice Fournier <patrice.fournier@ifax.com> 6.0.1-1
+  - Update to official 6.0.1 release
+
+* Fri May 15 2009 Patrice Fournier <patrice.fournier@ifax.com> 6.0.0-1
+  - Update to official 6.0.0 release
+  - Separate in -server and -client packages
+  - Remove epoch from packages to prevent problems from migrating between
+    different branches
+  - Prevent sgi2fax man page from being installed
+  - Distributed templates are not considered config files anymore
+  - Moved all client binaries to /usr/bin
+  - Force configure to use gcc/g++ from path
+
+* Fri Mar 27 2009 Patrice Fournier <patrice.fournier@ifax.com> 6.0.0rc1-1
+  - update to first release candidate of 6.0.0 release
+  - Changed MaxRecvPages from 25 to 250
+
+* Tue Jan 08 2008 Darren Nickerson <darren.nickerson@ifax.com> 4.4.4-1
+ - update to official 4.4.4 release
+
+* Sun Nov 25 2007 Darren Nickerson <darren.nickerson@ifax.com> 4.4.3-1
+ - update to official 4.4.3 release
+
+* Wed Oct 03 2007 Darren Nickerson <darren.nickerson@ifax.com> 4.4.2-1
+ - update to official 4.4.2 release
+
+* Wed Aug 22 2007 Darren Nickerson <darren.nickerson@ifax.com> 4.4.1-1
+ - update to official 4.4.1 release
+
+* Fri Jul 27 2007 Patrice Fournier <patrice.fournier@ifax.com> 4.4.0-1
+  - update to official 4.4.0 release
+
+* Fri Jul 06 2007 Patrice Fournier <patrice.fournier@ifax.com> 4.4.0rc2-1
+  - update to second release candidate of 4.4.0
+
+* Fri Jun 29 2007 Patrice Fournier <patrice.fournier@ifax.com> 4.4.0rc1-1
+  - update to first release candidate of 4.4.0
+
+* Fri May 18 2007 Patrice Fournier <patrice.fournier@ifax.com> 4.3.4-1
+  - update to official 4.3.4 release
+  - distributed templates are now always replaced
+
+* Fri Mar 02 2007 Patrice Fournier <patrice.fournier@ifax.com> 4.3.3-1
+  - update to official 4.3.3 release
+
+* Fri Feb 23 2007 Patrice Fournier <patrice.fournier@ifax.com> 4.3.2-3
+  - Add requirement for tiff package under SuSE
+
+* Fri Feb 23 2007 Patrice Fournier <patrice.fournier@ifax.com> 4.3.2-2
+  - [bug 849] notify "rejected" templates are wrongly called notify-reject.txt
+  - [bug 850] adds jobtag to notification mails
+
+* Fri Feb 16 2007 Patrice Fournier <patrice.fournier@ifax.com> 4.3.2-1
+  - update to official 4.3.2 release
+
+* Mon Jan 29 2007 Darren Nickerson <darren.nickerson@ifax.com> 4.3.2rc1-1
+  - update to first release candidate of 4.3.2
+
+* Mon Jan 29 2007 Darren Nickerson <darren.nickerson@ifax.com> 4.3.2beta2-1
+  - update to second beta of 4.3.2
+
+* Mon Jan 29 2007 Darren Nickerson <darren.nickerson@ifax.com> 4.3.2beta1-1
+  - update to first beta of 4.3.2
+
+* Mon Dec 04 2006 Darren Nickerson <darren.nickerson@ifax.com> 4.3.1-1
+  - update to offical 4.3.1 release
+
+* Wed Nov 22 2006 Darren Nickerson <darren.nickerson@ifax.com> 4.3.1rc3-1
+  - update to third release candidate of 4.3.1
+
+* Tue Nov 14 2006 Darren Nickerson <darren.nickerson@ifax.com> 4.3.1rc2-1
+  - update to second release candidate of 4.3.1
+
+* Fri Oct 27 2006 Patrice Fournier <patrice.fournier@ifax.com> 4.3.1rc1-1
+  - update to first release candidate of 4.3.1
+
+* Tue Oct 12 2006 Darren Nickerson <darren.nickerson@ifax.com> 4.3.1beta4-1
+  - update to 4.3.1beta4
+
+* Fri May 26 2006 Patrice Fournier <patrice.fournier@ifax.com> 4.3.0-2
+  - [Bug 775] Don't try to start two instances of hfaxd (Simon Matter)
+  - [Bug 776] sysconfig file doesn't need exec permissions (Simon Matter)
+
+* Mon May 22 2006 Darren Nickerson <darren.nickerson@ifax.com> 4.3.0-1
+  - update to official 4.3.0 release
+
+* Fri May 12 2006 Patrice Fournier <patrice.fournier@ifax.com> 4.3.0rc3-1
+  - update to third release candidate of 4.3.0
+
+* Fri Apr 28 2006 Patrice Fournier <patrice.fournier@ifax.com> 4.3.0rc2-1
+  - update to second release candidate of 4.3.0
+
+* Fri Apr 21 2006 Patrice Fournier <patrice.fournier@ifax.com> 4.3.0rc1-1
+  - update to first release candidate of 4.3.0
+  - Added Sample jobcontrol script
+  - Stop logrotate from returning an error when ran before HylaFAX first
+    start (Simon Matter)
+  - [Bug 766] Replaced obsolete Serial tag with Epoch (Dimitris)
+  - HylaFAX init script can now be configured in /etc/sysconfig/hylafax
+    (fixes bug 652)
+
+* Thu Jan 12 2006 Darren Nickerson <darren.nickerson@ifax.com> 4.2.5-1
+  - update to official 4.2.5 release
+  - updated urls in README.rpm
+
+* Fri Jan 6 2006 Patrice Fournier <patrice.fournier@ifax.com> 4.2.4-1
+  - update to official 4.2.4 release
+
+* Tue Nov 15 2005 Darren Nickerson <darren.nickerson@ifax.com> 4.2.3-1
+  - update to official 4.2.3 release
+
+* Fri Nov 11 2005 Patrice Fournier <patrice.fournier@ifax.com> 4.2.3rc1-2
+  - only run faxcron when HylaFAX has been setup (Simon Matter)
+  - fixed RPM file naming on RedHat 7 (broken since 4.2.2rc1-2)
+  - put hylafax init script in the right place on SuSE
+  - fixed init script for SuSE
+  - Correctly differentiate between SLES and regular SuSE
+
+* Fri Nov 9 2005 Darren Nickerson <darren.nickerson@ifax.com> 4.2.3rc1-1
+  - update to first release candidate of 4.2.3
+
+* Fri Sep 23 2005 Patrice Fournier <patrice.fournier@ifax.com> 4.2.2-1
+  - update to official 4.2.2 release
+
+* Fri Sep 16 2005 Patrice Fournier <patrice.fournier@ifax.com> 4.2.2rc1-2
+  - added SuSE support to SPECS file
+  - now distinguish between RH and RHEL versions (using version number)
+
+* Fri Sep 2 2005 Patrice Fournier <patrice.fournier@ifax.com> 4.2.2rc1-1
+  - update to first release candidate of 4.2.2
+  - updated installation complete message
+
+* Tue Jan 11 2005 Darren Nickerson <darren.nickerson@ifax.com> 4.2.1-1
+  - update to official 4.2.1 release
+  - [Bug 617] remove unnecessary debug logging (iFAX Solutions)
+  - [Bug 574] faxsetup cleanups (Lee Howard)
+  - [Bug 118] Improve EOM handling in batched faxes (Lee Howard)
+  - improve previously broken digi config (Lee Howard) 
+  - improve redhat release detection and RPM file naming
+
+* Thu Jul 15 2004 Darren Nickerson <darren.nickerson@ifax.com> 4.2.0-1
+  - update to official 4.2.0 release
+
+* Thu Jul 15 2004 Darren Nickerson <darren.nickerson@ifax.com> 4.2.0rc2-1
+  - update to second release candidate of 4.2.0
+
+* Mon May 10 2004 Darren Nickerson <darren.nickerson@ifax.com> 4.2.0beta2-1
+  - update to second beta release of 4.2.0
+
+* Fri Apr 16 2004 Darren Nickerson <darren.nickerson@ifax.com> 4.2.0beta1-1
+  - update to first beta release of 4.2.0
+
+* Sun Dec 14 2003 Darren Nickerson <darren.nickerson@ifax.com> 4.1.8-2
+  - [Bug 435] tiffcheck does not properly implement "-3" option
+    (Kevin Fleming)
+  - [Bug 436] tiffcheck does not suppress libtiff warnings
+    (Kevin Fleming)
+
+* Fri Oct 10 2003 Darren Nickerson <darren.nickerson@ifax.com> 4.1.8-1
+  - update to official 4.1.8 release
+  - [Bug 468] Fix remotely executable format string vulnerability in hfaxd
+    (Sebastian Krahmer and the SuSE Security Team)
+
+* Fri Oct 10 2003 Darren Nickerson <darren.nickerson@ifax.com> 4.1.7-2
+  - [Bug 443] Expand & unify sequence namespace (iFAX Solutions)
+  - [Bug 445] Corrected a long-standing problem that would leave old image
+     files in docq/ causing them to be sent again many months later in
+     place of the new image file (iFAX Solutions)
+  - [Bug 454] Faxgetty could hear more than 1 ring at once, doubling
+     things like CIDNAME and CIDNUMBER, and breaking inbound fax
+     routing (iFAX Solutions)
+  - [Bug 424] Updated, slightly cleaner patch. Functionally identical.
+
+* Sun Jun 15 2003 Darren Nickerson <darren.nickerson@ifax.com> 4.1.7-1
+  - update to official 4.1.7 release
+  - add metamail dependency
+  - [Bug 420] Add SaveUnconfirmedPages config option
+    (Lee Howard)
+  - [Bug 427] Fix problem with port/install.sh on non-root builds
+    (Giulio Orsero)
+  - [Bug 424] Add support for tracking CIDName and CIDNumber in
+    xferfaxlog, tiff files, and client/server protocol via hfaxd
+    (iFAX Solutions)
+
+* Sun Jun 15 2003 Darren Nickerson <darren.nickerson@ifax.com> 4.1.6-1
+  - update to official 4.1.6 release
+  - [Bug 410] Added sharutils dependency, and default FaxDispatch
+  - [Bug 407] Remove COPYRIGHT (packaged in %doc) and empty xferfaxlog
+    files from source tree before packaging.
+
+* Mon Oct 21 2002 Darren Nickerson <darren@hylafax.org> 4.1.5-1
+  - update to official 4.1.5 release
+
+* Wed Oct 16 2002 Darren Nickerson <darren@hylafax.org> 4.1.4-1
+  - update to official 4.1.4 release
+
+* Sun Jul 28 2002 Darren Nickerson <darren@hylafax.org> 4.1.3-1
+  - update to official 4.1.3 release
+  - added --with-LIBDIR=%{_libdir} to configure invocation (Lee Howard)
+
+* Sun Mar 17 2002 Darren Nickerson <darren@dazza.org> 4.1.1-2
+  - [Bug 160] fix segfault in faxqclean under heavy load
+
+* Sun Feb 17 2002 Darren Nickerson <darren@dazza.org> 4.1.1-1
+  - update to official 4.1.1 release
+
+* Sun Feb 10 2002 Darren Nickerson <darren@dazza.org>
+  - [Bug 156] Faxquit may not work after an upgrade - init script
+    now uses killall. (Giulio Orsero)
+  - [Bug 188] Roll-up of various fixes (Giulio Orsero)
+       1. removed 'sed' from hylafax_logrotate and similar files, which
+          caused confusion and some missed /var/spool/fax ->
+           /var/spool/hylafax corrections.
+       2. removed 2 unnecessary files on linux: ps2fax.dps and ps2fax.imp
+       3. set IMPRIP to blank since it does not exist on linux
+       4. marked all %config as noreplace
+       5. Changed "Copyright:" to "License:"
+       6. Changed serial to date +%Y%m%d
+       7. Linux DSO support has been merged into CVS. Removed patch
+          and modified .spec accordingly
+       8. Restore CFLAGS to RPM default
+  - [Bug 189] FHS compliance - changed /usr/share/fax -> /etc/hylafax
+    (see http://www.pathname.com/fhs/2.0/fhs-4.8.html) (Giulio Orsero)
+  - [Bug 196] Updated stale source files, commented hylafax_hyla.conf
+    (Giulio Orsero - spotting a trend here?)
+  - [Bug 206] Init script activates SNPP support if pagermap file
+    exists (Matthew Rice)
+
+
+* Sun Jul 01 2001 Darren Nickerson <darren@dazza.org>
+  - [Bug 132] Added Conflicts: to avoid confusion with mgetty-sendfax
+  - [Bug 145] Added BuildPrereq: zlib-devel, since it's necessary
+  - [Bug 156] Init script now restarts faxgetty also
+  - [Bug 133] Set symlink for pdf2fax, added new docs to the %doc macro,
+    add intelligence to set spooldir accordingly, clarify comment for
+    %build macro, migrate /var/spool/fax to /var/spool/hylafax if this
+    is an upgrade, and add serial number to make versioning know 4.1 is
+    newer than 4.1beta3 and 4.1rc2. Thanks Giulio!!
+  - added --with-DIR_LIB=%{_libdir} to configure invocation
+
+* Sun Apr 15 2001 Darren Nickerson <darren@dazza.org>
+  - [Bug 89] Modify OPTIMIZER to be less aggressive for binary compatibility
+    on older systems. Tweaked .spec file so that one file produces both the
+    rh6 and rh7 RPMs (requires rpm-3.0.5 or better), remove gawk version
+    requirement. Removed --with-TIFFINC and --with-libdb from configure
+    invocation (Giulio Orsero).
+
+* Thu Feb 22 2001 Darren Nickerson <darren@dazza.org>
+  - update to hylafax-4.1beta3
+
+* Sun Dec 03 2000 Darren Nickerson <darren@dazza.org>
+  - update to cvs-20001203
+  - break out VRes tweak into hyla.conf for clarity. Makes a nice
+    example of how to use hyla.conf as well.
+
+* Fri Sep 01 2000 Darren Nickerson <darren@dazza.org>
+  - remove SysVinit patch due to clash with Tim Rice's work
+  - hard-wire gawk dependency to prevent it defaulting to mawk, which
+    is not installed by default on some systems
+  - use system zlib rather than HylaFAX's bundled one
+  - remove typerules and ps2fax patches, after committing them to CVS
+  - Update README.RPM
+
+* Wed Aug 23 2000 Darren Nickerson <darren@dazza.org>
+  - remove libgr dependencies for greater RPM portability
+
+* Mon Aug 21 2000 Giulio Orsero <giulioo@pobox.com>
+  - new 'rh7/rpm4 features': uses FHS macros, binaries stripping and man
+    pages gzipping handled by rpm policies, uses /sbin/service.
+  - Red Hat 6.x/7.x style init script (colors, condrestart)
+  - does not use caldera's lisa because I cannot test it.
+  - xferfaxlog and lutRS18.pcf no more tagged as config files
+  - RPM does not own /etc, /usr, ... anymore, just the files in them
+  - no more AFM dir and links (textfmt does not need them since 4.1b1)
+  - page size set to A4
+  - does not use HTML/CGI configure directive, takes html directly from source
+  - configure patched to run 'unattended' 
+  - no more in RPM: manpage, man2html, unquote, faxsetup.irix, faxsetup.bsdi
+  - uses the OPTIMIZER variable to pass RPM_OPT_FLAGS to 'make'
+
+* Sun May 14 2000 Darren Nickerson <darren@dazza.org>
+  - standardize on libtiff >= 3.5 to resolve run length (16->32 bits)
+  - fixed modes of .dso files in dso.patch to silence ldd warning
+
+* Sun Mar 18 2000 Darren Nickerson <darren@dazza.org>
+  - instead of beta2 + patches, begin using CVS snapshot
+  - changed LIBTIFF linker line to include -ljpeg -lz, suggested by Matthew
+       Rice <matt@starnix.com>, and Erik Ratcliffe <erik@calderasystems.com>
+
+* Fri Nov 5 1999 Matthew Rice <matt@starnix.com>
+  - hylafax-4.1beta2.tar.gz
+  - added lisa support
+  - fix for installing into a build root
+
+* Wed Jun 16 1999 Darren Nickerson <darren@info.tpc.int>
+  - hylafax-4.1beta1.tar.gz
+  - added chkconfig support
+  - removed libjpeg linking and dependency
+
+* Tue Sep 29 1998 Darren Nickerson <darren@info.tpc.int>
+  - added security fix proposed by Carsten Hoeger <choeger@suse.de> for
+       potential race condition  reported by Tobias Richter
+       <tsr@cave.isdn.cs.tu-berlin.de>
+* Wed Sep 9 1998 Darren Nickerson <darren@info.tpc.int>
+  - built the RPM on Redhat-5.0 to avoid dependency problems with libjpeg
+       and libstdc++. 
+* Tue May 26 1998 Darren Nickerson <darren@info.tpc.int>
+  - removed .orig files from patch - they were 90 percent of it
+  - removed oversimplified /dev/modem assumptions
+  - faxcron was invoking xferstats, instead of new xferfaxstats - fixed
+  - revised faxcron's manpage
+  - HylaFAX was still writing etc/xferlog. Changed to etc/xferfaxlog as 
+       advertised by all supporting docs and scripts.
+  - added hourly faxqclean and daily faxcron cron jobs, and xferlog rotation
+  - hfaxd no longer hard-wired as running from inetd, faxsetup will handle this
+  - no longer assumes /dev/modem and blindly inserts inittab entry
+  - change naming scheme to differentiate rh4/rh5
+  - move documentation back into main rpm, instead of sub-packages
+  - added Robert Colquhoun's textfmt-mailer patch
+  - increased margin on LHS, was too close and getting clipped
+  - make faxsetup warn that modem class = modem pool, not Class1/2/2.0
+  - use HylaFAX's init script, startup with new protocol only and no snpp
+  - added -DFIXEDMEDIA to last command in ps2fax.gs, as posted
+       by "Alan Sparks" <asparks@nss.harris.com>
+  - added fixhtml patch, removed release from the doc dir, now just version
+  - added Nico's skel patch, for class1/2/2.0 modem prototype files
+  - added Robert Colquhoun's patch to hfaxd's tagline generation
+  - fixes to build on 5.1, contributed by Richard Sharpe <sharpe@ns.aus.com>
+  - faxrcvd now treated as a config file, preserved as .rpmsave
+  - fixed ghostscript dependency to require fonts-std, not fonts.
+  - remove requirement for mawk - use gawk instead.
+  - faxsetup now detects is hfaxd is not driven from inetd, and starts it
+       when restarting faxq using SysV init script (Robert Colquhoun)
+  
+
+* Wed Mar 04 1998 Markus Pilzecker <mp@rhein-neckar.netsurf.de>
+  - took ldconfig call out of install section
+  - minimized and compressed patch
+  - arch rpm buildable as ordinary user
+  - diverted subpackages for [un]compressed man pages
+  - diverted subpackage for html documentation
+
+* Thu Jan 22 1998 Bernd Johannes Wuebben <wuebben@kde.org>
+  - hylafax-4.0-8
+  - A previous version of this spec file was handed to me by 
+    Ramana Juvvadi (juvvadi@lekha.org)  
+    who unfortunately can no longer provide rpms of hylafax. 
+    Thanks so much for you work Ramana!
+    Bernd
+
+* Fri Oct 24 1997 Ramana Juvvadi (juvvadi@lekha.org)
+  - hylafax-4.0-6
+  
+
diff --git a/rpm/init b/rpm/init
new file mode 100644 (file)
index 0000000..a03af6e
--- /dev/null
+++ b/rpm/init
@@ -0,0 +1,215 @@
+#!/bin/sh
+#
+# chkconfig: 345 95 5
+# description: Starts and stops the HylaFAX server and queue manager \
+#              used to provide FAX services
+#
+
+### BEGIN INIT INFO
+# Provides: hylafax
+# Required-Start: $local_fs $network $syslog
+# Should-Start: hfaxd faxd
+# Required-Stop:
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Starts and stops the HylaFAX
+# Description: Starts and stops the HylaFAX server and queue manager \
+#              used to provide FAX services
+### END INIT INFO
+
+return_success=
+return_failure=
+
+# Source function library.
+if [ -f /etc/init.d/functions ] ; then
+  . /etc/init.d/functions
+  alias START_DAEMON=daemon
+  alias STATUS=status
+  alias ACTION=action
+elif [ -f /etc/rc.d/init.d/functions ] ; then
+  . /etc/rc.d/init.d/functions
+  alias START_DAEMON=daemon
+  alias STATUS=status
+  alias ACTION=action
+elif [ -f /lib/lsb/init-functions ]; then
+  . /lib/lsb/init-functions
+  alias START_DAEMON=start_daemon
+  alias STATUS=suse_status
+  alias ACTION=suse_action
+  return_success=$rc_done
+  return_failure=$rc_failed
+else
+  exit 0
+fi
+
+
+# HylaFAX spool directory
+if [ -d /var/spool/hylafax ]; then
+       SPOOL=/var/spool/hylafax
+else
+       SPOOL=/var/spool/fax
+fi
+
+HFAXD_ARGS=
+FAXQ_ARGS=
+
+# Source HylaFAX init script configuration
+if [ -f /etc/sysconfig/hylafax ] ; then
+  . /etc/sysconfig/hylafax
+fi
+
+# Put Extra args first as some may be needed before ports parameters
+if [ -n "$HFAXD_EXTRA_ARGS" ] ; then
+    HFAXD_ARGS=$HFAXD_EXTRA_ARGS
+fi
+
+# Bind to a specific address
+if [ -n "$HFAXD_LISTEN" ] ; then
+    HFAXD_ARGS="$HFAXD_ARGS -l $HFAXD_LISTEN"
+fi
+
+if [ "$HFAXD_OLD_PROTOCOL" = "yes" ] ; then
+    HFAXD_ARGS="$HFAXD_ARGS -o 4557"
+fi
+
+if [ -f "$SPOOL/etc/pagermap" ] ; then
+    HFAXD_ARGS="$HFAXD_ARGS -s snpp"
+fi
+
+HFAXD_ARGS="$HFAXD_ARGS -i hylafax"
+
+if [ "$SPOOL" != "/var/spool/hylafax" ] ; then
+    HFAXD_ARGS="$HFAXD_ARGS -q $SPOOL"
+    FAXQ_ARGS="$FAXQ_ARGS -q $SPOOL"
+fi
+
+start()        {
+       check_config || exit 1
+
+       echo -n "Starting HylaFAX queue manager (faxq): "
+       START_DAEMON /usr/sbin/faxq
+       RETVAL=$?
+       if [ $RETVAL -eq 0 ]; then
+               echo -e $return_success
+       else
+               echo -e $return_failure
+       fi
+
+       echo -n "Starting HylaFAX server (hfaxd): "
+       START_DAEMON /usr/sbin/hfaxd $HFAXD_ARGS
+       RETVAL2=$?
+       if [ $RETVAL2 -eq 0 ]; then
+               echo -e $return_success
+       else
+               echo -e $return_failure
+       fi
+       
+       reset_faxgetty
+       
+       [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && \
+               touch /var/lock/subsys/hylafax ||  RETVAL=1
+        return $RETVAL
+}
+
+stop() {
+       ACTION "Shutting down HylaFAX queue manager (faxq): " /usr/sbin/faxquit
+       RETVAL=$?
+       
+       echo -n "Shutting down HylaFAX server (hfaxd): "
+       killproc hfaxd
+       RETVAL2=$?
+       if [ $RETVAL2 -eq 0 ]; then
+               echo -e $return_success
+       else
+               echo -e $return_failure
+       fi
+       
+       [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && \
+               rm -f /var/lock/subsys/hylafax || RETVAL=1
+       return $RETVAL
+}
+
+restart() {
+       stop
+       start
+}
+
+suse_action() {
+       echo -n $1
+       $2
+       RETVAL=$?
+       if [ $RETVAL -eq 0 ]; then
+               echo -e $return_success
+       else
+               echo -e $return_failure
+       fi
+       return $RETVAL
+}
+
+suse_status() {
+       checkproc $1
+       rc_status -v
+}
+
+hfstatus() {
+       echo -n "HylaFAX client-server protocol server: "
+       STATUS hfaxd
+       echo -n "HylaFAX queue manager process: "
+       STATUS faxq
+}
+
+check_config() {
+       test -f $SPOOL/etc/setup.cache || {
+               cat<<-EOF
+               HylaFAX FATAL ERROR: $SPOOL/etc/setup.cache is missing!
+               The file $SPOOL/etc/setup.cache is not present. 
+               This probably means the machine has not been setup using the 
+               faxsetup(8C) command.  Read the documentation on setting up
+               HylaFAX before you startup a server system.
+               EOF
+               
+               exit 1  
+       }
+}
+
+reset_faxgetty () {
+       pids=`pidofproc faxgetty`
+       if [ -n "$pids" ] && ps h $pids >/dev/null 2>&1; then
+               echo -n "Restarting HylaFAX modem manager (faxgetty):"
+               # will be respawned from /etc/inittab
+               killproc faxgetty
+               if [ $? -eq 0 ]; then
+                       echo -e $return_success
+               else
+                       echo -e $return_failure
+               fi
+       fi      
+}
+
+case "$1" in
+  start)
+       start
+       ;;
+  stop)
+       stop
+       ;;
+  status)
+       hfstatus
+       ;;
+  restart|reload)
+       restart
+       ;;
+  condrestart)
+       [ -f /var/lock/subsys/hylafax ] && restart
+       ;;
+  *)
+       echo "Usage: $0 {start|stop|status|restart|reload|condrestart}"
+       exit 1
+       ;;
+esac
+
+exit $?
+
diff --git a/rpm/jobcontrol.sh b/rpm/jobcontrol.sh
new file mode 100644 (file)
index 0000000..f150fba
--- /dev/null
@@ -0,0 +1,136 @@
+#!/bin/sh
+
+##  More sample jobcontrol programs can be found at 
+##   http://www.hylafax.org/content/JobControl
+
+##
+##  This is a sample jobcontrol program for HylaFAX that can be used
+##   to Virtualize a fax service for various "client" companies in a
+##   single HylaFAX installation
+##
+##  This virtualization does a few things:
+##    1) Verifies client
+##    2) Rejects jobs that the client submitted that we consider
+##       Malicious
+##    3) Set's Modem based on destination and client settings
+##    4) Set's faxsend options to make the job appear from the client's own
+##       FAX service
+##
+##  This assumes that by default, faxsend is configured not allow TSI
+##   modification, and is branded with our fax service branding/numbers/etc.
+##
+##  To get full milage from this type of JobControl, you should have the
+##   following settings in $SPOOL/etc/config for FaxQueuer:
+##     MaxBatchJobs: 1
+##     JobControlCmd: bin/jcontrol.sh
+##     JobControlWait: false
+##
+
+JOBID=$1
+
+## GetClient <owner> <email>
+##  - returns a string - the client identifier
+
+## Result of "REJECT" is a non-authorized submitter, and
+##  should be rejected.
+## Result of "" means it's not a virtualized client and 
+##  should be subject to our default modem settings
+GetClient ()
+{
+    # Pretend to lookup the user
+    case "$1" in
+#      aidan)
+#          echo "1234"
+#          ;;
+#      root)
+#          echo "REJECT"
+#          ;;
+       *)
+           # All others are not full virtual clients
+           echo ""
+    esac
+}
+
+##
+## GetJobParam <param>
+## - returns the value of the job param
+GetJobParam ()
+{
+       grep "^$1:" sendq/q$JOBID | cut -d : -f 2-
+}
+
+##
+## SetControlParam <tag> <value>
+SetControlParam ()
+{
+    echo "$1: \"$2\""
+}
+
+OWNER=$(GetJobParam owner)
+EMAIL=$(GetJobParam mailaddr)
+
+
+CLIENT=$(GetClient "$OWNER" "$EMAIL")
+
+if [ "$CLIENT" == "REJECT" ]
+then
+    SetControlParam RejectNotice "Not authorized"
+    exit
+fi
+
+# Only client 1234 is allowed to specify ModemGroups
+#if [ "$CLIENT" != 1234 ]
+#then
+#    MODEM=$(GetJobParam modem)
+#    if [ "$MODEM" != "any" ]
+#    then
+#      SetControlParam RejectNoctice "Modem setting of $MODEM not allowed - use any"
+#      exit
+#    fi
+#fi
+
+# Set the modemgroup based on the destination
+# We're strict on the given number format - it must be a cannonical
+# number (including the +)
+DEST=$(GetJobParam number)
+#case "$DEST" in
+#    82??)                             ## Our local extensions
+#      SetControlParam Modem "PBX"
+#      ;;
+#    +1215*)
+#      SetControlParam Modem "Local"
+#      ;;
+#    +1*)
+#      SetControlParam Modem "NA"
+#      ;;
+#    +44*)
+#      SetControlParam Modem "UK"
+#      ;;
+#    *)
+#      SetControlParam RejectNotice "Not a number we support - see numbering FAQ"
+#      ;;
+#esac
+
+
+##
+## And now client-specific settings
+
+#case "$CLIENT" in
+#    1234)
+#      # These guys can do whatever they want - they pay big bucks for the
+#      #  privilege
+#      SetControlParam UseJOBTSI true
+#      SetControlParam UseJobTagLine true
+#      ;;
+#    5678)
+#      # These guys aren't nice
+#      SetControlParam LocalIdentifier "Company XYX"
+#      SetControlParam DesiredBR 14400
+#      SetControlParam TagLineFormat "From %%n|%c|Page %%P of %%T"
+#      SetControlParam TimeOfDay "000000-065959,190000-235900"
+#      ;;
+#    *)
+#      # And our regular guys
+#      SetControlParam DesiredBR 9600
+#esac
+
diff --git a/rpm/logrotate.conf b/rpm/logrotate.conf
new file mode 100644 (file)
index 0000000..6272bda
--- /dev/null
@@ -0,0 +1,7 @@
+/var/spool/hylafax/etc/xferfaxlog {
+       missingok
+       notifempty
+       rotate 3
+       monthly
+       compress
+}
diff --git a/rpm/patches/001-faxsetup-server.patch b/rpm/patches/001-faxsetup-server.patch
new file mode 100644 (file)
index 0000000..0290d80
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/etc/faxsetup.sh.in b/etc/faxsetup.sh.in
+index c8859c6..51bb5b2 100644
+--- a/etc/faxsetup.sh.in
++++ b/etc/faxsetup.sh.in
+@@ -305,7 +305,7 @@ fi
+ # if nothing specified on command line, default client+server
+ if [ $isClient = no ] && [ $isServer = no ]; then
+     isClient=yes
+-    isServer=yes
++    rpm -q hylafax-server >/dev/null && isServer=yes
+ fi
+ #
diff --git a/rpm/setup.cache b/rpm/setup.cache
new file mode 100644 (file)
index 0000000..281e95b
--- /dev/null
@@ -0,0 +1,35 @@
+# Warning, this file was automatically generated by faxsetup
+# on Tue Oct 21 15:51:18 EDT 1997 for root
+AFMDIR='/usr/share/ghostscript/fonts'
+AWK='/usr/bin/mawk'
+BIN='/usr/bin'
+CAT='/bin/cat'
+CHGRP='/bin/chgrp'
+CHMOD='/bin/chmod'
+CHOWN='/bin/chown'
+CP='/bin/cp'
+DPSRIP='/var/spool/hylafax/bin/ps2fax'
+ECHO='/bin/echo'
+GREP='/bin/grep'
+GSRIP='/usr/bin/gs'
+IMPRIP='/usr/share/fax/psrip'
+LIBDATA='/usr/share/fax'
+LIBEXEC='/usr/sbin'
+LN='/bin/ln'
+MANDIR='/usr/man'
+MKFIFO='/usr/bin/mkfifo'
+MV='/bin/mv'
+PATH='/usr/sbin:/bin:/usr/bin:/etc:/usr/local/bin'
+PATHEGETTY='/bin/egetty'
+PATHGETTY='/sbin/getty'
+PATHVGETTY='/sbin/vgetty'
+PSPACKAGE='gs'
+RM='/bin/rm'
+SBIN='/usr/sbin'
+SCRIPT_SH='/bin/bash'
+SED='/bin/sed'
+SENDMAIL='/usr/sbin/sendmail'
+SPOOL='/var/spool/hylafax'
+TIFFBIN='/usr/bin'
+UUCP_LOCKDIR='/var/lock'
+UUCP_LOCKTYPE='ascii'
diff --git a/rpm/setup.modem b/rpm/setup.modem
new file mode 100644 (file)
index 0000000..c18c9c2
--- /dev/null
@@ -0,0 +1,40 @@
+# Warning, this file was automatically generated by faxsetup
+# on Tue Oct 21 15:51:14 EDT 1997 for root
+prompt()
+{
+   echo -n "$* "
+}
+           ttyPort()
+           {
+               expr $1 : 'tty\(.*\)'
+           }
+           ttyLocks()
+           {
+               echo $UUCP_LOCKDIR/LCK..$1
+           }
+           ttyAliases()
+           {
+               echo /dev/$1
+           }
+           ttyDev()
+           {
+               echo /dev/$1
+           }
+           checkPort()
+           {
+                return
+           }
+           ttyStty()
+           {
+               echo /bin/stty
+           }
+           ttySpeeds()
+           {
+               speeds=
+               if [ -z "$SPEED" ]; then
+                   for s in 38400 19200 9600 4800 2400 1200; do
+                       onDev /bin/stty $s </dev/null >/dev/null 2>&1 && speeds="$speeds $s"
+                   done
+               fi
+               echo $speeds
+           }
diff --git a/rpm/sysconfig b/rpm/sysconfig
new file mode 100644 (file)
index 0000000..1685df3
--- /dev/null
@@ -0,0 +1,17 @@
+## This is the HylaFAX init script configuration file.
+## Options specified in this file will be used when starting
+## and stopping HylaFAX.
+
+## What address should hfaxd listen to
+#HFAXD_LISTEN=127.0.0.1
+
+## HylaFAX Spool directory if different from the default of /var/spool/hylafax
+#SPOOL=/var/spool/hylafax
+
+## Accept connections to hfaxd using the old protocol
+#HFAXD_OLD_PROTOCOL=yes
+
+## Extra args to be passed to hfaxd
+HFAXD_EXTRA_ARGS=
+
+