1 |
slords |
1.1 |
Summary: Shared library to work around qmail 0.0.0.0 bug |
2 |
|
|
Name: qmail-workaround |
3 |
|
|
Version: 0.0.1 |
4 |
|
|
Release: 4%{?dist} |
5 |
|
|
License: Public Domain |
6 |
|
|
Group: System/Library |
7 |
|
|
Source: qmail-workaround-0.0.1.tar.gz |
8 |
|
|
Patch0: qmail-workaround-0.0.1-tidy.patch |
9 |
|
|
Patch1: qmail-workaround-0.0.1-path.patch |
10 |
|
|
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} |
11 |
|
|
Prefix: %{_prefix} |
12 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root |
13 |
|
|
|
14 |
|
|
%description |
15 |
|
|
This package contains a shared library which blocks connect calls |
16 |
|
|
with destination of 0.0.0.0. This blocks a mail looping problem with |
17 |
|
|
qmail, which doesn't recognize that 0.0.0.0 is a local address. |
18 |
|
|
Spammers not infrequently use 0.0.0.0 in MX records. |
19 |
|
|
|
20 |
|
|
%prep |
21 |
|
|
%setup -q |
22 |
|
|
%patch0 -p1 |
23 |
|
|
%patch1 -p1 |
24 |
|
|
|
25 |
|
|
%build |
26 |
|
|
gcc -Wall -O2 -fpic -shared -ldl -o no_connect_zero.so no_connect_zero.c |
27 |
|
|
|
28 |
|
|
%install |
29 |
|
|
mkdir -p $RPM_BUILD_ROOT/var/service/qmail |
30 |
|
|
cp no_connect_zero.so $RPM_BUILD_ROOT/var/service/qmail |
31 |
|
|
|
32 |
|
|
%clean |
33 |
|
|
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT |
34 |
|
|
|
35 |
|
|
%files |
36 |
|
|
%defattr(-, root, root) |
37 |
|
|
%doc |
38 |
|
|
/var/service/qmail/* |
39 |
|
|
|
40 |
|
|
%changelog |
41 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
42 |
|
|
- Clean up spec so package can be built by koji/plague |
43 |
|
|
|
44 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
45 |
|
|
- Update to new release naming. No functional changes. |
46 |
|
|
- Make Packager generic |
47 |
|
|
|
48 |
|
|
* Thu Apr 13 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-03 |
49 |
|
|
- Allow dlopen to use search path to find libc. [SME: 1248] |
50 |
|
|
- Fix error reporting. |
51 |
|
|
|
52 |
|
|
* Wed Apr 12 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-02 |
53 |
|
|
- Prefix error message with Z so logs are complete. [SME: 1116] |
54 |
|
|
|
55 |
|
|
* Thu Mar 23 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-01 |
56 |
|
|
- Initial [SME: 1116] |
57 |
|
|
|