1 |
# $Id: smeserver-hylafax.spec,v 1.1 2013/05/24 20:46:32 unnilennium Exp $ |
# $Id: smeserver-hylafax.spec,v 1.2 2016/05/03 05:29:10 unnilennium Exp $ |
2 |
# Authority: dungog |
# Authority: dungog |
3 |
# Name: Stephen Noble |
# Name: Stephen Noble |
4 |
|
|
5 |
%define name smeserver-hylafax |
%define name smeserver-hylafax |
6 |
%define version 0.9 |
%define version 0.9 |
7 |
%define release 6 |
%define release 8 |
8 |
Summary: Set up hylafax for sending and receiving facsimiles. |
Summary: Set up hylafax for sending and receiving facsimiles. |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
14 |
Group: SMEserver/addon |
Group: SMEserver/addon |
15 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
16 |
Patch1: smeserver-hylafax-0.9-6.symlink.patch |
Patch1: smeserver-hylafax-0.9-6.symlink.patch |
17 |
|
Patch2: smeserver-hylafax-0.9.sme9.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
26 |
HylaFAX is an enterprise-class system for sending and receiving facsimiles |
HylaFAX is an enterprise-class system for sending and receiving facsimiles |
27 |
|
|
28 |
%changelog |
%changelog |
29 |
|
* Wed May 04 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.9-8.sme |
30 |
|
- fix permission problem on xferfaxlog [SME: 7828] |
31 |
|
|
32 |
|
* Tue May 03 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.9-7.sme |
33 |
|
- fix hylafax does not start on SME9 [SME: 9485] |
34 |
|
- thank to bunkobugsy for reporting and providing the solution |
35 |
|
|
36 |
* Wed Sep 12 2007 John H. Bennett III <bennettj@johnbennettservices.com> 0.9-6 |
* Wed Sep 12 2007 John H. Bennett III <bennettj@johnbennettservices.com> 0.9-6 |
37 |
- Patch to move the files that were being copied to |
- Patch to move the files that were being copied to |
38 |
/etc/hylafax/etx to var/spool/hylafax/etc/ so that |
/etc/hylafax/etx to var/spool/hylafax/etc/ so that |
65 |
%setup |
%setup |
66 |
|
|
67 |
%patch1 -p1 |
%patch1 -p1 |
68 |
|
%patch2 -p1 |
69 |
|
|
70 |
|
|
71 |
%build |
%build |
72 |
perl createlinks |
perl createlinks |
75 |
echo "service" > root/etc/e-smith/db/configuration/defaults/hylafax/type |
echo "service" > root/etc/e-smith/db/configuration/defaults/hylafax/type |
76 |
echo "enabled" > root/etc/e-smith/db/configuration/defaults/hylafax/status |
echo "enabled" > root/etc/e-smith/db/configuration/defaults/hylafax/status |
77 |
echo "ttyS0" > root/etc/e-smith/db/configuration/defaults/hylafax/port |
echo "ttyS0" > root/etc/e-smith/db/configuration/defaults/hylafax/port |
78 |
|
/bin/touch root/var/spool/hylafax/etc/xferfaxlog |
79 |
|
|
80 |
%install |
%install |
81 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
86 |
--file '/var/spool/hylafax/mimetype/application/ps' 'attr(0755,root,root)' \ |
--file '/var/spool/hylafax/mimetype/application/ps' 'attr(0755,root,root)' \ |
87 |
--file '/var/spool/hylafax/mimetype/image/tiff' 'attr(0755,root,root)' \ |
--file '/var/spool/hylafax/mimetype/image/tiff' 'attr(0755,root,root)' \ |
88 |
--file '/var/spool/hylafax/etc/mailfax' 'attr(0755,root,root)' \ |
--file '/var/spool/hylafax/etc/mailfax' 'attr(0755,root,root)' \ |
89 |
|
--file '/var/spool/hylafax/etc/xferfaxlog' 'attr(0755,uucp,uucp)' \ |
90 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
91 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
92 |
|
|
97 |
%pre |
%pre |
98 |
%preun |
%preun |
99 |
%post |
%post |
100 |
/sbin/e-smith/expand-template /etc/hylafax/hyla.conf |
# remarq as this should not be here |
101 |
/sbin/e-smith/expand-template /etc/inittab |
#/sbin/e-smith/expand-template /etc/hylafax/hyla.conf |
102 |
/bin/rm -f /etc/cron.daily/hylafax |
#/sbin/e-smith/expand-template /etc/init/ttyS0.conf |
103 |
/bin/touch /var/spool/hylafax/etc/xferfaxlog |
#/bin/rm -f /etc/cron.daily/hylafax |
104 |
echo "see http://wiki.contribs.org/HylaFax" |
#/bin/touch /var/spool/hylafax/etc/xferfaxlog |
105 |
|
#echo "see http://wiki.contribs.org/HylaFax" |
106 |
|
|
107 |
%postun |
%postun |
108 |
/sbin/e-smith/expand-template /etc/inittab |
/sbin/e-smith/expand-template /etc/inittab |