2006-06-03 17:21:21 +02:00
|
|
|
%define name shorewall-lite
|
2006-06-03 17:16:21 +02:00
|
|
|
%define version 3.2.0
|
2006-06-03 17:21:21 +02:00
|
|
|
%define release 0RC1
|
2006-06-03 17:16:21 +02:00
|
|
|
%define prefix /usr
|
|
|
|
|
2006-06-03 17:21:21 +02:00
|
|
|
Summary: Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
|
2006-06-03 17:16:21 +02:00
|
|
|
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: iptables iproute
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
export PREFIX=$RPM_BUILD_ROOT ; \
|
|
|
|
export OWNER=`id -n -u` ; \
|
|
|
|
export GROUP=`id -n -g` ;\
|
|
|
|
./install.sh
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
if [ -x /sbin/insserv ]; then
|
|
|
|
/sbin/insserv /etc/rc.d/shorewall
|
|
|
|
elif [ -x /sbin/chkconfig ]; then
|
|
|
|
/sbin/chkconfig --add shorewall;
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
if [ -x /sbin/insserv ]; then
|
|
|
|
/sbin/insserv -r /etc/init.d/shorewall
|
|
|
|
elif [ -x /sbin/chkconfig ]; then
|
|
|
|
/sbin/chkconfig --del shorewall
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%attr(0755,root,root) %dir /etc/shorewall
|
2006-06-03 17:21:21 +02:00
|
|
|
%attr(0644,root,root) %config(noreplace) /etc/shorewall/shorewall.conf
|
2006-06-05 19:13:48 +02:00
|
|
|
%attr(0644,root,root) /etc/shorewall/Makefile
|
2006-06-03 17:21:21 +02:00
|
|
|
%attr(0544,root,root) /etc/init.d/shorewall
|
2006-06-03 17:16:21 +02:00
|
|
|
%attr(0755,root,root) %dir /usr/share/shorewall
|
|
|
|
%attr(0700,root,root) %dir /var/lib/shorewall
|
|
|
|
|
|
|
|
%attr(0555,root,root) /sbin/shorewall
|
|
|
|
|
|
|
|
%attr(0644,root,root) /usr/share/shorewall/version
|
2006-06-03 19:04:45 +02:00
|
|
|
%attr(0644,root,root) /usr/share/shorewall/configpath
|
2006-06-03 17:16:21 +02:00
|
|
|
%attr(0444,root,root) /usr/share/shorewall/functions
|
2006-06-05 23:08:51 +02:00
|
|
|
%attr(0444,root,root) /usr/share/shorewall/modules
|
|
|
|
%attr(0444,root,root) /usr/share/shorewall/xmodules
|
2006-06-03 17:16:21 +02:00
|
|
|
%attr(0544,root,root) /usr/share/shorewall/shorecap
|
|
|
|
%attr(0544,root,root) /usr/share/shorewall/help
|
|
|
|
|
2006-06-03 17:21:21 +02:00
|
|
|
%doc COPYING INSTALL changelog.txt releasenotes.txt
|
2006-06-03 17:16:21 +02:00
|
|
|
|
|
|
|
%changelog
|
2006-06-03 17:21:21 +02:00
|
|
|
* Tue Apr 18 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Initial Version
|
2006-06-03 17:16:21 +02:00
|
|
|
|
|
|
|
|