1 |
|
# $Id: e-smith-portforwarding.spec,v 1.12 2009/10/20 16:22:08 filippocarletti Exp $ |
2 |
|
|
3 |
Summary: portforwarding panel for SME Server |
Summary: portforwarding panel for SME Server |
4 |
%define name e-smith-portforwarding |
%define name e-smith-portforwarding |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 1.2.0 |
%define version 2.2.0 |
7 |
%define release 3 |
%define release 4 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
13 |
Patch0: e-smith-portforwarding-1.2.0-migratedb.patch |
Patch1: e-smith-portforwarding-2.2.0-AllowHosts.patch |
14 |
|
Patch2: e-smith-portforwarding-2.2.0-AllowHosts.patch2 |
15 |
|
Patch3: e-smith-portforwarding-2.2.0-fwd2local_serveronly.patch |
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
18 |
Requires: e-smith-base |
Requires: e-smith-base |
19 |
Requires: e-smith-packetfilter >= 1.13.0-13 |
Requires: e-smith-packetfilter >= 1.13.0-13 |
20 |
Requires: e-smith-lib >= 1.15.1-19 |
Requires: e-smith-lib >= 1.15.1-19 |
21 |
|
Requires: e-smith-formmagick >= 1.4.0-12 |
22 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
23 |
Obsoletes: e-smith-ipportfw dmc-mitel-portforwarding |
Obsoletes: e-smith-ipportfw dmc-mitel-portforwarding |
24 |
AutoReqProv: no |
AutoReqProv: no |
27 |
Adds a Port Forwarding panel to the SME server-manager. |
Adds a Port Forwarding panel to the SME server-manager. |
28 |
|
|
29 |
%changelog |
%changelog |
30 |
|
* Tue Dec 15 2009 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-4.sme |
31 |
|
- Enable port forwards to localhost if mode is serveronly [SME: 1003] |
32 |
|
|
33 |
|
* Tue Oct 20 2009 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-3.sme |
34 |
|
- Adjust xml entry in locale [SME: 2379] |
35 |
|
|
36 |
|
* Mon Oct 19 2009 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-2.sme |
37 |
|
- Add option to limit port forwards from source ip [SME: 2379] |
38 |
|
|
39 |
|
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
40 |
|
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
41 |
|
|
42 |
|
* Sun Apr 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-9 |
43 |
|
- Add common <base> tags to e-smith-formmagick's general [SME: 4282] |
44 |
|
|
45 |
|
* Wed Feb 13 2008 Stephen Noble <support@dungog.net> 1.2.0-8 |
46 |
|
- Remove <base> tags now in general [SME: 3913] |
47 |
|
|
48 |
|
* Sun Feb 10 2008 Stephen Noble <support@dungog.net> 1.2.0-7 |
49 |
|
- Remove duplicate <base> entries [SME: 3888] |
50 |
|
|
51 |
|
* Thu Nov 08 2007 Gavin Weight<gweight@mail.com> 1.2.0-6 |
52 |
|
- Remove/Fix portforwarding.pm.orig file. [SME: 3526] |
53 |
|
|
54 |
|
* Tue Oct 16 2007 Charlie Brady <charlie_brady@mitel.com> 1.2.0-5 |
55 |
|
- Use $OUTERNET for target of localhost port forwards, not externalIP |
56 |
|
pulled from db at template expansion time. [SME: 2760] |
57 |
|
|
58 |
|
* Wed Jun 26 2007 Shad L. Lords <slords@mail.com> 1.2.0-4 |
59 |
|
- Ensure portforwarding dbs exists [SME: 54] |
60 |
|
|
61 |
* Tue Jun 26 2007 Shad L. Lords <slords@mail.com> 1.2.0-3 |
* Tue Jun 26 2007 Shad L. Lords <slords@mail.com> 1.2.0-3 |
62 |
- Migrate portforwarding to own databases [SME: 54] |
- Migrate portforwarding to own databases [SME: 54] |
63 |
|
|
426 |
|
|
427 |
%prep |
%prep |
428 |
%setup |
%setup |
429 |
%patch0 -p1 |
%patch1 -p1 |
430 |
|
%patch2 -p1 |
431 |
|
%patch3 -p1 |
432 |
|
|
433 |
%build |
%build |
434 |
perl createlinks |
perl createlinks |
439 |
rm -f e-smith-%{version}-filelist |
rm -f e-smith-%{version}-filelist |
440 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
441 |
|
|
442 |
|
for proto in tcp udp |
443 |
|
do |
444 |
|
mkdir -p $RPM_BUILD_ROOT/home/e-smith/db |
445 |
|
touch $RPM_BUILD_ROOT/home/e-smith/db/portforward_$proto |
446 |
|
echo "%config(noreplace) %attr(0640,root,admin) /home/e-smith/db/portforward_$proto" \ |
447 |
|
>> %{name}-%{version}-filelist |
448 |
|
done |
449 |
|
|
450 |
%clean |
%clean |
451 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
452 |
|
|