1 |
# $Id: smeserver-hylafax.spec,v 1.1 2016/05/03 05:09:48 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 7 |
%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} |
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 |
* Tue May 03 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.9-7.sme |
33 |
- fix hylafax does not start on SME9 [SME: 9485] |
- fix hylafax does not start on SME9 [SME: 9485] |
34 |
- thank to bunkobugsy for reporting and providing the solution |
- thank to bunkobugsy for reporting and providing the solution |
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 |