1 |
|
# $Id: e-smith-portforwarding.spec,v 1.12 2010/03/05 20:07:37 slords 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.0.0 |
7 |
%define release 3 |
%define release 3 |
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 |
|
Patch4: e-smith-portforwarding-2.2.0-filter-source-address.patch |
17 |
|
Patch5: e-smith-portforwarding-2.2.0-filter-source-address2.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
Requires: e-smith-base |
Requires: e-smith-base |
21 |
Requires: e-smith-packetfilter >= 1.13.0-13 |
Requires: e-smith-packetfilter >= 1.13.0-13 |
22 |
Requires: e-smith-lib >= 1.15.1-19 |
Requires: e-smith-lib >= 1.15.1-19 |
23 |
|
Requires: e-smith-formmagick >= 1.4.0-12 |
24 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
25 |
Obsoletes: e-smith-ipportfw dmc-mitel-portforwarding |
Obsoletes: e-smith-ipportfw dmc-mitel-portforwarding |
26 |
AutoReqProv: no |
AutoReqProv: no |
29 |
Adds a Port Forwarding panel to the SME server-manager. |
Adds a Port Forwarding panel to the SME server-manager. |
30 |
|
|
31 |
%changelog |
%changelog |
32 |
|
* Thu Mar 11 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-3.sme |
33 |
|
- Enable port forwards to localhost if mode is serveronly [SME: 5849] |
34 |
|
|
35 |
|
* Thu Feb 4 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.0.0-2.sme |
36 |
|
- Add option to limit port forwards from source ip [SME: 6008] |
37 |
|
- Add Text Description For Each Port Forwarding [SME: 6007] |
38 |
|
|
39 |
|
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.0.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 |
|
|
415 |
- merged in e-smith-ipportfw-0.1.1-1.noarch.rpm |
- merged in e-smith-ipportfw-0.1.1-1.noarch.rpm |
416 |
- [0.0.1-3] |
- [0.0.1-3] |
417 |
* Mon Dec 31 2001 Darrell May <dmay@netsourced.com> |
* Mon Dec 31 2001 Darrell May <dmay@netsourced.com> |
418 |
- added "Shad L. Lords" <lists@lordsfam.net>, e-smith-iportfw 35SetPortFW |
- added "Shad L. Lords" <slords@mail.com>, e-smith-iportfw 35SetPortFW |
419 |
- templates-custom fragment supporting dest port addresses |
- templates-custom fragment supporting dest port addresses |
420 |
- updated portforwarding panel to match |
- updated portforwarding panel to match |
421 |
- removed first/last portforward panel bug by adding return on Operation Status |
- removed first/last portforward panel bug by adding return on Operation Status |
426 |
|
|
427 |
%prep |
%prep |
428 |
%setup |
%setup |
429 |
%patch0 -p1 |
%patch1 -p1 |
430 |
|
%patch2 -p1 |
431 |
|
%patch3 -p1 |
432 |
|
%patch4 -p1 |
433 |
|
%patch5 -p1 |
434 |
|
|
435 |
%build |
%build |
436 |
perl createlinks |
perl createlinks |
441 |
rm -f e-smith-%{version}-filelist |
rm -f e-smith-%{version}-filelist |
442 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
443 |
|
|
444 |
|
for proto in tcp udp |
445 |
|
do |
446 |
|
mkdir -p $RPM_BUILD_ROOT/home/e-smith/db |
447 |
|
touch $RPM_BUILD_ROOT/home/e-smith/db/portforward_$proto |
448 |
|
echo "%config(noreplace) %attr(0640,root,admin) /home/e-smith/db/portforward_$proto" \ |
449 |
|
>> %{name}-%{version}-filelist |
450 |
|
done |
451 |
|
|
452 |
%clean |
%clean |
453 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
454 |
|
|