mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 20:24:09 +01:00
365ca76fe1
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8965 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
98 lines
2.9 KiB
RPMSpec
98 lines
2.9 KiB
RPMSpec
%define name shorewall6-lite
|
|
%define version 4.3.0
|
|
%define release 0base
|
|
|
|
Summary: Shoreline Firewall 6 Lite is an ip6tables-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 6, more commonly known as "Shorewall6", is a Netfilter
|
|
(ip6tables) 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 Shorewall6 that allows network
|
|
administrators to centralize the configuration of Shorewall6-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
|
|
|
|
%post
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
if [ -x /sbin/insserv ]; then
|
|
/sbin/insserv /etc/rc.d/shorewall6-lite
|
|
elif [ -x /sbin/chkconfig ]; then
|
|
/sbin/chkconfig --add shorewall6-lite;
|
|
fi
|
|
elif [ -f /etc/shorewall6-lite/shorewall.conf.rpmsave ]; then
|
|
mv -f /etc/shorewall6-lite/shorewall6-lite.conf /etc/shorewall6-lite/shorewall6-lite.conf.rpmnew
|
|
mv -f /etc/shorewall6-lite/shorewall.conf.rpmsave /etc/shorewall6-lite/shorewall6-lite.conf
|
|
echo "/etc/shorewall6-lite/shorewall.conf retained as /etc/shorewall6-lite/shorewall6-lite.conf"
|
|
echo "/etc/shorewall6-lite/shorewall6-lite.conf installed as /etc/shorewall6-lite/shorewall6-lite.conf.rpmnew"
|
|
fi
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
if [ -x /sbin/insserv ]; then
|
|
/sbin/insserv -r /etc/init.d/shorewall6-lite
|
|
elif [ -x /sbin/chkconfig ]; then
|
|
/sbin/chkconfig --del shorewall6-lite
|
|
fi
|
|
fi
|
|
|
|
%files
|
|
%defattr(0644,root,root,0755)
|
|
%attr(0755,root,root) %dir /etc/shorewall6-lite
|
|
%attr(0644,root,root) %config(noreplace) /etc/shorewall6-lite/shorewall6-lite.conf
|
|
%attr(0644,root,root) /etc/shorewall6-lite/Makefile
|
|
%attr(0544,root,root) /etc/init.d/shorewall6-lite
|
|
%attr(0755,root,root) %dir /usr/share/shorewall6-lite
|
|
%attr(0700,root,root) %dir /var/lib/shorewall6-lite
|
|
|
|
%attr(0755,root,root) /sbin/shorewall6-lite
|
|
|
|
%attr(0644,root,root) /usr/share/shorewall6-lite/version
|
|
%attr(0644,root,root) /usr/share/shorewall6-lite/configpath
|
|
%attr(- ,root,root) /usr/share/shorewall6-lite/functions
|
|
%attr(0644,root,root) /usr/share/shorewall6-lite/lib.base
|
|
%attr(0644,root,root) /usr/share/shorewall6-lite/lib.cli
|
|
%attr(0644,root,root) /usr/share/shorewall6-lite/modules
|
|
%attr(0544,root,root) /usr/share/shorewall6-lite/shorecap
|
|
%attr(0755,root,root) /usr/share/shorewall6-lite/wait4ifup
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/shorewall6-lite.8.gz
|
|
|
|
%doc COPYING changelog.txt releasenotes.txt
|
|
|
|
%changelog
|
|
* Tue Dec 09 2008 Tom Eastep tom@shorewall.net
|
|
- Initial Version
|
|
|
|
|