shorewall_code/Shorewall-perl/shorewall-perl.spec
2007-07-08 19:19:46 +00:00

131 lines
4.5 KiB
RPMSpec

%define name shorewall-perl
%define version 4.0.0
%define release 0RC2
Summary: Shoreline Firewall Perl-based compiler.
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Packager: Tom Eastep <teastep@shorewall.net>
Group: Networking/Utilities
Source: %{name}-%{version}.tgz
URL: http://www.shorewall.net/
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: perl shorewall-common >= 4.0.0
Conflicts: shorewall < 3.4.2
Provides: shorewall_compiler = %{version}-%{release}
Provides: shorewall = %{version}-%{release}
%description
The Shoreline Firewall, more commonly known as "Shorewall", is a Netfilter
(iptables) based firewall that can be used on a dedicated firewall system,
a multi-function gateway/ router/server or on a standalone GNU/Linux system.
Shorewall-perl is a part of Shorewall that allows faster compilation and
execution than the legacy shorewall-shell compiler.
%prep
%setup
%build
%install
export PREFIX=$RPM_BUILD_ROOT ; \
export OWNER=`id -n -u` ; \
export GROUP=`id -n -g` ;\
./install.sh -n -P
%clean
rm -rf $RPM_BUILD_ROOT
%pre
%post
if /usr/share/shorewall-perl/buildports.pl > /usr/share/shorewall-perl/Shorewall/Ports.pm; then
chmod 0644 /usr/share/shorewall-perl/Shorewall/Ports.pm
else
echo "The buildports.pl tool failed -- installing the fallback Protocol/Ports Module"
cp -a /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm /usr/share/shorewall-perl/Shorewall/Ports.pm
fi
%preun
%files
%defattr(0644,root,root,0755)
%attr(0755,root,root) %dir /usr/share/shorewall-perl
%attr(0755,root,root) %dir /usr/share/shorewall-perl/Shorewall
%attr(755,root,root) /usr/share/shorewall-perl/buildports.pl
%attr(755,root,root) /usr/share/shorewall-perl/compiler.pl
%attr(0644,root,root) /usr/share/shorewall-perl/prog.header
%attr(0644,root,root) /usr/share/shorewall-perl/prog.functions
%attr(0644,root,root) /usr/share/shorewall-perl/prog.footer
%attr(0644,root,root) /usr/share/shorewall-perl/version
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Accounting.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Actions.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Chains.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Common.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Compiler.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Config.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Hosts.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Interfaces.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/IPAddrs.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Macros.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Nat.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Policy.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Proc.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Providers.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Proxyarp.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Rules.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Tc.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Tunnels.pm
%attr(0644,root,root) /usr/share/shorewall-perl/Shorewall/Zones.pm
%doc COPYING releasenotes.txt
%changelog
* Sun Jul 08 2007 Tom Eastep tom@shorewall.net
- Updated to 4.0.0-0RC2
* Fri Jun 29 2007 Tom EAstep tom@shorewall.net
- Updated to 4.0.0-0RC1
* Sun Jun 24 2007 Tom Eastep tom@shorewall.net
- Updated to 4.0.0-0Beta7
* Wed Jun 20 2007 Tom Eastep tom@shorewall.net
- Updated to 4.0.0-0Beta6
- Add new components.
* Thu Jun 14 2007 Tom Eastep tom@shorewall.net
- Updated to 4.0.0-0Beta5
* Fri Jun 08 2007 Tom Eastep tom@shorewall.net
- Updated to 4.0.0-0Beta4
* Tue Jun 05 2007 Tom Eastep tom@shorewall.net
- Updated to 4.0.0-0Beta3
* Sat May 26 2007 Tom Eastep tom@shorewall.net
- Updated to 4.0.0-0Beta2
* Tue May 15 2007 Tom Eastep tom@shorewall.net
- Updated to 4.0.0-0Beta1
* Fri May 11 2007 Tom Eastep tom@shorewall.net
- Updated to 3.9.7-1
* Sat May 05 2007 Tom Eastep tom@shorewall.net
- Updated to 3.9.6-1
* Mon Apr 30 2007 Tom Eastep tom@shorewall.net
- Updated to 3.9.5-1
* Mon Apr 23 2007 Tom Eastep tom@shorewall.net
- Updated to 3.9.4-1
* Wed Apr 18 2007 Tom Eastep tom@shorewall.net
- Updated to 3.9.3-1
* Sat Apr 14 2007 Tom Eastep tom@shorewall.net
- Updated to 3.9.2-1
* Sat Apr 07 2007 Tom Eastep tom@shorewall.net
- Initial version 3.9.1-1
* Sat Mar 24 2007 Tom Eastep tom@shorewall.net
- Initial version 3.9.0-1