1 |
slords |
1.1 |
# |
2 |
|
|
# RPM spec file for Dan Bernstein's fastforward package |
3 |
|
|
# |
4 |
|
|
# $Id: fastforward.spec,v 1.5 2005/10/11 14:36:05 charlieb Exp $ |
5 |
|
|
# |
6 |
|
|
Summary: fastforward handles qmail forwarding according to a cdb database |
7 |
|
|
%define name fastforward |
8 |
|
|
Name: %{name} |
9 |
|
|
%define version 0.51 |
10 |
|
|
%define release 04 |
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: Daniel J. Bernstein |
14 |
|
|
Group: Networking/Daemons |
15 |
|
|
Source: http://cr.yp.to/software/%{name}-%{version}.tar.gz |
16 |
|
|
URL: http://cr.yp.to/%{name}.html |
17 |
|
|
Patch0: %{name}-%{version}.patch.2001020500 |
18 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
|
|
Provides: fastforward |
20 |
|
|
Requires: qmail |
21 |
|
|
BuildRequires: groff |
22 |
|
|
AutoReqProv: no |
23 |
|
|
|
24 |
|
|
%description |
25 |
|
|
fastforward handles qmail forwarding according to a cdb database. It |
26 |
|
|
can create forwarding databases from a sendmail-style /etc/aliases or |
27 |
|
|
from user-oriented virtual-domain tables. |
28 |
|
|
|
29 |
|
|
fastforward supports external mailing lists, stored in a binary format |
30 |
|
|
for fast access. It has a tool to convert sendmail-style include files |
31 |
|
|
into binary lists. |
32 |
|
|
|
33 |
|
|
fastforward is more reliable than sendmail. sendmail can't deal with |
34 |
|
|
long aliases, or deeply nested aliases, or deeply nested include |
35 |
|
|
files; fastforward has no limits other than memory. sendmail can |
36 |
|
|
produce corrupted alias files if the system crashes; fastforward is |
37 |
|
|
crashproof. |
38 |
|
|
|
39 |
|
|
fastforward's database-building tools are much faster than sendmail's |
40 |
|
|
newaliases. Even better, fastforward deliveries don't pause while the |
41 |
|
|
database is being rebuilt. |
42 |
|
|
|
43 |
|
|
fastforward does not support insecure sendmail-style program |
44 |
|
|
deliveries from include files; you can use qmail's secure built-in |
45 |
|
|
mechanisms instead. fastforward does support program deliveries from |
46 |
|
|
/etc/aliases. |
47 |
|
|
|
48 |
|
|
%changelog |
49 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
50 |
|
|
- Clean up spec so package can be built by koji/plague |
51 |
|
|
|
52 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
53 |
|
|
- Update to new release naming. No functional changes. |
54 |
|
|
- Make Packager generic |
55 |
|
|
|
56 |
|
|
* Tue Oct 11 2005 Charlie Brady <charlieb@e-smith.com> 0.51-04 |
57 |
|
|
- Rebuild under CentOS 4. Includes errno.h compiler configuration |
58 |
|
|
fix. |
59 |
|
|
|
60 |
|
|
* Thu Feb 8 2001 Adrian Chung <adrianc@e-smith.com> |
61 |
|
|
- Rolling release number for GPG signing. |
62 |
|
|
|
63 |
|
|
* Mon Feb 5 2001 Peter Samuel <peters@e-smith.com> |
64 |
|
|
- [0.51-02] |
65 |
|
|
- Now installs in its own root area prior to creating binary RPM. |
66 |
|
|
|
67 |
|
|
* Mon Mar 29 1999 Joseph Morrison <jdm@e-smith.com> |
68 |
|
|
- [0.51-1] |
69 |
|
|
- initial release |
70 |
|
|
|
71 |
|
|
%prep |
72 |
|
|
%setup |
73 |
|
|
|
74 |
|
|
# This patch allows files to be installed in a relative directory prior |
75 |
|
|
# to creating the binary RPM. It does not change the files or their |
76 |
|
|
# final installed locations. |
77 |
|
|
|
78 |
|
|
%patch0 -p1 |
79 |
|
|
|
80 |
|
|
# Create the relative installation directory. |
81 |
|
|
|
82 |
|
|
mkdir -p ./root/var/qmail |
83 |
|
|
|
84 |
|
|
%build |
85 |
|
|
echo gcc --include /usr/include/errno.h > conf-cc |
86 |
|
|
make |
87 |
|
|
|
88 |
|
|
%install |
89 |
|
|
make setup |
90 |
|
|
make check |
91 |
|
|
rm -rf $RPM_BUILD_ROOT |
92 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
93 |
|
|
|
94 |
|
|
%clean |
95 |
|
|
rm -rf $RPM_BUILD_ROOT |
96 |
|
|
|
97 |
|
|
%files |
98 |
|
|
%attr(755,root,root) /var/qmail/bin/fastforward |
99 |
|
|
%attr(755,root,root) /var/qmail/bin/printforward |
100 |
|
|
%attr(755,root,root) /var/qmail/bin/setforward |
101 |
|
|
%attr(755,root,root) /var/qmail/bin/newaliases |
102 |
|
|
%attr(755,root,root) /var/qmail/bin/printmaillist |
103 |
|
|
%attr(755,root,root) /var/qmail/bin/setmaillist |
104 |
|
|
%attr(755,root,root) /var/qmail/bin/newinclude |
105 |
|
|
%attr(755,root,root) %dir /var/qmail/doc/fastforward |
106 |
|
|
%attr(644,root,root) /var/qmail/doc/fastforward/ALIASES |
107 |
|
|
%attr(644,root,root) /var/qmail/man/man1/fastforward.1 |
108 |
|
|
%attr(644,root,root) /var/qmail/man/man1/printforward.1 |
109 |
|
|
%attr(644,root,root) /var/qmail/man/man1/setforward.1 |
110 |
|
|
%attr(644,root,root) /var/qmail/man/man1/newaliases.1 |
111 |
|
|
%attr(644,root,root) /var/qmail/man/man1/printmaillist.1 |
112 |
|
|
%attr(644,root,root) /var/qmail/man/man1/setmaillist.1 |
113 |
|
|
%attr(644,root,root) /var/qmail/man/man1/newinclude.1 |
114 |
|
|
%attr(644,root,root) /var/qmail/man/cat1/fastforward.0 |
115 |
|
|
%attr(644,root,root) /var/qmail/man/cat1/printforward.0 |
116 |
|
|
%attr(644,root,root) /var/qmail/man/cat1/setforward.0 |
117 |
|
|
%attr(644,root,root) /var/qmail/man/cat1/newaliases.0 |
118 |
|
|
%attr(644,root,root) /var/qmail/man/cat1/printmaillist.0 |
119 |
|
|
%attr(644,root,root) /var/qmail/man/cat1/setmaillist.0 |
120 |
|
|
%attr(644,root,root) /var/qmail/man/cat1/newinclude.0 |