mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
b52477a629
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4079 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
98 lines
2.6 KiB
RPMSpec
98 lines
2.6 KiB
RPMSpec
%define name shorewall-lite
|
|
%define version 3.2.0
|
|
%define release 0RC3
|
|
%define prefix /usr
|
|
|
|
Summary: Shoreline Firewall Lite 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
|
|
|
|
%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
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%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
|
|
fi
|
|
|
|
%preun
|
|
|
|
if [ $1 = 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.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(0555,root,root) /sbin/shorewall-lite
|
|
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/version
|
|
%attr(0644,root,root) /usr/share/shorewall-lite/configpath
|
|
%attr(0444,root,root) /usr/share/shorewall-lite/functions
|
|
%attr(0444,root,root) /usr/share/shorewall-lite/modules
|
|
%attr(0444,root,root) /usr/share/shorewall-lite/xmodules
|
|
%attr(0544,root,root) /usr/share/shorewall-lite/shorecap
|
|
%attr(0544,root,root) /usr/share/shorewall-lite/help
|
|
|
|
%doc COPYING changelog.txt releasenotes.txt
|
|
|
|
%changelog
|
|
* Mon Jun 12 2006 Tom Eastep tom@shorewall.net
|
|
- Change control program to /sbin/shorewall-lite
|
|
- Version 3.2.0-RC3
|
|
* Fri Jun 09 2006 Tom Eastep tom@shorewall.net
|
|
- Install Shorewall-lite in its own directories
|
|
* Wed Jun 07 2006 Tom Eastep tom@shorewall.net
|
|
- Version 3.2.0-RC2
|
|
* Tue Apr 18 2006 Tom Eastep tom@shorewall.net
|
|
- Initial Version
|
|
|
|
|