/[smecontribs]/rpms/smeserver-hylafax/contribs7/smeserver-hylafax-0.9.spec
ViewVC logotype

Contents of /rpms/smeserver-hylafax/contribs7/smeserver-hylafax-0.9.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sat Dec 22 21:44:45 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.1: +1 -1 lines
Add dist to release

1 Summary: Set up hylafax for sending and receiving facsimiles.
2 %define name smeserver-hylafax
3 Name: %{name}
4 %define version 0.9
5 %define release 4
6 Version: %{version}
7 Release: %{release}%{?dist}
8 Vendor: http://www.hylafax.org/
9 License: GPL
10 URL: http://www.hylafax.org/
11 Distribution: SME Server
12 Group: Mitel/addon
13 Source: %{name}-%{version}.tar.gz
14 Packager: Stephen Noble <stephen@dungog.net>
15 BuildRoot: /var/tmp/%{name}-%{version}
16 BuildArchitectures: noarch
17 Requires: e-smith-release >= 7.1
18 Requires: hylafax >= 4.3
19 AutoReqProv: no
20
21 %description
22 HylaFAX is an enterprise-class system for sending and receiving facsimiles
23
24 %changelog
25 * Wed Feb 28 2007 Stephen Noble <stephen@dungog.net> 0.9-4
26 - rename to /var/spool/hylafax/mimetype/image/tiff
27 - touch /var/spool/hylafax/etc/xferfaxlog
28
29 * Wed Feb 14 2007 Stephen Noble <stephen@dungog.net> 0.9-3
30 - FaxSender user added
31
32 * Sun Feb 11 2007 Stephen Noble <stephen@dungog.net> 0.9-2
33 - FaxNotify added, virtualdomains altered
34
35 * Sat Feb 10 2007 Stephen Noble <stephen@dungog.net> 0.9-1
36 - initial release
37
38 %prep
39 %setup
40
41 %build
42 perl createlinks
43
44 mkdir -p root/etc/e-smith/db/configuration/defaults/hylafax
45 echo "service" > root/etc/e-smith/db/configuration/defaults/hylafax/type
46 echo "enabled" > root/etc/e-smith/db/configuration/defaults/hylafax/status
47 echo "ttyS0" > root/etc/e-smith/db/configuration/defaults/hylafax/port
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
52 rm -f %{name}-%{version}-filelist
53 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
54 --file '/var/spool/hylafax/mimetype/application/pdf' 'attr(0755,root,root)' \
55 --file '/var/spool/hylafax/mimetype/application/ps' 'attr(0755,root,root)' \
56 --file '/var/spool/hylafax/mimetype/image/tiff' 'attr(0755,root,root)' \
57 --file '/etc/hylafax/etc/mailfax' 'attr(0755,root,root)' \
58 > %{name}-%{version}-filelist
59 echo "%doc COPYING" >> %{name}-%{version}-filelist
60
61 %clean
62 cd ..
63 rm -rf %{name}-%{version}
64
65 %pre
66 %preun
67 %post
68 /sbin/e-smith/expand-template /etc/hylafax/hyla.conf
69 /sbin/e-smith/expand-template /etc/inittab
70 /bin/rm -f /etc/cron.daily/hylafax
71 /bin/touch /var/spool/hylafax/etc/xferfaxlog
72 echo "see http://wiki.contribs.org/HylaFax"
73
74 %postun
75 /sbin/e-smith/expand-template /etc/inittab
76 /sbin/init q
77
78 %files -f %{name}-%{version}-filelist
79 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed