Summary: Common files for the shorewall firewall compilers Name: shorewall-common Version: 4.0.4 Release: 1%{?dist} License: GPLv2+ Group: Applications/System URL: http://www.shorewall.net/ Source: http://www.shorewall.net/pub/shorewall/4.0/shorewall-%{version}/shorewall-common-%{version}.tar.bz2 Patch0: shorewall-4.0.4-init.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: iptables iproute Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service %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 offers two alternative firewall compilers, shorewall-perl and shorewall-shell. The shorewall-perl compilers is suggested for new installed systems and shorewall-shell is provided for backwards compatibility and smooth legacy system upgrades because shorewall perl is not fully compatible with all legacy configurations. This package contains the files required by shorewall-perl and shorewall-shell to run. You need to install the shorewall-perl and/or shorewall-shell package(s) for a functional firewall. %package -n shorewall Summary: An iptables-based firewall for Linux systems Group: Applications/System Requires: shorewall-common = %{version}-%{release} Requires: shorewall-shell = %{version} Requires: shorewall-perl = %{version} %description -n shorewall 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. This is a meta package that installs all the packages needed for a Shorewall firewall, namely shorewall-common and the two alternative ruleset compilers, shorewall-perl and shorewall-shell. %prep %setup -q %patch0 -p1 # Remove hash-bang from files which are not directly executed as shell # scripts. This silences some rpmlint errors. for i in lib.* wait4ifup ; do sed -i -e '/\#\!\/bin\/sh/d' $i done %build %install rm -rf $RPM_BUILD_ROOT export PREFIX=$RPM_BUILD_ROOT ;\ export DEST=%{_initrddir} ;\ ./install.sh # Create %ghost files install -d $RPM_BUILD_ROOT/%{_localstatedir}/lib/shorewall touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/shorewall/{chains,nat,proxyarp,restarted,zones,restore-base,restore-tail,state} %clean rm -rf $RPM_BUILD_ROOT %post if [ $1 = 1 ]; then /sbin/chkconfig --add shorewall fi %preun if [ $1 = 0 ]; then /sbin/service shorewall stop >/dev/null 2>&1 /sbin/chkconfig --del shorewall fi %files %defattr(0644,root,root,0755) %doc COPYING changelog.txt releasenotes.txt Samples %{_mandir}/man5/* %{_mandir}/man8/* %attr(0755,root,root) %{_initrddir}/shorewall %attr(0755,root,root) /sbin/shorewall %dir %{_sysconfdir}/shorewall %config(noreplace) %{_sysconfdir}/shorewall/* %dir %{_datadir}/shorewall %attr(0755,root,root) %{_datadir}/shorewall/firewall %{_datadir}/shorewall/action.* %{_datadir}/shorewall/actions.std %{_datadir}/shorewall/configpath %{_datadir}/shorewall/macro.* %{_datadir}/shorewall/rfc1918 %{_datadir}/shorewall/version %{_datadir}/shorewall/modules %{_datadir}/shorewall/configfiles %{_datadir}/shorewall/wait4ifup %{_datadir}/shorewall/functions %{_datadir}/shorewall/lib.* %dir %{_localstatedir}/lib/shorewall %ghost %{_localstatedir}/lib/shorewall/* %changelog * Sat Oct 6 2007 Jonathan G. Underwood - 4.0.4-1 - Initial packaging based on Shorewall 3.4.6 packaging by Robert Marcano