Date: Tuesday, April 1, 2014 @ 17:30:13
  Author: tpowa
Revision: 209708

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  hylafax/repos/testing-i686/
  hylafax/repos/testing-i686/PKGBUILD
    (from rev 209707, hylafax/trunk/PKGBUILD)
  hylafax/repos/testing-i686/config.local
    (from rev 209707, hylafax/trunk/config.local)
  hylafax/repos/testing-i686/faxgetty@.service
    (from rev 209707, hylafax/trunk/faxgetty@.service)
  hylafax/repos/testing-i686/faxq.service
    (from rev 209707, hylafax/trunk/faxq.service)
  hylafax/repos/testing-i686/hfaxd.service
    (from rev 209707, hylafax/trunk/hfaxd.service)
  hylafax/repos/testing-i686/hylafax
    (from rev 209707, hylafax/trunk/hylafax)
  hylafax/repos/testing-i686/hylafax.install
    (from rev 209707, hylafax/trunk/hylafax.install)
  hylafax/repos/testing-x86_64/
  hylafax/repos/testing-x86_64/PKGBUILD
    (from rev 209707, hylafax/trunk/PKGBUILD)
  hylafax/repos/testing-x86_64/config.local
    (from rev 209707, hylafax/trunk/config.local)
  hylafax/repos/testing-x86_64/faxgetty@.service
    (from rev 209707, hylafax/trunk/faxgetty@.service)
  hylafax/repos/testing-x86_64/faxq.service
    (from rev 209707, hylafax/trunk/faxq.service)
  hylafax/repos/testing-x86_64/hfaxd.service
    (from rev 209707, hylafax/trunk/hfaxd.service)
  hylafax/repos/testing-x86_64/hylafax
    (from rev 209707, hylafax/trunk/hylafax)
  hylafax/repos/testing-x86_64/hylafax.install
    (from rev 209707, hylafax/trunk/hylafax.install)

----------------------------------+
 testing-i686/PKGBUILD            |   57 +++++++
 testing-i686/config.local        |  273 +++++++++++++++++++++++++++++++++++++
 testing-i686/faxgetty@.service   |   24 +++
 testing-i686/faxq.service        |   10 +
 testing-i686/hfaxd.service       |   10 +
 testing-i686/hylafax             |   71 +++++++++
 testing-i686/hylafax.install     |   42 +++++
 testing-x86_64/PKGBUILD          |   57 +++++++
 testing-x86_64/config.local      |  273 +++++++++++++++++++++++++++++++++++++
 testing-x86_64/faxgetty@.service |   24 +++
 testing-x86_64/faxq.service      |   10 +
 testing-x86_64/hfaxd.service     |   10 +
 testing-x86_64/hylafax           |   71 +++++++++
 testing-x86_64/hylafax.install   |   42 +++++
 14 files changed, 974 insertions(+)

