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