mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-03 21:13:29 +01:00
6363ba8621
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5863 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
90 lines
2.2 KiB
RPMSpec
90 lines
2.2 KiB
RPMSpec
%define name shorewall-shell
|
|
%define version 3.9.1
|
|
%define release 1
|
|
%define prefix /usr
|
|
|
|
Summary: Shoreline Firewall is an iptables-based firewall for Linux systems.
|
|
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
|
|
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.
|
|
|
|
%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
|
|
|
|
%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
|
|
|
|
rm -f /etc/shorewall/startup_disabled
|
|
|
|
fi
|
|
|
|
%files
|
|
%defattr(0644,root,root,0755)
|
|
%attr(0755,root,root) %dir /usr/share/shorewall-shell
|
|
|
|
%attr(0555,root,root) /usr/share/shorewall-shell/compiler
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.accounting
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.actions
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.dynamiczones
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.maclist
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.nat
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.providers
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.proxyarp
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.tc
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.tcrules
|
|
%attr(0444,root,root) /usr/share/shorewall-shell/lib.tunnels
|
|
%attr(0644,root,root) /usr/share/shorewall-shell/prog.footer
|
|
%attr(0644,root,root) /usr/share/shorewall-shell/prog.header
|
|
|
|
%doc COPYING INSTALL
|
|
|
|
%changelog
|
|
* Tue Apr 03 2007 Tom Eastep tom@shorewall.net
|
|
- Initial Version
|
|
|
|
|