Copied: hylafax/repos/testing-i686/PKGBUILD (from rev 209707, 
hylafax/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD                               (rev 0)
+++ testing-i686/PKGBUILD       2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Paul Mattal <p...@archlinux.org>
+pkgname=hylafax
+pkgver=6.0.6
+pkgrel=5
+pkgdesc="Fax Server"
+arch=('i686' 'x86_64')
+install='hylafax.install'
+license=('custom')
+depends=('libtiff' 'pam' 'ghostscript')
+makedepends=('smtp-server')
+url="http://www.hylafax.org/";
+backup=(var/spool/hylafax/bin/{faxrcvd,notify}
+       usr/lib/fax/{faxcover.ps,hfaxd.conf,pagesizes,typerules}
+       var/spool/hylafax/etc/hosts.hfaxd) 
+source=(ftp://ftp.hylafax.org/source/${pkgname}-${pkgver}.tar.gz 
+        hylafax.{timer,service}
+        config.local
+        faxq.service
+        hfaxd.service
+        faxgetty@.service)
+
+build () {
+  cd "$srcdir/${pkgname}-${pkgver}"
+  cp ../config.local .
+  ./configure --nointeractive --with-OPTIMIZER="${CFLAGS}"
+  make
+}
+
+package () {
+  cd "$srcdir/${pkgname}-${pkgver}"
+  mkdir -p "$pkgdir"/usr/{bin,lib/fax,share/ghostscript/fonts}
+  mkdir -p "$pkgdir"/var/{spool/hylafax,lock}
+  make ROOT="$pkgdir" install
+  # add missing awk file for notify-4.1 script
+  install -D -m 755 "$srcdir"/${pkgname}-${pkgver}/util/notify.awk \
+       "$pkgdir"/var/spool/hylafax/bin/notify.awk
+  # remove /var/lock
+  rm -r "$pkgdir"/var/lock
+  # add systemd files
+  install -D -m644 $srcdir/hfaxd.service 
$pkgdir/usr/lib/systemd/system/hfaxd.service
+  install -D -m644 $srcdir/faxq.service 
$pkgdir/usr/lib/systemd/system/faxq.service
+  install -D -m644 $srcdir/faxgetty@.service 
$pkgdir/usr/lib/systemd/system/faxgetty@.service
+  install -D -m644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
+  # systemd timer
+  install -D -m644 ${srcdir}/hylafax.timer 
${pkgdir}/usr/lib/systemd/system/hylafax.timer
+  install -D -m644 ${srcdir}/hylafax.service 
${pkgdir}/usr/lib/systemd/system/hylafax.service
+  install -d -m755 ${pkgdir}/usr/lib/systemd/system/multi-user.target.wants
+  ln -s ../shadow.timer 
${pkgdir}//usr/lib/systemd/system/multi-user.target.wants/hylafax.timer
+}
+md5sums=('d063d45049c8fcbabefe09d662313067'
+         '9ef38446d2a2aeac698c4ae178fd5c2b'
+         'e5afba881859f018ee88d35fc62a488f'
+         '5f3a89fbfb10c47755d3ca19183b8a59'
+         'a10aa2ef613551a88d750f6602b5f2f7'
+         '38a00db6d9d765d130b2d8d3a98e5c24'
+         'fe10ea597e786fe8c09e4104fbdf16de')

Copied: hylafax/repos/testing-i686/config.local (from rev 209707, 
hylafax/trunk/config.local)
===================================================================
--- testing-i686/config.local                           (rev 0)
+++ testing-i686/config.local   2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,273 @@
+# $Id: config.local,v 1.1 2003/06/28 00:24:49 jproctor Exp $
+#
+# HylaFAX Facsimile Software
+#
+# Copyright (c) 1990-1996 Sam Leffler
+# Copyright (c) 1991-1996 Silicon Graphics, Inc.
+# HylaFAX is a trademark of Silicon Graphics, Inc.
+# 
+# Permission to use, copy, modify, distribute, and sell this software and 
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+# 
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
+# 
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
+# OF THIS SOFTWARE.
+#
+
+#
+# This file holds site-specific configuration parameters.
+#
+# Nothing is defined in here by default, the definitions
+# commented out below serve as documentation for what you
+# can set in this file or a config.local file.
+#
+# Note that you do not need to set anything here unless you
+# want to override the auto-configuration behaviour and/or
+# interactive prompting done by the configure script.
+#
+
+#
+# Package controls.
+#
+#DSO="auto"                    # configure DSO support (auto|IRIX|no)
+#GETTY="auto"                  # type of getty support (auto|BSD|SysV)
+#HTML="no"                     # install HTML documentation (yes|no)
+#PS="auto"                     # PostScript support to use (auto|gs|dps|imp)
+#SGI2FAX="auto"                        # configure SGI image support 
(auto|yes|no)
+#DPS="no"                      # install SGI DPS-based RIP (yes|no)
+#GS="no"                       # install Ghostscript RIP (yes|no)
+#IMP="no"                      # install SGI Impressario 2.1 support (yes|no)
+#REGEX="yes"                   # use distributed regular expression package
+#UTMP="utmpx"                  # type of utmp+wtmp handling (auto|utmp|utmpx)
+#DBLIB="no"                    # use distributed libdb distribution
+
+#
+# Directory parameters.
+#
+DIR_BIN="/usr/bin"             # directory for client apps
+DIR_LIB="/usr/lib"
+DIR_LIBDATA="/usr/lib/fax"             # directory for client data
+DIR_LIBEXEC="/usr/lib/fax"             # directory for libraries&hidden apps
+DIR_MAN="/usr/share/man"               # directory for manual pages
+DIR_SPOOL="/var/spool/hylafax"         # directory for spooling area
+DIR_SBIN="/usr/bin"            # directory for system apps
+DIR_LOCKS="/var/lock"          # directory for UUCP lock files
+FONTMAP="/usr/share/ghostscript/fonts" # directorys containing Fontmap files
+DIR_LOCALE="/usr/share/locale"
+#PATH_AFM="/usr/lib/DPS/AFM"           # directorys for AFM files
+
+#
+# HTML-specific parameters; only used when the
+# HTML package is configured for installation.
+#
+# Note that ``PATH''s are the virtual pathnames used
+# in forming URLs; they are not directory pathnames
+# in the filesystem.
+#
+DIR_HTML="/usr/share/hylafax/httpd"    # directory for HTML documentation
+#DIR_CGI="/var/httpd/cgi-bin"          # directory for CGI scripts
+#HTMLPATH="/hylafax"                   # virtual path to HTML materials
+#CGIPATH="/cgi-bin"                    # virtual path to CGI scripts
+
+#
+# Miscellaneous parameters.
+#
+#DEFVRES="196"                         # default vertical res for outbound fax
+#FILLORDER="MS2LSB"                    # bit order of cpu (MSB2LSB/LSB2MSB)
+#AXGID="uucp"                          # group ID for fax user
+#FAXUID="uucp"                         # user ID for fax user
+#PAGESIZE="North American Letter"      # default page size
+SYSGID="root"                          # group ID for system installs
+SYSUID="root"                          # user ID for system installs
+#LOCKS="ascii"                         # default UUCP lockfile scheme
+#
+#PATH_GETTY="/etc/getty"               # pathname of suitable getty program
+#PATH_VGETTY="/bin/vgetty"             # pathname of voice getty program
+#PATH_EGETTY="/bin/egetty"             # pathname of external getty program
+#PATH_SENDMAIL="/usr/lib/sendmail"     # pathname of suitable sendmail program
+#PATH_GSRIP="/usr/local/bin/gs"                # pathname of Ghostscript-based 
RIP
+#PATH_DPSRIP="/var/spool/hylafax/bin/ps2fax.exe" # pathname of DPS-based RIP
+#PATH_IMPRIP="/usr/lib/print/psrip"    # pathname of Impressario 2.1 RIP
+#MANSCHEME="sysv-source-cat-strip"     # manual page installation scheme
+#SYSVINIT="auto"               # install SysV-style init support (auto|yes|no)
+#DIR_SYSVINIT="/etc/init.d"    # location of SysV-style init script
+#DIR_SYSVINITSTART="../rc2.d"  # location of SysV-style start script
+#DIR_SYSVINITSTOP="../rc0.d"   # location of SysV-style stop script
+#NAME_SYSVINITSTART="S80fax"   # name of SysV-style start script
+#NAME_SYSVINITSTOP="K80fax"    # name of SysV-style stop script
+#FAXQ_SERVER=yes               # init script starts faxq
+#HFAXD_SERVER=yes              # init script starts hfaxd
+#HFAXD_OLD_PROTOCOL=no         # don't start old protocol
+#HFAXD_SNPP_SERVER=no          # don't start paging protocol
+
+# SVR4 packaging stuff
+#PKG_ARCH=                             # ARCH variable in pkginfo file
+#PKG_EMAIL=someone@somehost.somedomain # EMAIL variable in pkginfo file
+#PKG_VENDOR="Your Name Here"           # VENDOR variable in pkginfo file
+#
+
+#
+# Parameters used when building the software.
+#
+# Note that configure has several ENVOPTS built into it that are
+# set according to the target.  This is done to help naive folks.
+#
+# Beware of changing the INSTALL definition; you *must* have an
+# install script that emulates the Silicon Graphics install program!
+#
+#AR="/bin/ar"                          # pathname of suitable ar program
+#AROPTS="rc"                           # options to ar for creating archive
+#CC="gcc"                              # name/pathname of C compiler
+#CXX="gcc"                             # name/pathname of C++ compiler
+#CXXFILE="-x c++"                      # options for proper C++ processing
+#ENVOPTS="-Aa"                         # options for getting ANSI C
+#GCOPTS="-g"                           # options to pass C compiler
+#GCXXOPTS="-g"                         # options to pass C++ compiler
+#GENDIST="/sbin/gendist"               # pathname of SGI inst generator program
+#INSTALL='${SHELL} ${PORT}/install.sh' # SGI install program/emulator
+#LIBMALLOC="auto"                      # yes|no|auto configure -lmalloc use
+#LIBPORT='${PORT}/libport.a'           # library with emulation code
+#LIBSUN="auto"                         # yes|no|auto configure -lsun use
+#LLDOPTS=""                            # extra link line options
+#MACHDEPLIBS=""                                # extra libraries for linking
+#PORTFUNCS=""                          # non-standard functions to emulate
+#PROTOTYPES="-prototypes"              # C compiler options for checking 
function prototypes
+#RANLIB=":"                            # pathname of suitable ranlib program
+#SHDLIBC="-lc_s"                       # shared C library, if not standard
+#SIGHANDLERTYPES='(void(*)(int,...))'  # types to check for signal handler
+#STRIP="/bin/strip"                    # strip program used by install.sh
+
+#
+# The source for the TIFF library is not required
+# to build this software, but the library is required
+# to link against.  If libtiff is installed in a
+# non-standard location then setup LIBTIFF accordingly.
+#
+#LIBTIFF="-L/usr/local/lib -ltiff"     # linkage convention for libtiff
+#TIFFINC="/usr/local/include"          # place to find tiffio.h
+#TIFFBIN="/usr/local/bin"              # where TIFF tools live
+
+#
+# The source for the ZLIB library is not required
+# to build this software, but the library is required
+# to link against.  If ZLIB is installed in a 
+# non-standard location then setup LIBZ accordingly.
+#
+#LIBZ="-L/usr/local/lib -lz"           # linkage convention for libz
+#ZLIBINC="-I/usr/local/include"                # place to find zlib.h
+
+#
+# The source for the POSIX regular expression package
+# is not required to build this software, but the package
+# is required to link against.  If the copy of the software
+# that is included in this distribution is not to be used
+# then set REGEX=no and supply the following definitions.
+#
+#LIBREGEX=" "                          # linkage convention for regex package
+#REGEXINC="/usr/include"               # place to find regex.h
+
+#
+# The LIBDB hashed database package is (currently) used
+# only by the MLA tools that are not publicly available
+# but which are built from within this source tree.  In
+# the future the fax software may use the libdb software
+# for the remote client capabilities database (so these
+# hooks are included now).
+#
+# The source for the LIBDB hashed database package
+# is not required to build this software, but the package
+# is required to link against.  If the copy of the software
+# that is included in this distribution is not to be used
+# then set DBLIB=no and supply the following definitions.
+#
+#LIBDB=" "                             # linkage convention for libdb package
+#DBLIBINC="/usr/include"               # place to find db.h
+
+#
+# Parameters to control various workarounds for system bugs.
+#
+# These parameters are normally set in configure based on
+# the target system.  If they are set here, then they will
+# override anything done by configure.
+#
+#CONFIG_OPENFIFO="O_RDONLY"            # mode to open FIFOs in server proc's
+#CONFIG_FIFOBUG="yes"                  # enable workaround for FIFO select bug
+#CONFIG_TIOCMBISBYREF="yes"            # pass arg by reference to ioctl
+#CONFIG_WINSZHACK="no"                 # include extra files for TIOCWINSZ use
+#CONFIG_ABORTBUG="no"                  # enable workaround for abort problems
+#CONFIG_NOREOPEN="yes"                 # reopen tty device after toggling DTR
+#CONFIG_NOSTDINDUP="yes"               # do not redirect stdout to stdin in 
ondelay
+#CONFIG_BADEXECVPROTO="no"             # system has incorrect execv func decl
+#CONFIG_BADEXECVEPROTO="no"            # system has incorrect execve func decl
+#CONFIG_BADGETOPTPROTO="no"            # system has incorrect getopt func decl
+#CONFIG_SOCKARGLENTYPE="unsigned long" # call-by-ref arg type for socket funcs
+#CONFIG_BADSELECTPROTO="no"            # system has way old select func decl
+#CONFIG_MAXGID="5999"                  # maximum permissable GID
+#CONFIG_OSFCNH="auto"                  # control inclusion of <osfcn.h>
+
+#
+# Dynamic Shared Object (DSO) support.
+#
+# Beware that adding new support for DSOs may require some
+# modifications to the */Makefile.dso files.
+#
+#DSOSUF="so"                           # DSO filename suffix
+#DSODELAY="-delay_load"                        # DSO option for delayed loading
+#DSOOPTS="-shared -rdata_shared"       # options for building DSOs
+
+#
+# Makefile construction parameters.
+#
+# These should not normally be set; configure will
+# deduce the appropriate syntax to use for includes.
+#
+#MAKECXXOVERRIDE="=.C"                 # make override stuff for SunPRO C++
+#MAKEDEPINCLUDE="include"              # make include for dependency files
+#MAKEDSOINCLUDE="#"                    # make include for DSO support
+#MAKEINCLUDE=".include"                        # make include syntax
+#MAKELQUOTE="<"                                # make include syntax
+#MAKERQUOTE=">"                                # make include syntax
+#SETMAKE='MAKE = ${MAKE}'              # define if make does not setup $MAKE
+#MKDEPCOPTS=""                         # C compiler opts to supply w/ -M
+#MKDEPCXXOPTS=""                       # C++ compiler opts to supply w/ -M
+
+#
+# General system stuff used by the distribution.
+#
+# Beware of setting these as configure selects several programs
+# based on whether or not they are capable of processing scripts
+# included in the distribution (e.g AWK and SCRIPT_SH, SED).
+#
+AWK="/usr/bin/awk"                             # pathname of suitable awk 
program
+#CAT="/bin/cat"                                # pathname of suitable cat 
program
+#CHGRP="/etc/chgrp"                    # pathname of suitable chgrp program
+#CHMOD="/etc/chmod"                    # pathname of suitable chmod program
+#CHOWN="/etc/chown"                    # pathname of suitable chown program
+CMP="/usr/bin/cmp"                             # pathname of suitable cmp 
program
+COL="/usr/bin/col"                             # pathname of suitable col 
program
+#CP="/bin/cp"                          # pathname of suitable cp program
+#ECHO="/bin/echo"                      # pathname of suitable echo program
+GREP="/usr/bin/grep"                   # pathname of suitable grep program
+#LN="/bin/ln"                          # pathname of suitable ln program
+#LN_S="-s"                             # option to ${LN} to create symlink
+#MAN="/usr/bin/man"                    # pathname of suitable man program
+#MKDIR="/bin/mkdir"                    # pathname of suitable mkdir program
+MKFIFO="/usr/bin/mkfifo"                       # pathname of suitable mkfifo 
program
+#MV="/bin/mv"                          # pathname of suitable mv program
+#MV_F="-f"                             # option to ${MV} to force operation
+#RMCMD="/bin/rm"                       # pathname of suitable rm program
+#SED="/bin/sed"                                # pathname of suitable sed 
program
+#SCRIPT_SH="/bin/sh"                   # pathname of suitable shell
+SORT="/usr/bin/sort"                   # pathname of suitable sort program

Copied: hylafax/repos/testing-i686/faxgetty@.service (from rev 209707, 
hylafax/trunk/faxgetty@.service)
===================================================================
--- testing-i686/faxgetty@.service                              (rev 0)
+++ testing-i686/faxgetty@.service      2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,24 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=faxgetty on %I
+Documentation=man:faxgetty(8)
+After=faxq.service hfaxd.service
+
+[Service]
+ExecStart=/usr/lib/fax/faxgetty %I
+Type=simple
+Restart=always
+RestartSec=0
+KillMode=process
+
+KillSignal=SIGTERM
+
+[Install]
+WantedBy=multi-user.target
+

Copied: hylafax/repos/testing-i686/faxq.service (from rev 209707, 
hylafax/trunk/faxq.service)
===================================================================
--- testing-i686/faxq.service                           (rev 0)
+++ testing-i686/faxq.service   2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Hyla FAX queue manager
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/faxq
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Copied: hylafax/repos/testing-i686/hfaxd.service (from rev 209707, 
hylafax/trunk/hfaxd.service)
===================================================================
--- testing-i686/hfaxd.service                          (rev 0)
+++ testing-i686/hfaxd.service  2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Hyla FAX client-server
+
+[Service]
+Type=forking
+ExecStart=/usr/lib/fax/hfaxd -i hylafax
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Copied: hylafax/repos/testing-i686/hylafax (from rev 209707, 
hylafax/trunk/hylafax)
===================================================================
--- testing-i686/hylafax                                (rev 0)
+++ testing-i686/hylafax        2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,71 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+DAEMON_NAME="hylafax"
+FAXQ_BIN=/usr/sbin/faxq
+FAXQ_PID=`pidof -o %PPID $FAXQ_BIN`
+HFAXD_BIN=/usr/lib/fax/hfaxd
+HFAXD_PID=`pidof -o %PPID $HFAXD_BIN`
+HFAXD_OPTS="-i hylafax"
+FAXQUIT_BIN=/usr/sbin/faxquit
+
+. /var/spool/hylafax/etc/setup.cache
+
+case "$1" in
+  start)
+    stat_busy "Starting $DAEMON_NAME"
+    [ -z "$FAXQ_PID" ] && $FAXQ_BIN
+    if [ $? -gt 0 ]; then
+      stat_fail
+      exit 1
+    else
+      echo `pidof -o %PPID $FAXQ_BIN` > /var/run/faxq.pid
+    fi
+    [ -z "$HFAXD_PID" ] && $HFAXD_BIN $HFAXD_OPTS
+    if [ $? -gt 0 ]; then
+      stat_fail
+      exit 1
+    else
+      echo `pidof -o %PPID $HFAXD_BIN` > /var/run/hfaxd.pid
+    fi
+    add_daemon $DAEMON_NAME
+    stat_done
+    ;;
+
+  stop)
+    stat_busy "Stopping $DAEMON_NAME"
+        $FAXQUIT_BIN >/dev/null 2>&1
+    if [ $? -gt 0 ]; then
+      [ ! -z "$FAXQ_PID" ]  && kill $FAXQ_PID &> /dev/null
+      if [ $? -gt 0 ]; then
+        stat_fail
+        exit 1
+      else
+        rm /var/run/faxq.pid &> /dev/null
+      fi
+    else
+      rm /var/run/faxq.pid &> /dev/null
+    fi
+    [ ! -z "$HFAXD_PID" ]  && kill $HFAXD_PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+      exit 1
+    else
+      rm /var/run/hfaxd.pid &> /dev/null
+    fi
+    rm_daemon $DAEMON_NAME
+    stat_done
+    ;;
+
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Copied: hylafax/repos/testing-i686/hylafax.install (from rev 209707, 
hylafax/trunk/hylafax.install)
===================================================================
--- testing-i686/hylafax.install                                (rev 0)
+++ testing-i686/hylafax.install        2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,42 @@
+
+print_install() {
+  printf "\n"
+  echo "Run faxsetup to configure and be sure to set..."
+  echo "  The device to configure is usually ttyS0"
+  echo "  The number of pages to accept to more than 25"
+  echo "  The country code and area code"
+  echo "  The faxclass to 2.0"
+  echo "  Most other defaults are OK"
+  printf "\n"
+}
+
+print_remove() {
+  printf "\n\n"
+  echo "You may manually remove /var/spool/hylafax and /usr/lib/fax if you do 
not need anything."
+  echo "You may also remove any aliases added to /etc/mail/aliases."
+  printf "\n"
+}
+
+post_install() {
+  post_upgrade
+  print_install
+}
+
+post_upgrade() {
+  groupadd -g 14 uucp &>/dev/null
+  useradd -u 10 -g uucp -d '/' -s /bin/false uucp &>/dev/null
+  useradd -u 69 -g daemon -d '/' -s /bin/false fax &>/dev/null
+  chown uucp /var/spool/hylafax/{,archive,bin,client,config,dev,docq,doneq,etc}
+  chown uucp /var/spool/hylafax/{FIFO,info,log,pollq,recvq,sendq,status,tmp}
+  chown uucp /var/spool/hylafax/etc/{hosts.hfaxd,lutRS18.pcf,xferfaxlog}
+  chown -R uucp /var/spool/hylafax/etc/templates
+  usermod -d '/' uucp &>/dev/null
+  usermod -d '/' fax &>/dev/null
+}
+
+pre_remove() {
+  userdel uucp &>/dev/null
+  groupdel uucp &>/dev/null
+  userdel fax &>/dev/null
+  print_remove
+}

