# $Id: smeserver-hylafax.spec,v 1.1 2013/05/24 20:46:32 unnilennium Exp $ # Authority: dungog # Name: Stephen Noble %define name smeserver-hylafax %define version 0.9 %define release 6 Summary: Set up hylafax for sending and receiving facsimiles. Name: %{name} Version: %{version} Release: %{release}%{?dist} License: GNU GPL version 2 URL: http://www.hylafax.org/ Group: SMEserver/addon Source: %{name}-%{version}.tar.gz Patch1: smeserver-hylafax-0.9-6.symlink.patch BuildRoot: /var/tmp/%{name}-%{version} BuildArchitectures: noarch BuildRequires: e-smith-devtools >= 1.13.1-03 Requires: e-smith-release >= 7.1 Requires: hylafax >= 4.3 AutoReqProv: no %description HylaFAX is an enterprise-class system for sending and receiving facsimiles %changelog * Wed Sep 12 2007 John H. Bennett III 0.9-6 - Patch to move the files that were being copied to /etc/hylafax/etx to var/spool/hylafax/etc/ so that a yum install will install all RPM's without any errors - Modify spec file to change directory where the permissions are applied to for mailfax * Thu Jul 05 2007 Stephen Noble - Build on lordsfam * Mon Jun 11 2007 Stephen Noble 0.9-5 - mimetype/application/pdf fixed [SME: 3000] - FaxNotify fixed [SME: 3000] - if (status eq disabled) hylafax is removed from inittab * Wed Feb 28 2007 Stephen Noble 0.9-4 - rename to /var/spool/hylafax/mimetype/image/tiff - touch /var/spool/hylafax/etc/xferfaxlog * Wed Feb 14 2007 Stephen Noble 0.9-3 - FaxSender user added * Sun Feb 11 2007 Stephen Noble 0.9-2 - FaxNotify added, virtualdomains altered * Sat Feb 10 2007 Stephen Noble 0.9-1 - initial release %prep %setup %patch1 -p1 %build perl createlinks mkdir -p root/etc/e-smith/db/configuration/defaults/hylafax echo "service" > root/etc/e-smith/db/configuration/defaults/hylafax/type echo "enabled" > root/etc/e-smith/db/configuration/defaults/hylafax/status echo "ttyS0" > root/etc/e-smith/db/configuration/defaults/hylafax/port %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ --file '/var/spool/hylafax/mimetype/application/pdf' 'attr(0755,root,root)' \ --file '/var/spool/hylafax/mimetype/application/ps' 'attr(0755,root,root)' \ --file '/var/spool/hylafax/mimetype/image/tiff' 'attr(0755,root,root)' \ --file '/var/spool/hylafax/etc/mailfax' 'attr(0755,root,root)' \ > %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist %clean cd .. rm -rf %{name}-%{version} %pre %preun %post /sbin/e-smith/expand-template /etc/hylafax/hyla.conf /sbin/e-smith/expand-template /etc/inittab /bin/rm -f /etc/cron.daily/hylafax /bin/touch /var/spool/hylafax/etc/xferfaxlog echo "see http://wiki.contribs.org/HylaFax" %postun /sbin/e-smith/expand-template /etc/inittab /sbin/init q %files -f %{name}-%{version}-filelist %defattr(-,root,root)