mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 23:28:59 +01:00
aa523ea52c
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7113 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
173 lines
5.4 KiB
RPMSpec
173 lines
5.4 KiB
RPMSpec
%define name shorewall-lite
|
|
%define version 4.0.2
|
|
%define release 1
|
|
|
|
Summary: Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
|
|
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: 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.
|
|
|
|
Shorewall Lite is a companion product to Shorewall that allows network
|
|
administrators to centralize the configuration of Shorewall-based firewalls.
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
%build
|
|
|
|
%install
|
|
export PREFIX=$RPM_BUILD_ROOT ; \
|
|
export OWNER=`id -n -u` ; \
|
|
export GROUP=`id -n -g` ;\
|
|
./install.sh -n
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%pre
|
|
|
|
if [ -f /etc/shorewall-lite/shorewall.conf ]; then
|
|
cp -fa /etc/shorewall-lite/shorewall.conf /etc/shorewall-lite/shorewall.conf.rpmsave
|
|
fi
|
|
|
|
%post
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
if [ -x /sbin/insserv ]; then
|
|
/sbin/insserv /etc/rc.d/shorewall-lite
|
|
elif [ -x /sbin/chkconfig ]; then
|
|
/sbin/chkconfig --add shorewall-lite;
|
|
fi
|
|
elif [ -f /etc/shorewall-lite/shorewall.conf.rpmsave ]; then
|
|
mv -f /etc/shorewall-lite/shorewall-lite.conf /etc/shorewall-lite/shorewall-lite.conf.rpmnew
|
|
mv -f /etc/shorewall-lite/shorewall.conf.rpmsave /etc/shorewall-lite/shorewall-lite.conf
|
|
echo "/etc/shorewall-lite/shorewall.conf retained as /etc/shorewall-lite/shorewall-lite.conf"
|
|
echo "/etc/shorewall-lite/shorewall-lite.conf installed as /etc/shorewall-lite/shorewall-lite.conf.rpmnew"
|
|
fi
|
|
|
|
%preun
|
|
|
|
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
|
|
fi
|
|
|
|
%files
|
|
%defattr(0644,root,root,0755)
|
|
%attr(0755,root,root) %dir /etc/shorewall-lite
|
|
%attr(0644,root,root) %config(noreplace) /etc/shorewall-lite/shorewall-lite.conf
|
|
%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
|
|
%attr(0700,root,root) %dir /var/lib/shorewall-lite
|
|
|
|
%attr(0755,root,root) /sbin/shorewall-lite
|
|
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/version
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/configpath
|
|
%attr(- ,root,root) /usr/share/shorewall-lite/functions
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/lib.base
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/lib.cli
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/modules
|
|
%attr(0544,root,root) /usr/share/shorewall-lite/shorecap
|
|
%attr(0755,root,root) /usr/share/shorewall-lite/wait4ifup
|
|
|
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-lite.conf.5.gz
|
|
%attr(0644,root,root) %{_mandir}/man5/shorewall-lite-vardir.5.gz
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/shorewall-lite.8.gz
|
|
|
|
%doc COPYING changelog.txt releasenotes.txt
|
|
|
|
%changelog
|
|
* Thu Aug 09 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 4.0.2-1
|
|
* Sat Jul 21 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 4.0.1-1
|
|
* Wed Jul 11 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 4.0.0-1
|
|
* Sun Jul 08 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 4.0.0-0RC2
|
|
* Mon Jul 02 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
|
|
* 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
|
|
* 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
|
|
- Updated to 3.9.1-1
|
|
* Thu Mar 15 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.4.1-1
|
|
* Sat Mar 10 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.4.0-1
|
|
* Sun Feb 25 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.4.0-0RC3
|
|
* Sun Feb 04 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.4.0-0RC2
|
|
* Wed Jan 24 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.4.0-0RC1
|
|
* Mon Jan 22 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.4.0-0Beta3
|
|
* Wed Jan 03 2007 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.4.0-0Beta2
|
|
- Handle rename of shorewall.conf
|
|
* Thu Dec 14 2006 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.4.0-0Beta1
|
|
* Sat Nov 25 2006 Tom Eastep tom@shorewall.net
|
|
- Added shorewall-exclusion(5)
|
|
- Updated to 3.3.6-1
|
|
* Sun Nov 19 2006 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.3.5-1
|
|
* Sun Oct 29 2006 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.3.4-1
|
|
* Mon Oct 16 2006 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.3.3-1
|
|
* Sat Sep 30 2006 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.3.2-1
|
|
* 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
|
|
* Wed Aug 09 2006 Tom Eastep tom@shorewall.net
|
|
- Updated to 3.3.0-1
|
|
|
|
|