source: projects/specs/trunk/m/mgetty/mgetty-vl.spec @ 9684

Revision 9684, 16.7 KB checked in by Takemikaduchi, 9 years ago (diff)

gnumeric, goffice, libgsf, maxima, gnupg: update
others: rebuild

Line 
1%define SENDFAX_UID 78
2
3Summary: A getty replacement for use with data and fax modems.
4Name: mgetty
5Version: 1.1.36
6Release: 2%{?_dist_release}
7Source: ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/mgetty%{version}-Jun15.tar.gz
8Source1: logrotate.mgetty
9Source2: logrotate.sendfax
10Source3: logrotate.vgetty
11Source4: logrotate.vm
12Patch0: mgetty-1.1.29-config.patch
13Patch1: mgetty-1.1.26-policy.patch
14Patch4: mgetty-1.1.25-voiceconfig.patch
15Patch5: mgetty-1.1.26-issue.patch
16Patch6: mgetty-1.1.31-issue-doc.patch
17Patch7: mgetty-1.1.29-helper.patch
18Patch8: mgetty-1.1.30-mktemp.patch
19Patch9: mgetty-1.1.30-unioninit.patch
20Patch11: mgetty-1.1.31-helper2.patch
21Patch12: mgetty-1.1.31-no-acroread.patch
22Patch14: mgetty-1.1.31-sendmail_path.patch
23Patch15: mgetty-1.1.31-lfs.patch
24Patch16: mgetty-1.1.31-162174_tcflush.patch
25Patch18: mgetty-1.1.33-bug_63843.patch
26Patch19: mgetty-1.1.33-167830_tty_access.patch
27Patch20: mgetty-1.1.33-167830.patch
28Patch21: mgetty-1.1.33-turn.patch
29Patch22: mgetty-1.1.33-time_range.patch
30Patch23: mgetty-1.1.36-handle_spaces.patch
31Patch24: mgetty-1.1.36-man.patch
32
33URL: http://mgetty.greenie.net/
34License: GPLv2+
35Group: Applications/Communications
36Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
37
38Requires(post): /sbin/install-info
39Requires(preun): /sbin/install-info
40BuildRequires: libX11-devel, libXext-devel, texinfo, texlive
41Requires: mktemp
42Requires: sendmail
43
44
45%package sendfax
46Summary: Provides support for sending faxes over a modem
47Requires: mgetty = %{version}
48Group: Applications/Communications
49Requires: mktemp
50Requires: netpbm-progs
51Requires(pre): shadow-utils
52
53%package voice
54Summary: A program for using your modem and mgetty as an answering machine
55Requires: mgetty = %{version}
56Group: Applications/Communications
57
58%package viewfax
59Summary: An X Window System fax viewer
60Group: Applications/Communications
61
62%description
63The mgetty package contains a "smart" getty which allows logins over a
64serial line (i.e., through a modem).  If you're using a Class 2 or 2.0
65modem, mgetty can receive faxes.  If you also need to send faxes,
66you'll need to install the sendfax program.
67
68If you'll be dialing in to your system using a modem, you should
69install the mgetty package.  If you'd like to send faxes using mgetty
70and your modem, you'll need to install the mgetty-sendfax program.  If
71you need a viewer for faxes, you'll also need to install the
72mgetty-viewfax package.
73
74%description sendfax
75Sendfax is a standalone backend program for sending fax files.  The
76mgetty program (a getty replacement for handling logins over a serial
77line) plus sendfax will allow you to send faxes through a Class 2
78modem.
79
80If you'd like to send faxes over a Class 2 modem, you'll need to
81install the mgetty-sendfax and the mgetty packages.
82
83%description voice
84The mgetty-voice package contains the vgetty system, which enables
85mgetty and your modem to support voice capabilities.  In simple terms,
86vgetty lets your modem act as an answering machine.  How well the
87system will work depends upon your modem, which may or may not be able
88to handle this kind of implementation.
89
90Install mgetty-voice along with mgetty if you'd like to try having
91your modem act as an answering machine.
92
93%description viewfax
94Viewfax displays the fax files received using mgetty in an X11 window.
95Viewfax is capable of zooming in and out on the displayed fax.
96
97If you're installing the mgetty-viewfax package, you'll also need to
98install mgetty.
99
100%prep
101%setup -q
102mv policy.h-dist policy.h
103%patch0 -p1 -b .config
104%patch1 -p1 -b .policy
105%patch4 -p1 -b .voiceconfig
106%patch5 -p1 -b .issue
107%patch6 -p1 -b .issue-doc
108%patch7 -p1 -b .helper
109%patch8 -p1 -b .mktemp
110%patch9 -p1 -b .unioninit
111%patch11 -p1 -b .helper2
112%patch12 -p1 -b .no-acroread
113%patch14 -p1 -b .sendmail_path
114%patch15 -p1 -b .lfs
115%patch16 -p1 -b .162174_tcflush
116%patch18 -p1 -b .bug_63843
117%patch19 -p1 -b .167830_tty_access
118%patch20 -p1 -b .167830
119%patch21 -p1 -b .turn
120%patch22 -p1 -b .time_range
121%patch23 -p1 -b .handle_spaces
122%patch24 -p1 -b .man
123
124%build
125%define makeflags CFLAGS="$RPM_OPT_FLAGS -Wall -DAUTO_PPP -D_FILE_OFFSET_BITS=64" prefix=%{_prefix} spool=%{_var}/spool BINDIR=%{_bindir} SBINDIR=%{_sbindir} LIBDIR=%{_libdir}/mgetty+sendfax HELPDIR=%{_libdir}/mgetty+sendfax CONFDIR=%{_sysconfdir}/mgetty+sendfax MANDIR=%{_mandir} MAN1DIR=%{_mandir}/man1 MAN4DIR=%{_mandir}/man4 MAN5DIR=%{_mandir}/man5 MAN8DIR=%{_mandir}/man8 INFODIR=%{_infodir} ECHO='"echo -e"' INSTALL=%{__install}
126make %{makeflags}
127make -C voice %{makeflags}
128make -C tools %{makeflags}
129
130pushd frontends/X11/viewfax
131make OPT="$RPM_OPT_FLAGS" CONFDIR=%{_sysconfdir}/mgetty+sendfax
132popd
133
134%install
135rm -rf $RPM_BUILD_ROOT
136
137mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_infodir},%{_libdir}/mgetty+sendfax}
138mkdir -p $RPM_BUILD_ROOT{%{_mandir},%{_sbindir},/sbin,/var/spool}
139
140%define instflags CFLAGS="$RPM_OPT_FLAGS -Wall -DAUTO_PPP" prefix=$RPM_BUILD_ROOT%{_prefix} spool=$RPM_BUILD_ROOT%{_var}/spool BINDIR=$RPM_BUILD_ROOT%{_bindir} SBINDIR=$RPM_BUILD_ROOT%{_sbindir} LIBDIR=$RPM_BUILD_ROOT%{_libdir}/mgetty+sendfax HELPDIR=$RPM_BUILD_ROOT%{_libdir}/mgetty+sendfax CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir}/mgetty+sendfax MANDIR=$RPM_BUILD_ROOT%{_mandir} MAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 MAN4DIR=$RPM_BUILD_ROOT%{_mandir}/man4 MAN5DIR=$RPM_BUILD_ROOT%{_mandir}/man5 MAN8DIR=$RPM_BUILD_ROOT%{_mandir}/man8 INFODIR=$RPM_BUILD_ROOT%{_infodir} ECHO='echo -e' INSTALL=%{__install}
141
142make install %instflags
143# the non-standard executable permissions are used due to security
144install -m700 callback/callback $RPM_BUILD_ROOT%{_sbindir}
145# helper tests internally usage of suid - this is an intention
146install -m4711 callback/ct $RPM_BUILD_ROOT%{_bindir}
147
148mv $RPM_BUILD_ROOT%{_sbindir}/mgetty $RPM_BUILD_ROOT/sbin
149
150# this conflicts with efax
151mv $RPM_BUILD_ROOT%{_mandir}/man1/fax.1 $RPM_BUILD_ROOT%{_mandir}/man1/mgetty_fax.1
152
153# tools
154make -C tools install %instflags
155
156# voice mail extensions
157mkdir -p $RPM_BUILD_ROOT%{_var}/spool/voice/{messages,incoming}
158make -C voice install %instflags
159mv $RPM_BUILD_ROOT%{_sbindir}/vgetty $RPM_BUILD_ROOT/sbin
160# the non-standard permissions are used due to security
161install -m 600 -c voice/voice.conf-dist $RPM_BUILD_ROOT%{_sysconfdir}/mgetty+sendfax/voice.conf
162
163# don't ship documentation that is executable...
164find samples -type f -exec chmod 644 {} \;
165
166make -C frontends/X11/viewfax install %instflags MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
167
168# install logrotate control files
169mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
170install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/mgetty
171install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/sendfax
172install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/vgetty
173install -m 0644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/vm
174
175# remove file droppings from $RPM_BUILD_ROOT
176rm -f $RPM_BUILD_ROOT%{_bindir}/cutbl
177
178# remove file conflict with netpbm:
179rm -f $RPM_BUILD_ROOT%{_bindir}/g3topbm
180
181%clean
182rm -rf $RPM_BUILD_ROOT
183
184%post
185if [ -f %{_infodir}/mgetty.inf* ]; then
186        /sbin/install-info %{_infodir}/mgetty.info.gz %{_infodir}/dir --entry="* mgetty: (mgetty).              Package to handle faxes, voicemail and more." || :
187fi
188
189%preun
190if [ -f %{_infodir}/mgetty.inf* ]; then
191        /sbin/install-info --delete %{_infodir}/mgetty.info.gz %{_infodir}/dir --entry="* mgetty: (mgetty).             Package to handle faxes, voicemail and more." || :
192fi
193
194%pre sendfax
195getent group fax >/dev/null || groupadd -g %SENDFAX_UID -r fax
196getent passwd fax >/dev/null || \
197  useradd -r -u %SENDFAX_UID -g fax -d /var/spool/fax -s /sbin/nologin -c "mgetty fax spool user" fax
198exit 0
199
200
201%files
202%defattr(-,root,root)
203%doc BUGS ChangeLog README.1st Recommend THANKS doc/modems.db samples
204%doc doc/mgetty.ps doc/*.txt
205%{_bindir}/g3cat
206%{_bindir}/g32pbm
207/sbin/mgetty
208%{_sbindir}/callback
209%{_mandir}/man1/g32pbm.1*
210%{_mandir}/man1/g3cat.1*
211%{_mandir}/man4/mgettydefs.4*
212%{_mandir}/man8/mgetty.8*
213%{_mandir}/man8/callback.8*
214%{_infodir}/mgetty.info*
215%dir %{_sysconfdir}/mgetty+sendfax
216%config(noreplace) %{_sysconfdir}/mgetty+sendfax/login.config
217%config(noreplace) %{_sysconfdir}/mgetty+sendfax/mgetty.config
218%config(noreplace) %{_sysconfdir}/mgetty+sendfax/dialin.config
219%config(noreplace) %{_sysconfdir}/logrotate.d/mgetty
220
221%files sendfax
222%defattr(-,root,root)
223%dir %{_var}/spool/fax
224%attr(0755,fax,root) %dir %{_var}/spool/fax/incoming
225%attr(0755,fax,root) %dir %{_var}/spool/fax/outgoing
226%attr(0755,root,root) %{_bindir}/ct
227%{_bindir}/faxq
228%{_bindir}/faxrm
229%{_bindir}/faxrunq
230%{_bindir}/faxspool
231%{_bindir}/kvg
232%{_bindir}/newslock
233%{_bindir}/pbm2g3
234%{_bindir}/sff2g3
235%{_sbindir}/faxrunqd
236%{_sbindir}/sendfax
237%dir %{_libdir}/mgetty+sendfax
238%{_libdir}/mgetty+sendfax/cour25.pbm
239%{_libdir}/mgetty+sendfax/cour25n.pbm
240# helper tests internally usage of suid - this is an intention
241%attr(04711,fax,root) %{_libdir}/mgetty+sendfax/faxq-helper
242%{_mandir}/man1/pbm2g3.1*
243%{_mandir}/man1/mgetty_fax.1*
244%{_mandir}/man1/faxspool.1*
245%{_mandir}/man1/faxrunq.1*
246%{_mandir}/man1/faxq.1*
247%{_mandir}/man1/faxrm.1*
248%{_mandir}/man1/coverpg.1*
249%{_mandir}/man1/sff2g3.1*
250%{_mandir}/man5/faxqueue.5*
251%{_mandir}/man8/faxq-helper.8*
252%{_mandir}/man8/faxrunqd.8*
253%{_mandir}/man8/sendfax.8*
254%dir %{_sysconfdir}/mgetty+sendfax
255%config(noreplace) %{_sysconfdir}/mgetty+sendfax/sendfax.config
256%config(noreplace) %{_sysconfdir}/mgetty+sendfax/faxrunq.config
257# sample config file doesn't use noreplace option to be installed always latest ver.
258%config %{_sysconfdir}/mgetty+sendfax/faxspool.rules.sample
259%config(noreplace) %{_sysconfdir}/mgetty+sendfax/faxheader
260# logrotate file name uses only sub-package name
261%config(noreplace) %{_sysconfdir}/logrotate.d/sendfax
262
263%files voice
264%defattr(-,root,root)
265%doc voice/doc/* voice/Announce voice/ChangeLog voice/Readme
266%dir %{_var}/spool/voice
267%dir %{_var}/spool/voice/incoming
268%dir %{_var}/spool/voice/messages
269/sbin/vgetty
270%{_bindir}/vm
271%{_bindir}/pvfamp
272%{_bindir}/pvfcut
273%{_bindir}/pvfecho
274%{_bindir}/pvffft
275%{_bindir}/pvffile
276%{_bindir}/pvffilter
277%{_bindir}/pvfmix
278%{_bindir}/pvfnoise
279%{_bindir}/pvfreverse
280%{_bindir}/pvfsine
281%{_bindir}/pvfspeed
282%{_bindir}/rmdfile
283%{_bindir}/pvftormd
284%{_bindir}/rmdtopvf
285%{_bindir}/pvftovoc
286%{_bindir}/voctopvf
287%{_bindir}/pvftolin
288%{_bindir}/lintopvf
289%{_bindir}/pvftobasic
290%{_bindir}/basictopvf
291%{_bindir}/pvftoau
292%{_bindir}/autopvf
293%{_bindir}/pvftowav
294%{_bindir}/wavtopvf
295%{_mandir}/man1/zplay.1*
296%{_mandir}/man1/pvf.1*
297%{_mandir}/man1/pvfamp.1*
298%{_mandir}/man1/pvfcut.1*
299%{_mandir}/man1/pvfecho.1*
300%{_mandir}/man1/pvffile.1*
301%{_mandir}/man1/pvffft.1*
302%{_mandir}/man1/pvfmix.1*
303%{_mandir}/man1/pvfreverse.1*
304%{_mandir}/man1/pvfsine.1*
305%{_mandir}/man1/pvfspeed.1*
306%{_mandir}/man1/pvftormd.1*
307%{_mandir}/man1/pvffilter.1*
308%{_mandir}/man1/pvfnoise.1*
309%{_mandir}/man1/rmdtopvf.1*
310%{_mandir}/man1/rmdfile.1*
311%{_mandir}/man1/pvftovoc.1*
312%{_mandir}/man1/voctopvf.1*
313%{_mandir}/man1/pvftolin.1*
314%{_mandir}/man1/lintopvf.1*
315%{_mandir}/man1/pvftobasic.1*
316%{_mandir}/man1/basictopvf.1*
317%{_mandir}/man1/pvftoau.1*
318%{_mandir}/man1/autopvf.1*
319%{_mandir}/man1/pvftowav.1*
320%{_mandir}/man1/wavtopvf.1*
321%{_mandir}/man8/vgetty.8*
322%dir %{_sysconfdir}/mgetty+sendfax
323%config(noreplace) %{_sysconfdir}/mgetty+sendfax/voice.conf
324# logrotate file name uses only sub-package name
325%config(noreplace) %{_sysconfdir}/logrotate.d/vgetty
326%config(noreplace) %{_sysconfdir}/logrotate.d/vm
327
328%files viewfax
329%defattr(-,root,root)
330%doc frontends/X11/viewfax/C* frontends/X11/viewfax/README
331%{_bindir}/viewfax
332%dir %{_libdir}/mgetty+sendfax
333%{_libdir}/mgetty+sendfax/viewfax.tif
334%{_mandir}/man1/viewfax.1*
335
336
337%changelog
338* Thu Jul 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.36-2
339- rebuild with VineSeed environment
340
341* Sat Jun 11 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.36-1
342- update to 1.1.36
343- merge spec file with fedora package
344
345* Wed Dec 19 2001 Toru Sagami <sagami@vinelinux.org> 1.1.25-5vl4
346- change %%define mkdtemp 1 in oreder to build on glibc22 system
347
348* Thu Nov 15 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.25-5vl3
349- BuildPreReq: pTex, pLaTeX2e -> tetex again :)
350- (Machino-san previously put 5vl2, but the src.rpm was gone...)
351
352* Thu May 24 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
353- 1.1.25-5vl1
354- based on 1.1.25-5 from RH 7.1 security update
355- BuildPreReq pTeX and pLaTeX2e instead of tetex and tetex-latex
356- change %%define mkdtemp 0 (current Vine is based on glibc-2.1.3 yet)
357
358* Wed Apr 18 2001 Nalin Dahyabhai <nalin@redhat.com>
359- define _sysconfdir, not sysconfdir
360
361* Mon Apr 16 2001 Nalin Dahyabhai <nalin@redhat.com>
362- add logrotate.vm and logrotate.vgetty (note from Heiner Kordewiner)
363- add voice/{Announce,Changelog,Readme} to documentation set
364
365* Tue Apr 10 2001 Nalin Dahyabhai <nalin@redhat.com>
366- define CNDFILE in policy.h
367
368* Tue Mar 20 2001 Nalin Dahyabhai <nalin@redhat.com>
369- change the default group in the vgetty configuration file from phone to uucp,
370  which matches the settings for faxes
371
372* Tue Mar 13 2001 Nalin Dahyabhai <nalin@redhat.com>
373- update to 1.1.25
374- ditch the elsa patch in favor of the current vgetty patch
375- don't need to strip binaries, buildroot policies do that
376- add docs to the voice subpackage
377
378* Tue Jan 16 2001 Nalin Dahyabhai <nalin@redhat.com>
379- use mkdtemp() when printing faxes
380
381* Mon Jan 15 2001 Preston Brown <pbrown@redhat.com>
382- fix misdetection of USR voice modem detection <cjj@u.washington.edu>
383
384* Mon Jan 08 2001 Preston Brown <pbrown@redhat.com>
385- 1.1.24 includes tmpfile security enhancements, some of our patches
386
387* Tue Sep 19 2000 Nalin Dahyabhai <nalin@redhat.com>
388- back out quoting patch
389- change Copyright: distributable to License: GPL
390- add URL
391- remove logging changes from excl patch, based on input from Gert
392- rework ia64 patch, break out gets/fgets change based on input from Gert
393
394* Thu Sep  7 2000 Nalin Dahyabhai <nalin@redhat.com>
395- make sure all scripts quote variables where possible (#17179)
396- make sure all scripts use mktemp for generating temporary files
397
398* Sat Aug 26 2000 Bill Nottingham <notting@redhat.com>
399- update to 1.1.22; fixes security issues
400
401* Mon Aug  7 2000 Nalin Dahyabhai <nalin@redhat.com>
402- fix excl patch to keep everything from segfaulting all the time (#11523,11590)
403
404* Mon Jul 24 2000 Nalin Dahyabhai <nalin@redhat.com>
405- forcibly strip binaries (#12431)
406- change dependency on libgr-progs (which is gone) to netgr-progs (#10819)
407- change dependency on giftoppm to giftopnm (#8088)
408- attempt to plug some potential security problems (#11874)
409
410* Wed Jul 12 2000 Than Ngo <than@redhat.de>
411- add new V250modem patch from ELSA (thanks to Jen Kosel)
412
413* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
414- automatic rebuild
415
416* Fri Jun 23 2000 Than Ngo <than@redhat.de>
417- add support ELSA Microlink 56k
418
419* Sun Jun  4 2000 Nalin Dahyabhai <nalin@redhat.com>
420- Overhaul for FHS fixes.
421- Stop removing logs in postun.
422- Stop stripping everything.
423- ia64 fixes.
424
425* Wed May 17 2000 Ngo Than <than@redhat.de>
426- updated the new vgetty (#bug 10440)
427
428* Sat May  6 2000 Bill Nottingham <notting@redhat.com>
429- fix compilation with new gcc, or ia64, or something...
430
431* Tue Mar  7 2000 Jeff Johnson <jbj@redhat.com>
432- rebuild for sparc baud rates > 38400.
433
434* Thu Feb 03 2000 Cristian Gafton <gafton@redhat.com>
435- man pages are compressed
436
437* Tue Sep  7 1999 Jeff Johnson <jbj@redhat.com>
438- add fax print command (David Fox).
439
440* Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com>
441- version 1.1.21
442
443* Tue Aug 31 1999 Jeff Johnson <jbj@redhat.com>
444- move callback to base package (#4799).
445
446* Wed Jun  2 1999 Jeff Johnson <jbj@redhat.com>
447- update to 1.1.20 (#3216).
448
449* Tue Apr  6 1999 Bill Nottingham <notting@redhat.com>
450- strip setuid bit from ct
451
452* Tue Mar 23 1999 Preston Brown <pbrown@redhat.com>
453- better log handling
454
455* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
456- rebuild for glibc 2.1
457
458* Sat Aug 22 1998 Jos Vos <jos@xos.nl>
459- Use a patch for creating policy.h using policy.h-dist.
460- Add viewfax subpackage (X11 fax viewing program).
461- Add logrotate config files for mgetty and sendfax log files.
462- Properly define ECHO in Makefile for use with bash.
463- Add optional use of dialin.config (for modems supporting this).
464- Change default notification address to "root" (was "faxadmin").
465- Change log file names according to better defaults.
466- Change default notify program to /etc/mgetty+sendfax/new_fax (was
467  /usr/local/bin/new_fax).
468
469* Fri Aug 21 1998 Jeff Johnson <jbj@redhat.com>
470- add faxrunqd man page (problem #850)
471- add missing pbm2g3 (and man page); remove unnecessary "rm -f pbmtog3"
472- delete redundant ( cd tools; make ... )
473
474* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
475- translations modified for de, fr, tr
476
477* Fri Apr 10 1998 Cristian Gafton <gafton@redhat.com>
478- updated to 1.1.14
479- AutoPPP patch
480 
481* Thu Dec 18 1997 Mike Wangsmo <wanger@redhat.com>
482- added more of the documentation files to the rpm
483
484* Wed Oct 29 1997 Otto Hammersmith <otto@redhat.com>
485- added install-info support
486
487* Tue Oct 21 1997 Otto Hammersmith <otto@redhat.com>
488- updated version
489
490* Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
491- now requires libgr-progs instead of netpbm
492
493* Mon Aug 25 1997 Erik Troan <ewt@redhat.com>
494- built against glibc
Note: See TracBrowser for help on using the repository browser.