shorewall_code/Shorewall-perl/shorewall-perl.spec
2007-06-29 15:46:32 +00:00

127 lines
4.3 KiB
RPMSpec

%define name shorewall-perl
%define version 4.0.0
%define release 0Beta7
%define prefix /usr
Summary: Shoreline Firewall Perl-based compiler.
Name: %{name}
Version: %{version}
Release: %{release}
Prefix: %{prefix}
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 >= 3.4.2
Provides: shorewall_compiler
%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 companion product to Shorewall that allows faster
compilation and execution.
%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 0555 /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(555,root,root) /usr/share/shorewall-perl/buildports.pl
%attr(555,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(0555,root,root) /usr/share/shorewall-perl/Shorewall/Accounting.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Actions.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Chains.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Common.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Compiler.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Config.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/FallbackPorts.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Hosts.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Interfaces.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/IPAddrs.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Macros.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Nat.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Policy.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Proc.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Providers.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Proxyarp.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Rules.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Tc.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Tunnels.pm
%attr(0555,root,root) /usr/share/shorewall-perl/Shorewall/Zones.pm
%doc COPYING releasenotes.txt
%changelog
* 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