2006-06-03 17:21:21 +02:00
|
|
|
%define name shorewall-lite
|
2007-04-07 19:23:59 +02:00
|
|
|
%define version 3.9.1
|
2007-03-10 21:06:33 +01:00
|
|
|
%define release 1
|
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.
|
|
|
|
|
2006-06-10 18:27:51 +02:00
|
|
|
Shorewall Lite is a companion product to Shorewall that allows network
|
|
|
|
administrators to centralize the configuration of Shorewall-based firewalls.
|
|
|
|
|
2006-06-03 17:16:21 +02:00
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
export PREFIX=$RPM_BUILD_ROOT ; \
|
|
|
|
export OWNER=`id -n -u` ; \
|
|
|
|
export GROUP=`id -n -g` ;\
|
2006-12-24 01:24:06 +01:00
|
|
|
./install.sh -n
|
2006-06-03 17:16:21 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-01-04 00:26:13 +01:00
|
|
|
%pre
|
|
|
|
|
2007-01-04 14:35:03 +01:00
|
|
|
if [ -f /etc/shorewall-lite/shorewall.conf ]; then
|
|
|
|
cp -fa /etc/shorewall-lite/shorewall.conf /etc/shorewall-lite/shorewall.conf.rpmsave
|
2007-01-04 00:26:13 +01:00
|
|
|
fi
|
|
|
|
|
2006-06-03 17:16:21 +02:00
|
|
|
%post
|
|
|
|
|
|
|
|
if [ $1 -eq 1 ]; then
|
2007-01-04 00:26:13 +01:00
|
|
|
if [ -x /sbin/insserv ]; then
|
|
|
|
/sbin/insserv /etc/rc.d/shorewall-lite
|
|
|
|
elif [ -x /sbin/chkconfig ]; then
|
|
|
|
/sbin/chkconfig --add shorewall-lite;
|
|
|
|
fi
|
2007-01-04 14:35:03 +01:00
|
|
|
elif [ -f /etc/shorewall-lite/shorewall.conf.rpmsave ]; then
|
|
|
|
mv -f /etc/shorewall-lite/shorewall-lite.conf /etc/shorewall-lite/shorewall-lite.conf.rpmnew
|
2007-01-04 14:41:00 +01:00
|
|
|
mv -f /etc/shorewall-lite/shorewall.conf.rpmsave /etc/shorewall-lite/shorewall-lite.conf
|
2007-01-04 14:45:06 +01:00
|
|
|
echo "/etc/shorewall-lite/shorewall.conf retained as /etc/shorewall-lite/shorewall-lite.conf"
|
2007-01-04 14:41:00 +01:00
|
|
|
echo "/etc/shorewall-lite/shorewall-lite.conf installed as /etc/shorewall-lite/shorewall-lite.conf.rpmnew"
|
2006-06-03 17:16:21 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
2007-01-04 00:26:13 +01:00
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
if [ -x /sbin/insserv ]; then
|
|
|
|
/sbin/insserv -r /etc/init.d/shorewall-lite
|
|
|
|
elif [ -x /sbin/chkconfig ]; then
|
|
|
|
/sbin/chkconfig --del shorewall-lite
|
|
|
|
fi
|
2006-06-03 17:16:21 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2006-06-09 18:59:14 +02:00
|
|
|
%attr(0755,root,root) %dir /etc/shorewall-lite
|
2007-01-04 00:29:11 +01:00
|
|
|
%attr(0644,root,root) %config(noreplace) /etc/shorewall-lite/shorewall-lite.conf
|
2006-06-09 18:59:14 +02:00
|
|
|
%attr(0644,root,root) /etc/shorewall-lite/Makefile
|
|
|
|
%attr(0544,root,root) /etc/init.d/shorewall-lite
|
|
|
|
%attr(0755,root,root) %dir /usr/share/shorewall-lite
|
2006-06-09 19:13:48 +02:00
|
|
|
%attr(0700,root,root) %dir /var/lib/shorewall-lite
|
2006-06-09 18:59:14 +02:00
|
|
|
|
2006-06-12 19:48:20 +02:00
|
|
|
%attr(0555,root,root) /sbin/shorewall-lite
|
|
|
|
|
2006-06-09 18:59:14 +02:00
|
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/version
|
|
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/configpath
|
2006-09-09 18:40:57 +02:00
|
|
|
%attr(0777,root,root) /usr/share/shorewall-lite/functions
|
2006-09-03 18:23:15 +02:00
|
|
|
%attr(0444,root,root) /usr/share/shorewall-lite/lib.base
|
2006-10-28 16:46:43 +02:00
|
|
|
%attr(0444,root,root) /usr/share/shorewall-lite/lib.cli
|
2006-06-09 18:59:14 +02:00
|
|
|
%attr(0444,root,root) /usr/share/shorewall-lite/modules
|
|
|
|
%attr(0544,root,root) /usr/share/shorewall-lite/shorecap
|
2007-01-01 01:40:42 +01:00
|
|
|
%attr(0555,root,root) /usr/share/shorewall-lite/wait4ifup
|
2006-06-03 17:16:21 +02:00
|
|
|
|
2007-01-02 17:01:46 +01:00
|
|
|
%attr(0444,root,root) %{_mandir}/man5/shorewall-lite.conf.5.gz
|
2006-11-19 17:02:03 +01:00
|
|
|
|
|
|
|
%attr(0444,root,root) %{_mandir}/man8/shorewall-lite.8.gz
|
2006-11-19 05:13:06 +01:00
|
|
|
|
2006-06-10 16:11:23 +02:00
|
|
|
%doc COPYING changelog.txt releasenotes.txt
|
2006-06-03 17:16:21 +02:00
|
|
|
|
|
|
|
%changelog
|
2007-04-07 19:51:08 +02:00
|
|
|
* Sat Apr 07 2007 Tom Eastep tom@shorewall.net
|
2007-04-07 19:23:59 +02:00
|
|
|
- Updated to 3.9.1-1
|
2007-03-15 17:05:58 +01:00
|
|
|
* Thu Mar 15 2007 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.4.1-1
|
2007-03-10 21:06:33 +01:00
|
|
|
* Sat Mar 10 2007 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.4.0-1
|
2007-02-25 17:09:36 +01:00
|
|
|
* Sun Feb 25 2007 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.4.0-0RC3
|
2007-02-04 18:32:06 +01:00
|
|
|
* Sun Feb 04 2007 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.4.0-0RC2
|
2007-01-24 18:47:25 +01:00
|
|
|
* Wed Jan 24 2007 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.4.0-0RC1
|
2007-01-22 17:04:11 +01:00
|
|
|
* Mon Jan 22 2007 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.4.0-0Beta3
|
2007-01-04 00:26:13 +01:00
|
|
|
* Wed Jan 03 2007 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.4.0-0Beta2
|
|
|
|
- Handle rename of shorewall.conf
|
2006-12-14 22:20:11 +01:00
|
|
|
* Thu Dec 14 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.4.0-0Beta1
|
2006-11-25 19:11:21 +01:00
|
|
|
* Sat Nov 25 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Added shorewall-exclusion(5)
|
2006-11-25 19:13:16 +01:00
|
|
|
- Updated to 3.3.6-1
|
2006-11-19 23:33:24 +01:00
|
|
|
* Sun Nov 19 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.3.5-1
|
2006-10-29 18:23:06 +01:00
|
|
|
* Sun Oct 29 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.3.4-1
|
2006-10-16 23:31:53 +02:00
|
|
|
* Mon Oct 16 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.3.3-1
|
2006-09-30 17:35:11 +02:00
|
|
|
* Sat Sep 30 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.3.2-1
|
2006-08-31 00:17:12 +02:00
|
|
|
* Wed Aug 30 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.3.1-1
|
|
|
|
* Wed Aug 09 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.3.0-1
|
2006-08-09 22:11:19 +02:00
|
|
|
* Wed Aug 09 2006 Tom Eastep tom@shorewall.net
|
|
|
|
- Updated to 3.3.0-1
|
2006-06-03 17:16:21 +02:00
|
|
|
|
|
|
|
|