Copied: hylafax/repos/testing-x86_64/PKGBUILD (from rev 209707, 
hylafax/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Paul Mattal <p...@archlinux.org>
+pkgname=hylafax
+pkgver=6.0.6
+pkgrel=5
+pkgdesc="Fax Server"
+arch=('i686' 'x86_64')
+install='hylafax.install'
+license=('custom')
+depends=('libtiff' 'pam' 'ghostscript')
+makedepends=('smtp-server')
+url="http://www.hylafax.org/";
+backup=(var/spool/hylafax/bin/{faxrcvd,notify}
+       usr/lib/fax/{faxcover.ps,hfaxd.conf,pagesizes,typerules}
+       var/spool/hylafax/etc/hosts.hfaxd) 
+source=(ftp://ftp.hylafax.org/source/${pkgname}-${pkgver}.tar.gz 
+        hylafax.{timer,service}
+        config.local
+        faxq.service
+        hfaxd.service
+        faxgetty@.service)
+
+build () {
+  cd "$srcdir/${pkgname}-${pkgver}"
+  cp ../config.local .
+  ./configure --nointeractive --with-OPTIMIZER="${CFLAGS}"
+  make
+}
+
+package () {
+  cd "$srcdir/${pkgname}-${pkgver}"
+  mkdir -p "$pkgdir"/usr/{bin,lib/fax,share/ghostscript/fonts}
+  mkdir -p "$pkgdir"/var/{spool/hylafax,lock}
+  make ROOT="$pkgdir" install
+  # add missing awk file for notify-4.1 script
+  install -D -m 755 "$srcdir"/${pkgname}-${pkgver}/util/notify.awk \
+       "$pkgdir"/var/spool/hylafax/bin/notify.awk
+  # remove /var/lock
+  rm -r "$pkgdir"/var/lock
+  # add systemd files
+  install -D -m644 $srcdir/hfaxd.service 
$pkgdir/usr/lib/systemd/system/hfaxd.service
+  install -D -m644 $srcdir/faxq.service 
$pkgdir/usr/lib/systemd/system/faxq.service
+  install -D -m644 $srcdir/faxgetty@.service 
$pkgdir/usr/lib/systemd/system/faxgetty@.service
+  install -D -m644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
+  # systemd timer
+  install -D -m644 ${srcdir}/hylafax.timer 
${pkgdir}/usr/lib/systemd/system/hylafax.timer
+  install -D -m644 ${srcdir}/hylafax.service 
${pkgdir}/usr/lib/systemd/system/hylafax.service
+  install -d -m755 ${pkgdir}/usr/lib/systemd/system/multi-user.target.wants
+  ln -s ../shadow.timer 
${pkgdir}//usr/lib/systemd/system/multi-user.target.wants/hylafax.timer
+}
+md5sums=('d063d45049c8fcbabefe09d662313067'
+         '9ef38446d2a2aeac698c4ae178fd5c2b'
+         'e5afba881859f018ee88d35fc62a488f'
+         '5f3a89fbfb10c47755d3ca19183b8a59'
+         'a10aa2ef613551a88d750f6602b5f2f7'
+         '38a00db6d9d765d130b2d8d3a98e5c24'
+         'fe10ea597e786fe8c09e4104fbdf16de')

Copied: hylafax/repos/testing-x86_64/config.local (from rev 209707, 
hylafax/trunk/config.local)
===================================================================
--- testing-x86_64/config.local                         (rev 0)
+++ testing-x86_64/config.local 2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,273 @@
+# $Id: config.local,v 1.1 2003/06/28 00:24:49 jproctor Exp $
+#
+# HylaFAX Facsimile Software
+#
+# Copyright (c) 1990-1996 Sam Leffler
+# Copyright (c) 1991-1996 Silicon Graphics, Inc.
+# HylaFAX is a trademark of Silicon Graphics, Inc.
+# 
+# Permission to use, copy, modify, distribute, and sell this software and 
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+# 
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
+# 
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
+# OF THIS SOFTWARE.
+#
+
+#
+# This file holds site-specific configuration parameters.
+#
+# Nothing is defined in here by default, the definitions
+# commented out below serve as documentation for what you
+# can set in this file or a config.local file.
+#
+# Note that you do not need to set anything here unless you
+# want to override the auto-configuration behaviour and/or
+# interactive prompting done by the configure script.
+#
+
+#
+# Package controls.
+#
+#DSO="auto"                    # configure DSO support (auto|IRIX|no)
+#GETTY="auto"                  # type of getty support (auto|BSD|SysV)
+#HTML="no"                     # install HTML documentation (yes|no)
+#PS="auto"                     # PostScript support to use (auto|gs|dps|imp)
+#SGI2FAX="auto"                        # configure SGI image support 
(auto|yes|no)
+#DPS="no"                      # install SGI DPS-based RIP (yes|no)
+#GS="no"                       # install Ghostscript RIP (yes|no)
+#IMP="no"                      # install SGI Impressario 2.1 support (yes|no)
+#REGEX="yes"                   # use distributed regular expression package
+#UTMP="utmpx"                  # type of utmp+wtmp handling (auto|utmp|utmpx)
+#DBLIB="no"                    # use distributed libdb distribution
+
+#
+# Directory parameters.
+#
+DIR_BIN="/usr/bin"             # directory for client apps
+DIR_LIB="/usr/lib"
+DIR_LIBDATA="/usr/lib/fax"             # directory for client data
+DIR_LIBEXEC="/usr/lib/fax"             # directory for libraries&hidden apps
+DIR_MAN="/usr/share/man"               # directory for manual pages
+DIR_SPOOL="/var/spool/hylafax"         # directory for spooling area
+DIR_SBIN="/usr/bin"            # directory for system apps
+DIR_LOCKS="/var/lock"          # directory for UUCP lock files
+FONTMAP="/usr/share/ghostscript/fonts" # directorys containing Fontmap files
+DIR_LOCALE="/usr/share/locale"
+#PATH_AFM="/usr/lib/DPS/AFM"           # directorys for AFM files
+
+#
+# HTML-specific parameters; only used when the
+# HTML package is configured for installation.
+#
+# Note that ``PATH''s are the virtual pathnames used
+# in forming URLs; they are not directory pathnames
+# in the filesystem.
+#
+DIR_HTML="/usr/share/hylafax/httpd"    # directory for HTML documentation
+#DIR_CGI="/var/httpd/cgi-bin"          # directory for CGI scripts
+#HTMLPATH="/hylafax"                   # virtual path to HTML materials
+#CGIPATH="/cgi-bin"                    # virtual path to CGI scripts
+
+#
+# Miscellaneous parameters.
+#
+#DEFVRES="196"                         # default vertical res for outbound fax
+#FILLORDER="MS2LSB"                    # bit order of cpu (MSB2LSB/LSB2MSB)
+#AXGID="uucp"                          # group ID for fax user
+#FAXUID="uucp"                         # user ID for fax user
+#PAGESIZE="North American Letter"      # default page size
+SYSGID="root"                          # group ID for system installs
+SYSUID="root"                          # user ID for system installs
+#LOCKS="ascii"                         # default UUCP lockfile scheme
+#
+#PATH_GETTY="/etc/getty"               # pathname of suitable getty program
+#PATH_VGETTY="/bin/vgetty"             # pathname of voice getty program
+#PATH_EGETTY="/bin/egetty"             # pathname of external getty program
+#PATH_SENDMAIL="/usr/lib/sendmail"     # pathname of suitable sendmail program
+#PATH_GSRIP="/usr/local/bin/gs"                # pathname of Ghostscript-based 
RIP
+#PATH_DPSRIP="/var/spool/hylafax/bin/ps2fax.exe" # pathname of DPS-based RIP
+#PATH_IMPRIP="/usr/lib/print/psrip"    # pathname of Impressario 2.1 RIP
+#MANSCHEME="sysv-source-cat-strip"     # manual page installation scheme
+#SYSVINIT="auto"               # install SysV-style init support (auto|yes|no)
+#DIR_SYSVINIT="/etc/init.d"    # location of SysV-style init script
+#DIR_SYSVINITSTART="../rc2.d"  # location of SysV-style start script
+#DIR_SYSVINITSTOP="../rc0.d"   # location of SysV-style stop script
+#NAME_SYSVINITSTART="S80fax"   # name of SysV-style start script
+#NAME_SYSVINITSTOP="K80fax"    # name of SysV-style stop script
+#FAXQ_SERVER=yes               # init script starts faxq
+#HFAXD_SERVER=yes              # init script starts hfaxd
+#HFAXD_OLD_PROTOCOL=no         # don't start old protocol
+#HFAXD_SNPP_SERVER=no          # don't start paging protocol
+
+# SVR4 packaging stuff
+#PKG_ARCH=                             # ARCH variable in pkginfo file
+#PKG_EMAIL=someone@somehost.somedomain # EMAIL variable in pkginfo file
+#PKG_VENDOR="Your Name Here"           # VENDOR variable in pkginfo file
+#
+
+#
+# Parameters used when building the software.
+#
+# Note that configure has several ENVOPTS built into it that are
+# set according to the target.  This is done to help naive folks.
+#
+# Beware of changing the INSTALL definition; you *must* have an
+# install script that emulates the Silicon Graphics install program!
+#
+#AR="/bin/ar"                          # pathname of suitable ar program
+#AROPTS="rc"                           # options to ar for creating archive
+#CC="gcc"                              # name/pathname of C compiler
+#CXX="gcc"                             # name/pathname of C++ compiler
+#CXXFILE="-x c++"                      # options for proper C++ processing
+#ENVOPTS="-Aa"                         # options for getting ANSI C
+#GCOPTS="-g"                           # options to pass C compiler
+#GCXXOPTS="-g"                         # options to pass C++ compiler
+#GENDIST="/sbin/gendist"               # pathname of SGI inst generator program
+#INSTALL='${SHELL} ${PORT}/install.sh' # SGI install program/emulator
+#LIBMALLOC="auto"                      # yes|no|auto configure -lmalloc use
+#LIBPORT='${PORT}/libport.a'           # library with emulation code
+#LIBSUN="auto"                         # yes|no|auto configure -lsun use
+#LLDOPTS=""                            # extra link line options
+#MACHDEPLIBS=""                                # extra libraries for linking
+#PORTFUNCS=""                          # non-standard functions to emulate
+#PROTOTYPES="-prototypes"              # C compiler options for checking 
function prototypes
+#RANLIB=":"                            # pathname of suitable ranlib program
+#SHDLIBC="-lc_s"                       # shared C library, if not standard
+#SIGHANDLERTYPES='(void(*)(int,...))'  # types to check for signal handler
+#STRIP="/bin/strip"                    # strip program used by install.sh
+
+#
+# The source for the TIFF library is not required
+# to build this software, but the library is required
+# to link against.  If libtiff is installed in a
+# non-standard location then setup LIBTIFF accordingly.
+#
+#LIBTIFF="-L/usr/local/lib -ltiff"     # linkage convention for libtiff
+#TIFFINC="/usr/local/include"          # place to find tiffio.h
+#TIFFBIN="/usr/local/bin"              # where TIFF tools live
+
+#
+# The source for the ZLIB library is not required
+# to build this software, but the library is required
+# to link against.  If ZLIB is installed in a 
+# non-standard location then setup LIBZ accordingly.
+#
+#LIBZ="-L/usr/local/lib -lz"           # linkage convention for libz
+#ZLIBINC="-I/usr/local/include"                # place to find zlib.h
+
+#
+# The source for the POSIX regular expression package
+# is not required to build this software, but the package
+# is required to link against.  If the copy of the software
+# that is included in this distribution is not to be used
+# then set REGEX=no and supply the following definitions.
+#
+#LIBREGEX=" "                          # linkage convention for regex package
+#REGEXINC="/usr/include"               # place to find regex.h
+
+#
+# The LIBDB hashed database package is (currently) used
+# only by the MLA tools that are not publicly available
+# but which are built from within this source tree.  In
+# the future the fax software may use the libdb software
+# for the remote client capabilities database (so these
+# hooks are included now).
+#
+# The source for the LIBDB hashed database package
+# is not required to build this software, but the package
+# is required to link against.  If the copy of the software
+# that is included in this distribution is not to be used
+# then set DBLIB=no and supply the following definitions.
+#
+#LIBDB=" "                             # linkage convention for libdb package
+#DBLIBINC="/usr/include"               # place to find db.h
+
+#
+# Parameters to control various workarounds for system bugs.
+#
+# These parameters are normally set in configure based on
+# the target system.  If they are set here, then they will
+# override anything done by configure.
+#
+#CONFIG_OPENFIFO="O_RDONLY"            # mode to open FIFOs in server proc's
+#CONFIG_FIFOBUG="yes"                  # enable workaround for FIFO select bug
+#CONFIG_TIOCMBISBYREF="yes"            # pass arg by reference to ioctl
+#CONFIG_WINSZHACK="no"                 # include extra files for TIOCWINSZ use
+#CONFIG_ABORTBUG="no"                  # enable workaround for abort problems
+#CONFIG_NOREOPEN="yes"                 # reopen tty device after toggling DTR
+#CONFIG_NOSTDINDUP="yes"               # do not redirect stdout to stdin in 
ondelay
+#CONFIG_BADEXECVPROTO="no"             # system has incorrect execv func decl
+#CONFIG_BADEXECVEPROTO="no"            # system has incorrect execve func decl
+#CONFIG_BADGETOPTPROTO="no"            # system has incorrect getopt func decl
+#CONFIG_SOCKARGLENTYPE="unsigned long" # call-by-ref arg type for socket funcs
+#CONFIG_BADSELECTPROTO="no"            # system has way old select func decl
+#CONFIG_MAXGID="5999"                  # maximum permissable GID
+#CONFIG_OSFCNH="auto"                  # control inclusion of <osfcn.h>
+
+#
+# Dynamic Shared Object (DSO) support.
+#
+# Beware that adding new support for DSOs may require some
+# modifications to the */Makefile.dso files.
+#
+#DSOSUF="so"                           # DSO filename suffix
+#DSODELAY="-delay_load"                        # DSO option for delayed loading
+#DSOOPTS="-shared -rdata_shared"       # options for building DSOs
+
+#
+# Makefile construction parameters.
+#
+# These should not normally be set; configure will
+# deduce the appropriate syntax to use for includes.
+#
+#MAKECXXOVERRIDE="=.C"                 # make override stuff for SunPRO C++
+#MAKEDEPINCLUDE="include"              # make include for dependency files
+#MAKEDSOINCLUDE="#"                    # make include for DSO support
+#MAKEINCLUDE=".include"                        # make include syntax
+#MAKELQUOTE="<"                                # make include syntax
+#MAKERQUOTE=">"                                # make include syntax
+#SETMAKE='MAKE = ${MAKE}'              # define if make does not setup $MAKE
+#MKDEPCOPTS=""                         # C compiler opts to supply w/ -M
+#MKDEPCXXOPTS=""                       # C++ compiler opts to supply w/ -M
+
+#
+# General system stuff used by the distribution.
+#
+# Beware of setting these as configure selects several programs
+# based on whether or not they are capable of processing scripts
+# included in the distribution (e.g AWK and SCRIPT_SH, SED).
+#
+AWK="/usr/bin/awk"                             # pathname of suitable awk 
program
+#CAT="/bin/cat"                                # pathname of suitable cat 
program
+#CHGRP="/etc/chgrp"                    # pathname of suitable chgrp program
+#CHMOD="/etc/chmod"                    # pathname of suitable chmod program
+#CHOWN="/etc/chown"                    # pathname of suitable chown program
+CMP="/usr/bin/cmp"                             # pathname of suitable cmp 
program
+COL="/usr/bin/col"                             # pathname of suitable col 
program
+#CP="/bin/cp"                          # pathname of suitable cp program
+#ECHO="/bin/echo"                      # pathname of suitable echo program
+GREP="/usr/bin/grep"                   # pathname of suitable grep program
+#LN="/bin/ln"                          # pathname of suitable ln program
+#LN_S="-s"                             # option to ${LN} to create symlink
+#MAN="/usr/bin/man"                    # pathname of suitable man program
+#MKDIR="/bin/mkdir"                    # pathname of suitable mkdir program
+MKFIFO="/usr/bin/mkfifo"                       # pathname of suitable mkfifo 
program
+#MV="/bin/mv"                          # pathname of suitable mv program
+#MV_F="-f"                             # option to ${MV} to force operation
+#RMCMD="/bin/rm"                       # pathname of suitable rm program
+#SED="/bin/sed"                                # pathname of suitable sed 
program
+#SCRIPT_SH="/bin/sh"                   # pathname of suitable shell
+SORT="/usr/bin/sort"                   # pathname of suitable sort program

Copied: hylafax/repos/testing-x86_64/faxgetty@.service (from rev 209707, 
hylafax/trunk/faxgetty@.service)
===================================================================
--- testing-x86_64/faxgetty@.service                            (rev 0)
+++ testing-x86_64/faxgetty@.service    2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,24 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=faxgetty on %I
+Documentation=man:faxgetty(8)
+After=faxq.service hfaxd.service
+
+[Service]
+ExecStart=/usr/lib/fax/faxgetty %I
+Type=simple
+Restart=always
+RestartSec=0
+KillMode=process
+
+KillSignal=SIGTERM
+
+[Install]
+WantedBy=multi-user.target
+

Copied: hylafax/repos/testing-x86_64/faxq.service (from rev 209707, 
hylafax/trunk/faxq.service)
===================================================================
--- testing-x86_64/faxq.service                         (rev 0)
+++ testing-x86_64/faxq.service 2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Hyla FAX queue manager
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/faxq
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Copied: hylafax/repos/testing-x86_64/hfaxd.service (from rev 209707, 
hylafax/trunk/hfaxd.service)
===================================================================
--- testing-x86_64/hfaxd.service                                (rev 0)
+++ testing-x86_64/hfaxd.service        2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Hyla FAX client-server
+
+[Service]
+Type=forking
+ExecStart=/usr/lib/fax/hfaxd -i hylafax
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Copied: hylafax/repos/testing-x86_64/hylafax (from rev 209707, 
hylafax/trunk/hylafax)
===================================================================
--- testing-x86_64/hylafax                              (rev 0)
+++ testing-x86_64/hylafax      2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,71 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+DAEMON_NAME="hylafax"
+FAXQ_BIN=/usr/sbin/faxq
+FAXQ_PID=`pidof -o %PPID $FAXQ_BIN`
+HFAXD_BIN=/usr/lib/fax/hfaxd
+HFAXD_PID=`pidof -o %PPID $HFAXD_BIN`
+HFAXD_OPTS="-i hylafax"
+FAXQUIT_BIN=/usr/sbin/faxquit
+
+. /var/spool/hylafax/etc/setup.cache
+
+case "$1" in
+  start)
+    stat_busy "Starting $DAEMON_NAME"
+    [ -z "$FAXQ_PID" ] && $FAXQ_BIN
+    if [ $? -gt 0 ]; then
+      stat_fail
+      exit 1
+    else
+      echo `pidof -o %PPID $FAXQ_BIN` > /var/run/faxq.pid
+    fi
+    [ -z "$HFAXD_PID" ] && $HFAXD_BIN $HFAXD_OPTS
+    if [ $? -gt 0 ]; then
+      stat_fail
+      exit 1
+    else
+      echo `pidof -o %PPID $HFAXD_BIN` > /var/run/hfaxd.pid
+    fi
+    add_daemon $DAEMON_NAME
+    stat_done
+    ;;
+
+  stop)
+    stat_busy "Stopping $DAEMON_NAME"
+        $FAXQUIT_BIN >/dev/null 2>&1
+    if [ $? -gt 0 ]; then
+      [ ! -z "$FAXQ_PID" ]  && kill $FAXQ_PID &> /dev/null
+      if [ $? -gt 0 ]; then
+        stat_fail
+        exit 1
+      else
+        rm /var/run/faxq.pid &> /dev/null
+      fi
+    else
+      rm /var/run/faxq.pid &> /dev/null
+    fi
+    [ ! -z "$HFAXD_PID" ]  && kill $HFAXD_PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+      exit 1
+    else
+      rm /var/run/hfaxd.pid &> /dev/null
+    fi
+    rm_daemon $DAEMON_NAME
+    stat_done
+    ;;
+
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Copied: hylafax/repos/testing-x86_64/hylafax.install (from rev 209707, 
hylafax/trunk/hylafax.install)
===================================================================
--- testing-x86_64/hylafax.install                              (rev 0)
+++ testing-x86_64/hylafax.install      2014-04-01 15:30:13 UTC (rev 209708)
@@ -0,0 +1,42 @@
+
+print_install() {
+  printf "\n"
+  echo "Run faxsetup to configure and be sure to set..."
+  echo "  The device to configure is usually ttyS0"
+  echo "  The number of pages to accept to more than 25"
+  echo "  The country code and area code"
+  echo "  The faxclass to 2.0"
+  echo "  Most other defaults are OK"
+  printf "\n"
+}
+
+print_remove() {
+  printf "\n\n"
+  echo "You may manually remove /var/spool/hylafax and /usr/lib/fax if you do 
not need anything."
+  echo "You may also remove any aliases added to /etc/mail/aliases."
+  printf "\n"
+}
+
+post_install() {
+  post_upgrade
+  print_install
+}
+
+post_upgrade() {
+  groupadd -g 14 uucp &>/dev/null
+  useradd -u 10 -g uucp -d '/' -s /bin/false uucp &>/dev/null
+  useradd -u 69 -g daemon -d '/' -s /bin/false fax &>/dev/null
+  chown uucp /var/spool/hylafax/{,archive,bin,client,config,dev,docq,doneq,etc}
+  chown uucp /var/spool/hylafax/{FIFO,info,log,pollq,recvq,sendq,status,tmp}
+  chown uucp /var/spool/hylafax/etc/{hosts.hfaxd,lutRS18.pcf,xferfaxlog}
+  chown -R uucp /var/spool/hylafax/etc/templates
+  usermod -d '/' uucp &>/dev/null
+  usermod -d '/' fax &>/dev/null
+}
+
+pre_remove() {
+  userdel uucp &>/dev/null
+  groupdel uucp &>/dev/null
+  userdel fax &>/dev/null
+  print_remove
+}

Reply via email to